/* MAISON - Luxury Fashion Editorial Design System */

:root {
  --bg-color: #f9f9f9;
  --text-color: #1a1c1c;
  --primary-color: #000000;
  --secondary-color: #5d5f5f;
  --border-color: #ececec;
  --accent-color: #ba1a1a;
  --surface-lowest: #ffffff;
  --surface-container: #eeeeee;
  --surface-container-low: #f3f3f4;
  --surface-container-high: #e8e8e8;
  --surface-container-highest: #e2e2e2;
  --text-muted: #9a9a9a;
  --text-secondary: #666666;
  
  --font-serif: 'EB Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  --gutter: 32px;
  --margin-desktop: 80px;
  --margin-mobile: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.text-display-lg {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.text-display-md {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.text-headline-lg {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 400;
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

.text-body-md {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
}

.text-label-caps {
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
}

.text-caption {
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 400;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* Header & Navigation */
header {
  position: relative;
  z-index: 50;
  background-color: rgba(249, 249, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem var(--margin-desktop);
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-brand {
  flex: 1;
  text-align: center;
}

.nav-brand h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: -0.05em;
  font-weight: 400;
  line-height: 1;
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-icons span {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav-icons span:hover {
  opacity: 0.7;
}

.cart-icon-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--primary-color);
  color: var(--surface-lowest);
  font-size: 0.625rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
}

/* Secondary Editorial Nav */
.secondary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.secondary-nav a {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.secondary-nav a:hover {
  color: var(--primary-color);
}

.secondary-nav a.sale {
  color: var(--accent-color);
}

/* Hero Editorial Carousel */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 920px;
  overflow: hidden;
  background-color: var(--surface-container-low);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(251, 250, 248, 0.98) 35%, rgba(251, 250, 248, 0.6) 65%, rgba(251, 250, 248, 0) 100%) !important;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Sit overlay elements within the soft bottom cream zone */
  text-align: center;
  padding: 0 1.5rem 5.5rem 1.5rem; /* Padding at bottom for pagination dots */
  color: var(--primary-color) !important;
}

.hero-content span {
  margin-bottom: 0.75rem;
  color: var(--text-secondary) !important;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

.hero-content h2 {
  margin-bottom: 1rem;
  max-width: 48rem;
  color: var(--primary-color) !important;
  font-size: 2.25rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin-bottom: 1.75rem !important;
  color: var(--text-secondary) !important;
}

.hero-btn {
  background-color: transparent !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.875rem 2.25rem;
  box-shadow: none;
  transition: all 0.5s ease;
}

.hero-btn:hover {
  background-color: var(--primary-color) !important;
  color: var(--surface-lowest) !important;
}

.hero-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 20;
}

.hero-control-btn {
  width: 3rem;
  height: 2px;
  background-color: rgba(26, 28, 28, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-control-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--primary-color, #1a1c1c);
  width: 100%;
  transform: translateX(-100%);
  transition: none;
}

/* Brand Ethos */
.ethos-section {
  padding: var(--section-gap, 10rem) var(--margin-desktop);
  max-width: 1440px;
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.ethos-text {
  grid-column: span 5;
}

.ethos-text h3 {
  margin-bottom: 2rem;
}

.ethos-text p {
  margin-bottom: 3rem;
}

.line-draw-container {
  display: inline-block;
}

.line-draw-container a {
  padding-bottom: 4px;
}

.line-draw {
  height: 1px;
  background-color: var(--primary-color);
  width: 0;
  transition: width 0.6s ease;
}

.line-draw-container:hover .line-draw {
  width: 100%;
}

.ethos-image {
  grid-column: 7 / span 6;
}

.aspect-4-5 {
  aspect-ratio: 4 / 5;
  background-color: var(--surface-container);
  overflow: hidden;
}

.aspect-4-5 img,
.aspect-3-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category Grid & Curated Selections */
.selections-section {
  padding-bottom: var(--section-gap, 10rem);
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--margin-desktop);
  padding-right: var(--margin-desktop);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.category-item {
  display: block;
  text-decoration: none;
}

.zoom-container {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--surface-container);
  margin-bottom: 1.5rem;
}

.zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-item:hover .zoom-container img {
  transform: scale(1.05);
}

.category-title {
  text-align: left;
  margin-top: 1rem;
}

.category-title p:first-child {
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.category-title p:last-child {
  color: var(--text-muted);
}


/* Newsletter */
.newsletter-section {
  background-color: var(--surface-container-low);
  padding: var(--section-gap, 10rem) var(--margin-desktop);
  border-top: 1px solid var(--border-color);
}

.newsletter-container {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-container h3 {
  margin-bottom: 3rem;
}

.newsletter-form {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.newsletter-input-wrapper {
  flex-grow: 1;
  position: relative;
}

.editorial-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  background: transparent;
  padding: 1rem 0;
  font-family: inherit;
  font-size: 0.9375rem;
  border-radius: 0;
  transition: border-bottom-color 0.3s ease;
}

.editorial-input:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
}

.newsletter-btn {
  background-color: var(--primary-color);
  color: var(--surface-lowest);
  padding: 1rem 3rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background-color: #111;
}

/* Laha.ae Footer Styles */
.laha-footer {
  background-color: #000000;
  color: #ffffff;
  border-top: 1px solid #1a1a1a;
  font-family: 'Inter', sans-serif;
}

.laha-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter, 2.5rem);
  padding: 5rem var(--margin-desktop, 5rem) 4rem var(--margin-desktop, 5rem);
  max-width: 1440px;
  margin: 0 auto;
}

.laha-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.laha-footer .accordion-item {
  border-bottom: none;
}

.laha-footer .accordion-content {
  max-height: none;
  overflow: visible;
}

/* Accordion headers */
.laha-footer .accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* Pointer-events none on desktop so it doesn't trigger clicks */
}

.laha-footer .accordion-header .text-label-caps {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.laha-footer .accordion-header .chevron-icon {
  display: none; /* Hidden on desktop */
  color: #ffffff;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.laha-footer .accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.laha-footer .accordion-content a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.laha-footer .accordion-content a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Newsletter styling */
.laha-footer .newsletter-col {
  grid-column: span 1;
}

.laha-footer .newsletter-desc {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.laha-footer .newsletter-input-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #808080;
  padding-bottom: 0.5rem;
  transition: border-bottom-color 0.2s ease;
}

.laha-footer .newsletter-input-wrapper:focus-within {
  border-bottom-color: #ffffff;
}

.laha-footer .newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0 0.5rem 0 0;
}

.laha-footer .newsletter-input::placeholder {
  color: #606060;
}

.laha-footer .newsletter-submit-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.laha-footer .newsletter-submit-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.laha-footer .newsletter-message {
  margin-top: 10px;
  font-size: 0.85rem;
}

/* Footer Bottom styling */
.laha-footer .footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 2.5rem var(--margin-desktop, 5rem);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.laha-footer .copyright-text {
  font-size: 0.8rem;
  color: #b0b0b0;
  margin-right: auto;
}

/* Currency switcher dropdown inside footer */
.laha-footer .footer-currency-select-container {
  position: relative;
  font-family: inherit;
  margin-right: 1.5rem;
}

.laha-footer .footer-currency-trigger {
  background: #111111;
  border: 1px solid #222222;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.laha-footer .footer-currency-trigger:hover {
  background: #1a1a1a;
  border-color: #444444;
}

.laha-footer .footer-currency-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 4px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
  min-width: 150px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1100;
}

.laha-footer .footer-currency-menu.active {
  display: flex;
}

.laha-footer .currency-option {
  background: transparent;
  border: none;
  color: #b0b0b0;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.laha-footer .currency-option:hover {
  background: #222222;
  color: #ffffff;
}

/* Payment Icons styling */
.laha-footer .footer-payment-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.laha-footer .payment-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.laha-footer .payment-icon-wrapper:hover {
  opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .laha-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 1.5rem;
  }

  .laha-footer .footer-col {
    border-bottom: 1px solid #1a1a1a;
    gap: 0;
  }

  .laha-footer .footer-col:last-child {
    border-bottom: none;
  }

  .laha-footer .accordion-header {
    pointer-events: auto; /* Active click handlers on mobile */
    padding: 1.25rem 0;
    cursor: pointer;
    user-select: none;
  }

  .laha-footer .accordion-header .chevron-icon {
    display: block; /* Show chevron on mobile */
  }

  .laha-footer .accordion-item.active .chevron-icon {
    transform: rotate(180deg);
  }

  .laha-footer .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  }

  .laha-footer .accordion-item.active .accordion-content {
    max-height: 1000px; /* high max-height for open items */
    transition: max-height 0.4s cubic-bezier(0.9, 0, 0.1, 1);
    padding-bottom: 1.5rem;
  }

  .laha-footer .newsletter-desc {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .laha-footer .footer-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 1rem;
    column-gap: 1rem;
    padding: 2rem 1.5rem 3rem 1.5rem;
    align-items: center;
  }

  .laha-footer .copyright-text {
    grid-column: 1 / span 2;
    grid-row: 1;
    margin-right: 0;
  }

  .laha-footer .footer-currency-select-container {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    margin-right: 0;
  }

  .laha-footer .footer-currency-trigger {
    width: auto;
    justify-content: flex-start;
  }

  .laha-footer .footer-currency-menu {
    width: 200px;
    left: 0;
    right: auto;
  }

  .laha-footer .footer-payment-icons {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Drawers & Overlays */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 450px;
  background-color: var(--surface-lowest);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.drawer-body::-webkit-scrollbar {
  display: none;
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
}

.cart-item-img {
  width: 6rem;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.cart-item-header h4 {
  font-weight: 600;
  font-size: 0.9375rem;
}

.cart-item-options {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
}

.quantity-selector button {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.quantity-selector button:hover {
  background-color: var(--surface-container-low);
}

.quantity-selector span {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.cart-item-remove {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: var(--primary-color);
}

.drawer-footer {
  padding: 2rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.checkout-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--surface-lowest);
  padding: 1.25rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: #111;
}

.continue-btn {
  width: 100%;
  border: 1px solid var(--primary-color);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.continue-btn:hover {
  background-color: var(--primary-color);
  color: var(--surface-lowest);
}

/* Fullscreen Search Overlay */
/* --- Laha Style Search Overlay Modal --- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4rem;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  background-color: var(--surface-container, #ffffff);
  width: 100%;
  max-width: 900px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-modal-content {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #fff;
}

.laha-search-input {
  flex-grow: 1;
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  padding: 0.5rem;
  outline: none;
  color: var(--primary-color);
}

.search-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-modal-actions button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.search-modal-actions button:hover {
  color: var(--primary-color);
}

.search-modal-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 2rem 1.5rem;
  background-color: #fff;
}

.search-left-col {
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-right-col {
  padding-left: 2rem;
}

.search-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.search-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-link-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.search-link-list a:hover {
  color: var(--primary-color);
}

.search-products-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.search-product-item:hover .search-product-title {
  color: var(--accent-color);
}

.search-product-img {
  width: 60px;
  height: 80px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-container-low);
  border-radius: 2px;
}

.search-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-product-title {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.search-product-price {
  font-size: 0.8rem;
}

.search-modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  text-align: left;
  background-color: #fff;
}

.search-modal-footer a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.search-modal-footer a:hover {
  text-decoration: underline;
}

/* Product Detail Page Specifics */
.product-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem var(--margin-desktop);
}

.product-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.product-gallery {
  grid-column: span 6;
  display: flex;
  gap: 1.5rem;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 4rem;
  flex-shrink: 0;
}

.thumb-item {
  aspect-ratio: 3 / 4;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 2px;
  transition: border-color 0.3s ease;
}

.thumb-item.active {
  border-color: var(--primary-color);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main-img {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.gallery-main-img img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.product-panel {
  grid-column: 7 / span 6;
}

.product-panel-sticky {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-price {
  font-size: 2rem;
  margin-top: 0.5rem;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-swatches {
  display: flex;
  gap: 0.75rem;
}

.swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 2px;
  transition: all 0.3s ease;
}

.swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.swatch.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--surface-lowest);
}

.size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-guide-btn {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.size-btn {
  border: 1px solid var(--border-color);
  min-width: 64px;
  min-height: 40px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.size-btn:hover {
  border-color: var(--primary-color);
}

.size-btn.active {
  background-color: var(--primary-color);
  color: var(--surface-lowest);
  border-color: var(--primary-color);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.primary-cta-btn {
  width: 100%;
  padding: 1.25rem 0;
  background-color: var(--primary-color);
  color: var(--surface-lowest);
  transition: background-color 0.3s ease;
}

.primary-cta-btn:hover {
  background-color: #111;
}

.secondary-cta-btn {
  width: 100%;
  padding: 1.25rem 0;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.secondary-cta-btn:hover {
  background-color: var(--surface-container-low);
}

/* Accordion Details */
.accordion-wrapper {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-trigger span:first-child {
  font-weight: 600;
}

.accordion-trigger .chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-inner-content {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-inner-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Related Items Section */
.related-section {
  margin-top: var(--section-gap, 10rem);
}

.related-grid {
  display: flex;
  overflow-x: auto;
  gap: var(--gutter);
  padding-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.related-grid::-webkit-scrollbar {
  display: none;
}

.related-grid .product-card {
  flex: 0 0 calc(25% - (var(--gutter) * 3 / 4));
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .related-grid .product-card {
    flex: 0 0 calc(33.333% - (var(--gutter) * 2 / 3));
  }
}

@media (max-width: 768px) {
  .related-grid .product-card {
    flex: 0 0 calc(50% - (var(--gutter) / 2));
  }
}

@media (max-width: 480px) {
  .related-grid .product-card {
    flex: 0 0 80%;
  }
}

.product-card {
  cursor: pointer;
  position: relative;
}

.product-card {
  min-width: 0;
}

.product-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.42; /* Taller, elegant luxury aspect-ratio that reveals the full abaya drape and shoes */
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.product-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-card-img-wrapper img {
  transform: scale(1.03);
}

.product-quick-add {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--primary-color);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Collection Grid Page Specifics */
.collection-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 4%;
}

.collection-header-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 1.5rem;
}

.collection-header-text h1 {
  margin-bottom: 0.5rem;
}

.sort-dropdown-container {
  position: relative;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  min-width: 10rem;
  justify-content: space-between;
}

.sort-options {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: var(--surface-lowest);
  border: 1px solid var(--border-color);
  width: 100%;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sort-dropdown-container:hover .sort-options {
  display: block;
}

.sort-options ul {
  list-style: none;
  padding: 0.5rem 0;
}

.sort-options li {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.sort-options li:hover {
  background-color: var(--surface-container-low);
}

.collection-layout {
  display: flex;
  gap: 3rem;
}

.collection-sidebar {
  width: 16rem;
  flex-shrink: 0;
}

.collection-sidebar-sticky {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filter-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group[open] summary .expand-icon {
  transform: rotate(180deg);
}

.filter-options {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.color-filter-swatches {
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-filter-btn {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.color-filter-btn.active {
  border-color: var(--primary-color);
}

.size-filter-grid {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.size-filter-btn {
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
}

.size-filter-btn:hover {
  border-color: var(--primary-color);
}

.collection-grid-container {
  flex-grow: 1;
  min-width: 0;
}

.collection-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  row-gap: 4rem;
}

/* Double hover image reveal */
.product-card-img-wrapper .secondary-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.product-card:hover .product-card-img-wrapper .secondary-img {
  opacity: 1;
}

/* Pagination */
.pagination {
  margin-top: var(--section-gap, 10rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.pagination-numbers {
  display: flex;
  gap: 1.5rem;
}

.pagination-numbers span {
  cursor: pointer;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.pagination-numbers span.active {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.pagination-btn.active {
  color: var(--primary-color);
}

/* Hamburger overlay for mobile view */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: var(--bg-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-overlay a {
  font-family: var(--font-serif);
  font-size: 2rem;
}

/* Desktop Navigation Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  margin: -0.5rem 0;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  z-index: 100;
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  padding: 0.75rem 1.5rem;
  display: block;
  text-align: left;
  white-space: nowrap;
  font-size: 0.95rem;
  color: #767676;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: #111;
  background-color: #f2f2f2;
}

/* Mobile Nav Dropdown Accordion */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-nav-header a {
  font-family: var(--font-serif);
  font-size: 2rem;
}

.mobile-nav-sub {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.mobile-nav-sub.open {
  display: flex;
}

.mobile-nav-sub a {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-muted);
}

/* Responsive Breakpoints */

@media (max-width: 1024px) {
  :root {
    --margin-desktop: 40px;
  }
  
  .text-display-lg { font-size: 3rem; }
  .text-display-md { font-size: 2.25rem; }
  
  /* Category Grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-item:nth-child(even),
  .category-item:nth-child(odd) {
    margin-top: 0;
  }
  
  /* Product Detail */
  .product-gallery {
    grid-column: span 12;
  }
  
  .product-panel {
    grid-column: span 12;
    margin-top: 2rem;
  }
  
  .product-panel-sticky {
    position: static;
  }
  
  /* Collection */
  .collection-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  

}

@media (max-width: 768px) {
  :root {
    --margin-desktop: 24px; /* acts as mobile margin */
  }
  
  .nav-container {
    padding: 1rem var(--margin-mobile);
  }
  
  .nav-links {
    display: none; /* Collapsed on mobile */
  }
  
  .hamburger-menu {
    display: block;
    flex: 1;
  }
  
  .nav-brand {
    flex: 2;
  }
  
  .nav-icons {
    flex: 1;
  }
  
  .secondary-nav {
    display: none;
  }
  
  /* Hero Carousel */
  .hero-section {
    height: 70vh;
  }
  
  .text-display-lg { font-size: 2.25rem; }
  .text-display-md { font-size: 1.875rem; }
  .text-headline-lg { font-size: 1.5rem; }
  
  /* Ethos Section */
  .ethos-text {
    grid-column: span 12;
    margin-bottom: 2rem;
  }
  
  .ethos-image {
    grid-column: span 12;
  }
  
  /* Newsletter Form */
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-btn {
    width: 100%;
  }
  
  /* Footer Grid styled under .laha-footer */
  
  /* Search Overlay suggestions */
  .search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .trending-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  /* Product Detail gallery */
  .product-gallery {
    flex-direction: column-reverse;
  }
  
  .gallery-thumbnails {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .gallery-thumbnails::-webkit-scrollbar {
    display: none;
  }
  
  .thumb-item {
    width: 4rem;
  }
  
  /* Collection */
  .collection-layout {
    flex-direction: column;
  }
  
  .collection-sidebar {
    width: 100%;
  }
  
  .collection-sidebar-sticky {
    position: static;
  }
  
  .collection-header-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sort-dropdown-container {
    width: 100%;
  }
  
  .sort-btn {
    width: 100%;
  }
}

/* Checkout Page Specifics */
.checkout-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--margin-desktop);
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4rem;
}

.checkout-forms {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.checkout-summary {
  grid-column: span 5;
}

@media (max-width: 992px) {
  .checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

.checkout-summary-sticky {
  position: sticky;
  top: 8rem;
  background-color: var(--surface-container-low);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid var(--border-color);
}

.form-section-title {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.editorial-select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  background: transparent;
  padding: 1rem 0;
  font-family: inherit;
  font-size: 0.9375rem;
  border-radius: 0;
  cursor: pointer;
}

.editorial-select:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
}

.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shipping-method-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.shipping-method-option:hover,
.shipping-method-option.active {
  border-color: var(--primary-color);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method-option {
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.payment-method-option.active {
  border-color: var(--primary-color);
}

.payment-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.25rem;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-item-row.total {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-family: var(--font-serif);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.checkout-promo-form {
  display: flex;
  gap: 1rem;
}

.checkout-promo-form input {
  flex-grow: 1;
}

.promo-apply-btn {
  border: 1px solid var(--primary-color);
  padding: 0 1.5rem;
  transition: all 0.3s ease;
}

.promo-apply-btn:hover {
  background-color: var(--primary-color);
  color: var(--surface-lowest);
}

@media (max-width: 1024px) {
  .checkout-forms {
    grid-column: span 12;
  }
  
  .checkout-summary {
    grid-column: span 12;
    margin-top: 2rem;
  }
  
  .checkout-summary-sticky {
    position: static;
    padding: 1.5rem;
  }
}

/* Collection Toolbar & Grid Selector Layouts */
.collection-header-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-bottom: 2.5rem;
  width: 100%;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.toolbar-toggle-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.toolbar-toggle-filter-btn span {
  font-size: 1.25rem;
}

.grid-layout-toggles {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.grid-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--surface-container-high, #f4f4f4);
  color: var(--primary-color, #1a1c1c);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans), sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -1.5px;
  transition: all 0.2s ease-in-out;
}

.grid-toggle-btn:hover,
.grid-toggle-btn.active {
  background-color: var(--primary-color, #1a1c1c);
  color: var(--surface-lowest, #ffffff);
}


/* Dynamic Grid Column Definitions */
.collection-product-grid.grid-1 {
  grid-template-columns: 1fr !important;
}

.collection-product-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.collection-product-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.collection-product-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.collection-product-grid.grid-5 {
  grid-template-columns: repeat(5, 1fr) !important;
}


/* List view styling */
.collection-product-grid.grid-1 .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  cursor: pointer;
}

.collection-product-grid.grid-1 .product-card .product-card-img-wrapper {
  width: 15rem;
  aspect-ratio: 3 / 4;
  margin-bottom: 0;
  flex-shrink: 0;
}

.collection-product-grid.grid-1 .product-card .product-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  align-items: flex-start;
}

/* Sidebar Toggle State */
.collection-layout.sidebar-hidden .collection-sidebar {
  display: none;
}

/* Responsive adjustment for toolbar and grid selection */
@media (max-width: 1200px) {
  .collection-product-grid.grid-5 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .collection-product-grid.grid-5,
  .collection-product-grid.grid-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .grid-layout-toggles {
    display: none; /* Hide multi-column selectors on mobile */
  }
  .collection-product-grid.grid-5,
  .collection-product-grid.grid-4,
  .collection-product-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Premium Full-bleed Editorial Hero Section for Desktop size */
@media (min-width: 769px) {
  .hero-carousel-item {
    display: block !important;
  }
  
  .hero-carousel-bg {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: right 35% center !important; /* Positions the model nicely on the right */
  }
  
  .hero-overlay {
    display: block !important;
    background: linear-gradient(to right, rgba(251, 250, 248, 0.96) 20%, rgba(251, 250, 248, 0.6) 45%, rgba(251, 250, 248, 0) 80%) !important;
  }
  
  .hero-content {
    position: absolute !important;
    inset: 0 !important;
    width: 45% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 0 0 10% !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    text-align: left !important;
    z-index: 5;
  }
  
  .hero-content span {
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 0.25em !important;
  }
  
  .hero-content h2 {
    color: var(--primary-color) !important;
    margin-bottom: 2rem !important;
    font-size: 4rem !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }
  
  .hero-btn {
    border: 1px solid var(--primary-color) !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
  }
  
  .hero-btn:hover {
    background-color: var(--primary-color) !important;
    color: var(--surface-lowest) !important;
  }
  
  .hero-controls {
    left: 10% !important; /* Align under the left editorial text pane */
    transform: none !important;
  }
  
  .hero-control-btn {
    background-color: rgba(26, 28, 28, 0.15) !important;
  }
  
  .hero-control-progress {
    background-color: var(--primary-color, #1a1c1c) !important;
  }
}

/* Wishlist Page Styling */
.wishlist-remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--surface-lowest);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.wishlist-remove-btn:hover {
  background-color: var(--primary-color);
  color: var(--surface-lowest);
}

.wishlist-add-to-cart-btn {
  width: 100%;
  padding: 0.875rem 0;
  border: 1px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  border-radius: 0;
}

.wishlist-add-to-cart-btn:hover {
  background-color: var(--primary-color);
  color: var(--surface-lowest);
}

/* Profile / Account Page Styling */
.profile-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
}

.profile-sidebar-item {
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition: all 0.3s ease;
}

.profile-sidebar-item.active,
.profile-sidebar-item:hover {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 1px solid var(--primary-color);
}

.profile-content-pane {
  display: none;
}

.profile-content-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.dashboard-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.summary-card {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 6px;
  background-color: var(--surface-container-lowest);
}

.summary-card h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.orders-table th,
.orders-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.orders-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background-color: var(--surface-container-low);
}

.orders-table td {
  font-size: 0.875rem;
}

.orders-table tr:hover td {
  background-color: var(--surface-container-lowest);
}

.badge-status {
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-status.paid {
  background-color: #e6f4ea;
  color: #137333;
}

.badge-status.fulfilled {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.badge-status.pending {
  background-color: #fef7e0;
  color: #b06000;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.profile-form-grid .form-group.full-width {
  grid-column: span 2;
}

.addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.address-card {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: var(--surface-container-lowest);
}

.address-card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.address-card-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.address-card-actions button:hover {
  color: var(--primary-color);
}

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

@media (max-width: 768px) {
  .profile-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-sidebar {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1.5rem;
  }
  
  .profile-sidebar-item {
    padding: 0.5rem 0;
  }
  
  .dashboard-summary-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-form-grid .form-group.full-width {
    grid-column: span 1;
  }
  
  .addresses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .orders-table {
    display: block;
    overflow-x: auto;
  }
}

/* Card Wishlist Icon Button Styling */
.product-wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--primary-color, #1a1c1c);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card:hover .product-wishlist-btn {
  opacity: 1;
}

.product-wishlist-btn:hover {
  transform: scale(1.08);
}

.product-wishlist-btn.active {
  opacity: 1 !important;
  color: #d93838 !important; /* Muted boutique red */
}

.product-wishlist-btn.active span {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 1024px) {
  .product-wishlist-btn {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
  }
}

/* Lightbox */
.image-zoom-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
  z-index: 10;
}

.image-zoom-btn:hover {
  background: #fff;
}

.image-zoom-btn span {
  font-size: 1.25rem;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

/* Floating Currency Switcher */
.currency-switcher-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1050;
  font-family: 'Inter', sans-serif;
}

.currency-switcher-toggle {
  background: #111111;
  border: 1px solid #222222;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.2s ease;
}

.currency-switcher-toggle:hover {
  border-color: #444444;
}

.currency-switcher-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 220px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.currency-switcher-menu.active {
  display: flex;
}

.currency-option {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.currency-option:hover {
  background-color: #f5f5f5;
}

/* Related Products Grid / Carousel */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .scroll-snap-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 1rem;
    padding-bottom: 1rem;
    
    /* Stretch to screen edges assuming a parent padding of ~5% or 2rem */
    margin-left: -5vw;
    margin-right: -5vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  
  .scroll-snap-container::-webkit-scrollbar {
    display: none;
  }
  
  .scroll-snap-container > * {
    flex: 0 0 calc(70% - 1rem); /* Show 70% of one card to peek the next */
    scroll-snap-align: start;
    min-width: 200px;
  }
}
