/* =========================================================
   SIPCITY TEMPLATE — dark theme
   Edit the tokens below to restyle the whole site.
   ========================================================= */

:root {
  --bg: #0d0e12;
  --bg-2: #101218;
  --surface: #15171e;
  --surface-2: #1b1e26;
  --border: #262a34;
  --text: #edeef2;
  --muted: #9aa1ad;
  --accent: #e2b14c;
  --accent-ink: #171208;
  --danger: #e26363;
  --radius: 14px;
  --container: 1120px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { line-height: 1.2; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 18, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: .3px; white-space: nowrap; }
.nav { display: flex; gap: 6px; }
.nav__link { padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--text); background: var(--surface-2); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; font-size: 1rem;
}
.icon-btn:hover { border-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; transition: .2s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--cart { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; }
.btn--cart:hover { border-color: var(--accent); }
.cart-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 700;
}
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-badge.pulse { animation: pulse .3s; }

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(226, 177, 76, .12), transparent 60%),
    radial-gradient(600px 300px at 85% 20%, rgba(120, 90, 255, .10), transparent 60%);
}
.hero__kicker {
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin: 0 0 14px;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.accent { color: var(--accent); }
.hero__text { max-width: 560px; color: var(--muted); margin: 0 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__stats { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero__stats li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px; min-width: 130px;
}
.hero__stats strong { display: block; font-size: 1.4rem; color: var(--accent); }
.hero__stats span { color: var(--muted); font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.section__head h2 { margin: 0; font-size: 1.6rem; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 14px; text-align: center;
  transition: .2s; display: block;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cat-card__icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.cat-card__name { font-weight: 600; font-size: .95rem; }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.why-card__num { color: var(--accent); font-weight: 800; font-size: .9rem; letter-spacing: 2px; }
.why-card h3 { margin: 10px 0 8px; }
.why-card p { margin: 0; color: var(--muted); }

/* ---------- features checklist ---------- */
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; list-style: none; margin: 0; padding: 0;
}
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.check { color: var(--accent); font-weight: 800; }

/* ---------- chips (areas + shop filters) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips[hidden] { display: none; }              /* flex overrides [hidden] */
.chips--sub { margin-top: 10px; }
.chips--sub .chip { font-size: .82rem; padding: 7px 14px; }
.chip {
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .9rem; color: var(--muted); cursor: pointer; transition: .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip--active { color: var(--accent); border-color: var(--accent); background: rgba(226, 177, 76, .08); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: #0a0b0e; padding: 48px 0 24px; margin-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { margin: 0 0 12px; font-size: .95rem; color: var(--accent); }
.footer p { color: var(--muted); margin: 0 0 14px; max-width: 320px; }
.footer a { display: block; color: var(--muted); padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px;
  color: var(--muted); font-size: .85rem;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ---------- shop page ---------- */
.shop-head { padding: 48px 0 20px; }
.shop-head h1 { margin: 0 0 6px; font-size: 2rem; }
.shop-controls { display: flex; gap: 12px; margin: 22px 0 16px; flex-wrap: wrap; }
.shop-controls input[type="search"], .shop-controls select {
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); outline: none; font: inherit;
}
.shop-controls input[type="search"] { flex: 1; min-width: 220px; }
.shop-controls input:focus, .shop-controls select:focus { border-color: var(--accent); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-bottom: 40px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; transition: .2s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.product-card__icon {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--surface-2), #22262f); border-radius: 10px;
  overflow: hidden;
}
.product-card__icon img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block; background: #fff;
}
.product-card__cat { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; }
.product-card__name { font-weight: 600; margin: 0; font-size: 1.02rem; }
.product-card__meta { color: var(--muted); font-size: .85rem; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card__price { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.add-btn {
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: .15s;
}
.add-btn:hover { filter: brightness(1.08); }
.add-btn:active { transform: scale(.96); }

/* ---------- product variant selectors (pack / ml) ---------- */
.product-card__variants { display: flex; flex-direction: column; gap: 7px; }
.variant-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.variant-row[hidden] { display: none; }
.variant-title {
  color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: 1px; min-width: 36px;
}
.variant-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.variant-opt { position: relative; display: inline-flex; }
.variant-opt input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
}
.variant-opt span {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: .82rem; transition: .15s; cursor: pointer;
}
.variant-opt input:checked + span {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600;
}
.variant-opt input:hover + span { border-color: var(--accent); }
.variant-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%);
  background: #12141a; border-left: 1px solid var(--border); z-index: 100;
  transform: translateX(105%); transition: transform .28s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { margin: 0; }
.drawer__close { font-size: 1.4rem; color: var(--muted); }
.drawer__close:hover { color: var(--text); }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.drawer__foot { border-top: 1px solid var(--border); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; }

.cart-line {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
}
.cart-line__icon { font-size: 1.6rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.cart-line__icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; display: block; }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line__price { color: var(--muted); font-size: .85rem; }
.cart-line__total { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.cart-remove { color: var(--muted); font-size: .85rem; }
.cart-remove:hover { color: var(--danger); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--border); display: grid; place-items: center;
}
.qty button:hover { border-color: var(--accent); }
.qty span { min-width: 18px; text-align: center; font-weight: 600; }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.progress-note { font-size: .85rem; color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; line-height: 2; }

.total-row { display: flex; justify-content: space-between; color: var(--muted); }
.total-row--grand { color: var(--text); font-weight: 700; font-size: 1.05rem; }

.pill-group { display: flex; gap: 8px; }
.pill {
  flex: 1; text-align: center; padding: 9px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: .88rem; cursor: pointer; transition: .15s;
}
.pill:hover { color: var(--text); }
.pill--active { border-color: var(--accent); color: var(--accent); background: rgba(226, 177, 76, .08); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; color: var(--muted); }
.field input, .field textarea {
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); outline: none; font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.drawer .btn--primary { width: 100%; justify-content: center; }
.order-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- floating contact buttons ---------- */
.float-btns { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-btn {
  width: auto; height: auto; min-width: 48px; min-height: 48px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border); background: var(--surface); transition: .2s;
}
.float-btn:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- onboarding modal ---------- */
.onboard-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: grid; place-items: center; z-index: 200;
}
.onboard-modal {
  width: min(420px, 92vw); background: #12141a; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.onboard__head { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.onboard__head h3 { margin: 0; text-align: center; }
.onboard__body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.onboard__choices { display: flex; flex-direction: column; gap: 10px; }
.onboard__btn {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1rem; cursor: pointer; transition: .15s;
}
.onboard__btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- contact us button ---------- */
.contact-us {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: .15s;
}
.contact-us:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .header__inner { gap: 10px; }
  .header__actions .contact-us { display: none; } /* keep cart visible on mobile */
  .hero { padding: 60px 0 46px; }
  .section { padding: 44px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shop-controls select { flex: 1; }
}
