/* ============================================
   SILKYAN — Women's Activewear Storefront
   Design System: Athletic / Performance / Modern
   ============================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text-primary); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* === CSS VARIABLES === */
:root {
  /* Colors — Athletic Energy Palette */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F2F2F2;
  --color-border: #E0E0E0;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-text-muted: #8A8A8A;
  --color-accent: #E8542A;
  --color-accent-hover: #D04420;
  --color-accent-fg: #FFFFFF;
  --color-success: #2E7D32;
  --color-warning: #F57C00;
  --color-error: #C62828;
  --color-dark: #1A1A1A;
  --color-dark-alt: #2A2A2A;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
}

/* === CONTAINER === */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); width: 100%; }

/* === ANNOUNCEMENT BAR === */
.announcement-bar { background: linear-gradient(90deg, #111827 0%, #1F2937 50%, #111827 100%); color: #F9FAFB; text-align: center; padding: 8px var(--space-lg); font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.announcement-bar span { display: inline-flex; align-items: center; gap: 8px; }
.announcement-bar svg { width: 14px; height: 14px; }

/* === NAVIGATION === */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); height: 68px; display: flex; align-items: center; box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03); transition: background 0.3s ease, box-shadow 0.3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-lg); }

/* === LOGO === */
.nav-logo { font-family: var(--font-heading); font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #111827; white-space: nowrap; display: flex; align-items: center; gap: 2px; transition: transform 0.2s ease; }
.nav-logo:hover { transform: scale(1.02); }
.nav-logo span { color: var(--color-accent); background: linear-gradient(135deg, #E8542A 0%, #FF6B4A 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* === NAV LINKS === */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a, .nav-dropdown-toggle { font-size: 13px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: #374151; transition: color 0.2s ease; position: relative; padding: 8px 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-links > a:hover, .nav-dropdown:hover .nav-dropdown-toggle { color: var(--color-accent); }
.nav-links > a::after, .nav-dropdown-toggle::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 0; height: 2.5px; background: var(--color-accent); border-radius: 2px; transition: width 0.25s ease; }
.nav-links > a:hover::after, .nav-dropdown:hover .nav-dropdown-toggle::after { width: 100%; }
.chevron-icon { width: 14px; height: 14px; transition: transform 0.25s ease; }
.nav-dropdown:hover .chevron-icon { transform: rotate(180deg); }

/* === NAV DROPDOWN MENU === */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(10px); background: #FFFFFF; border-radius: 16px; padding: 12px; width: 320px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05); opacity: 0; visibility: hidden; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; z-index: 120; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background 0.2s ease, transform 0.2s ease; text-decoration: none; }
.nav-dropdown-menu a:hover { background: #FFF5F2; transform: translateX(4px); }
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-icon { width: 36px; height: 36px; border-radius: 8px; background: #F3F4F6; color: #374151; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; }
.nav-dropdown-icon svg { width: 18px; height: 18px; }
.nav-dropdown-menu a:hover .nav-dropdown-icon { background: var(--color-accent); color: #FFFFFF; }
.nav-dropdown-title { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.2; transition: color 0.2s ease; }
.nav-dropdown-menu a:hover .nav-dropdown-title { color: var(--color-accent); }
.nav-dropdown-desc { font-size: 11px; color: #6B7280; margin-top: 2px; font-weight: 400; }

/* === ACTIONS & SEARCH BAR === */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.search-bar { position: relative; }
.search-bar-desktop { width: 210px; transition: width 0.25s ease; }
.search-bar-desktop:focus-within { width: 250px; }
.search-bar input { width: 100%; padding: 9px 38px 9px 16px; border: 1px solid #E5E7EB; border-radius: 9999px; font-size: 13px; background: #F9FAFB; outline: none; transition: all 0.2s ease; color: #111827; }
.search-bar input::placeholder { color: #9CA3AF; }
.search-bar input:focus { border-color: var(--color-accent); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(232, 84, 42, 0.12); }
.search-bar svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9CA3AF; transition: color 0.2s ease; pointer-events: none; }
.search-bar input:focus + svg { color: var(--color-accent); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--color-surface); box-shadow: 0 16px 36px rgba(0,0,0,0.12); border-radius: var(--radius-md); max-height: 400px; overflow-y: auto; z-index: 150; display: none; }
.search-results.active { display: block; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px var(--space-md); border-bottom: 1px solid var(--color-border); transition: background var(--transition-fast); }
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.search-item-info { flex: 1; }
.search-item-title { font-size: 13px; font-weight: 500; }
.search-item-price { font-size: 13px; color: var(--color-accent); font-weight: 600; }

/* === CART ICON === */
.cart-icon-wrap { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #F9FAFB; border: 1px solid #E5E7EB; transition: all 0.2s ease; color: #374151; }
.cart-icon-wrap:hover { background: #FFF5F2; border-color: rgba(232, 84, 42, 0.3); color: var(--color-accent); transform: translateY(-1px); }
.cart-icon-wrap svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--color-accent); color: #FFFFFF; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #FFFFFF; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* === HAMBURGER / MOBILE MENU === */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: #111827; transition: all 0.25s ease; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu { position: fixed; top: 0; left: -100%; width: 320px; max-width: 85vw; height: 100vh; background: #FFFFFF; box-shadow: 0 20px 50px rgba(0,0,0,0.2); z-index: 200; transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; display: flex; flex-direction: column; }
.mobile-menu.active { left: 0; }
.mobile-menu-header { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #F3F4F6; }
.mobile-menu-close { width: 34px; height: 34px; border-radius: 50%; background: #F3F4F6; font-size: 16px; color: #4B5563; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; border: none; }
.mobile-menu-close:hover { background: var(--color-accent); color: #FFFFFF; }
.mobile-menu-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.mobile-nav-item { font-size: 15px; font-weight: 600; color: #111827; padding: 8px 0; border-bottom: 1px solid #F3F4F6; display: block; }
.mobile-nav-group { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-accent); margin-top: 4px; }
.mobile-nav-sub { font-size: 13px; font-weight: 500; color: #374151; padding: 8px 12px; border-radius: 8px; background: #F9FAFB; display: flex; align-items: center; justify-content: space-between; transition: background 0.2s ease; text-decoration: none; }
.mobile-nav-sub:hover { background: #FFF5F2; color: var(--color-accent); }
.mobile-nav-policies { margin-top: 12px; padding-top: 12px; border-top: 1px solid #F3F4F6; }
.mobile-nav-policies a { font-size: 12px; color: #6B7280; padding: 4px 0; display: block; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.25s ease; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* === HERO === */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.4) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 600px; padding: var(--space-3xl) var(--space-lg); }
.hero-eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--color-accent); margin-bottom: var(--space-sm); }
.hero-title { font-family: var(--font-heading); font-size: clamp(36px, 6vw, 64px); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin-bottom: var(--space-md); }
.hero-subtitle { font-size: 18px; line-height: 1.5; margin-bottom: var(--space-xl); max-width: 480px; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; font-size: 14px; font-weight: 600; border-radius: var(--radius-full); transition: all var(--transition-fast); text-align: center; white-space: nowrap; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-dark); color: #fff; }
.btn-secondary:hover { background: var(--color-dark-alt); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-text-primary); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-text-primary); background: var(--color-surface-alt); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-hero { background: var(--color-accent); color: #fff; }
.btn-hero:hover { background: var(--color-accent-hover); }
.btn-outline-hero { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-hero:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* === SECTIONS === */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--space-sm); }
.section-subtitle { font-size: 16px; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }

/* === GRIDS === */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-lg); }

/* === PRODUCT CARDS === */
.product-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-surface-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.product-card-info { padding: var(--space-md); }
.product-card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-sm); }
.product-card-price { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--color-text-primary); }
.product-card-compare { font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-atc { width: 100%; }

/* === COLLECTION CARDS === */
.collection-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; display: block; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.collection-card:hover img { transform: scale(1.08); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%); display: flex; align-items: flex-end; padding: var(--space-lg); }
.collection-card-title { color: #fff; font-family: var(--font-heading); font-size: 22px; font-weight: 700; text-transform: uppercase; }

/* === BLOG CARDS === */
.blog-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-info { padding: var(--space-md); }
.blog-card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.blog-card-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.blog-card-excerpt { font-size: 14px; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === BADGES === */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: var(--radius-sm); }
.badge-sale { background: var(--color-accent); color: #fff; }
.badge-new { background: var(--color-success); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }

/* === TRUST BADGES === */
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--space-lg); }
.trust-item svg { width: 36px; height: 36px; color: var(--color-accent); }
.trust-item-title { font-size: 14px; font-weight: 600; }
.trust-item-desc { font-size: 12px; color: var(--color-text-muted); }

/* === BREADCRUMB === */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: var(--space-md) 0; font-size: 13px; color: var(--color-text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-secondary); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-muted); }
.breadcrumb-item-current { color: var(--color-text-primary); font-weight: 500; }

/* === PRODUCT LAYOUT === */
.product-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-lg) 0 var(--space-2xl); }
.product-gallery { position: relative; }
.gallery-main-wrap { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-alt); margin-bottom: var(--space-md); }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color var(--transition-fast); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb:hover { border-color: var(--color-text-muted); }

/* === PRODUCT INFO === */
.product-info { display: flex; flex-direction: column; gap: var(--space-md); }
.product-vendor { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); }
.product-title { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 32px); font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.product-price-wrap { display: flex; align-items: center; gap: 10px; }
.product-price { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--color-text-primary); }
.product-compare-price { font-size: 18px; color: var(--color-text-muted); text-decoration: line-through; }
.product-rating { display: flex; align-items: center; gap: 6px; }
.rating-stars { display: inline-flex; gap: 2px; }
.rating-stars svg { width: 16px; height: 16px; color: #FFB800; }
.rating-stars svg.empty { color: var(--color-border); }
.rating-count { font-size: 13px; color: var(--color-text-muted); }

/* === OPTION SELECTORS === */
.option-group { margin-bottom: var(--space-md); }
.option-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }
.option-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn { padding: 8px 18px; border: 2px solid var(--color-border); border-radius: var(--radius-full); font-size: 14px; font-weight: 500; transition: all var(--transition-fast); background: var(--color-surface); }
.option-btn:hover { border-color: var(--color-text-primary); }
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* === QUANTITY CONTROL === */
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--color-text-secondary); transition: background var(--transition-fast); }
.qty-btn:hover { background: var(--color-surface-alt); }
.qty-input { width: 50px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); font-size: 15px; font-weight: 600; outline: none; }

/* === AVAILABILITY === */
.availability-msg { font-size: 14px; font-weight: 500; }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }

/* === ACCORDIONS === */
.product-short-desc { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--space-sm); }
.product-accordions { margin-top: var(--space-md); }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; }
.accordion-header:hover { color: var(--color-accent); }
.accordion-icon { transition: transform var(--transition-base); font-size: 20px; color: var(--color-text-muted); }
.accordion.active .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.accordion.active .accordion-body { max-height: 1000px; }
.accordion-body-inner { padding: 0 0 14px; font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.accordion-body-inner ul { padding-left: 20px; margin: 8px 0; }
.accordion-body-inner li { list-style: disc; margin-bottom: 4px; }

/* === STICKY ATC === */
.sticky-atc { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 12px rgba(0,0,0,0.08); padding: 10px var(--space-lg); z-index: 90; display: flex; align-items: center; gap: var(--space-md); transform: translateY(100%); transition: transform var(--transition-base); }
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sticky-atc-product img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-atc-product-info { min-width: 0; }
.sticky-atc-product-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-product-price { font-size: 14px; font-weight: 700; color: var(--color-accent); font-family: var(--font-mono); }

/* === REVIEWS === */
.reviews-section { margin-top: var(--space-2xl); }
.reviews-summary { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); margin-bottom: var(--space-xl); text-align: center; }
.reviews-avg { font-family: var(--font-heading); font-size: 48px; font-weight: 700; }
.reviews-score { display: flex; align-items: center; gap: 6px; }
.reviews-bars { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 300px; }
.rating-bar { display: flex; align-items: center; gap: 8px; }
.rating-bar-label { font-size: 13px; width: 40px; }
.rating-bar-track { flex: 1; height: 8px; background: var(--color-surface-alt); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: #FFB800; border-radius: var(--radius-full); }
.rating-bar-count { font-size: 12px; color: var(--color-text-muted); width: 30px; text-align: right; }
.review-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-md); }
.review-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--space-sm); }
.review-author { font-weight: 600; font-size: 15px; }
.review-verified { font-size: 12px; color: var(--color-success); display: inline-flex; align-items: center; gap: 4px; }
.review-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.review-body { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.review-date { font-size: 12px; color: var(--color-text-muted); }

/* === CART DRAWER === */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 250; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 400px; max-width: 90vw; height: 100vh; background: var(--color-surface); z-index: 260; transition: right var(--transition-base); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.cart-drawer.active { right: 0; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md); }
.cart-item { display: flex; gap: 12px; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item-variant { font-size: 12px; color: var(--color-text-muted); margin-bottom: 6px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--color-accent); font-family: var(--font-mono); }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; font-size: 16px; color: var(--color-text-secondary); }
.cart-item-qty button:hover { background: var(--color-surface-alt); }
.cart-item-qty span { width: 32px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item-remove { font-size: 12px; color: var(--color-text-muted); transition: color var(--transition-fast); }
.cart-item-remove:hover { color: var(--color-error); }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.cart-subtotal span { font-size: 15px; }
.cart-subtotal strong { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.cart-tax-note { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-md); text-align: center; }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-md); }
.cart-empty svg { width: 64px; height: 64px; color: var(--color-border); margin: 0 auto var(--space-md); }
.cart-empty p { font-size: 16px; color: var(--color-text-muted); margin-bottom: var(--space-md); }

/* === TOAST === */
.toast { position: fixed; bottom: 20px; right: 20px; padding: 14px 24px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; z-index: 300; opacity: 0; transform: translateY(20px); transition: all var(--transition-base); max-width: 350px; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--color-success); color: #fff; }
.toast-error { background: var(--color-error); color: #fff; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-xl); }
.pagination-btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: all var(--transition-fast); background: var(--color-surface); }
.pagination-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination-btn.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* === SORT BAR === */
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); gap: var(--space-md); flex-wrap: wrap; }
.sort-bar select { padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 14px; outline: none; background: var(--color-surface); cursor: pointer; }
.product-count-text { font-size: 14px; color: var(--color-text-muted); }

/* === FILTERS === */
.filter-section { margin-bottom: var(--space-lg); }
.filter-title { font-size: 14px; font-weight: 600; text-transform: uppercase; margin-bottom: var(--space-sm); }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; cursor: pointer; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--color-accent); }

/* === COLLECTION HERO === */
.collection-hero { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.collection-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.collection-hero-content { position: relative; z-index: 1; text-align: center; padding: var(--space-2xl) var(--space-lg); }
.collection-hero h1 { font-family: var(--font-heading); font-size: clamp(28px, 5vw, 44px); font-weight: 700; text-transform: uppercase; color: #fff; }

/* === FOOTER === */
.footer { background: #0F172A; color: #94A3B8; padding: var(--space-2xl) 0 var(--space-lg); border-top: 1px solid #1E293B; font-size: 14px; }
.footer-top-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); padding: 24px var(--space-xl); background: #1E293B; border-radius: 16px; margin-bottom: var(--space-2xl); border: 1px solid rgba(255, 255, 255, 0.05); }
.footer-trust-item { display: flex; align-items: center; gap: 12px; }
.footer-trust-icon { font-size: 24px; width: 44px; height: 44px; border-radius: 12px; background: rgba(232, 84, 42, 0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-trust-title { font-size: 14px; font-weight: 600; color: #F8FAFC; line-height: 1.2; }
.footer-trust-desc { font-size: 12px; color: #94A3B8; margin-top: 2px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: #F8FAFC; position: relative; display: inline-block; }
.footer-col h3::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 24px; height: 2px; background: var(--color-accent); border-radius: 2px; }
.footer-col p.footer-brand-desc { font-size: 14px; color: #94A3B8; line-height: 1.7; margin-bottom: 18px; max-width: 340px; }
.footer-contact-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.footer-contact-info p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #CBD5E1; }
.footer-contact-info a { color: #CBD5E1; text-decoration: none; transition: color 0.2s ease; display: inline !important; padding: 0 !important; }
.footer-contact-info a:hover { color: var(--color-accent); }

.footer-col a { display: block; font-size: 13.5px; color: #94A3B8; padding: 6px 0; transition: all 0.2s ease; text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); transform: translateX(4px); }

.footer-logo { font-family: var(--font-heading); font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; color: #F8FAFC; }
.footer-logo span { color: var(--color-accent); }

.social-links { display: flex; gap: 10px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: #1E293B; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; padding: 0 !important; }
.social-links a:hover { background: var(--color-accent); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; color: #F8FAFC; }

.footer-bottom { border-top: 1px solid #1E293B; padding-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: 13px; color: #64748B; }
.footer-badges { display: flex; gap: 8px; font-size: 12px; font-weight: 600; color: #94A3B8; }
.footer-badges span { background: #1E293B; padding: 4px 10px; border-radius: 9999px; }
.footer-payment-icons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.payment-badge { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 10px; background: #1E293B; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: #CBD5E1; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; transition: all 0.2s ease; cursor: default; }
.payment-badge:hover { border-color: var(--color-accent); background: #334155; color: #FFFFFF; transform: translateY(-1px); }

/* === SKELETON === */
.skeleton { background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }

/* === POLICY PAGES === */
.policy-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-xl) 0; }
.policy-sidebar { position: sticky; top: calc(var(--header-height) + var(--space-md)); }
.policy-sidebar a { display: block; padding: 10px var(--space-md); font-size: 14px; font-weight: 500; color: var(--color-text-secondary); border-radius: var(--radius-sm); transition: all var(--transition-fast); margin-bottom: 4px; }
.policy-sidebar a:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.policy-sidebar a.active { background: var(--color-accent); color: #fff; }
.policy-content h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; text-transform: uppercase; margin-bottom: var(--space-lg); }
.policy-content h2 { font-size: 22px; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); }
.policy-content h3 { font-size: 18px; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
.policy-content p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }
.policy-content ul { padding-left: 20px; margin-bottom: var(--space-md); }
.policy-content li { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 6px; list-style: disc; }
.policy-content strong { color: var(--color-text-primary); }

/* === PAGE CONTENT === */
.page-content { max-width: 800px; margin: 0 auto; padding: var(--space-xl) 0 var(--space-2xl); }
.page-content h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; text-transform: uppercase; margin-bottom: var(--space-lg); }
.page-content h2 { font-size: 22px; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
.page-content p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }
.page-content ul { padding-left: 20px; margin-bottom: var(--space-md); }
.page-content li { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 6px; list-style: disc; }
.page-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }
.page-content table { margin: var(--space-md) 0; }
.page-content th, .page-content td { padding: 10px var(--space-md); border: 1px solid var(--color-border); font-size: 14px; text-align: left; }
.page-content th { background: var(--color-surface-alt); font-weight: 600; }

/* === CONTACT FORM === */
.contact-form { max-width: 600px; margin: var(--space-lg) 0; }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 15px; outline: none; transition: border-color var(--transition-fast); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-error { font-size: 13px; color: var(--color-error); margin-top: 4px; }
.form-success { background: var(--color-success); color: #fff; padding: 12px var(--space-md); border-radius: var(--radius-md); font-size: 14px; margin-bottom: var(--space-md); }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 16px; font-weight: 600; cursor: pointer; user-select: none; }
.faq-question:hover { color: var(--color-accent); }
.faq-icon { transition: transform var(--transition-base); font-size: 22px; color: var(--color-text-muted); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 16px; font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; }

/* === NEWSLETTER === */
.newsletter { text-align: center; padding: var(--space-2xl) var(--space-lg); background: var(--color-dark); color: #fff; }
.newsletter h2 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; text-transform: uppercase; margin-bottom: var(--space-sm); }
.newsletter p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: var(--space-lg); }
.newsletter-form { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 12px 20px; border: none; border-radius: var(--radius-full); font-size: 15px; outline: none; }
.newsletter-form button { padding: 12px 28px; }

/* === 404 PAGE === */
.error-page { text-align: center; padding: var(--space-3xl) var(--space-lg); }
.error-page h1 { font-family: var(--font-heading); font-size: 120px; font-weight: 700; color: var(--color-accent); line-height: 1; }
.error-page h2 { font-size: 24px; font-weight: 600; margin-bottom: var(--space-md); }
.error-page p { font-size: 16px; color: var(--color-text-muted); margin-bottom: var(--space-lg); }

/* === BLOG === */
.blog-hero { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.blog-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.blog-hero-content { position: relative; z-index: 1; text-align: center; }
.blog-hero h1 { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 48px); font-weight: 700; text-transform: uppercase; color: #fff; }
.blog-featured { margin: var(--space-xl) 0; }
.blog-featured-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; display: block; }
.blog-featured-card img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%); display: flex; align-items: flex-end; padding: var(--space-xl); }
.blog-featured-content { color: #fff; }
.blog-featured-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }

.article-hero { position: relative; min-height: 400px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%); }
.article-hero-content { position: relative; z-index: 1; padding: var(--space-2xl) var(--space-lg); color: #fff; max-width: 800px; }
.article-hero-content h1 { font-family: var(--font-heading); font-size: clamp(28px, 5vw, 40px); font-weight: 700; margin-bottom: var(--space-sm); }
.article-meta { display: flex; align-items: center; gap: var(--space-md); font-size: 14px; color: rgba(255,255,255,0.8); }
.article-content { max-width: 800px; margin: 0 auto; padding: var(--space-xl) 0; }
.article-content p { font-size: 16px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: var(--space-md); }
.article-content h2 { font-size: 24px; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); }
.article-content h3 { font-size: 20px; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
.article-content ul { padding-left: 20px; margin-bottom: var(--space-md); }
.article-content li { font-size: 16px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 6px; list-style: disc; }
.article-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }
.article-share { display: flex; gap: 10px; margin: var(--space-lg) 0; padding: var(--space-lg) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.article-share button { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-surface-alt); display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); }
.article-share button:hover { background: var(--color-accent); color: #fff; }
.article-share svg { width: 18px; height: 18px; }

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: 240px 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu, .mobile-menu-overlay { display: none; }
  .search-bar-desktop { display: block; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .search-bar-desktop { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 400px; }
  .hero-content { padding: var(--space-2xl) var(--space-lg); }
  .section { padding: var(--space-xl) 0; }
  .sticky-atc { padding: 8px var(--space-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* === ACCESSIBILITY === */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* === SPINNER === */
.spinner { width: 20px; height: 20px; border: 2px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* === MISC === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.hide { display: none !important; }
