/**
 * Theme Name: Pronto
 * Description: Custom theme styles for ACF-powered flexible layouts
 */

/* ===== Typography Enhancements ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.01em;
  word-spacing: 0.05em;
}

h1 {
}

h2.minor-heading {
  font-size: clamp(14px, 1.5vw, 18px);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.eyebrow-heading {
  font-size: clamp(16px, 2vw, 22px);
}

p {
  text-wrap: pretty;
}

/* ===== Images & Media ===== */

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: var(--text-small);
  color: var(--color-softened-black);
  opacity: 0.7;
  margin-top: 0.5rem;
  font-style: italic;
}

a img,
.post-thumbnail img {
  transition:
    transform var(--transition-base),
    filter var(--transition-base);
}

a:hover img,
.post:hover .post-thumbnail img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ===== Forms ===== */

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: inherit;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-rust-600);
  box-shadow: 0 0 0 3px rgba(106, 153, 78, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ===== Header & Navigation ===== */

/* Header transitions */
.header-main {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.header-main.header-hidden {
  transform: translateY(-100%);
}

.header-main.header-scrolled {
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Desktop Navigation Links */
.nav-link,
nav
  a:not(.header-cta-primary):not(.mobile-nav-link):not(.mobile-cta-primary):not(.mobile-cta-secondary):not(.header-cart):not(.header-account):not(
    .custom-logo-link
  ) {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-softened-black);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
}

.nav-link:hover,
nav a:not(.header-cta-primary):not(.mobile-nav-link):not(.mobile-cta-primary):not(.mobile-cta-secondary):not(.header-cart):not(.header-account):hover {
  color: var(--color-rust-600);
  background-color: var(--color-soft-white);
}

/* Active state for current page */
.nav-link.active,
nav a.active:not(.header-cta-primary):not(.mobile-nav-link):not(.mobile-cta-primary):not(.mobile-cta-secondary):not(.header-cart):not(.header-account) {
  color: var(--color-rust-600);
  background-color: var(--color-rust-50);
}

/* Header CTA Button */
.header-cta-primary {
  font-family: var(--font-sans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.header-cta-primary:hover {
  transform: translateY(-1px);
}

/* Mobile Navigation */
.mobile-nav-list {
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link,
.mobile-nav-list a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-softened-black);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
}

.mobile-nav-link:hover,
.mobile-nav-list a:hover {
  background-color: var(--color-soft-white);
  color: var(--color-rust-600);
  transform: translateX(2px);
}

/* Mobile CTA Buttons */
.mobile-cta-primary,
.mobile-cta-secondary {
  font-family: var(--font-sans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
#mobile-menu {
  -webkit-tap-highlight-color: transparent;
  /* Prevent drawer from causing horizontal overflow */
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
  width: 100%;
}

/* Mobile menu panel improvements */
.mobile-menu-panel {
  display: flex;
  flex-direction: column;
  /* Prevent the panel from affecting layout when translated */
  will-change: transform;
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 1023px) {
  body,
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .header-main {
    max-width: 100vw;
  }
}

/* Logo hover state */
.header-logo a {
  text-decoration: none;
}

/* Ensure menu icons don't have transitions that conflict */
.mobile-menu-icon,
.mobile-menu-close {
  pointer-events: none;
}

/* Improve mobile menu button tap target */
#mobile-menu-button {
  min-width: 44px;
  min-height: 44px;
}

/* ===== Section Layouts ===== */

.vertical,
.horizontal {
  flex-direction: column;
  align-items: center;
}

.link-above {
  position: relative;
}

.link-above::before {
  content: "";
  width: 100px;
  height: 100px;
  display: block;
  background-color: inherit;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
}

@media (width >=568px) {
  .horizontal {
    flex-direction: row;
  }
}

/* ===== Cards & Containers ===== */

.card {
  background-color: var(--color-base);
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-rust-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.step {
  transition: all 0.2s ease;
  cursor: pointer;
  &:hover {
    background-color: var(--color-rust-50);
  }
  &.active {
    background-color: var(--color-rust-100);
  }
}

/* ===== Prose styling ===== */

.prose {
  line-height: var(--lh-relaxed);
  color: var(--color-softened-black);
}

.prose a {
  color: var(--color-rust-600);
}

.prose a:hover {
  color: var(--color-terracotta-500);
}

/* ===== Animations ===== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Step content animations */
@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ===== Hand-Drawn Border Image ===== */

/* Base drawn border class */
.border-drawn {
  border: 6px solid transparent;
  border-image: var(--border-drawn) 30 round;
  border-image-outset: 0;
}

/* Variations with different widths */
.border-drawn-thin {
  border: 16px solid transparent;
  border-image: var(--border-drawn) 20 round;
}

.border-drawn-thick {
  border: 48px solid transparent;
  border-image: var(--border-drawn) 40 round;
}

/* Stretch variation (instead of round) */
.border-drawn-stretch {
  border: 32px solid transparent;
  border-image: var(--border-drawn) 30 stretch;
}

/* With color tint (for colored SVGs) */
.border-drawn-primary {
  border: 6px solid var(--color-rust-600);
  border-image: var(--border-drawn) 30 round;
}

/* ===== Hand-Drawn Underline ===== */

.text-underline-drawn {
  display: inline;
  border-bottom: 3px solid transparent;
  border-image: var(--border-underline) 0 0 100% 0 / 0 0 3px 0 / 0 stretch;
  padding-bottom: 2px;
  position: relative;
}

/* Alternative: Using background image for more control */
.text-underline-drawn-bg {
  display: inline;
  background-image: var(--border-underline);
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto 4px;
  padding-bottom: 6px;
  position: relative;
}

/* ===== Footer Styles ===== */

.footer-main {
  position: relative;
  overflow: hidden;
}

/* Add subtle texture/grain to footer background */
.footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 1;
}

/* Footer navigation lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list li {
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  display: inline-block;
  color: rgba(251, 251, 251, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  position: relative;
}

/* Subtle underline effect on hover */
.footer-nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-rust-400);
  transition: width var(--transition-base);
}

.footer-nav-list a:hover {
  color: rgba(251, 251, 251, 1);
  transform: translateX(2px);
}

.footer-nav-list a:hover::after {
  width: 100%;
}

/* Newsletter form styling */
.newsletter-form input[type="email"] {
  font-family: var(--font-sans);
}

.newsletter-form input[type="email"]::placeholder {
  font-size: 0.875rem;
}

.newsletter-form button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
}

/* Social links */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: all var(--transition-base);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .footer-nav-column {
    min-width: 0;
  }

  .footer-nav-list {
    gap: 0.625rem;
  }

  .footer-nav-list a {
    font-size: 0.875rem;
  }
}

/* ===== Mega Menu ===== */

/* Mega Menu Parent Items */
.has-mega-menu {
  position: static;
}

.has-mega-menu-link {
  position: relative;
}

.has-mega-menu-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-base);
}

.mega-menu-open .has-mega-menu-link::after {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown Container */
.mega-menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  background: var(--color-soft-white);
  border-top: 2px solid var(--color-rust-500);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  opacity: 0;
  transform: translateY(0);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
  pointer-events: none;
  box-sizing: border-box;
}

.mega-menu-dropdown * {
  box-sizing: border-box;
}

/* Bridge gap between link and dropdown */
.mega-menu-dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}

/* Ensure all images within mega menu are constrained */
.mega-menu-dropdown img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mega-menu-dropdown.mega-menu-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-open .mega-menu-dropdown {
  pointer-events: auto;
}

/* Mega Menu Width Variations - Full Width */
.mega-menu-dropdown.mega-menu-width-container,
.mega-menu-dropdown.mega-menu-width-full {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

.mega-menu-dropdown.mega-menu-width-container.mega-menu-visible,
.mega-menu-dropdown.mega-menu-width-full.mega-menu-visible {
  transform: translateY(0);
}

.mega-menu-dropdown.mega-menu-width-auto {
  left: 0;
  right: auto;
  width: auto;
  min-width: 400px;
  max-width: 600px;
}

/* Mega Menu Inner Container */
.mega-menu-inner {
  padding: 2.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 100%;
  overflow: hidden;
}

/* Multi-Column Links Layout */
.mega-menu-columns {
  display: grid;
  gap: 2.5rem;
  max-width: 100%;
  flex: 1 1 auto;
}

.mega-menu-column {
  min-width: 0;
  overflow: hidden;
}

.mega-menu-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mega-menu-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mega-menu-column-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-softened-black);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-rust-200);
}

.mega-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-menu-links li {
  margin: 0;
  padding: 0;
}

.mega-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-softened-black);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all var(--transition-base);
}

.mega-menu-links a:hover {
  background: var(--color-rust-50);
  color: var(--color-rust-700);
  transform: translateX(4px);
}

.mega-menu-link-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.mega-menu-link-text {
  flex: 1;
}

/* Featured Products Layout */
.mega-menu-featured {
  max-width: 100%;
  overflow: hidden;
  flex: 1 1 auto;
}

.mega-menu-featured-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-softened-black);
  margin: 0 0 1.5rem 0;
}

.mega-menu-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.mega-menu-product {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-rust-50);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-base);
  max-width: 100%;
  overflow: hidden;
}

.mega-menu-product:hover {
  background: var(--color-soft-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mega-menu-product-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio (3/4 = 75%) */
  overflow: hidden;
  border-radius: 0.375rem;
  background: var(--color-rust-50);
}

.mega-menu-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
  display: block;
}

.mega-menu-product:hover .mega-menu-product-image img {
  transform: scale(1.05);
}

.mega-menu-product-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-softened-black);
  margin: 0;
}

.mega-menu-product-description {
  font-size: 0.875rem;
  color: var(--color-rust-700);
  margin: 0;
  line-height: 1.5;
}

/* Promotional Banner Layout */
.mega-menu-promo {
  position: relative;
  padding: 3rem 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.5rem;
  overflow: hidden;
  flex: 1 1 100%;
  min-width: 100%;
}

.mega-menu-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 42, 40, 0.9), rgba(42, 42, 40, 0.7));
  z-index: 0;
}

.mega-menu-promo-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.mega-menu-promo-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--color-soft-white);
  margin: 0 0 1rem 0;
}

.mega-menu-promo-description {
  font-size: 1rem;
  color: rgba(250, 250, 248, 0.9);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.mega-menu-promo-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-soft-white);
  background: var(--color-terracotta-600);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.mega-menu-promo-button:hover {
  background: var(--color-terracotta-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Custom HTML Layout */
.mega-menu-custom {
  padding: 1rem;
  flex: 1 1 100%;
  min-width: 100%;
}

.mega-menu-custom p:first-child {
  margin-top: 0;
}

.mega-menu-custom p:last-child {
  margin-bottom: 0;
}

/* Responsive Mega Menu - Accordion Style Inside Mobile Drawer */
@media (max-width: 1023px) {
  /* Mobile mega menu items should look like regular mobile nav */
  .mobile-nav-list .has-mega-menu {
    display: block;
  }

  .mobile-nav-list .has-mega-menu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-softened-black);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
  }

  .mobile-nav-list .has-mega-menu-link:hover {
    background-color: var(--color-soft-white);
    color: var(--color-rust-600);
  }

  /* Keep dropdown arrow on mobile */
  .mobile-nav-list .has-mega-menu-link::after {
    margin-left: auto;
    transition: transform var(--transition-base);
  }

  .mobile-nav-list .mega-menu-open .has-mega-menu-link::after {
    transform: rotate(180deg);
  }

  /* Mobile mega menu as accordion (not drawer from bottom) */
  .mega-menu-dropdown {
    position: static;
    display: none;
    width: 100%;
    background: var(--color-rust-50);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: none;
    border: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
  }

  .mega-menu-dropdown.mega-menu-visible {
    display: block;
  }

  /* All width variants behave the same on mobile */
  .mega-menu-dropdown.mega-menu-width-container,
  .mega-menu-dropdown.mega-menu-width-full,
  .mega-menu-dropdown.mega-menu-width-auto {
    position: static;
    width: 100%;
    left: auto;
    right: auto;
    transform: none;
  }

  .mega-menu-dropdown.mega-menu-width-container.mega-menu-visible,
  .mega-menu-dropdown.mega-menu-width-full.mega-menu-visible,
  .mega-menu-dropdown.mega-menu-width-auto.mega-menu-visible {
    transform: none;
  }

  /* Mobile mega menu content */
  .mega-menu-inner {
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
  }

  /* Stack all content vertically */
  .mega-menu-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mega-menu-column-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .mega-menu-links {
    gap: 0.25rem;
  }

  .mega-menu-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Featured products stack */
  .mega-menu-products {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .mega-menu-product {
    padding: 0.75rem;
  }

  /* Promo banners */
  .mega-menu-promo {
    padding: 1.5rem 1rem;
    min-width: auto;
  }

  .mega-menu-promo-title {
    font-size: 1.25rem;
  }

  .mega-menu-promo-description {
    font-size: 0.875rem;
  }

  /* Custom HTML */
  .mega-menu-custom {
    padding: 0.75rem;
    min-width: auto;
  }
}

@media (max-width: 640px) {
  .mega-menu-inner {
    padding: 1.25rem;
  }

  .mega-menu-column-title {
    font-size: 0.875rem;
  }

  .mega-menu-links a {
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
  }
}

/* ===== WooCommerce Header Elements ===== */

/* Cart and Account Icons */
.header-cart,
.header-account {
  position: relative;
  text-decoration: none;
}

/* Cart Count Badge */
.cart-count {
  font-family: var(--font-serif);
  line-height: 1;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

/* Cart Update Animation */
.header-cart.cart-updated {
  animation: cartBounce 0.3s ease-in-out;
}

@keyframes cartBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Account Dropdown */
.account-dropdown {
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base);
}

.account-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transform: translateY(0);
}

/* Bridge gap between button and dropdown */
.account-dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

/* Account Toggle Button */
.account-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Mobile Account Dropdown */
@media (max-width: 1023px) {
  .account-dropdown {
    position: fixed;
    right: 1rem;
    top: 4rem;
    max-width: calc(100vw - 2rem);
    z-index: 1000;
  }

  .account-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ===== WooCommerce Product Pages ===== */

.woocommerce-ordering {
  margin-top: 8px;
  select {
    padding: 4px;
    font-size: 12px;
  }
}

/* Product Grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Card */
.woocommerce ul.products li.product {
  background: var(--color-soft-white);
  border: 1px solid var(--color-rust-200);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--color-rust-400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Product Category */
.woocommerce ul.products li.product .product-category a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

.woocommerce ul.products li.product .product-category a:hover {
  color: var(--color-rust-800);
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-softened-black);
  line-height: 1.4;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a {
  text-decoration: none;
  color: inherit;
}

/* Product Price */
.woocommerce ul.products li.product .price {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-rust-700);
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-softened-black);
  color: var(--color-soft-white);
  border: none;
  padding: 12px 16px;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
  border-radius: 0;
  margin: 0;
}

/* Add to cart button hover effect */
.woocommerce ul.products li.product .button {
  position: relative;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;

  &:hover {
    color: #ff6550 !important;
  }
}

.woocommerce ul.products li.product .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.woocommerce ul.products li.product .button:hover::before {
  left: 100%;
}

/* Single Product */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .woocommerce div.product {
    grid-template-columns: 1fr 1fr;
  }
}

/* Product Summary */
.woocommerce div.product .summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.woocommerce div.product .product_title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-softened-black);
}

.woocommerce div.product p.price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-rust-700);
}

/* Product Attributes / Additional Information Table */
.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.woocommerce-product-attributes tr {
  border-bottom: 1px solid var(--color-rust-100);
}

.woocommerce-product-attributes tr:last-child {
  border-bottom: none;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: 1rem 0;
  text-align: left;
  vertical-align: top;
}

.woocommerce-product-attributes th {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-softened-black);
  width: 40%;
  padding-right: 1.5rem;
}

.woocommerce-product-attributes td {
  font-size: 0.9375rem;
  color: var(--color-softened-black);
  line-height: 1.6;
}

.woocommerce-product-attributes td p {
  margin: 0;
}

.woocommerce-product-attributes .attribute-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
}

.woocommerce-product-attributes .attribute-list li {
  padding: 0.25rem 0;
  line-height: 1.6;
}

/* Product Description & Reviews Sections */
.product-description-section {
  border-top: 1px solid var(--color-rust-100);
}

.product-description .prose h1,
.product-description .prose h2,
.product-description .prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-description .prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.product-description .prose ul,
.product-description .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.product-description .prose li {
  margin-bottom: 0.5rem;
}

/* Variation Buttons */
.variations-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.variation-attribute {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.variation-label {
  font-family: var(--font-serif);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-softened-black);
  margin: 0;
}

.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variation-button {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  color: var(--color-softened-black);
  background: var(--color-soft-white);
  border: 1px solid var(--color-rust-300);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-transform: uppercase;
}

.variation-button:hover:not(:disabled) {
  border-color: var(--color-rust-600);
  background: var(--color-rust-50);
  color: var(--color-softened-black);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.variation-button.selected {
  border-color: var(--color-rust-600);
  background: var(--color-rust-600);
  color: var(--color-soft-white);
  font-weight: 600;
}

.variation-button.selected:hover {
  background: var(--color-rust-700);
  border-color: var(--color-rust-700);
}

.variation-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--color-soft-white);
  border-color: var(--color-rust-200);
  color: var(--color-softened-black);
}

.variation-button.out-of-stock:disabled {
  position: relative;
}

.variation-button.out-of-stock:disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--color-softened-black);
  opacity: 0.3;
  transform: translateY(-50%);
}

/* Reset variations link */
.reset_variations {
  font-size: 0.875rem;
  color: var(--color-rust-600);
  text-decoration: underline;
  transition: color var(--transition-base);
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
}

.reset_variations:hover {
  color: var(--color-rust-800);
  text-decoration: none;
}

/* Cart Table */
.woocommerce table.cart {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 2rem;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-rust-200);
}

.woocommerce table.cart th {
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: left;
  background: var(--color-rust-50);
}

/* Cart Totals */
.woocommerce .cart-collaterals .cart_totals {
  background: var(--color-rust-50);
  padding: 2rem;
  border-radius: 0.5rem;
}

.woocommerce .cart-collaterals .cart_totals h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Checkout Form */
.woocommerce form.checkout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .woocommerce form.checkout {
    grid-template-columns: 1fr 400px;
  }
}

.woocommerce form .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
  font-family: var(--font-serif);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* WooCommerce Messages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.woocommerce-message {
  background: var(--color-rust-50);
  color: var(--color-rust-800);
  border-left: 4px solid var(--color-rust-600);
}

.woocommerce-error {
  background: var(--color-terracotta-50);
  color: var(--color-terracotta-900);
  border-left: 4px solid var(--color-terracotta-600);
}

.woocommerce-info {
  background: var(--color-rust-100);
  color: var(--color-softened-black);
  border-left: 4px solid var(--color-rust-500);
}

/* ===== Accessibility ===== */

:focus-visible {
  outline: 2px solid var(--color-rust-600);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
