/* ═══════════════════════════════════════════════
   WANUZA — Loja de Crochê
   Estilos: clamp, grid, sem medidas fixas
═══════════════════════════════════════════════ */

/* ── FONT (auto-hospedada, funciona offline) ─ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/inter-800.woff2') format('woff2');
}

/* ── CUSTOM PROPERTIES ────────────────────── */
:root {
  /* Brand */
  --orange: #FF5722;
  --orange-dark: #E64A19;
  --orange-light: #FF7043;
  --orange-faint: rgba(255, 87, 34, 0.08);
  --orange-faint2: rgba(255, 87, 34, 0.15);

  /* Light theme */
  --bg: #FAFAFA;
  --bg-2: #FFFFFF;
  --bg-3: #F4F4F4;
  --fg: #121212;
  --fg-2: #3A3A3A;
  --fg-muted: #555555;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-float: 0 12px 40px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.08);
  --header-bg: rgba(250, 250, 250, 0.92);
  --nav-bg: rgba(255, 255, 255, 0.96);

  /* Radius */
  --radius-sm: clamp(8px, 1.5vw, 12px);
  --radius-md: clamp(12px, 2.5vw, 18px);
  --radius-lg: clamp(18px, 3.5vw, 24px);
  --radius-xl: clamp(22px, 4vw, 32px);
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: clamp(6px, 1.5vw, 8px);
  --space-sm: clamp(10px, 2vw, 14px);
  --space-md: clamp(14px, 3vw, 20px);
  --space-lg: clamp(20px, 4vw, 28px);
  --space-xl: clamp(28px, 5vw, 40px);

  /* Font sizes — min 15px */
  --text-xs: clamp(15px, 3.2vw, 15px);
  --text-sm: clamp(15px, 3.5vw, 16px);
  --text-base: clamp(15px, 3.8vw, 17px);
  --text-md: clamp(16px, 4vw, 18px);
  --text-lg: clamp(18px, 4.5vw, 22px);
  --text-xl: clamp(20px, 5vw, 26px);
  --text-2xl: clamp(24px, 6vw, 34px);
  --text-3xl: clamp(28px, 7.5vw, 44px);

  /* Transition */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Font */
  --font: 'Inter', 'Helvetica Neue', 'Arial', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #111111;
  --bg-2: #1C1C1C;
  --bg-3: #242424;
  --fg: #F4F4F4;
  --fg-2: #CCCCCC;
  --fg-muted: #777777;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.30), 0 1px 3px rgba(0,0,0,0.20);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.40), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.50), 0 4px 12px rgba(0,0,0,0.30);
  --shadow-float: 0 12px 40px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.35);
  --header-bg: rgba(17, 17, 17, 0.94);
  --nav-bg: rgba(28, 28, 28, 0.97);
  --orange-faint: rgba(255, 87, 34, 0.12);
  --orange-faint2: rgba(255, 87, 34, 0.20);
}

/* ── 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);
  font-size: var(--text-base);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input { font-family: var(--font); }

/* ── APP LAYOUT ───────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 860px) {
  .app { max-width: 100%; }
}

.main {
  flex: 1;
  padding-bottom: clamp(80px, 15vw, 100px);
}

/* ── HEADER ───────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  height: clamp(56px, 12vw, 68px);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow);
}

.logo {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  user-select: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 42px);
  height: clamp(36px, 8vw, 42px);
  border-radius: var(--radius-full);
  color: var(--fg);
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover { background: var(--bg-3); }
.icon-btn:active { transform: scale(0.92); }

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--orange);
  border: 2px solid var(--bg-2);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-2);
  transition: transform var(--transition);
}

.cart-badge[data-count="0"] { display: none; }

/* Theme icon switching */
[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

/* ── SEARCH ───────────────────────────────── */
.search-wrap {
  padding: var(--space-md) var(--space-md) 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 var(--space-md);
  height: clamp(44px, 10vw, 52px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-faint), var(--shadow-sm);
}

.search-icon { color: var(--fg-muted); flex-shrink: 0; }

.search-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: var(--text-sm);
  color: var(--fg);
  outline: none;
  min-width: 0;
}

.search-box input::placeholder { color: var(--fg-muted); }

.search-clear {
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-full);
  transition: color var(--transition);
}
.search-clear:hover { color: var(--fg); }

/* ── CAROUSEL ─────────────────────────────── */
.carousel-section {
  padding: var(--space-md) var(--space-md) 0;
}

.carousel-viewport {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg);
  min-height: clamp(180px, 40vw, 230px);
  position: relative;
  overflow: hidden;
  gap: var(--space-md);
}

.slide-dark {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
}

.slide-warm {
  background: linear-gradient(135deg, #3D2314 0%, #6B3A22 100%);
  color: #fff;
}

.slide-cool {
  background: linear-gradient(135deg, #1A2A3A 0%, #2C4A6A 100%);
  color: #fff;
}

.slide-content {
  flex: 1;
  z-index: 1;
  max-width: 60%;
}

.slide-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 3px clamp(8px, 2vw, 12px);
  margin-bottom: var(--space-sm);
  backdrop-filter: blur(4px);
}

.slide-title {
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.slide-title em {
  font-style: normal;
  color: var(--orange-light);
}

.slide-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-md);
  line-height: 1.45;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: clamp(8px, 2vw, 10px) clamp(14px, 3vw, 20px);
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.slide-btn:hover { background: var(--orange-dark); }
.slide-btn:active { transform: scale(0.95); }

/* Carousel Art */
.slide-art {
  flex-shrink: 0;
  position: relative;
  width: clamp(90px, 22vw, 130px);
  height: clamp(90px, 22vw, 130px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yarn-art { position: relative; width: 100%; height: 100%; }

.yarn-ball {
  position: absolute;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, #FF8A65, #FF5722);
}
.y1 {
  width: 65%;
  height: 65%;
  top: 10%;
  right: 0;
  box-shadow: 0 6px 20px rgba(255,87,34,0.4);
}
.y2 {
  width: 48%;
  height: 48%;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 35% 35%, #FFCCBC, #FF8A65);
  opacity: 0.8;
}
.yarn-strand {
  position: absolute;
  bottom: 18%;
  left: 22%;
  width: 55%;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: var(--radius-full);
  transform: rotate(-20deg);
}

.rug-art {
  width: 80%;
  height: 80%;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(
    45deg,
    #FF8A65 0px, #FF8A65 4px,
    #FFCCBC 4px, #FFCCBC 12px
  );
  opacity: 0.85;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.bag-art {
  width: 70%;
  height: 80%;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, #5C9BD6 0%, #3A7FBF 100%);
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.bag-art::before {
  content: '';
  position: absolute;
  top: -18%;
  left: 20%;
  width: 60%;
  height: 25%;
  border: 3px solid #5C9BD6;
  border-bottom: none;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

/* Carousel Footer */
.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0 0;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  color: var(--fg-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.carousel-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.carousel-arrow:active { transform: scale(0.92); }

.dots { display: flex; gap: 6px; align-items: center; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  transition: all 300ms ease;
}

.dot.active {
  background: var(--orange);
  width: 20px;
}

/* ── SHOWCASE / FLOATING ──────────────────── */
.showcase {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-md);
  align-items: center;
  overflow: visible;
}

/* Floating stars */
.star-float {
  position: absolute;
  color: var(--orange);
  font-size: clamp(16px, 3.5vw, 20px);
  pointer-events: none;
  animation: starFloat 3s ease-in-out infinite;
}
.sf1 { top: 10%; left: 8%; animation-delay: 0s; opacity: 0.7; }
.sf2 { top: 6%; right: 12%; animation-delay: 0.5s; font-size: clamp(11px, 2.5vw, 14px); opacity: 0.5; }
.sf3 { bottom: 12%; left: 42%; animation-delay: 1s; opacity: 0.6; font-size: clamp(11px, 2.5vw, 14px); }
.sf4 { bottom: 18%; right: 6%; animation-delay: 1.5s; opacity: 0.5; font-size: clamp(14px, 3vw, 17px); }

@keyframes starFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(15deg); }
}

/* Mini left cards */
.mini-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mini-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: floatCard 4s ease-in-out infinite;
  transition: background var(--transition-slow);
  cursor: pointer;
}
.mini-card:nth-child(2) { animation-delay: 0.8s; }
.mini-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.02);
  border-color: var(--orange);
}
.mini-card:active { transform: scale(0.97); }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.mini-img {
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-3);
}

.mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}
.mini-price {
  font-size: var(--text-xs);
  color: var(--orange);
  font-weight: 600;
}

/* Dynamic Island pill */
.dynamic-pill {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px clamp(10px, 2.5vw, 14px);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  animation: pillPulse 3s ease-in-out infinite;
}

[data-theme="dark"] .dynamic-pill { background: #2A2A2A; }

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--orange);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.02); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Main featured card */
.featured-card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background var(--transition-slow), transform 300ms ease;
  animation: floatCard 5s ease-in-out infinite 0.3s;
}

.featured-card:hover { transform: translateY(-4px); }

.featured-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}

.featured-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.featured-card:hover .featured-img-real { transform: scale(1.05); }

.featured-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.star-filled {
  color: var(--orange);
  font-size: var(--text-xs);
  letter-spacing: 1px;
}

.rating-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--fg-2);
}

.featured-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
  line-height: 1.3;
}

.featured-price {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.featured-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: clamp(8px, 2vw, 11px) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}
.featured-add-btn:hover { background: var(--orange-dark); }
.featured-add-btn:active { transform: scale(0.96); }

/* ── SECTION HEADER ───────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.see-all-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--orange);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: background var(--transition);
}
.see-all-btn:hover { background: var(--orange-faint); }

/* ── CATEGORIES ───────────────────────────── */
.categories-section {
  padding: var(--space-md) 0 0;
  scroll-margin-top: 80px;
}

.categories-row {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.categories-row::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: var(--space-sm) clamp(12px, 3vw, 18px);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  color: var(--fg-2);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-faint);
}

.cat-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,87,34,0.3);
}

.cat-icon { font-size: clamp(20px, 5vw, 26px); line-height: 1; }
.cat-label { font-size: var(--text-xs); font-weight: 600; }

/* ── PRODUCTS GRID ────────────────────────── */
.products-section {
  padding: var(--space-md) 0 0;
  scroll-margin-top: 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.5vw, 16px);
  padding: 0 var(--space-md);
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .app { max-width: 980px; }
}

/* Product card */
.product-card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 300ms ease, transform 300ms ease, background var(--transition-slow);
  animation: cardIn 350ms ease both;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card:active { transform: scale(0.97); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 10vw, 55px);
  position: relative;
  overflow: hidden;
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.04) 100%);
}

.product-info {
  padding: var(--space-sm) var(--space-sm) var(--space-sm);
}

.product-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: var(--space-xs);
}

.product-price {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--fg);
}

.product-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 7vw, 36px);
  height: clamp(30px, 7vw, 36px);
  border-radius: var(--radius-full);
  background: var(--orange-faint);
  color: var(--orange);
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-cart-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: scale(1.1);
}
.product-cart-btn:active { transform: scale(0.92); }
.product-cart-btn.added {
  background: var(--orange);
  color: #fff;
  animation: pop 300ms ease;
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--fg-muted);
}
.empty-state span { font-size: clamp(40px, 10vw, 56px); display: block; margin-bottom: var(--space-sm); }
.empty-state p { font-size: var(--text-sm); margin-bottom: var(--space-md); }
.empty-state button {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: clamp(10px, 2.5vw, 12px) clamp(18px, 4vw, 24px);
  border-radius: var(--radius-full);
}

/* ── ABOUT ────────────────────────────────── */
.about-section {
  padding: var(--space-lg) var(--space-md);
  scroll-margin-top: 80px;
}

.about-card {
  background: var(--bg-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-slow);
}

.about-icon { font-size: clamp(42px, 10vw, 60px); margin-bottom: var(--space-md); }

.about-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.about-text {
  font-size: var(--text-sm);
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.stat-label { font-size: var(--text-xs); color: var(--fg-muted); font-weight: 500; }

/* ── BOTTOM NAV ───────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: clamp(6px, 1.5vw, 10px) 0 clamp(10px, 2.5vw, 18px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  transition: background var(--transition-slow);
}

@media (min-width: 860px) {
  .bottom-nav { max-width: 980px; }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(6px, 1.5vw, 8px) 0;
  color: var(--fg-muted);
  font-size: clamp(15px, 2.5vw, 15px);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-btn svg { transition: transform var(--transition); }
.nav-btn.active { color: var(--orange); }
.nav-btn.active svg { transform: scale(1.1); }
.nav-btn:active svg { transform: scale(0.92); }

.nav-cart-btn { position: relative; }
.nav-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 11vw, 54px);
  height: clamp(44px, 11vw, 54px);
  border-radius: var(--radius-full);
  background: var(--orange);
  color: #fff;
  margin-top: clamp(-24px, -5vw, -28px);
  box-shadow: 0 4px 16px rgba(255,87,34,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cart-btn:hover .nav-cart-icon {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(255,87,34,0.55);
}
.nav-cart-btn:active .nav-cart-icon { transform: scale(0.94); }

.nav-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--orange);
  transition: transform var(--transition);
}

/* ── SIDEBAR ──────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: clamp(260px, 75vw, 320px);
  background: var(--bg-2);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-slow);
  box-shadow: var(--shadow-float);
  will-change: transform;
}

.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 4vw, 24px) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--fg-muted);
  transition: background var(--transition), color var(--transition);
}
.sidebar-close:hover { background: var(--bg-3); color: var(--fg); }

.sidebar-nav {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: clamp(12px, 2.5vw, 14px) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
  transition: all var(--transition);
}
.sidebar-link:hover {
  background: var(--bg-3);
  color: var(--orange);
}

.sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}

.theme-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: clamp(12px, 2.5vw, 14px) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-3);
  color: var(--fg-2);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition);
}
.theme-toggle-row:hover { background: var(--orange-faint); color: var(--orange); }

[data-theme="light"] .theme-icon-moon { display: flex; align-items: center; gap: 8px; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: flex; align-items: center; gap: 8px; }

/* ── OVERLAY ──────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 300;
  pointer-events: none;
  transition: background 300ms ease;
  backdrop-filter: blur(0px);
}
.overlay.active {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

/* ── CART PANEL ───────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 300;
  pointer-events: none;
  transition: background 300ms ease;
}
.cart-overlay.active {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 540px;
  margin: 0 auto;
  z-index: 350;
  background: var(--bg-2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-slow);
  will-change: transform;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
}
.cart-panel.open { transform: translateY(0); }

@media (min-width: 860px) {
  .cart-panel { max-width: 480px; right: 0; left: auto; border-radius: var(--radius-xl) 0 0 var(--radius-xl); max-height: 100dvh; }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  flex-shrink: 0;
}

.cart-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.cart-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
  color: var(--fg-muted);
  transition: all var(--transition);
}
.cart-close-btn:hover { background: var(--orange-faint); color: var(--orange); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.cart-body::-webkit-scrollbar { display: none; }

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--fg-muted);
  gap: var(--space-sm);
}
.cart-empty-state span { font-size: clamp(48px, 12vw, 64px); }
.cart-empty-state p { font-size: var(--text-sm); }
.cart-empty-state button {
  background: var(--orange);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: clamp(10px, 2.5vw, 12px) clamp(20px, 4vw, 28px);
  border-radius: var(--radius-full);
  transition: background var(--transition);
}
.cart-empty-state button:hover { background: var(--orange-dark); }

.cart-list { padding: 0 var(--space-md) var(--space-md); }

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(26px, 6vw, 32px);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: var(--text-xs);
  color: var(--orange);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
  color: var(--fg);
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover { background: var(--orange); color: #fff; }
.qty-btn:active { transform: scale(0.9); }

.qty-num {
  font-size: var(--text-sm);
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: var(--space-md) var(--space-lg) clamp(24px, 6vw, 32px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-subtotal, .cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--fg-2);
  margin-bottom: 6px;
}

.cart-total {
  font-size: var(--text-md);
  color: var(--fg);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--border);
}

.cart-total strong {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--orange);
}

.whatsapp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: #25D366;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: clamp(14px, 3vw, 16px) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.whatsapp-btn:hover {
  background: #1DA851;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transform: translateY(-1px);
}
.whatsapp-btn:active { transform: scale(0.97); }

.cart-note {
  text-align: center;
  font-size: clamp(12px, 2.8vw, 14px);
  color: var(--fg-muted);
  margin-top: var(--space-sm);
  line-height: 1.45;
}

/* ── TOAST ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: clamp(90px, 18vw, 110px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: var(--bg);
  padding: clamp(10px, 2.5vw, 12px) clamp(18px, 4vw, 24px);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── LIGHTBOX ─────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: flex-end;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lbFadeIn 250ms ease both;
}

.lb-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  overflow-y: auto;
  animation: lbSlideUp 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
}

@media (min-width: 600px) {
  .lightbox { align-items: center; }
  .lb-panel {
    border-radius: var(--radius-lg);
    max-height: 88dvh;
    animation: lbZoomIn 280ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
  }
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lbSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes lbZoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lb-close {
  position: absolute;
  top: clamp(10px, 2vw, 14px);
  right: clamp(10px, 2vw, 14px);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
.lb-close:hover { background: var(--border); transform: scale(1.1); }
.lb-close:active { transform: scale(0.92); }

.lb-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 600px) {
  .lb-img-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

.lb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.lb-img:hover { transform: scale(1.04); }

.lb-info {
  padding: var(--space-md) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lb-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lb-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--orange);
}

.lb-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: clamp(12px, 3vw, 15px) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
  margin-top: 4px;
}
.lb-add-btn:hover { background: var(--orange-dark); }
.lb-add-btn:active { transform: scale(0.97); }

/* ── PRODUCT IMAGE (real) ──────────────────── */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
}

.product-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}

.product-img-wrap:hover .product-img-real { transform: scale(1.07); }

.product-img-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 10vw, 55px);
  position: absolute;
  inset: 0;
}

.product-img-zoom-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.product-img-wrap:hover .product-img-zoom-icon,
.product-img-wrap:focus .product-img-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

/* ── FOCUS VISIBLE ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
