/*
 * LP Solutions — Premium Design System
 * Apple / Tesla-inspired minimalist aesthetic
 */

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --black:      #0f0f0f;
  --g100:       #f4f4f4;
  --g150:       #ebebeb;
  --g200:       #e0e0e0;
  --g300:       #c8c8c8;
  --g400:       #a0a0a0;
  --g500:       #737373;
  --g700:       #3d3d3d;
  --g900:       #1a1a1a;
  --accent:     #0d9488;
  --accent-d:   #0f766e;
  --accent-l:   #ccfbf1;
  --text:       #0f0f0f;
  --muted:      #6b6b6b;
  --nav-h:      64px;
  --r:          8px;
  --r-lg:       16px;
  --r-xl:       24px;
  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow:     0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.18);
  --ease:       cubic-bezier(.4,0,.2,1);
  --ease-out:   cubic-bezier(0,0,.2,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --dur:        .25s;
  --dur-lg:     .45s;
}

/* ═══════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════════
   3. NAVIGATION
═══════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--g150);
  transition: background var(--dur-lg) var(--ease),
              border-color var(--dur-lg) var(--ease);
}

/* Transparent state — homepage only */
header.transparent {
  background: transparent;
  border-bottom-color: transparent;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  filter: brightness(0);
  transition: filter var(--dur-lg) var(--ease), opacity var(--dur) var(--ease);
}
header.transparent .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--g700);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); font-weight: 500; }

header.transparent .nav-links a { color: rgba(255,255,255,.8); }
header.transparent .nav-links a:hover { color: rgba(255,255,255,1); }
header.transparent .nav-links a::after { background: rgba(255,255,255,.7); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Cart icon */
.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--g700);
  font-size: .88rem;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-cart:hover { color: var(--text); }
header.transparent .nav-cart { color: rgba(255,255,255,.85); }
header.transparent .nav-cart:hover { color: white; }

.nav-cart svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Admin login icon */
.nav-admin {
  display: flex;
  align-items: center;
  color: var(--g700);
  transition: color var(--dur) var(--ease);
  opacity: .65;
}
.nav-admin:hover { color: var(--text); opacity: 1; }
header.transparent .nav-admin { color: rgba(255,255,255,.75); }
header.transparent .nav-admin:hover { color: white; opacity: 1; }
.nav-admin svg { width: 18px; height: 18px; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  position: absolute;
  top: -8px; right: -8px;
  transition: transform .2s var(--ease-spring);
}
.cart-badge.bump { transform: scale(1.4); }

/* Account nav */
.nav-account {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--g700);
  font-size: .82rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
  text-decoration: none;
}
.nav-account:hover { color: var(--text); }
header.transparent .nav-account { color: rgba(255,255,255,.85); }
header.transparent .nav-account:hover { color: white; }

.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  color: white;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-spring);
}
.nav-account:hover .nav-avatar { transform: scale(1.08); }

.nav-login-btn {
  gap: 6px;
  opacity: .75;
}
.nav-login-btn:hover { opacity: 1; }
.nav-login-btn svg { flex-shrink: 0; }
header.transparent .nav-login-btn { color: rgba(255,255,255,.8); }

/* ── User dropdown ───────────────────────── */
.nav-user-dropdown {
  position: relative;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--g700);
  font-size: .82rem;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-account:hover { background: var(--g100); color: var(--text); }
header.transparent .nav-account { color: rgba(255,255,255,.85); }
header.transparent .nav-account:hover { background: rgba(255,255,255,.12); color: white; }

.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  color: white;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-chevron {
  transition: transform .2s var(--ease);
  opacity: .6;
  flex-shrink: 0;
}
.nav-account[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  min-width: 220px;
  z-index: 500;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-header {
  padding: 14px 16px 12px;
}
.nav-dropdown-name  { font-weight: 700; font-size: .88rem; color: var(--text); }
.nav-dropdown-email { font-size: .72rem; color: var(--muted); margin-top: 2px; word-break: break-all; }
.nav-dropdown-badge {
  display: inline-flex;
  margin-top: 6px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.nav-dropdown-divider { height: 1px; background: var(--g150); margin: 2px 0; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .84rem;
  color: var(--g700);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background .12s;
}
.nav-dropdown-item:hover { background: var(--g100); color: var(--text); }

.nav-dropdown-logout {
  color: #dc2626;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}
.nav-dropdown-logout:hover { background: #fef2f2; color: #dc2626; }

/* Login button */
.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--g700);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--g200);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-login-btn:hover { border-color: var(--text); color: var(--text); background: var(--g100); }
header.transparent .nav-login-btn { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
header.transparent .nav-login-btn:hover { color: white; border-color: white; background: rgba(255,255,255,.1); }

@media (max-width: 480px) {
  .nav-user-name { display: none; }
  .nav-chevron   { display: none; }
  .nav-dropdown  { right: -10px; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s, background .3s;
}
header.transparent .hamburger span { background: white; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--g150);
  box-shadow: var(--shadow-lg);
}
.nav-links.open a {
  padding: 14px 28px;
  border-bottom: 1px solid var(--g100);
  color: var(--text);
  font-size: 1rem;
}
.nav-links.open a::after { display: none; }

/* ═══════════════════════════════════════════
   4. SCROLL ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.fade-only { transform: none !important; }

/* ═══════════════════════════════════════════
   5. HERO (BRAND) SECTION
═══════════════════════════════════════════ */
.hero-main {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a1628;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  user-select: none;
}
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.55) 100%
  );
  z-index: 0;
}
.hero-main-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 24px;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 20px;
  font-weight: 400;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero-title strong {
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .75;
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: white;
  color: var(--black);
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,.5);
  color: white;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .01em;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-hero-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,.1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 1;
  animation: scrollBounce 2.5s infinite;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(255,255,255,.5), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: .9; }
}

/* ═══════════════════════════════════════════
   6. AREA SECTIONS (Homepage)
═══════════════════════════════════════════ */
.area-section {
  height: 88vh;
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c1c1c;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  user-select: none;
}
.area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.62) 100%
  );
}
.area-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 24px;
  max-width: 680px;
}
.area-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 14px;
  font-weight: 500;
}
.area-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}
.area-sub {
  font-size: 1rem;
  opacity: .75;
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.6;
}
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid rgba(255,255,255,.55);
  color: white;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.08);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-explore:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   7. STANDARD SECTION
═══════════════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px;
}
.section-sm { padding: 56px 28px; }
.section-full {
  padding: 80px 28px;
  background: var(--off-white);
}
.section-full-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 52px;
  max-width: 520px;
  line-height: 1.7;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   8. TRUST STRIP
═══════════════════════════════════════════ */
.trust-strip {
  border-top: 1px solid var(--g150);
  border-bottom: 1px solid var(--g150);
  padding: 40px 28px;
  background: var(--white);
}
.trust-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  text-align: center;
}
.trust-icon {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--accent);
}
.trust-icon svg { width: 24px; height: 24px; color: var(--accent); }
.lp-icon svg { color: #9ca3af; }
.trust-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.trust-desc {
  font-size: .78rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   9. PRODUCT GRID & CARDS
═══════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition:
    transform .35s var(--ease-spring),
    box-shadow .35s var(--ease),
    border-color .35s var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--g200);
}

.product-img {
  height: 190px;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  transition: background .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.product-card:hover .product-img { background: var(--g150); }

.product-body { padding: 20px; }

.product-category {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-name {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-add {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
  flex-shrink: 0;
}
.btn-add:hover {
  background: var(--accent);
  transform: scale(1.12);
}
.btn-add:active { transform: scale(.96); }

/* ── Quantity stepper on product cards ──────── */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--g200);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper button {
  width: 26px; height: 26px;
  border: none;
  background: var(--g100);
  color: var(--text);
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}
.qty-stepper button:hover { background: var(--g150); }
.qty-stepper button:active { transform: scale(.94); }
.qty-stepper .qty-val {
  min-width: 22px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Free shipping banner ────────────────────── */
.shipping-banner {
  display: none;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-lg);
  padding: 12px 20px;
  margin-bottom: 24px;
}
.shipping-banner:not(:empty) {
  display: block;
}

/* ── Search bar ──────────────────────────────── */
.search-bar-wrap {
  margin-bottom: 28px;
}
.search-bar {
  position: relative;
  max-width: 520px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--g400);
  pointer-events: none;
  flex-shrink: 0;
}
#product-search {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border: 1.5px solid var(--g200);
  border-radius: 100px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
#product-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,.10);
}
#product-search::placeholder { color: var(--g400); }
#product-search::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--g200);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--g700);
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}
.search-clear:hover { background: var(--g300); }

@media (max-width: 640px) {
  .search-bar { max-width: 100%; }
  #product-search { font-size: .88rem; padding: 11px 40px 11px 40px; }
}

/* Category filter */
.categories-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cat-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--g200);
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .01em;
  transition: all var(--dur) var(--ease);
  font-family: inherit;
}
.cat-btn:hover { border-color: var(--g400); color: var(--text); }
.cat-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

/* ═══════════════════════════════════════════
   10. PAGE HEADER (produtos, carrinho…)
═══════════════════════════════════════════ */
.page-header {
  padding: calc(var(--nav-h) + 48px) 28px 48px;
  background: var(--off-white);
  border-bottom: 1px solid var(--g150);
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.page-header p {
  color: var(--muted);
  font-size: .95rem;
}

/* ═══════════════════════════════════════════
   11. PRODUCT DETAIL PAGE
═══════════════════════════════════════════ */
.product-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.detail-img {
  border-radius: var(--r-xl);
  height: 420px;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.detail-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.detail-name {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.detail-price {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.detail-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.detail-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--g700);
}
.detail-feature-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--g200);
  border-radius: var(--r);
  overflow: hidden;
}
.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 38px; height: 38px;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--dur) var(--ease);
  font-family: inherit;
}
.qty-btn:hover { background: var(--g100); }
.qty-num {
  width: 44px;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  border-left: 1.5px solid var(--g200);
  border-right: 1.5px solid var(--g200);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-detail {
  flex: 1;
  padding: 0 28px;
  height: 48px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  font-family: inherit;
  letter-spacing: .01em;
}
.btn-add-detail:hover { background: var(--accent); transform: translateY(-1px); }
.detail-link {
  font-size: .85rem;
  color: var(--accent);
  margin-top: 12px;
  display: inline-block;
  transition: opacity var(--dur) var(--ease);
}
.detail-link:hover { opacity: .7; }

/* ═══════════════════════════════════════════
   12. CART PAGE
═══════════════════════════════════════════ */
.cart-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 14px; }

.cart-item {
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow var(--dur) var(--ease);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--r);
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-cat {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-name {
  font-size: .93rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--g300);
  font-size: 1rem;
  padding: 6px;
  border-radius: var(--r);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  flex-shrink: 0;
}
.remove-btn:hover { color: #dc2626; background: #fee2e2; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--r-xl);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.summary-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--g700);
  margin-bottom: 12px;
}
.summary-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.summary-item-name {
  color: var(--text);
  line-height: 1.4;
}
.summary-item-qty {
  font-size: .76rem;
  color: var(--g500);
}
.summary-item-price {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
  padding-top: 1px;
}
.summary-row.total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-top: 1px solid var(--g150);
  padding-top: 14px;
  margin-top: 6px;
}

/* ── Código de desconto ── */
.discount-box {
  border-top: 1px solid var(--g150);
  border-bottom: 1px solid var(--g150);
  margin: 16px 0;
  padding: 16px 0;
}
.discount-input-row {
  display: flex;
  gap: 8px;
}
.discount-input-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--g200);
  border-radius: var(--r);
  font-size: .85rem;
  font-family: inherit;
  text-transform: uppercase;
}
.discount-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.discount-apply-btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--r);
  background: var(--text);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.discount-apply-btn:hover { opacity: .85; }
.discount-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: var(--text);
}
.discount-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.discount-msg {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--muted);
}
.discount-msg.error {
  color: #dc2626;
}
.btn-checkout {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  text-align: center;
  letter-spacing: .01em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  font-family: inherit;
}
.btn-checkout:hover { background: var(--accent); transform: translateY(-1px); }

.cart-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 20px; opacity: .4; }
.cart-empty h2 { font-size: 1.4rem; font-weight: 400; margin-bottom: 8px; color: var(--text); }
.cart-empty p { margin-bottom: 28px; }

/* ═══════════════════════════════════════════
   13. CHECKOUT
═══════════════════════════════════════════ */
.checkout-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.checkout-form {
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--r-xl);
  padding: 36px;
}
.form-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--g200);
  border-radius: var(--r);
  font-family: inherit;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--dur) var(--ease);
  font-family: inherit;
  letter-spacing: .01em;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.success-msg {
  display: none;
  background: #f0fdf9;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--r-xl);
  padding: 48px 36px;
  text-align: center;
}
.success-msg .success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-msg h3 { font-size: 1.3rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.success-msg p { color: var(--muted); font-size: .95rem; }

/* ═══════════════════════════════════════════
   14. ABOUT & STATS
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat-icon { font-size: 1.6rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 28px; height: 28px; color: #9ca3af; }
.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.stat-label { font-size: .8rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   15. CONTACT
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-icon {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--accent);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-name { font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.contact-val { font-size: .83rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   16. FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--g900);
  color: rgba(255,255,255,.65);
  padding: 64px 28px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: .7;
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: .85rem;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: .8rem;
  text-align: center;
  opacity: .45;
}

/* ═══════════════════════════════════════════
   17. BREADCRUMB
═══════════════════════════════════════════ */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  font-size: .8rem;
  color: var(--g400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a {
  color: var(--g500);
  transition: color var(--dur) var(--ease);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--g300); }

/* ═══════════════════════════════════════════
   18. TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--g900);
  color: white;
  padding: 14px 20px;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s;
  z-index: 9999;
  max-width: 300px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════
   19. BUTTONS (generic)
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  font-family: inherit;
  letter-spacing: .01em;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--g200);
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  font-family: inherit;
}
.btn-outline:hover { border-color: var(--text); }

/* ═══════════════════════════════════════════
   20. UTILITIES
═══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

/* Body top padding to compensate for fixed nav */
body > *:first-child:not(header) {
  padding-top: 0;
}
/* all non-index pages start content after nav */
.page-start { padding-top: var(--nav-h); }

/* ═══════════════════════════════════════════
   21. RESPONSIVE — TABLET  (≤ 900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .trust-inner   { grid-template-columns: repeat(2, 1fr); }
  .product-detail{ grid-template-columns: 1fr; gap: 36px; }
  .detail-img    { position: static; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid  { grid-template-columns: 1fr; max-width: 360px; }
  .cart-layout   { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   22. RESPONSIVE — MOBILE  (≤ 640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  nav { padding: 0 18px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-main { height: 100svh; height: 100vh; }
  .hero-title { font-size: 2.4rem; }
  .area-title { font-size: 2rem; }
  .area-section { height: 72vh; min-height: 380px; }

  .section      { padding: 52px 18px; }
  .section-sm   { padding: 40px 18px; }
  .section-full { padding: 52px 18px; }
  .page-header  { padding: calc(var(--nav-h) + 28px) 18px 28px; }

  .breadcrumb { flex-wrap: wrap; padding: 12px 18px; gap: 6px; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

  .cart-layout      { padding: 20px 18px 56px; }
  .cart-item        { flex-wrap: wrap; gap: 12px; }
  .cart-item-name   { white-space: normal; }

  .checkout-layout  { padding: 20px 18px 56px; }
  .checkout-form    { padding: 22px 18px; }
  .form-row         { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { opacity: .6; }
  footer { padding: 48px 18px 24px; }

  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: none; }

  /* Cart summary — don't let it overflow on small screens */
  .cart-summary { position: static; }
}

/* ═══════════════════════════════════════════
   23. RESPONSIVE — SMALL MOBILE  (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  nav { padding: 0 14px; }
  .nav-logo img { height: 40px; }

  .hero-title  { font-size: 2rem; letter-spacing: -.02em; }
  .hero-sub    { font-size: .95rem; }
  .hero-cta-group { flex-direction: column; align-items: center; gap: 10px; }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; max-width: 280px; justify-content: center; }

  .area-section { height: 62vh; min-height: 340px; }
  .area-title   { font-size: 1.75rem; }

  .section      { padding: 40px 14px; }
  .section-full { padding: 40px 14px; }
  .page-header  { padding: calc(var(--nav-h) + 20px) 14px 22px; }

  .breadcrumb   { padding: 10px 14px; font-size: .72rem; }

  .trust-strip  { padding: 28px 14px; }
  .trust-inner  { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-label  { font-size: .78rem; }
  .trust-desc   { font-size: .7rem; }

  /* Product cards — 2-column grid on small screens */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img  { height: 120px; font-size: 3rem; }
  .product-body { padding: 12px; }
  .product-name { font-size: .82rem; margin-bottom: 12px; }
  .product-price { font-size: .95rem; }
  .btn-add      { width: 30px; height: 30px; font-size: .88rem; }
  .product-footer { flex-wrap: wrap; }
  .product-actions { width: 100%; justify-content: space-between; }
  .qty-stepper button { width: 24px; height: 24px; font-size: .85rem; }

  /* Cart item compact */
  .cart-item    { padding: 14px; gap: 10px; }
  .cart-item-img{ width: 56px; height: 56px; font-size: 1.6rem; }

  /* Detail page */
  .detail-img   { height: 260px; font-size: 5rem; }
  .detail-price { font-size: 1.5rem; }
  .qty-row      { flex-wrap: wrap; gap: 10px; }
  .btn-add-detail { flex: none; width: 100%; }

  /* Checkout steps */
  .steps        { padding: 0 10px; }
  .step-label   { font-size: .62rem; }
  .step-dot     { width: 26px; height: 26px; font-size: .75rem; }
  .step:not(:last-child)::after { top: 13px; }

  /* Checkout form */
  .checkout-form  { padding: 18px 14px; }
  .checkout-layout{ padding: 16px 14px 48px; }

  /* Footer */
  footer        { padding: 40px 14px 20px; }
  .footer-inner { gap: 24px; }

  /* About stats */
  .stats-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card    { padding: 20px 14px; }
  .stat-value   { font-size: 1.3rem; }

  /* Section title */
  .section-title { font-size: 1.5rem; }
  .section-sub   { font-size: .9rem; margin-bottom: 36px; }

  /* Toast — full width on small phones */
  .toast { left: 14px; right: 14px; bottom: 16px; max-width: none; font-size: .82rem; }
}
