/* ============================================
   FASHION STORE — Reusable Components
   ============================================ */

/* ── Announcement Bar (Removed per user request) ── */
.announcement-bar {
  display: none !important;
}

/* ── Top Toolbar Location & Currency Selector ── */
.currency-selector-wrapper {
  position: relative;
  flex-shrink: 0;
}

.currency-selector-btn {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  color: var(--color-text-primary);
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--weight-medium);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.currency-selector-btn:hover {
  background: var(--color-bg-surface);
  border-color: var(--color-border-dark);
}

.currency-selector-light .currency-selector-btn,
.checkout-header .currency-selector-btn,
.admin-header .currency-selector-btn {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-medium);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs);
}

.currency-selector-light .currency-selector-btn:hover,
.checkout-header .currency-selector-btn:hover,
.admin-header .currency-selector-btn:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-dark);
}

.currency-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 230px;
  z-index: var(--z-dropdown);
  padding: var(--space-2);
  color: var(--color-text-primary);
  text-transform: none;
  letter-spacing: normal;
  animation: dropdownFade 0.18s ease-out;
}

.currency-dropdown-panel.open {
  display: block;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.currency-dropdown-title {
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  padding: 6px 8px 4px;
}

.currency-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  transition: background-color var(--duration-fast);
  text-align: left;
}

.currency-dropdown-item:hover {
  background-color: var(--color-bg-secondary);
}

.currency-dropdown-item.active {
  background-color: rgba(180, 83, 9, 0.08);
  color: var(--color-gold);
  font-weight: var(--weight-bold);
}


/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  z-index: var(--z-sticky);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo span {
  font-weight: var(--weight-regular);
  font-style: italic;
}

/* ── Search Bar (Minimized & Sleek) ── */
.search-bar {
  flex: 0 1 180px;
  max-width: 200px;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.search-bar:focus-within {
  flex: 0 1 250px;
  max-width: 250px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-bar input {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 28px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  background-color: var(--color-bg-secondary);
  font-size: 12px;
  color: var(--color-text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
  font-size: 12px;
}

.search-bar input:focus {
  border-color: var(--color-text-primary);
  background-color: var(--color-bg-surface);
  box-shadow: 0 0 0 3px rgba(31, 27, 24, 0.08);
}

.search-bar .search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-shortcut {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background-color: rgba(31, 27, 24, 0.06);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  line-height: 1.2;
}

/* Instant Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 380px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  display: none;
  padding: var(--space-2);
}

.search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.search-result-item:hover {
  background-color: var(--color-bg-secondary);
}

.search-result-thumb {
  width: 40px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--color-bg-secondary);
  flex-shrink: 0;
}

.search-result-details {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-result-price {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.search-no-results {
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Mobile Expandable Search Bar ── */
.mobile-search-bar {
  display: none;
  width: 100%;
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-2) var(--space-4);
  position: relative;
  z-index: var(--z-dropdown);
  box-shadow: 0 4px 12px rgba(31, 27, 24, 0.06);
  animation: mobileSearchSlide 0.2s ease-out;
}

.mobile-search-bar.open {
  display: block;
}

@keyframes mobileSearchSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}

.mobile-search-inner .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.mobile-search-inner input {
  flex: 1;
  height: 38px;
  padding: 0 36px 0 36px;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  background-color: var(--color-bg-secondary);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-search-inner input:focus {
  border-color: var(--color-text-primary);
  background-color: var(--color-bg-surface);
  box-shadow: 0 0 0 3px rgba(31, 27, 24, 0.08);
}

.mobile-search-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--duration-fast);
}

.mobile-search-close:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.mobile-search-close svg {
  width: 18px;
  height: 18px;
}

.mobile-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 340px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  display: none;
  padding: var(--space-2);
}

.mobile-search-dropdown.open {
  display: block;
}

/* ── Floating Cart Button (Bottom-Right) ── */
.floating-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #18181b;
  color: #ffffff;
  border: 2px solid var(--color-gold);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), opacity var(--duration-fast);
  outline: none;
}

.floating-cart-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.45), 0 0 16px rgba(217, 119, 6, 0.35);
  background: #09090b;
}

.floating-cart-btn:active {
  transform: translateY(0) scale(0.96);
}

.floating-cart-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  color: #ffffff;
}

.floating-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background-color: var(--color-gold);
  color: #ffffff;
  font-size: 11px;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform var(--duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart-badge[data-count="0"],
.floating-cart-badge:empty {
  display: none;
}

/* Hide floating cart when cart drawer is active to prevent overlap */
body.cart-open .floating-cart-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

@media (max-width: 767px) {
  .floating-cart-btn {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .floating-cart-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ── Header Actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
}

.header-action-btn:hover {
  background-color: var(--color-bg-secondary);
  transform: translateY(-1px);
}

.header-action-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}

.header-action-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
  font-size: 10px;
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-action-btn .badge.bump {
  transform: scale(1.3);
}

.header-action-btn .badge:empty,
.header-action-btn .badge[data-count="0"] {
  display: none;
}

/* ── Main Navigation ── */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    position: relative;
  }
}

.nav-item-wrapper {
  position: relative;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
}

/* Department Mega-Menu Preview Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 480px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  pointer-events: none;
  z-index: var(--z-dropdown);
}

.nav-item-wrapper:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.nav-dropdown-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.nav-dropdown-card:hover {
  background-color: var(--color-bg-secondary);
}

.nav-dropdown-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--color-bg-secondary);
}

.nav-dropdown-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.nav-dropdown-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Mobile Menu Toggle ── */
.mobile-menu-btn {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-overlay);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  max-width: 88vw;
  background-color: var(--color-bg-surface);
  z-index: var(--z-modal);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
}

.mobile-nav-close:hover {
  background-color: var(--color-bg-secondary);
}

.mobile-nav-close svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-search {
  margin-bottom: var(--space-6);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.mobile-nav-links a:hover {
  background-color: var(--color-bg-secondary);
}

.mobile-nav-links a span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-nav-footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 44px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-cta-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background-color: var(--color-cta-primary-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

/* ── Product Card ── */
.product-card {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  border: 1px solid transparent;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-light);
}

.product-card-image {
  position: relative;
  aspect-ratio: var(--card-aspect-ratio, 3 / 4);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-secondary);
  width: 100%;
  max-width: 100%;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
}

.product-card-image .product-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

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

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

/* Product Badges */
.product-badge {
  position: absolute;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: var(--z-base);
  line-height: 1.3;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-badge--commercial {
  top: var(--space-2);
  left: var(--space-2);
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.product-badge--fabric {
  top: var(--space-2);
  right: var(--space-2);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-success);
  border: 1px solid var(--color-border-light);
}

.product-badge--sale {
  top: var(--space-2);
  left: var(--space-2);
  background-color: var(--color-promo);
  color: var(--color-text-inverse);
}

@media (max-width: 767px) {
  .product-badge--commercial {
    top: 4px;
    left: 4px;
  }

  .product-badge--fabric {
    top: 4px;
    right: 4px;
    font-size: 8px;
    padding: 1px 4px;
  }

  .product-badge--sale {
    top: 4px;
    left: 4px;
  }
}

/* Floating Quick Add Button */
.product-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 38px;
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  min-width: 0;
  box-sizing: border-box;
}

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

.product-card-add:hover {
  background-color: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.product-card-add svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .product-card-add {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: var(--space-2);
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Product Card Info */
.product-card-info {
  padding: var(--space-2) var(--space-1) var(--space-1);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
  gap: var(--space-1);
  min-width: 0;
  flex-wrap: wrap;
}

.product-card-fabric-pill {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--weight-semibold);
  color: var(--color-gold);
  background-color: var(--color-gold-light);
  border: 1px solid var(--color-gold-border);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--color-star);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.product-card-rating span {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--weight-regular);
}

.product-card-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
  .product-card-title {
    font-size: var(--text-base);
  }

  .product-card-fabric-pill {
    font-size: 10px;
    padding: 1px 6px;
  }
}

.product-card-title a {
  text-decoration: none;
  color: inherit;
}

.product-card-title a:hover {
  color: var(--color-text-secondary);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  flex-wrap: wrap;
}

.product-card-price .current-price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .product-card-price .current-price {
    font-size: var(--text-md);
  }
}

.product-card-price .original-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card-price .discount {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-promo);
}

/* Color Preview Swatches on Card */
.product-card-colors {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--space-2);
}

.product-card-color-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-bg-surface);
  box-shadow: 0 0 0 1px var(--color-border-medium);
  display: inline-block;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out);
}

.product-card-color-dot:hover {
  transform: scale(1.25);
}

/* ── Unified Catalog Toolbar (Fixed Padding & Alignment) ── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
}

.category-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 2px 0 var(--space-1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  background: var(--color-bg-surface);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
}

.category-pill.active {
  background-color: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-xs);
}

.category-pill .pill-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background-color: rgba(31, 27, 24, 0.08);
  color: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
}

.category-pill.active .pill-count {
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--color-text-inverse);
}

/* Catalog Controls (Count & Sort) */
.catalog-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .catalog-controls {
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .catalog-controls {
    width: auto;
    justify-content: flex-end;
  }
}

.catalog-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.sort-selector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sort-select {
  height: 38px;
  padding: 0 var(--space-8) 0 var(--space-3);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  background-color: var(--color-bg-surface);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235C554E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: all var(--duration-fast) var(--ease-out);
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--color-text-primary);
  outline: none;
}

/* ── Category Circles (Department Rail) ── */
.category-rail {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  padding: var(--space-2) 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: center;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .category-rail {
    justify-content: flex-start;
  }
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 90px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.category-circle:hover {
  transform: translateY(-2px);
}

.category-circle-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--color-border-light);
  transition: all var(--duration-fast) var(--ease-out);
  background-color: var(--color-bg-secondary);
}

.category-circle:hover .category-circle-img {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-light);
}

.category-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-circle-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
  line-height: var(--leading-snug);
}

.category-circle-sublabel {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Trust Grid ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border-light);
}

@media (max-width: 767px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  text-align: center;
  padding: var(--space-6);
}

.trust-item-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-text-primary);
}

.trust-item-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.2;
}

.trust-item-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.trust-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Section Headings ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-header-line {
  width: 48px;
  height: 1px;
  background-color: var(--color-border-medium);
  margin: var(--space-4) auto 0;
}

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-overlay);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background-color: var(--color-bg-surface);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.cart-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.cart-close-btn:hover {
  background-color: var(--color-bg-secondary);
}

.cart-close-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

/* Free Shipping Bar */
.shipping-bar {
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.shipping-bar-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-2);
}

.shipping-bar-text strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.shipping-bar-track {
  height: 4px;
  background-color: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shipping-bar-progress {
  height: 100%;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
  min-width: 0;
}

/* Cart Items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-8);
}

.cart-empty svg {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  stroke-width: 1;
  opacity: 0.4;
}

.cart-empty p {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-bg-secondary);
}

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

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.cart-item-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.cart-item-variant {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.cart-item-price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
  font-size: var(--text-md);
  color: var(--color-text-secondary);
}

.qty-btn:hover {
  background-color: var(--color-bg-secondary);
}

.qty-value {
  width: 36px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-left: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
  line-height: 32px;
}

.cart-item-remove {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out);
  background: none;
  border: none;
  padding: var(--space-1);
}

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

/* Cart Footer */
.cart-footer {
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-6);
  flex-shrink: 0;
  background-color: var(--color-bg-surface);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.cart-subtotal-label {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.cart-subtotal-value {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.cart-shipping-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-4);
}

.cart-checkout-btn {
  width: 100%;
  padding: var(--space-4);
  background-color: var(--color-cta-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
  min-height: 52px;
}

.cart-checkout-btn:hover {
  background-color: var(--color-cta-primary-hover);
}

.cart-payment-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.cart-payment-icons span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

/* ── Footer ── */
.site-footer {
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}

.footer-brand-name span {
  font-weight: var(--weight-regular);
  font-style: italic;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-relaxed);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-payment-icons span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-weight: var(--weight-medium);
}

/* ── Stars Rating ── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
}

.stars svg {
  width: 14px;
  height: 14px;
}

.stars-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-2);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

@media (max-width: 767px) {
  .toast-container {
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  min-width: 280px;
  max-width: 380px;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn var(--duration-slow) var(--ease-out) forwards;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.toast-exit {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: var(--leading-snug);
}

.toast-action {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}