:root {
  --bg: #0b0d0f;
  --bg-soft: #111519;
  --surface: #171c21;
  --surface-2: #1d242b;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.065);
  --text: #f4f1e9;
  --muted: #98a1a5;
  --accent: #d9ff57;
  --danger: #ff8b8b;
  --radius: 24px;
  --mono: 'DM Mono', monospace;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: 'Space Grotesk', 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(217, 255, 87, 0.10), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(142, 216, 255, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 13, 15, 0.78);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: #10130b;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.08em;
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: var(--display); letter-spacing: 0.08em; font-size: 16px; }
.brand-copy small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--muted); }
.main-nav { display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); }
.main-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.search-box span { font-family: var(--mono); font-size: 9px; text-transform: uppercase; color: var(--muted); }
.search-box input { width: 122px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #697176; }
.cart-button, .primary-button, .ghost-button {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s, background .2s, border-color .2s;
}
.cart-button {
  background: var(--text);
  color: #10130b;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.cart-button b {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #10130b;
  color: var(--text);
  font-family: var(--mono);
  font-size: 9px;
}
.cart-button:hover, .primary-button:hover { transform: translateY(-1px); }
.primary-button {
  background: var(--accent);
  color: #11140b;
  padding: 13px 20px;
  border: 0;
}
.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  padding: 12px 18px;
}
.ghost-button:hover { border-color: var(--accent); }
.full { width: 100%; }

.app-shell { min-height: 70vh; padding: 0 clamp(18px, 4vw, 54px) 90px; }
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 40px;
  padding: clamp(60px, 10vw, 130px) 0 54px;
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 {
  margin: 22px 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(46px, 8vw, 108px);
  line-height: .92;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 540px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-side { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.hero-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.hero-card strong { display: block; font-family: var(--display); font-size: 24px; margin: 12px 0 4px; }
.hero-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero-stat b { font-family: var(--display); font-size: 32px; color: var(--accent); }
.hero-stat small { font-family: var(--mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 52px 0 22px; }
.section-head h2 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; }
.section-head p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.category-card {
  position: relative;
  min-height: 154px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s, border-color .25s;
}
.category-card::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  bottom: -55px;
  border-radius: 50%;
  background: var(--cat-accent, var(--accent));
  opacity: .18;
  filter: blur(8px);
}
.category-card:hover { transform: translateY(-3px); border-color: var(--cat-accent, var(--accent)); }
.category-card small { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.category-card strong { position: relative; z-index: 1; font-family: var(--display); font-size: 19px; line-height: 1.05; }
.category-card span { position: relative; z-index: 1; color: var(--muted); font-size: 11px; }
.category-card b { position: absolute; right: 16px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--cat-accent, var(--accent)); color: #10130b; font-family: var(--mono); font-size: 9px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line); }
.product-visual {
  position: relative;
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, var(--cat-accent, var(--accent)) 0%, transparent 26%),
    linear-gradient(145deg, #20272d 0%, #101418 70%);
}
.product-visual::before {
  content: attr(data-initials);
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -.08em;
  color: rgba(255,255,255,.78);
}
.product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #10130b;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-info { display: flex; flex-direction: column; gap: 9px; padding: 14px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.product-info h3 { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.2; }
.product-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; }
.product-price { font-family: var(--display); font-size: 18px; }
.product-price small { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; text-decoration: line-through; }
.product-link { color: var(--accent); font-size: 11px; font-weight: 700; }

.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 30px 0 0; }
.breadcrumb a:hover { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 5vw, 80px); padding: 42px 0 70px; align-items: start; }
.gallery-main {
  aspect-ratio: 1 / .85;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, var(--cat-accent, var(--accent)) 0%, transparent 28%),
    linear-gradient(145deg, #20272d 0%, #101418 70%);
  display: grid;
  place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .placeholder-initials { font-family: var(--display); font-size: clamp(52px, 8vw, 110px); letter-spacing: -.1em; color: rgba(255,255,255,.8); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb { width: 62px; height: 62px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 0; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding-top: 12px; }
.detail-copy h1 { margin: 10px 0 12px; font-family: var(--display); font-size: clamp(38px, 5vw, 68px); line-height: .96; letter-spacing: -.06em; }
.detail-description { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 560px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 8px; }
.detail-price strong { font-family: var(--display); font-size: 32px; }
.detail-price del { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.stock-line { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.variant-label { display: block; margin: 25px 0 9px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.variant-list { display: flex; flex-wrap: wrap; gap: 7px; }
.variant-button { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 9px 13px; font-size: 12px; }
.variant-button:hover, .variant-button.active { border-color: var(--accent); background: rgba(217,255,87,.1); }
.variant-button:disabled { opacity: .35; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; margin-top: 24px; align-items: stretch; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 34px; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 18px; }
.qty-control span { min-width: 30px; text-align: center; font-family: var(--mono); font-size: 12px; }
.detail-specs { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.spec-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.spec-row b { color: var(--text); font-weight: 500; text-align: right; }
.detail-note { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.empty-state { padding: 100px 20px; text-align: center; color: var(--muted); }
.empty-state h2 { font-family: var(--display); color: var(--text); font-size: 36px; margin: 0 0 10px; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 30px clamp(18px, 4vw, 54px); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; flex-direction: column; gap: 4px; }
.footer-meta { text-align: right; align-items: flex-end; }
.footer-meta a { color: var(--accent); }

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 999px;
  background: #25d366;
  color: #07120b;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .28), 0 0 0 1px rgba(255,255,255,.12) inset;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .38), 0 0 0 1px rgba(255,255,255,.16) inset;
}
.whatsapp-fab svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(430px, 100%);
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #12171b;
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform .3s cubic-bezier(.22,.8,.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.cart-head h2, .modal h2 { margin: 6px 0 0; font-family: var(--display); font-size: 32px; letter-spacing: -.04em; }
.icon-button { border: 1px solid var(--line); background: transparent; color: var(--text); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; }
.cart-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.cart-thumb { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, #252e35, #11161a); font-family: var(--display); font-size: 18px; color: rgba(255,255,255,.7); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0 0 3px; font-size: 13px; }
.cart-item small { color: var(--muted); font-size: 11px; }
.cart-item strong { display: block; margin-top: 5px; font-family: var(--display); font-size: 13px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-qty { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.cart-qty button { border: 0; background: transparent; color: var(--text); width: 22px; height: 22px; }
.cart-qty span { font-family: var(--mono); font-size: 10px; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; }
.cart-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cart-total strong { font-family: var(--display); font-size: 28px; }
.cart-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0 0 14px; }
.cart-empty { padding: 50px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(480px, 100%); max-height: 92vh; overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #141a1f; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-card > p { font-size: 13px; line-height: 1.5; }
.modal-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.modal-card label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.modal-card input, .modal-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #0e1316; color: var(--text); outline: none; }
.modal-card input:focus, .modal-card textarea:focus { border-color: var(--accent); }
.checkout-summary { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 12px; line-height: 1.7; }
.checkout-summary strong { color: var(--text); }
.form-status { min-height: 16px; margin: 0; color: var(--danger); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 18px); z-index: 130; padding: 11px 16px; border-radius: 999px; background: var(--text); color: #10130b; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: 16px; }
  .main-nav { justify-content: flex-end; order: 3; grid-column: 1 / -1; overflow-x: auto; padding-bottom: 2px; }
  .header-actions { justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; }
  .hero-side { display: grid; grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header { padding: 14px 16px; gap: 12px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 14px; }
  .search-box { padding: 8px 10px; }
  .search-box span { display: none; }
  .search-box input { width: 92px; }
  .cart-button span { display: none; }
  .whatsapp-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 0;
  }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .app-shell { padding: 0 16px 60px; }
  .hero { padding: 54px 0 34px; gap: 26px; }
  .hero h1 { font-size: clamp(42px, 14vw, 66px); }
  .hero-side { grid-template-columns: 1fr; }
  .hero-card { padding: 16px; }
  .section-head { display: block; margin-top: 36px; }
  .section-head p { margin-top: 10px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 128px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-info { padding: 10px; gap: 6px; }
  .product-info h3 { font-size: 14px; }
  .product-info p { display: none; }
  .product-price { font-size: 15px; }
  .product-link { font-size: 10px; }
  .product-detail { padding-top: 24px; }
  .detail-copy h1 { font-size: 42px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .primary-button { flex: 1; }
  .site-footer { display: block; padding: 24px 16px; }
  .footer-meta { text-align: left; align-items: flex-start; margin-top: 18px; }
  .cart-drawer { padding: 18px; }
  .modal-card { padding: 22px; }
}
