/*
 * Hush Cosmetics Storefront Design System
 * ========================================
 * This stylesheet contains all design tokens and components
 * for the customer-facing storefront.
 */

/* ===== CSS Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

button, input, select, textarea {
  font-family: inherit;
}

ol, ul {
  padding-left: 16px;
}

/* ===== Design Tokens ===== */
:root {
  /* Color System */
  --color-primary: #64748b;
  --color-primary-hover: #475569;
  --color-secondary: #f5f5f5;
  --color-secondary-hover: #e5e5e5;
  --color-accent: #0e918e;
  --color-accent-hover: #0a7c79;

  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-warning: #fb923c;
  --color-warning-light: #ffedd5;
  --color-error: #e11d48;
  --color-error-light: #ffe4e6;

  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-muted: #6b7280;

  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;

  --color-border: #e5e7eb;
  --color-border-dark: #d1d5db;

  /* Typography */
  --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== Base Styles ===== */
html {
  margin: 0;
  padding: 0;
  overflow-y: scroll; /* Prevent layout shift from scrollbar appearing/disappearing */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main.container {
  flex: 1;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-full {
  width: 100%;
  margin: 0;
  padding: 0;
}

.section {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

/* ===== Header ===== */
.header {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.header-left {
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.logo {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo-desktop {
  display: block;
  margin-right: var(--space-lg);
}

.logo-mobile {
  display: none;
}

.logo-center {
  display: block;
  text-align: center;
}

/* Minimal header for checkout */
.header-minimal .header-inner {
  justify-content: center;
}

.logo-dot {
  color: var(--color-accent);
}

.menu-toggle,
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: var(--space-xs);
}

.menu-toggle {
  display: none;
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  padding: 0;
  transition: color 0.2s;
}

.nav-dropdown-toggle:hover {
  color: var(--color-text-primary);
}

.nav-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  display: none;
  z-index: 150;
}

/* Nested category menus need overflow visible for submenus to appear outside */
.nav-dropdown-menu-nested {
  overflow: visible;
  max-height: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.nav-dropdown-menu a.view-all {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  color: var(--color-primary);
  font-weight: 500;
}

.nav-dropdown-menu a.view-all:hover {
  color: var(--color-primary-hover);
}

/* Nested category dropdown */
.nav-dropdown-item-nested {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-item-nested .nav-dropdown-parent {
  flex: 1;
}

.nav-submenu-chevron {
  position: absolute;
  right: var(--space-sm);
  color: var(--color-text-muted);
  pointer-events: none;
}

.nav-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 180px;
  overflow-y: auto;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  display: none;
  z-index: 160;
}

.nav-dropdown-item-nested:hover > .nav-submenu {
  display: block;
}

.nav-submenu > a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-submenu > a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.nav-submenu-header {
  font-weight: 500;
  color: var(--color-text-primary) !important;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-sm) !important;
}

/* Nested submenus within submenus */
.nav-submenu .nav-dropdown-item-nested {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-submenu .nav-dropdown-item-nested .nav-dropdown-parent {
  flex: 1;
  display: block;
  padding: var(--space-sm) var(--space-md);
  padding-right: var(--space-xl);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

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

.nav-submenu .nav-dropdown-item-nested:hover .nav-dropdown-parent {
  color: var(--color-text-primary);
}

.nav-submenu .nav-submenu {
  z-index: 170;
  display: none;
}

.nav-submenu .nav-dropdown-item-nested:hover > .nav-submenu {
  display: block;
}

.nav-link {
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  display: none;
  z-index: 200;
}

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

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: var(--color-bg-primary);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 300;
  display: flex;
  flex-direction: column;
}

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

/* ===== Search Slideout ===== */
.search-slideout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  display: none;
  z-index: 200;
}

.search-slideout-overlay.open {
  display: block;
  opacity: 1;
  visibility: visible;
}

.search-slideout {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: var(--color-bg-primary);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 300;
  display: flex;
  flex-direction: column;
}

.search-slideout.open {
  transform: translateX(0);
}

.search-slideout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.search-slideout-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.search-slideout-close {
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
}

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

.search-slideout-body {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.search-form {
  margin-bottom: var(--space-xl);
}

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

.search-input-icon {
  position: absolute;
  left: var(--space-md);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 28px);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-submit-btn {
  position: absolute;
  right: var(--space-xs);
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-submit-btn:hover {
  background: var(--color-primary-dark);
}

.search-suggestions {
  margin-top: var(--space-lg);
}

.search-suggestions-title {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.search-suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.search-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.search-tag:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== Cart Slideout ===== */
.cart-slideout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  display: none;
  z-index: 200;
}

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

.cart-slideout {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: var(--color-bg-primary);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 300;
  display: flex;
  flex-direction: column;
}

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

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

.cart-slideout-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.cart-slideout-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: var(--space-xs);
}

.cart-slideout-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.cart-slideout-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.cart-slideout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.cart-slideout-empty svg {
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.cart-slideout-empty p {
  margin: 0 0 var(--space-lg);
}

/* Cart slideout items */
.cart-slideout-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.cart-slideout-item-image {
  width: 70px;
  height: 70px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

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

.cart-slideout-item-details {
  flex: 1;
  min-width: 0;
}

.cart-slideout-item-brand {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-slideout-item-name {
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0;
  line-height: 1.3;
  color: var(--color-text-primary);
  text-decoration: none;
  display: block;
}

.cart-slideout-item-name:hover {
  text-decoration: underline;
}

.cart-slideout-item-image {
  display: block;
}

.cart-slideout-item-variant {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.cart-slideout-item-price {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.cart-slideout-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.cart-slideout-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-slideout-qty-input {
  width: 48px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}

.cart-slideout-qty-input::-webkit-outer-spin-button,
.cart-slideout-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-slideout-item-remove {
  font-size: 11px;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-left: auto;
}

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

/* Slideout summary */
.cart-slideout-summary {
  margin-bottom: var(--space-md);
}

.cart-slideout-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: var(--space-xs) 0;
}

.cart-slideout-row.total {
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
}

.cart-slideout-row .free {
  color: var(--color-success);
}

/* Free shipping bar in slideout */
.cart-slideout-shipping {
  background: var(--color-success-light);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  color: #166534;
  margin-bottom: var(--space-md);
}

.cart-slideout-shipping.achieved {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 480px) {
  .cart-slideout {
    width: 100%;
  }
}

/* ===== Filter Slideout (Mobile) ===== */
.filter-slideout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

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

.filter-slideout {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--color-bg-primary);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.filter-slideout.open {
  transform: translateX(0);
}

.filter-slideout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.filter-slideout-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.filter-slideout-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.filter-clear-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: underline;
}

.filter-clear-link:hover {
  color: var(--color-text-primary);
}

.filter-slideout-close {
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-text-secondary);
}

.filter-slideout-close:hover {
  color: var(--color-text-primary);
}

.filter-slideout-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.filter-slideout-section {
  margin-bottom: var(--space-lg);
}

.filter-slideout-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-text-primary);
}

.filter-slideout-footer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-primary);
}

.filter-slideout-footer .btn {
  flex: 1;
}

.filter-slideout-price-apply {
  margin-top: var(--space-md);
}

.filter-slideout-price-apply input[type="submit"] {
  width: 100%;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Category Navigation (on category pages) */
.category-nav {
  margin-bottom: var(--space-lg);
}

.category-breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.category-nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.category-nav-link:hover {
  text-decoration: underline;
}

.category-nav-separator {
  margin: 0 4px;
  color: var(--color-text-muted);
}

.category-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.category-children {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-border);
}

.category-child-link {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 2px 0;
}

.category-child-link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Hierarchical Category Tree */
.category-tree {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.category-tree-item {
  display: flex;
  flex-direction: column;
}

.category-tree-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 4px 0;
}

.category-tree-link:hover {
  text-decoration: underline;
}

.category-tree-children {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-md);
  margin-top: 2px;
}

.category-tree-child-link {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 2px 0;
}

.category-tree-child-link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Inline filter button in header */
.mobile-filter-btn {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  white-space: nowrap;
}

.mobile-filter-btn svg,
.mobile-filter-btn-fixed svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Fixed filter button - hidden by default, appears at top-right below navbar on scroll */
.mobile-filter-btn-fixed {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  white-space: nowrap;
  position: fixed;
  top: 86px;
  right: var(--space-md);
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-filter-btn-fixed.visible {
  transform: translateY(0);
  opacity: 1;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  border-radius: var(--radius-full);
  padding: 0 0 0 2px;
  text-align: center;
  box-sizing: border-box;
  margin-left: 4px;
}

/* Products header with filter button */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.products-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Sort dropdown */
.sort-dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sort-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.sort-select {
  height: 44px;
  padding: 0 var(--space-xl) 0 var(--space-md);
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
}

.sort-select:hover {
  border-color: var(--color-text-muted);
}

.sort-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .products-header {
    flex-wrap: wrap;
  }

  .products-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sort-label {
    display: none;
  }

  .sort-select {
    min-width: 120px;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .mobile-filter-btn-fixed {
    display: inline-flex;
  }

  .filter-slideout {
    width: calc(100% - 60px);
    max-width: 320px;
  }
}

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

.mobile-nav-title {
  font-size: 16px;
  font-weight: 600;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: var(--space-xs);
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--space-xl);
}

.mobile-nav-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-section:last-child {
  border-bottom: none;
}

.mobile-nav-section-title {
  padding: var(--space-sm) var(--space-lg);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s;
}

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

/* Accordion */
.mobile-nav-accordion {
  border-bottom: none;
}

.mobile-nav-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-text-primary);
  text-align: left;
}

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

.accordion-chevron {
  transition: transform 0.2s ease;
}

.mobile-nav-accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.mobile-nav-accordion-content {
  display: none;
  flex-direction: column;
  padding-left: var(--space-md);
  background: var(--color-bg-secondary);
}

.mobile-nav-accordion.open .mobile-nav-accordion-content {
  display: flex;
}

.mobile-nav-accordion-content a {
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.mobile-nav-accordion-content a:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.mobile-nav-accordion-content a.view-all {
  color: var(--color-primary);
  font-weight: 500;
}

.mobile-nav-accordion-content a.view-all:hover {
  color: var(--color-primary-hover);
}

/* Nested categories in mobile nav */
.mobile-nav-nested {
  display: flex;
  flex-direction: column;
}

.mobile-nav-nested-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-nested-toggle:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.nested-chevron {
  transition: transform 0.2s;
}

.mobile-nav-nested.open > .mobile-nav-nested-toggle > .nested-chevron {
  transform: rotate(180deg);
}

.mobile-nav-nested-content {
  display: none;
  flex-direction: column;
  padding-left: var(--space-md);
  background: var(--color-bg-tertiary);
}

.mobile-nav-nested.open > .mobile-nav-nested-content {
  display: flex;
}

/* Ensure nested children stay hidden until explicitly opened */
.mobile-nav-nested-content .mobile-nav-nested-content {
  display: none;
}

.mobile-nav-nested-content .mobile-nav-nested.open > .mobile-nav-nested-content {
  display: flex;
}

.mobile-nav-nested-content a {
  padding: var(--space-xs) var(--space-lg);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 12px;
}

.mobile-nav-nested-content a:hover {
  color: var(--color-text-primary);
}

/* Deeper nested levels */
.mobile-nav-nested-content .mobile-nav-nested {
  margin-left: 0;
}

.mobile-nav-nested-content .mobile-nav-nested-toggle {
  padding-left: calc(var(--space-lg) + var(--space-sm));
  font-size: 12px;
}

.mobile-nav-nested-content .mobile-nav-nested-content {
  background: var(--color-bg-secondary);
}

.mobile-nav-nested-content .mobile-nav-nested-content a {
  padding-left: calc(var(--space-lg) + var(--space-md));
  font-size: 11px;
}

.mobile-nav-utility {
  margin-top: auto;
}

.mobile-nav-utility .mobile-nav-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* Sign In Form */
.mobile-nav-signin {
  padding: var(--space-sm) var(--space-lg);
}

.mobile-nav-signin-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-md) 0;
}

.mobile-nav-signin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-signin-form .input {
  height: 44px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.mobile-nav-signin-form .input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.mobile-nav-signin-register {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: var(--space-md) 0 0 0;
}

.mobile-nav-signin-register a {
  color: var(--color-accent);
}

.mobile-nav-signin-forgot {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: var(--space-xs) 0 0 0;
}

.mobile-nav-signin-forgot a {
  color: var(--color-accent);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Animations */
@keyframes cart-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

@keyframes cart-fill {
  0% { fill: var(--color-bg-secondary); }
  20% { fill: var(--color-accent); }
  100% { fill: var(--color-bg-secondary); }
}

@keyframes badge-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.cart-motion-bounce { animation: cart-bounce 0.5s ease; }
.cart-fill-accent-delayed svg path:first-child { animation: cart-fill 3s ease 0.3s; }
.badge-animate-pop { animation: badge-pop 0.3s ease forwards; }

/* ===== Footer ===== */
.footer {
  background: var(--color-footer-bg, #374151);
  color: var(--color-footer-text, #ffffff);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 var(--space-sm);
  color: var(--color-footer-text, #ffffff);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--color-footer-text, #ffffff);
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-social a {
  color: var(--color-footer-text, #ffffff);
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.8;
}

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

.footer-payments {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-payments-label {
  font-size: 11px;
  color: var(--color-footer-text, #ffffff);
  opacity: 0.75;
}

.footer-payment-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-payment-icons img,
.footer-payment-icons svg {
  height: 18px;
  width: auto;
  border-radius: 2px;
  background: white;
}

.footer-copyright {
  margin: 0;
  font-size: 12px;
  color: var(--color-footer-text, #ffffff);
  opacity: 0.75;
}

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

  .footer-grid .footer-section:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Typography ===== */
.h1, h1 { font-size: 32px; font-weight: 600; line-height: 1.2; margin: 0 0 var(--space-md); }
.h2, h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0 0 var(--space-md); }
.h3, h3 { font-size: 20px; font-weight: 500; line-height: 1.4; margin: 0 0 var(--space-sm); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 14px; }
.text-xs { font-size: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

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

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

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

.btn-accent {
  background: var(--color-accent);
  color: white;
}

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

.btn-disabled,
.btn:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-disabled:hover,
.btn:disabled:hover {
  background: var(--color-text-muted);
}

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

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

.btn-sm {
  padding: 10px 24px;
  font-size: 11px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 13px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ===== Product Card ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 1;
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Status Badge - Tag Style */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tag-success {
  background: var(--color-success);
  color: white;
}

.badge-tag-warning {
  background: var(--color-warning);
  color: white;
}

.badge-tag-error {
  background: var(--color-error);
  color: white;
}

.badge-tag-neutral {
  background: var(--color-text-secondary);
  color: white;
}

/* Product card badge positioning */
.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1;
}

.product-card.out-of-stock {
  opacity: 0.7;
}

.product-card.out-of-stock .product-image img {
  filter: grayscale(50%);
}

.product-info {
  padding: var(--space-md);
}

.product-brand {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  color: var(--color-text-primary);
}

.product-price {
  font-size: 16px;
  font-weight: 600;
}

.product-price .original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: var(--space-sm);
}

.product-price .sale {
  color: var(--color-error);
}

/* ===== Status Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

.badge-neutral {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

/* ===== Form Elements ===== */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
}

.form-input {
  height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.2);
}

.form-input.error {
  border-color: var(--color-error);
}

.form-error {
  font-size: 13px;
  color: var(--color-error);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== Cart Item ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
}

.cart-item + .cart-item {
  margin-top: var(--space-md);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 11px;
  overflow: hidden;
}

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

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0;
  line-height: 1.3;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.cart-item-remove {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

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

.cart-item-quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.product-detail-info .quantity-selector {
  width: 200px;
  flex-shrink: 0;
}

.product-detail-info .quantity-selector .quantity-value {
  flex: 1;
}

.product-detail-info .mb-lg .btn {
  width: 200px;
}

.quantity-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-secondary);
}

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

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-value {
  width: 48px;
  height: 42px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: none;
  -moz-appearance: textfield;
}

.quantity-value::-webkit-outer-spin-button,
.quantity-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-price {
  text-align: right;
  min-width: 80px;
}

.cart-item-unit-price {
  font-size: 12px;
  color: var(--color-text-muted);
}

.cart-item-total {
  font-size: 15px;
  font-weight: 600;
}

/* ===== Free Shipping Bar ===== */
.shipping-bar {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

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

.shipping-bar-text strong {
  color: var(--color-success);
}

.shipping-progress {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  border-radius: var(--radius-full);
  transition: width 0.3s;
}

/* ===== Order Summary ===== */
.order-summary {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.order-summary-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 14px;
}

.order-summary-row.total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 18px;
  font-weight: 600;
}

.order-summary-row .free {
  color: var(--color-success);
  font-weight: 500;
}

/* ===== Alerts ===== */
.alert {
  padding: 12px 20px;
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.alert-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.alert-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.alert-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover {
  color: var(--color-text-secondary);
  text-decoration-style: solid;
}

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

.product-categories {
  font-size: 12px;
  color: var(--color-text-muted);
}

.product-categories a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.product-categories a:hover {
  color: var(--color-text-secondary);
  text-decoration-style: solid;
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
}

.product-main-image {
  aspect-ratio: 1;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.desktop-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}

.desktop-carousel-track::-webkit-scrollbar {
  display: none;
}

.desktop-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Desktop Carousel Navigation */
.product-main-image {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
  background: #fff;
}

.carousel-nav svg {
  color: var(--color-text-primary);
}

.product-main-image:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav-prev {
  left: var(--space-md);
}

.carousel-nav-next {
  right: var(--space-md);
}

.product-thumbnails {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.product-thumbnail.active {
  border-color: var(--color-primary);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Carousel */
.product-carousel {
  display: none;
  position: relative;
}

.product-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: var(--space-md) 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.carousel-dot.variant {
  background: transparent;
  border: 1.5px solid var(--color-border-dark);
}

.carousel-dot.variant.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

/* Desktop/Mobile visibility helpers */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-detail-brand {
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-detail-name {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: -8px;
}

.product-detail-price {
  font-size: 24px;
  font-weight: 600;
}

.product-detail-price .currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.product-description {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.6;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.product-detail-description {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.product-detail-page {
  padding: var(--space-lg) 0;
}

.product-details-section {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
}

.product-details-block {
  margin-bottom: var(--space-xl);
}

.product-details-block h2 {
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.product-details-header {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-option-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* Variant Chips */
.variant-label-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.variant-label-row .form-label {
  margin-bottom: 0;
}

.form-error-inline {
  font-size: 12px;
  color: var(--color-error);
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.variant-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.variant-chip:hover:not(:disabled) {
  border-color: var(--color-primary);
}

.variant-chip.selected {
  border-color: var(--color-primary);
  background: var(--color-bg-secondary);
}

.variant-chip.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.variant-chip-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: left;
}

.variant-chip-size {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.variant-chip.selected .variant-chip-name {
  color: var(--color-primary);
}

.variant-chip.selected .variant-chip-size {
  color: var(--color-primary-hover);
}

/* Sticky Add to Bag (Mobile) */
.sticky-add-to-bag {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-primary);
  padding: var(--space-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.sticky-add-to-bag.visible {
  transform: translateY(0);
}

/* ===== Products Page Layout ===== */
.products-page {
  padding: var(--space-lg) 0;
}

.products-page h1 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.products-page .text-secondary {
  font-size: 13px;
}

.products-page .text-muted {
  font-size: 12px;
}

.products-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

/* Filter Sidebar - independent scroll */
.filter-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: var(--space-xs);
}

/* Products Main - independent scroll */
.products-main {
  flex: 1;
  min-width: 0;
}

.filter-section {
  margin-bottom: var(--space-md);
}

.filter-section.active-filters {
  margin-bottom: var(--space-md);
}

.active-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.active-filters-header .filter-title {
  margin-bottom: 0;
}

.active-filters .active-filter-chips {
  margin-bottom: var(--space-md);
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text-primary);
}

/* Collapsible Filter Sections */
.filter-collapsible {
  border: none;
  margin-bottom: var(--space-md);
}

.filter-collapsible > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
}

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

.filter-collapsible > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.filter-collapsible[open] > summary::after {
  transform: rotate(45deg);
}

.filter-collapsible > .filter-options {
  padding-top: var(--space-sm);
}

/* Active Filter Chips */
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.active-filter-chip:hover {
  background: var(--color-primary-hover);
  color: white;
}

.active-filter-chip svg {
  opacity: 0.8;
  flex-shrink: 0;
}

.active-filter-chip:hover svg {
  opacity: 1;
}

.filter-clear-all-inline {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.filter-clear-all-inline:hover {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.filter-options {
  display: flex;
  flex-direction: column;
}

/* Hierarchical Category Filter */
.filter-categories-tree {
  gap: 0;
}

.filter-category-item {
  display: flex;
  flex-direction: column;
}

.filter-category-item.has-children > .filter-checkbox {
  font-weight: 500;
  color: var(--color-text-primary);
}

.filter-option {
  display: block;
  padding: var(--space-xs) 0;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  transition: color 0.2s;
}

.filter-option:hover {
  color: var(--color-text-primary);
}

.filter-option.active {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Checkbox Filter */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.filter-checkbox:hover {
  color: var(--color-text-primary);
}

.filter-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox input[type="checkbox"]:hover {
  border-color: var(--color-primary);
}

.filter-checkbox-label {
  flex: 1;
}

.filter-checkbox input[type="checkbox"]:checked + .filter-checkbox-label {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Price Range Filter */
.filter-form {
  display: contents;
}

.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-price-field {
  display: flex;
  align-items: center;
  flex: 1;
  height: 44px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-sm);
}

.filter-price-currency {
  color: var(--color-text-muted);
  font-size: 13px;
}

.filter-price-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: var(--space-sm) var(--space-xs);
  font-size: 13px;
  width: 100%;
  min-width: 0;
}

.filter-price-input:focus {
  outline: none;
}

.filter-price-field:focus-within {
  border-color: var(--color-accent);
}

.filter-price-separator {
  color: var(--color-text-muted);
  font-size: 13px;
}

.filter-price-submit {
  width: 100%;
  height: 44px;
  margin-top: var(--space-sm);
  font-size: 11px;
  padding: 0 var(--space-md);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.filter-clear {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.filter-clear-all {
  display: block;
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.filter-clear-all:hover {
  text-decoration: underline;
}

/* Legacy - keep for backwards compatibility */
.category-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text-primary);
}

.category-nav {
  display: flex;
  flex-direction: column;
}

.category-link {
  display: block;
  padding: var(--space-sm) 0;
  text-decoration: none;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s;
}

.category-link:hover {
  color: var(--color-text-primary);
}

.category-link.active {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-state-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* ===== Cart Animations ===== */
@keyframes cart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes cart-count-pop {
  0% { transform: scale(1); background: var(--color-accent); }
  50% { transform: scale(1.3); background: var(--color-success); }
  100% { transform: scale(1); background: var(--color-accent); }
}

.cart-added .cart-icon svg {
  animation: cart-pulse 0.4s ease-in-out;
}

.cart-added .cart-badge {
  animation: cart-count-pop 0.4s ease-in-out;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header-inner {
    padding: 0 var(--space-md);
  }

  .menu-toggle {
    display: flex;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .nav-desktop {
    display: none;
  }

  .products-layout {
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* Hide filter sidebar on mobile - use mobile nav filters instead */
  .filter-sidebar {
    display: none;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .category-sidebar {
    width: 100%;
  }

  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .category-link {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 14px;
  }

  .category-link.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-grid-home {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-md);
    grid-template-rows: unset;
    grid-auto-rows: unset;
    row-gap: unset;
  }

  .product-grid-home::-webkit-scrollbar {
    display: none;
  }

  .product-grid-home > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .product-carousel {
    display: block;
  }

  .product-gallery {
    max-width: none;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .cart-item-details {
    order: 2;
    width: 100%;
    flex: none;
  }

  .cart-item-image {
    order: 1;
  }

  .cart-item-quantity {
    order: 3;
  }

  .cart-item-price {
    order: 4;
    text-align: left;
  }

  .section {
    padding: var(--space-lg);
  }
}

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

  .btn {
    padding: 12px 24px;
  }

  .btn-lg {
    padding: 14px 28px;
  }
}

/* ===== Load More / Infinite Scroll ===== */
.load-more {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.load-more-spinner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.load-more-spinner .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Checkout Page ===== */
.checkout-page {
  padding: var(--space-xl) 0 var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.checkout-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.checkout-back:hover {
  color: var(--color-primary-hover);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.checkout-main {
  min-width: 0;
}

.checkout-section {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.checkout-section-title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.checkout-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.checkout-section-header .checkout-section-title {
  margin-bottom: 0;
}

.checkout-auth-prompt {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.checkout-auth-link {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
}

.checkout-auth-link:hover {
  text-decoration: underline;
}

.checkout-customer-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.checkout-customer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-customer-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
}

.checkout-customer-detail {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.checkout-login-error {
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.checkout-form .form-group {
  margin-bottom: 0;
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-md);
}

.form-optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Phone input with prefix */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  height: 44px;
}

.phone-prefix {
  padding: 0 var(--space-md);
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-size: 14px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--color-border);
}

.phone-input {
  border: none !important;
  border-radius: 0 !important;
  height: 100% !important;
}

.phone-input:focus {
  box-shadow: none !important;
}

.phone-input-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.2);
}

/* Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* Delivery options */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-option:hover {
  border-color: var(--color-border-dark);
}

.delivery-option.selected {
  border-color: var(--color-accent);
  background: rgba(0, 206, 201, 0.05);
}

.delivery-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.delivery-option-content {
  flex: 1;
}

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

.delivery-option-name {
  font-weight: 500;
  font-size: 14px;
}

.delivery-option-price {
  font-weight: 600;
  font-size: 14px;
}

.delivery-option-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method:hover {
  border-color: var(--color-border-dark);
}

.payment-method.selected {
  border-color: var(--color-accent);
  background: rgba(0, 206, 201, 0.05);
}

.payment-method input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.payment-method-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-method-name {
  font-weight: 500;
  font-size: 14px;
}

.payment-method-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 16px;
}

.payment-method-icons img,
.payment-method-icons svg {
  height: 20px;
  width: auto;
  border-radius: 2px;
}

.card-details {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* Checkout sidebar */
.checkout-sidebar {
  position: sticky;
  top: var(--space-lg);
  align-self: start;
}

.checkout-summary {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.checkout-summary-title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  min-width: 0;
}

.checkout-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  min-width: 0;
}

.checkout-item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.checkout-item-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-details {
  flex: 1;
  min-width: 0;
  width: 0;
}

.checkout-item-brand {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.checkout-item-variant {
  font-size: 12px;
  color: var(--color-text-secondary);
  word-break: break-word;
}

.checkout-item-price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.checkout-summary-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.checkout-summary-row.total {
  font-size: 16px;
  font-weight: 600;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.checkout-summary-row .free {
  color: var(--color-success);
  font-weight: 500;
}

.checkout-free-shipping-hint {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-warning-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text-primary);
  text-align: center;
}

/* Submit section */
.checkout-submit {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.checkout-submit .btn-block {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
}

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--color-text-muted);
}

.checkout-secure svg {
  opacity: 0.7;
}

/* Mobile summary (hidden on desktop) */
.checkout-mobile-summary {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    display: none;
  }

  .checkout-mobile-summary {
    display: block;
    margin-bottom: var(--space-lg);
    overflow: hidden;
  }

  .checkout-mobile-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 14px;
    font-weight: 500;
  }

  .checkout-mobile-summary-total {
    font-weight: 600;
  }

  .checkout-mobile-summary-content {
    display: none;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-top: none;
    background: var(--color-bg-primary);
    overflow: hidden;
  }

  .checkout-mobile-summary-content.open {
    display: block;
  }

  .checkout-mobile-summary-content .checkout-items {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .checkout-mobile-summary-tab {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
  }

  .checkout-mobile-summary-tab:hover {
    background: var(--color-bg-secondary);
  }

  .checkout-mobile-summary-tab .tab-text-hide {
    display: none;
  }

  .checkout-mobile-summary-tab.open .tab-text-show {
    display: none;
  }

  .checkout-mobile-summary-tab.open .tab-text-hide {
    display: inline;
  }
}

@media (max-width: 600px) {
  .checkout-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .checkout-title {
    font-size: 22px;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .checkout-section,
  .checkout-submit {
    padding: var(--space-md);
  }

  .delivery-option,
  .payment-method {
    padding: var(--space-sm) var(--space-md);
  }

  .payment-method-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .order-confirmation-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   ORDER CONFIRMATION PAGE
   ============================================= */

.order-confirmation {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.order-confirmation-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.order-confirmation-icon {
  margin-bottom: var(--space-md);
}

.order-confirmation-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.order-confirmation-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.order-confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.order-confirmation-section {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.order-confirmation-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.order-confirmation-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.order-confirmation-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-sm) 0;
}

.order-confirmation-item + .order-confirmation-item {
  border-top: 1px solid var(--border-light);
}

.order-confirmation-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-confirmation-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.order-confirmation-item-variant {
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.order-confirmation-item-qty {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-confirmation-item-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.order-confirmation-address {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.order-confirmation-address p {
  margin: 0;
}

.order-confirmation-summary {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  height: fit-content;
  position: sticky;
  top: var(--space-lg);
}

.order-confirmation-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.order-confirmation-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.order-confirmation-row.total {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-xs);
}

.order-confirmation-payment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}

.order-confirmation-payment-label {
  color: var(--text-secondary);
}

.order-confirmation-payment-method {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 500;
}

.order-confirmation-footer {
  text-align: center;
}

/* ===== Preview Banner ===== */
.preview-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
}

.preview-banner-label {
  background: #f59e0b;
  color: #1e293b;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
}

.preview-banner-text {
  flex: 1;
  color: #94a3b8;
}

.preview-banner-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.preview-banner-link:hover {
  text-decoration: underline;
}

/* ===== Free Samples ===== */
.samples-points-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  margin-left: 8px;
}

.samples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.sample-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.sample-image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.sample-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-info {
  flex: 1;
  min-width: 0;
}

.sample-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-variant {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.sample-points {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
}

.sample-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sample-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.sample-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sample-qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

/* ===== Home Page ===== */

/* Hero Carousel */
.hero-carousel {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
  background-color: #0d1b2a;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-slide-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 480px;
  padding: 64px 56px;
}

.hero-content {
  max-width: 500px;
  flex-shrink: 0;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.hero-title .trix-content,
.hero-subtitle .trix-content {
  margin: 0;
  padding: 0;
}

.hero-title .trix-content *,
.hero-subtitle .trix-content * {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.hero-title .trix-content strong {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-subtitle .trix-content strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.hero-carousel .btn-accent {
  background: var(--btn-color, var(--color-accent));
  color: #0d1b2a;
  font-weight: 600;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--btn-color, var(--color-accent)) 30%, transparent);
}

.hero-carousel .btn-accent:hover {
  box-shadow: 0 6px 28px color-mix(in srgb, var(--btn-color, var(--color-accent)) 45%, transparent);
  transform: translateY(-1px);
}

.hero-carousel .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.hero-carousel .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Floating product images (slide 3) */
.hero-images {
  position: relative;
  width: 440px;
  height: 320px;
  flex-shrink: 0;
}

.hero-float {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  background: white;
  transition: transform 0.3s;
}

.hero-float:hover {
  transform: scale(1.05) !important;
}

.hero-float-1 { width: 160px; height: 160px; top: 10px; left: 20px; transform: rotate(-3deg); z-index: 2; }
.hero-float-2 { width: 140px; height: 140px; top: 0; right: 10px; transform: rotate(2deg); z-index: 1; }
.hero-float-3 { width: 150px; height: 150px; bottom: 10px; left: 50px; transform: rotate(1.5deg); z-index: 3; }
.hero-float-4 { width: 130px; height: 130px; bottom: 15px; right: 30px; transform: rotate(-2deg); z-index: 1; }

/* Carousel Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* Carousel Dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0;
}

.hero-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  position: relative;
}

.hero-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  transition: all 0.2s;
}

.hero-dot.active::after {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.2);
}

/* ===== Banner Style: Composable Properties ===== */

/* --- Horizontal Alignment --- */
.hero-align-h-left .hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 100%);
}
.hero-align-h-center .hero-slide-inner { justify-content: center; }
.hero-align-h-center .hero-content { text-align: center; max-width: 640px; }
.hero-align-h-center .hero-actions { justify-content: center; }
.hero-align-h-center .hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-align-h-right .hero-slide-inner { justify-content: flex-end; }
.hero-align-h-right .hero-content { text-align: right; }
.hero-align-h-right .hero-actions { justify-content: flex-end; }
.hero-align-h-right .hero-overlay {
  background: linear-gradient(270deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 100%);
}

/* --- Vertical Alignment --- */
.hero-align-v-top .hero-slide-inner { align-items: flex-start; }
.hero-align-v-bottom .hero-slide-inner { align-items: flex-end; }

/* --- Font Size (before font-family so family weights win) --- */
.hero-size-s .hero-title { font-size: 36px; font-weight: 400; }
/* m = base default: 42px, 700 */
.hero-size-l .hero-title { font-size: 48px; }
.hero-size-xl .hero-title { font-size: 56px; font-weight: 800; }

/* --- Font Family --- */
.hero-font-serif .hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400; letter-spacing: 0.5px; line-height: 1.25;
}
.hero-font-serif .hero-subtitle { letter-spacing: 0.3px; }
.hero-font-serif .btn-accent {
  border-radius: 0; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 13px; padding: 14px 32px;
}
.hero-font-display .hero-title {
  text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
}

/* --- Overlay overrides --- */
.hero-overlay.hero-overlay-solid { background: rgba(0,0,0,0.55); }
.hero-overlay.hero-overlay-none { background: transparent !important; }
.hero-overlay.hero-overlay-light-solid { background: rgba(255,255,255,0.3) !important; }

.hero-align-h-left .hero-overlay.hero-overlay-light-gradient {
  background: linear-gradient(90deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.05) 100%);
}
.hero-align-h-center .hero-overlay.hero-overlay-light-gradient {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.35) 100%);
}
.hero-align-h-right .hero-overlay.hero-overlay-light-gradient {
  background: linear-gradient(270deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.05) 100%);
}

/* Preview Mode Bar */
.preview-bar {
  background: #f59e0b;
  color: #1f2937;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}
.preview-bar-link {
  color: #1f2937;
  text-decoration: underline;
  margin-left: 12px;
}

/* Value Propositions */
.value-props {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 24px 32px;
  margin: -28px 4% 48px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.value-prop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.value-prop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0fffe, #b2f5ea);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-prop-icon svg {
  color: #0d9488;
  width: 20px;
  height: 20px;
}

.value-prop strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.value-prop span {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* Home Sections */
.home-section {
  padding: 0 4%;
  margin-bottom: 56px;
}

.home-section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}

.home-section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.home-section-header .home-section-title {
  text-align: left;
  margin-bottom: 0;
}

.home-section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.home-section-link:hover {
  color: var(--color-accent-hover);
}

/* Category Grid */
.collections-section {
  margin-bottom: 56px;
}

.collections-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
}

.category-card-img {
  display: block;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  aspect-ratio: 4 / 5;
}

.category-card-img:hover {
  z-index: 1;
}

.category-card-img-photo {
  position: absolute;
  inset: 0;
  background: var(--color-bg-secondary);
}

.category-card-img-photo img,
.category-card-img-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.category-card-img:hover .category-card-img-photo img,
.category-card-img:hover .category-card-img-photo video {
  transform: scale(1.06);
}

.category-card-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.category-card-cta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.category-card-img:hover .category-card-cta {
  color: var(--color-accent);
}

/* Product Grid (fluid home override) */
.product-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-template-rows: 1fr;
  grid-auto-rows: 0;
  overflow-y: hidden;
  column-gap: var(--space-lg);
  row-gap: 0;
}

/* Brand Grid */
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.brand-chip {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.brand-chip:hover {
  background: #e0fffe;
  border-color: var(--color-accent);
  color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 206, 201, 0.15);
}

/* Marketplace Strip */
.home-section + .home-section,
.marketplace-strip {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.marketplace-strip {
  text-align: center;
  padding: 40px 16px;
  margin-bottom: var(--space-lg);
  background: var(--color-bg-secondary);
  border-radius: 16px;
  margin-left: 4%;
  margin-right: 4%;
}

.marketplace-strip p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.marketplace-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  background: #ffffff;
}

/* Home Page Responsive */
@media (max-width: 768px) {
  .hero-carousel { min-height: 400px; }
  .hero-slide-inner {
    flex-direction: column;
    padding: 40px 24px 56px;
    min-height: 400px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { justify-content: center; }
  .hero-images { display: none; }
  .hero-arrow { display: none; }

  /* Font size responsive (768px) */
  .hero-size-s .hero-title  { font-size: 28px; }
  .hero-size-l .hero-title  { font-size: 34px; }
  .hero-size-xl .hero-title { font-size: 40px; }

  .value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: -20px 16px 40px;
    padding: 20px;
  }

  .marketplace-strip { margin-left: 16px; margin-right: 16px; }

  .collections-grid {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .hero-carousel { min-height: 340px; }
  .hero-slide-inner { padding: 32px 16px 48px; min-height: 340px; }
  .hero-title { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Font size responsive (480px) */
  .hero-size-s .hero-title  { font-size: 22px; }
  .hero-size-l .hero-title  { font-size: 28px; }
  .hero-size-xl .hero-title { font-size: 30px; }
  .hero-font-display .hero-title { text-transform: none; }

  .value-props {
    grid-template-columns: 1fr;
    margin: -16px 12px 32px;
  }

  .marketplace-strip { margin-left: 12px; margin-right: 12px; }
}
