/* ==========================================================================
   PUFF — Playful 3D / Neumorphism Design Tokens
   Deliberately distinct from AURA (minimal, top header), RIOT (bold
   streetwear, top header) and TERRA (organic editorial, sidebar): soft
   pastel palette, neumorphic depth via dual shadows, bottom tab-bar
   navigation like a mobile consumer app, chunky rounded "puffy" shapes.
   ========================================================================== */
:root {
  --base: #EEF1F8;
  --base-raised: #F5F7FC;
  --ink: #2B2A4C;
  --ink-soft: #6E6D93;
  --white: #FFFFFF;

  --bubble: #FFB3C7;
  --lilac: #B3A7F0;
  --mint: #7FE0C6;
  --sun: #FFD873;
  --sky: #8FCFFF;

  --accent: #7C6CF0;
  --accent-dark: #6152D9;
  --accent-soft: #E6E2FD;
  --success: #3FC98A;
  --error: #FF6B7A;

  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-sans: "Nunito Sans", "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-button: 999px;
  --radius-lg: 28px;
  --radius-card: 32px;

  /* Neumorphic dual shadow: light source top-left */
  --neu-out: 8px 8px 16px rgba(163,169,194,0.45), -8px -8px 16px rgba(255,255,255,0.9);
  --neu-out-sm: 4px 4px 8px rgba(163,169,194,0.4), -4px -4px 8px rgba(255,255,255,0.85);
  --neu-in: inset 5px 5px 10px rgba(163,169,194,0.4), inset -5px -5px 10px rgba(255,255,255,0.85);
  --shadow-sm: var(--neu-out-sm);
  --shadow-md: var(--neu-out);
  --shadow-lg: 14px 14px 28px rgba(163,169,194,0.5), -14px -14px 28px rgba(255,255,255,0.95);

  --ease-micro: 180ms cubic-bezier(.34,1.56,.64,1);
  --ease-base: 320ms cubic-bezier(.34,1.56,.64,1);
  --ease-page: 460ms cubic-bezier(.22,1,.36,1);

  --container: 1280px;
  --bottomnav-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--base);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  padding-bottom: var(--bottomnav-height);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, select { font-family: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }

.section { padding: var(--space-16) 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-8); gap: var(--space-6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: var(--space-3);
}
.eyebrow::before { content: "●"; color: var(--bubble); font-size: 10px; }
.section-header h2 { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--accent-dark);
  background: var(--white); padding: 10px 18px; border-radius: var(--radius-button);
  box-shadow: var(--neu-out-sm);
  transition: transform var(--ease-micro), box-shadow var(--ease-micro);
}
.section-link:hover { transform: translateY(-2px); box-shadow: var(--neu-out); }

/* ==========================================================================
   Top status bar — minimal, most nav lives in the bottom tab bar
   ========================================================================== */
.top-bar {
  position: sticky; top: 0; z-index: 90;
  background: var(--base);
  padding: var(--space-4) 0;
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.top-logo { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.top-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bubble); box-shadow: 0 0 0 4px var(--accent-soft); }
.top-actions { display: flex; align-items: center; gap: var(--space-3); }

.neu-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--base);
  box-shadow: var(--neu-out-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  position: relative;
  transition: box-shadow var(--ease-micro), transform var(--ease-micro);
}
.neu-btn:hover { transform: translateY(-2px); }
.neu-btn:active { box-shadow: var(--neu-in); transform: translateY(0); }
.neu-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--bubble); color: var(--ink);
  font-size: 10px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  box-shadow: 0 2px 4px rgba(255,179,199,0.6);
  border: 2px solid var(--base);
}

.search-pill {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--base); border-radius: var(--radius-button);
  padding: 0 var(--space-5); height: 46px; width: 260px;
  box-shadow: var(--neu-in);
  transition: box-shadow var(--ease-micro);
}
.search-pill input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; font-weight: 600; color: var(--ink); }
.search-pill input::placeholder { color: var(--ink-soft); }
.search-pill svg { color: var(--ink-soft); flex-shrink: 0; }

.announce-bar {
  background: var(--accent); color: var(--white);
  text-align: center; font-size: 12px; font-weight: 700;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-button);
  margin: var(--space-4) auto 0; max-width: fit-content;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-button);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; border: none;
  transition: transform var(--ease-micro), box-shadow var(--ease-micro), background var(--ease-micro);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 6px 0 #1a1933; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1a1933; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #1a1933; }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 6px 0 var(--accent-dark); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--accent-dark); }
.btn-accent:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--accent-dark); }
.btn-outline { background: var(--base); color: var(--ink); box-shadow: var(--neu-out-sm); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--neu-out); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--base-raised); }
.btn-sm { height: 42px; padding: 0 var(--space-5); font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-icon { width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--base); box-shadow: var(--neu-out-sm); }
.btn-icon:hover { transform: translateY(-2px); }

/* ==========================================================================
   Hero — big rounded card, floating blob accents
   ========================================================================== */
.hero { padding: var(--space-8) 0 var(--space-10); }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--lilac) 0%, var(--bubble) 100%);
  border-radius: var(--radius-card);
  padding: var(--space-16) var(--space-12);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center;
  box-shadow: var(--shadow-lg);
}
.hero-blob-a, .hero-blob-b {
  position: absolute; border-radius: 50%; filter: blur(2px);
  animation: floaty 7s ease-in-out infinite;
}
.hero-blob-a { width: 140px; height: 140px; background: var(--sun); opacity: 0.55; top: -30px; right: 80px; }
.hero-blob-b { width: 90px; height: 90px; background: var(--mint); opacity: 0.6; bottom: 20px; right: 20px; animation-delay: 1.5s; animation-duration: 9s; }
@keyframes floaty { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.06); } }

.hero-copy .eyebrow { color: var(--ink); background: rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 999px; }
.hero-copy .eyebrow::before { color: var(--accent-dark); }
.hero-copy h1 { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1.05; color: var(--ink); margin-bottom: var(--space-5); animation: heroUp var(--ease-page) both; }
.hero-copy p { font-size: 16px; font-weight: 600; color: var(--ink); opacity: 0.75; max-width: 400px; margin-bottom: var(--space-8); animation: heroUp var(--ease-page) both; animation-delay: 80ms; }
.hero-copy .hero-cta { display: flex; gap: var(--space-4); animation: heroUp var(--ease-page) both; animation-delay: 150ms; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-visual { position: relative; }
.hero-visual-card { position: relative; z-index: 2; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.hero-visual-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-sticker {
  position: absolute; z-index: 3; background: var(--white); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 13px; font-weight: 800; color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
}
.hero-sticker-1 { top: 10%; left: -8%; animation-delay: 0.5s; }
.hero-sticker-2 { bottom: 8%; left: -4%; animation-delay: 2s; }
.hero-sticker .icon-circle { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ==========================================================================
   Advantages — puffy pill row
   ========================================================================== */
.advantages .container { display: flex; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-6) 0; }
.advantage {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--white); border-radius: var(--radius-button);
  padding: var(--space-3) var(--space-5); box-shadow: var(--neu-out-sm);
  flex: 1; min-width: 220px;
}
.advantage .icon-wrap { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.advantage:nth-child(1) .icon-wrap { background: var(--bubble); }
.advantage:nth-child(2) .icon-wrap { background: var(--mint); }
.advantage:nth-child(3) .icon-wrap { background: var(--sky); }
.advantage:nth-child(4) .icon-wrap { background: var(--sun); }
.advantage strong { display: block; font-size: 13px; font-weight: 800; }
.advantage span { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   Categories — bubble grid with playful rotation
   ========================================================================== */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.category-card {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  aspect-ratio: 1/1; background: var(--white);
  box-shadow: var(--neu-out); border: 5px solid var(--white);
  transition: transform var(--ease-base), box-shadow var(--ease-base);
}
.category-card:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: var(--shadow-lg); }
.category-card .cat-bg { position: absolute; inset: 0; transition: transform var(--ease-page); }
.category-card:hover .cat-bg { transform: scale(1.1); }
.category-card .cat-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43,42,76,0.6) 0%, rgba(43,42,76,0) 55%); }
.category-card .cat-label { position: absolute; left: var(--space-4); bottom: var(--space-4); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.category-card .cat-label span { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.product-card {
  position: relative; animation: cardIn var(--ease-base) both;
  background: var(--white); border-radius: var(--radius-card); padding: var(--space-4);
  box-shadow: var(--neu-out-sm); transition: transform var(--ease-base), box-shadow var(--ease-base);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.product-media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; background: var(--base); margin-bottom: var(--space-4); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--ease-base), transform var(--ease-page); }
.product-media .img-primary { opacity: 1; }
.product-media .img-secondary { opacity: 0; }
.product-card:hover .img-primary { opacity: 0; transform: scale(1.05); }
.product-card:hover .img-secondary { opacity: 1; transform: scale(1.05); }

.product-badges { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-family: var(--font-display); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--white); width: fit-content; box-shadow: 0 3px 0 rgba(0,0,0,0.1); }
.badge-sale { background: var(--bubble); color: var(--ink); }
.badge-new { background: var(--mint); color: var(--ink); }
.badge-limited { background: var(--sun); color: var(--ink); }
.badge-out { background: var(--ink-soft); }

.wishlist-btn {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); box-shadow: var(--neu-out-sm);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease-micro); color: var(--ink);
}
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn.active { background: var(--bubble); color: var(--ink); }
.wishlist-btn.active svg { fill: var(--ink); }
.wishlist-btn.pop { animation: wishPop 420ms cubic-bezier(.34,1.9,.64,1); }
@keyframes wishPop { 0% { transform: scale(1); } 45% { transform: scale(1.4) rotate(-8deg); } 100% { transform: scale(1); } }

.product-quickbar { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); display: flex; gap: var(--space-2); opacity: 0; transform: translateY(8px); transition: opacity var(--ease-base), transform var(--ease-base); z-index: 2; }
.product-card:hover .product-quickbar { opacity: 1; transform: translateY(0); }
.product-quickbar .btn { flex: 1; height: 42px; font-size: 12px; padding: 0 var(--space-3); box-shadow: 0 4px 0 var(--accent-dark); }
.product-quickbar .btn-icon-sm { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: none; display: flex; align-items: center; justify-content: center; box-shadow: var(--neu-out-sm); }

.product-info .brand { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.02em; }
.product-info .title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.product-price { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; }
.product-price .current { font-size: 15px; font-weight: 800; }
.product-price .old { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.product-price .discount { font-size: 11px; font-weight: 800; color: var(--white); background: var(--bubble); padding: 2px 8px; border-radius: 999px; }

.swatches { display: flex; gap: 6px; margin-bottom: 4px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--base); cursor: pointer; }
.swatch.more { font-size: 10px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; }

.product-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.product-meta .stars { color: var(--sun); filter: drop-shadow(0 1px 0 rgba(0,0,0,0.1)); letter-spacing: 1px; font-size: 12px; }

/* ==========================================================================
   Editorial split
   ========================================================================== */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.editorial-panel { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/5; background: var(--base); box-shadow: var(--neu-out); border: 5px solid var(--white); }
.editorial-panel .ed-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43,42,76,0.65), transparent 55%); }
.editorial-panel .ed-copy { position: absolute; left: var(--space-6); bottom: var(--space-6); color: var(--white); max-width: 320px; }
.editorial-panel .ed-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: var(--space-3); line-height: 1.15; }
.editorial-panel .ed-copy a { font-size: 13px; font-weight: 700; background: var(--white); color: var(--ink); padding: 8px 16px; border-radius: 999px; display: inline-block; }

/* ==========================================================================
   Brand strip
   ========================================================================== */
.brand-strip { display: flex; align-items: center; justify-content: space-between; background: var(--white); border-radius: var(--radius-card); padding: var(--space-6) var(--space-8); box-shadow: var(--neu-out-sm); overflow-x: auto; }
.brand-strip span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-soft); opacity: 0.5; transition: opacity var(--ease-micro); white-space: nowrap; }
.brand-strip span:hover { opacity: 1; color: var(--accent); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.review-card { background: var(--white); border-radius: var(--radius-card); padding: var(--space-6); box-shadow: var(--neu-out-sm); transition: transform var(--ease-base), box-shadow var(--ease-base); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--neu-out); }
.review-card .stars { color: var(--sun); font-size: 15px; margin-bottom: var(--space-3); letter-spacing: 2px; }
.review-card p { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: var(--space-4); }
.review-author { display: flex; align-items: center; gap: var(--space-3); }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--lilac), var(--sky)); }
.review-author strong { font-size: 13px; display: block; font-weight: 800; }
.review-author span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { background: linear-gradient(135deg, var(--accent) 0%, var(--lilac) 100%); border-radius: var(--radius-card); padding: var(--space-16) var(--space-12); text-align: center; color: var(--white); box-shadow: var(--shadow-lg); }
.newsletter h2 { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-bottom: var(--space-3); }
.newsletter p { font-weight: 600; opacity: 0.9; margin-bottom: var(--space-6); }
.newsletter-form { display: flex; gap: var(--space-3); max-width: 420px; margin: 0 auto; }
.newsletter-form input { flex: 1; height: 52px; border-radius: var(--radius-button); border: none; background: rgba(255,255,255,0.2); color: var(--white); padding: 0 var(--space-5); font-size: 14px; font-weight: 600; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.75); }
.newsletter-form .btn { height: 52px; background: var(--ink); box-shadow: 0 6px 0 #1a1933; }

/* ==========================================================================
   Footer — compact, since bottom nav owns primary navigation
   ========================================================================== */
.site-footer { padding: var(--space-16) 0 var(--space-10); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-8); padding-bottom: var(--space-10); }
.footer-grid h4 { font-size: 13px; font-weight: 800; margin-bottom: var(--space-4); color: var(--accent-dark); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: color var(--ease-micro); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: var(--space-3); }
.footer-brand p { font-size: 13px; font-weight: 600; color: var(--ink-soft); max-width: 260px; margin-bottom: var(--space-5); }
.lang-switch { display: flex; gap: var(--space-2); }
.lang-switch button { font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--white); box-shadow: var(--neu-out-sm); transition: all var(--ease-micro); }
.lang-switch button.active { background: var(--accent); color: var(--white); box-shadow: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-6); border-top: 2px solid var(--white); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a:hover { color: var(--accent); }

/* ==========================================================================
   Bottom Tab Bar — replaces the top/sidebar navigation used elsewhere
   ========================================================================== */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--space-4);
  z-index: 100;
  display: flex; align-items: center; gap: 4px;
  background: var(--white); border-radius: var(--radius-button);
  padding: 8px; box-shadow: var(--shadow-lg);
}
.bottom-nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 64px; height: 56px; border-radius: var(--radius-button);
  font-size: 10px; font-weight: 800; color: var(--ink-soft);
  transition: all var(--ease-micro);
}
.bottom-nav a:hover { color: var(--ink); }
.bottom-nav a.active { background: var(--accent); color: var(--white); transform: translateY(-6px); box-shadow: 0 6px 0 var(--accent-dark); }
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav-badge {
  position: absolute; top: 2px; right: 10px;
  background: var(--bubble); color: var(--ink);
  font-size: 9px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--white);
}

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
.overlay { position: fixed; inset: 0; background: rgba(43,42,76,0.35); opacity: 0; pointer-events: none; transition: opacity var(--ease-base); z-index: 200; backdrop-filter: blur(2px); }
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: var(--space-4); right: var(--space-4); bottom: var(--space-4); width: 420px; max-width: calc(92vw - 32px);
  background: var(--base); z-index: 201; border-radius: var(--radius-card);
  transform: translateX(calc(100% + 32px)); transition: transform var(--ease-page);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); }
.drawer-header h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.cart-item { display: flex; gap: var(--space-4); background: var(--white); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--neu-out-sm); animation: cardIn var(--ease-base) both; }
.cart-item img { width: 70px; height: 88px; border-radius: var(--radius-sm); object-fit: cover; background: var(--base); }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.cart-item-info .variant { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-bottom: var(--space-2); }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; background: var(--base); border-radius: 999px; box-shadow: var(--neu-in); padding: 2px; }
.qty-control button {
  width: 32px; height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--ink); border-radius: 50%;
  transition: background var(--ease-micro), color var(--ease-micro);
}
.qty-control button:hover { background: var(--accent); color: var(--white); }
.qty-control button:active { background: var(--accent-dark); color: var(--white); }
.qty-control span { width: 28px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-item .price { font-size: 13px; font-weight: 800; }
.cart-item .remove { font-size: 11px; color: var(--ink-soft); font-weight: 700; margin-top: var(--space-2); }
.cart-item .remove:hover { color: var(--error); }

.drawer-footer { padding: var(--space-5) var(--space-6) var(--space-6); }
.promo-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.promo-row input { flex: 1; height: 44px; border: none; background: var(--white); box-shadow: var(--neu-in); border-radius: var(--radius-button); padding: 0 var(--space-4); font-size: 13px; font-weight: 600; outline: none; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: var(--space-2); }
.summary-row.total { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: var(--space-3); }
.cart-empty { text-align: center; padding: var(--space-16) var(--space-6); color: var(--ink-soft); }
.cart-empty svg { color: var(--white); filter: drop-shadow(var(--neu-out-sm)); margin-bottom: var(--space-4); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-stack { position: fixed; bottom: calc(var(--bottomnav-height) + 24px); left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.toast { background: var(--ink); color: var(--white); padding: var(--space-3) var(--space-5); border-radius: var(--radius-button); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--space-2); animation: toastIn var(--ease-base) both; }
.toast svg { color: var(--mint); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ==========================================================================
   Catalog page
   ========================================================================== */
.catalog-header { padding: var(--space-6) 0 var(--space-6); }
.breadcrumbs { display: flex; gap: var(--space-2); font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: var(--space-4); }
.breadcrumbs a:hover { color: var(--accent); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; background: var(--white); border-radius: var(--radius-button); padding: var(--space-3) var(--space-5); margin-bottom: var(--space-8); box-shadow: var(--neu-out-sm); }
.result-count { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.toolbar-actions { display: flex; align-items: center; gap: var(--space-4); }
.view-toggle { display: flex; gap: 4px; background: var(--base); border-radius: var(--radius-button); padding: 4px; }
.view-toggle button { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.view-toggle button.active { background: var(--white); box-shadow: var(--neu-out-sm); }
.sort-select {
  height: 40px; border: none; border-radius: var(--radius-button); padding: 0 34px 0 var(--space-4); font-size: 13px; font-weight: 700; background: var(--base); box-shadow: var(--neu-in);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237C6CF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}

.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); align-items: start; }
.filters-panel { position: sticky; top: var(--space-6); background: var(--white); border-radius: var(--radius-card); padding: var(--space-6); box-shadow: var(--neu-out-sm); }
.filter-group { border-bottom: 2px solid var(--base); padding: var(--space-5) 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; font-size: 16px; font-weight: 700; color: var(--accent); }
.filter-group[open] summary::after { content: "–"; }
.filter-body { padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.filter-option { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; font-weight: 600; cursor: pointer; }
.filter-option input[type="checkbox"] { appearance: none; width: 20px; height: 20px; background: var(--base); box-shadow: var(--neu-in); border-radius: 8px; position: relative; flex-shrink: 0; transition: all var(--ease-micro); }
.filter-option input[type="checkbox"]:checked { background: var(--accent); box-shadow: none; }
.filter-option input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filter-option .count { color: var(--ink-soft); opacity: 0.7; margin-left: auto; }
.color-swatch-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.color-swatch-row button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--neu-out-sm); }
.color-swatch-row button.active { box-shadow: 0 0 0 3px var(--accent); }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.size-grid button { height: 38px; background: var(--base); box-shadow: var(--neu-out-sm); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; transition: all var(--ease-micro); }
.size-grid button:hover { transform: translateY(-2px); }
.size-grid button.active { background: var(--ink); color: var(--white); box-shadow: none; }
.price-range { padding: var(--space-2) 0; }
.price-range input[type="range"] { width: 100%; accent-color: var(--accent); }
.price-range .values { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-top: var(--space-2); }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.active-filter-chip { display: flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; padding: 6px 10px 6px 12px; border-radius: 999px; }
.active-filter-chip button { display: flex; }

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-10); }
.pagination button { width: 40px; height: 40px; border-radius: 50%; font-size: 13px; font-weight: 700; background: var(--white); box-shadow: var(--neu-out-sm); transition: all var(--ease-micro); }
.pagination button.active { background: var(--ink); color: var(--white); box-shadow: none; }
.pagination button:hover:not(.active) { transform: translateY(-2px); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: var(--space-3) var(--space-5); z-index: 999; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) {
  .hero-card { grid-template-columns: 1fr; padding: var(--space-10) var(--space-6); }
  .hero-visual { max-width: 400px; margin: var(--space-8) auto 0; }
  .hero-sticker-1 { left: 2%; }
  .hero-sticker-2 { left: 4%; }
  .product-grid, .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; }
  .search-pill { display: none; }
  .advantages .container { flex-direction: column; }
}
@media (max-width: 640px) {
  .product-grid, .categories-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 32px; }
  .hero-sticker { font-size: 11px; padding: var(--space-2) var(--space-3); }
  .newsletter { padding: var(--space-10) var(--space-6); }
  .newsletter-form { flex-direction: column; }
  .cart-drawer { left: var(--space-2); right: var(--space-2); top: var(--space-2); bottom: var(--space-2); max-width: none; }
  .bottom-nav { bottom: var(--space-2); padding: 6px; }
  .bottom-nav a { width: 54px; }
  .bottom-nav a span { display: none; }
}
