/* Amua Leo Shopping — Design System */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --brand-red: #E31C23;
  --brand-orange: #FF6A00;
  --brand-amber: #FFB020;
  --brand-gradient: linear-gradient(115deg, #E31C23 0%, #FF6A00 48%, #FFB020 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(227,28,35,.12), rgba(255,106,0,.08));
  --ink: #0B0B0C;
  --ink-2: #1A1A1D;
  --ink-3: #2E2E32;
  --muted: #6B6B73;
  --line: #E8E6E3;
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --success: #1B8A5A;
  --danger: #C62828;
  --shadow-sm: 0 1px 2px rgba(11,11,12,.04);
  --shadow-md: 0 12px 40px rgba(11,11,12,.08);
  --shadow-lg: 0 24px 80px rgba(11,11,12,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 92px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255,106,0,.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(227,28,35,.4); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  border-color: rgba(11,11,12,.15);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* Announcement */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.announce span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11,11,12,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--nav-h);
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 78px;
  width: auto;
  background: transparent;
}
.search-form {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-form input {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 0 1.1rem 0 2.8rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-form input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}
.search-form svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .45;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: .9rem;
}
.nav-links a { opacity: .7; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
}
.hero-slide[hidden] { display: none !important; }
.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255,106,0,.35), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(227,28,35,.4), transparent 55%),
    linear-gradient(160deg, #0B0B0C 0%, #1A1210 50%, #2A1508 100%);
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.55) 48%, rgba(11,11,12,.35) 100%);
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,.015) 80px, rgba(255,255,255,.015) 81px);
  opacity: .8;
  pointer-events: none;
}
.hero-speed {
  position: absolute;
  right: -5%;
  top: 18%;
  width: min(55vw, 640px);
  height: min(55vw, 640px);
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(80px);
  opacity: .25;
  animation: pulseOrb 6s ease-in-out infinite;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-amber);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .1s forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .2s forwards;
}
.hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.72);
  max-width: 42ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .35s forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .5s forwards;
}
.hero-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
.hero-slider-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .3s, width .3s;
}
.hero-slider-dots button.active {
  width: 44px;
  background: var(--brand-gradient);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatCart {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 14px)) translateX(-8px); }
}
@keyframes pulseOrb {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.08); opacity: .45; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.section-head p { color: var(--muted); max-width: 36ch; }
.link-more {
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-card {
  position: relative;
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  transition: transform .35s var(--ease);
}
.cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11,11,12,.85) 100%);
  opacity: 1;
  z-index: 1;
  transition: opacity .35s;
}
.cat-card:nth-child(2)::before,
.cat-card:nth-child(3)::before,
.cat-card:nth-child(4)::before,
.cat-card:nth-child(5)::before,
.cat-card:nth-child(6)::before {
  background: linear-gradient(180deg, transparent 20%, rgba(11,11,12,.85) 100%);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card:hover .cat-img { transform: scale(1.08); }
.cat-card:hover::before { opacity: 1; }
.cat-card span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.cat-card small {
  position: relative;
  z-index: 2;
  opacity: .75;
  font-size: .75rem;
  margin-top: .2rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11,11,12,.06);
}
.product-media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #F3F0EB, #EDE8E1);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder {
  width: 56%;
  height: 56%;
  border-radius: 20%;
  background: var(--brand-gradient);
  opacity: .85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM7.2 14h9.6l1.1-5H6.1l1.1 5zM5.2 4H3v2h1.4l2.5 10.4A2 2 0 0 0 8.8 18h8.9v-2H8.8l-.3-1.2h9.3a1 1 0 0 0 1-.8l1.6-7.2A1 1 0 0 0 19.4 5H5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM7.2 14h9.6l1.1-5H6.1l1.1 5zM5.2 4H3v2h1.4l2.5 10.4A2 2 0 0 0 8.8 18h8.9v-2H8.8l-.3-1.2h9.3a1 1 0 0 0 1-.8l1.6-7.2A1 1 0 0 0 19.4 5H5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  z-index: 2;
}
.tag {
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
}
.tag-sale { background: var(--brand-gradient); }
.tag-new { background: var(--brand-amber); color: var(--ink); }
.tag-flash { background: var(--brand-red); animation: flashPulse 1.6s ease-in-out infinite; }
@keyframes flashPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,28,35,.5); }
  50% { box-shadow: 0 0 0 6px rgba(227,28,35,0); }
}
.wish-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform .2s;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.active { color: var(--brand-red); }
.product-body { padding: 1rem 1.1rem 1.2rem; }
.product-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .55rem;
  font-size: .8rem;
  color: var(--muted);
}
.star { color: #D4D0CA; }
.star.filled, .star.half { color: var(--brand-amber); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.price-now {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.price-was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .85rem;
}
.product-actions {
  margin-top: .9rem;
  display: flex;
  gap: .5rem;
}
.product-actions .btn { flex: 1; padding: .65rem; font-size: .8rem; }

/* Flash strip */
.flash-section {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.flash-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(100px);
  opacity: .25;
  top: -100px;
  right: -50px;
}
.flash-section .section-head h2,
.flash-section .section-head p { color: #fff; }
.flash-section .section-head p { color: rgba(255,255,255,.6); }
.countdown {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}
.countdown span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: .45rem .7rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 52px;
  text-align: center;
  font-size: .9rem;
}
.flash-section .product-card { background: #161618; border-color: rgba(255,255,255,.06); color: #fff; }
.flash-section .product-media { background: #1E1E22; }
.flash-section .product-cat,
.flash-section .product-rating,
.flash-section .price-was { color: rgba(255,255,255,.5); }
.flash-section .product-body h3 { color: #fff; }

/* Testimonials */
.testify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testify {
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.testify .stars { margin-bottom: .85rem; color: var(--brand-amber); letter-spacing: 2px; }
.testify p {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.testify strong { font-weight: 800; }

/* Newsletter */
.newsletter {
  padding: 4rem 0;
}
.newsletter-panel {
  background: var(--brand-gradient);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-panel::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  right: -60px;
  bottom: -80px;
}
.newsletter-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}
.newsletter-panel p { opacity: .9; max-width: 40ch; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  flex: 1;
  height: 52px;
  border-radius: 999px;
  border: 0;
  padding: 0 1.25rem;
  outline: none;
  background: #fff;
  color: var(--brand-orange);
  font-weight: 600;
}
.newsletter-form input::placeholder {
  color: rgba(255, 106, 0, .55);
  font-weight: 500;
}
.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 176, 32, .55);
}
.newsletter-form .btn { background: var(--ink); color: #fff; box-shadow: none; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 88px; margin-bottom: 1rem; background: transparent; }
.footer-brand p { max-width: 28ch; font-size: .92rem; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.footer-col a {
  display: block;
  padding: .3rem 0;
  font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand-amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  text-align: center;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(227,28,35,.18), rgba(255,106,0,.14), rgba(255,176,32,.12));
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(255,176,32,.22),
    0 0 24px rgba(255,106,0,.08);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.footer-credit-text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(115deg, #ff8a6a 0%, #ffb020 45%, #ffe08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-credit-sep {
  width: 1px;
  height: .85em;
  background: linear-gradient(180deg, transparent, rgba(255,176,32,.7), transparent);
  flex-shrink: 0;
}
.footer-credit-brand {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  background: linear-gradient(115deg, #E31C23 0%, #FF6A00 48%, #FFB020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-credit:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,176,32,.4),
    0 0 32px rgba(255,106,0,.2);
}

/* Flash messages */
.toast-wrap {
  position: fixed;
  top: calc(var(--nav-h) + 1rem);
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 360px;
}
.toast {
  padding: .9rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .9rem;
  border-left: 4px solid var(--brand-orange);
  animation: fadeUp .4s var(--ease);
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 0 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.form-control { height: auto; padding: .85rem 1rem; resize: vertical; }
.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}
.auth-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}
.auth-card {
  width: min(100%, 440px);
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: .35rem;
  letter-spacing: -.03em;
}
.auth-card .sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-card .meta { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.auth-card .meta a { color: var(--brand-red); font-weight: 700; }

/* Shop layout */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.filters h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.filter-block { margin-bottom: 1.25rem; }
.filter-block h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .55rem;
}
.filter-block label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  font-size: .9rem;
  cursor: pointer;
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: .88rem;
  background: #fff;
}
.pagination a.is-active, .pagination a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Product detail */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0 4rem;
}
.pdp-gallery {
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(160deg, #F3F0EB, #E8E2D9);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.03em;
  margin: .75rem 0 1rem;
}
.pdp-price {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 1.25rem 0;
}
.pdp-price .now {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}
.pdp-price .was { text-decoration: line-through; color: var(--muted); }
.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty-control button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
}
.qty-control input {
  width: 48px;
  text-align: center;
  border: 0;
  outline: none;
  font-weight: 700;
}
.pdp-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.pdp-actions .btn { min-width: 160px; }
.pdp-meta { margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.pdp-desc { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pdp-desc h3 { font-family: var(--font-display); margin-bottom: .75rem; }

/* Cart / Checkout */
.cart-layout, .checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: #F0ECE6;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cart-item-img .product-placeholder { width: 50%; height: 50%; }
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.summary-card h3 {
  font-family: var(--font-display);
  margin-bottom: 1.15rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  font-size: .95rem;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: .75rem;
  padding-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.page-title {
  padding: 2rem 0 0;
}
.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -.03em;
}

/* Account */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.account-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
  height: fit-content;
}
.account-nav a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
}
.account-nav a:hover, .account-nav a.is-active {
  background: var(--brand-gradient-soft);
}
.account-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th, .table td {
  text-align: left;
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #F0ECE6;
}
.status-pill.delivered, .status-pill.paid { background: #D8F3E4; color: var(--success); }
.status-pill.pending { background: #FFF3D6; color: #9A6B00; }
.status-pill.cancelled, .status-pill.failed { background: #FDE0E0; color: var(--danger); }
.status-pill.shipped, .status-pill.out_for_delivery { background: #E3EEFF; color: #1A56B0; }

.timeline { margin-top: 1.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-gradient);
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.empty-state h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1rem 0 .5rem;
}

/* Admin */
.admin-body { background: #F4F2EF; }
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-overlay {
  display: none;
}
.admin-side {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 120;
}
.admin-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.admin-side-close { display: none; border-color: rgba(255,255,255,.2); color: #fff; background: transparent; }
.admin-side .logo img { height: 68px; margin-bottom: 1.25rem; background: transparent; }
.admin-side nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .2rem;
  transition: background .2s, color .2s;
  min-height: 44px;
}
.admin-side nav a svg { flex-shrink: 0; opacity: .75; }
.admin-side nav a:hover, .admin-side nav a.is-active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-side nav a:hover svg,
.admin-side nav a.is-active svg { opacity: 1; }
.admin-main {
  padding: 1.75rem;
  min-width: 0;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.admin-top-left,
.admin-top-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.admin-menu-btn { display: none; }
.admin-top h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user-chip {
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--line);
}
.stat-card .label { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  margin-top: .35rem;
  letter-spacing: -.03em;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-card h3 { font-family: var(--font-display); margin-bottom: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.check-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-top: .5rem; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-card .table,
.admin-content .table {
  min-width: 640px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

body.nav-locked,
body.admin-nav-open { overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav-links, .search-form { display: none; }
  .menu-toggle { display: grid; }
  .hero {
    min-height: min(78vh, 640px);
  }
  .hero-content {
    max-width: 100%;
    padding-bottom: 4.5rem;
  }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .hero-ctas { flex-wrap: wrap; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .shop-layout, .cart-layout, .checkout-layout, .account-layout, .pdp {
    grid-template-columns: 1fr;
  }
  .filters { position: static; }
  .newsletter-panel {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .testify-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: .85rem;
  }
  .cart-item > :last-child { grid-column: 2; }
  .pdp-actions .btn { min-width: 0; flex: 1; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }
  .footer-credit { max-width: 100%; justify-content: center; }

  /* Admin drawer */
  .admin-shell { grid-template-columns: 1fr; }
  .admin-menu-btn { display: grid; }
  .admin-side-close { display: grid; }
  .admin-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11,11,12,.55);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  body.admin-nav-open .admin-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .admin-side {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 300px);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .3s var(--ease);
    box-shadow: none;
  }
  body.admin-nav-open .admin-side {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  .admin-main {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  .admin-top { margin-bottom: 1.15rem; }
  .admin-user-chip { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .container { width: min(100% - 1.25rem, var(--max)); }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-actions { flex-direction: column; }
  .header-inner { gap: .5rem; height: var(--nav-h); }
  .logo img { height: 48px; }
  .icon-btn { width: 40px; height: 40px; }
  .section { padding: 3rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand img { height: 72px; }
  .footer-brand p {
    max-width: 36ch;
    margin-inline: auto;
  }
  .footer-col h4 { text-align: left; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-card { padding: 1rem; }
  .page-title { padding: 1.5rem 0 1rem; }
  .page-title h1 { font-size: 1.7rem; }
  .auth-page { padding: 2rem 1rem; }
  .auth-card { padding: 1.5rem; }
  .account-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: .4rem;
    padding: .6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: .65rem .9rem;
    font-size: .85rem;
  }
  .account-panel { padding: 1.15rem; }
  .admin-card { padding: 1rem; border-radius: 12px; }
  .btn { min-height: 44px; }
  .form-control, select.form-control, textarea.form-control {
    font-size: 16px; /* prevents iOS zoom */
  }
  .announce { font-size: .75rem; padding: .5rem .75rem; }
  .toast-wrap {
    left: .75rem;
    right: .75rem;
    max-width: none;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(11,11,12,.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100%;
  height: 100dvh;
  background: #fff;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.mobile-nav-logo {
  height: 52px;
  width: auto;
  background: transparent;
}
.mobile-nav-links a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .95rem 0;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
  justify-content: center;
}
.mobile-nav-links a small {
  font-weight: 500;
  color: var(--muted);
  font-size: .78rem;
}
.mobile-search {
  position: relative;
  margin: 1rem 0 1.25rem;
}
.mobile-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.mobile-search input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  padding: 0 1rem 0 2.75rem;
  font-size: 16px;
  outline: none;
}
.mobile-search input:focus {
  border-color: var(--brand-orange);
}
