/* ============================================================
   PhoneCraft — stylesheet
   Colour + spacing tokens live at the top. Change them there
   and the whole site follows.
   ============================================================ */

:root {
  --ink:        #0e1116;
  --ink-2:      #3d4654;
  --ink-3:      #6b7482;
  --line:       #e4e7ec;
  --line-2:     #f1f3f6;
  --bg:         #ffffff;
  --bg-2:       #f7f8fa;
  --bg-3:       #eef0f4;

  --accent:     #5b3df5;
  --accent-2:   #7c63ff;
  --accent-ink: #ffffff;
  --accent-wash:#f0ecff;

  --good:       #0f9d58;
  --sale:       #d92d20;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg:  0 12px 40px rgba(16,24,40,.14);

  --wrap:       1200px;
  --header-h:   68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #f2f4f8;
    --ink-2:      #b3bcca;
    --ink-3:      #838d9c;
    --line:       #262b34;
    --line-2:     #1c2029;
    --bg:         #0e1116;
    --bg-2:       #141821;
    --bg-3:       #1b2029;
    --accent:     #8b76ff;
    --accent-2:   #a793ff;
    --accent-ink: #12101f;
    --accent-wash:#1e1a33;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.55);
  }
}

:root[data-theme="dark"] {
  --ink:        #f2f4f8;
  --ink-2:      #b3bcca;
  --ink-3:      #838d9c;
  --line:       #262b34;
  --line-2:     #1c2029;
  --bg:         #0e1116;
  --bg-2:       #141821;
  --bg-3:       #1b2029;
  --accent:     #8b76ff;
  --accent-2:   #a793ff;
  --accent-ink: #12101f;
  --accent-wash:#1e1a33;
  --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  letter-spacing: .01em;
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 15px;
}
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.is-on { transform: scale(1); }

.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn--wa { background: #25d366; color: #05230f; }
.btn--wa:hover { background: #1fbe5a; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 340px at 82% 12%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(520px 300px at 8% 88%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 84px 20px 92px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-wash); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  font-size: clamp(16.5px, 2vw, 19px);
  color: var(--ink-2); max-width: 560px; margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.trust {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust div { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.trust strong { color: var(--ink); font-weight: 600; }

/* ---------- section furniture ---------- */
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px; flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section__head p { color: var(--ink-3); font-size: 15px; margin-top: 7px; }
.section__link { color: var(--accent); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.section__link:hover { text-decoration: underline; }

/* ---------- category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: transform .16s, box-shadow .16s, border-color .16s;
  display: block;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-wash);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.cat h3 { font-size: 16px; margin-bottom: 5px; }
.cat p { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink-3); }

.card__media {
  position: relative; aspect-ratio: 1/1; background: var(--bg-3);
  cursor: pointer; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.045); }

.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 52px;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 12%, var(--bg-3)),
    var(--bg-3) 60%);
}

.badge {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  padding: 5px 10px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
}
.badge--sale { background: var(--sale); color: #fff; }
.badge--new  { background: var(--accent); color: #fff; }

.soldout {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: blur(2px);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
}

.card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__cat { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card__name { font-size: 15.5px; font-weight: 650; cursor: pointer; }
.card__name:hover { color: var(--accent); }
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 13px; }
.card__price b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.card__price s { font-size: 13.5px; color: var(--ink-3); }
.card__off { font-size: 11.5px; font-weight: 700; color: var(--sale); }
.card__body .btn { margin-top: auto; }

/* ---------- shop toolbar ---------- */
.toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 26px;
}
.search {
  position: relative; flex: 1 1 260px; max-width: 380px;
}
.search input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); font-size: 14.5px;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); }

select.sort {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); font-size: 14.5px; cursor: pointer;
}
.count { margin-left: auto; font-size: 14px; color: var(--ink-3); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 550; color: var(--ink-2); background: var(--bg);
  transition: all .14s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink); font-size: 19px; margin-bottom: 7px; }

/* ---------- drawer + modal shared ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,12,16,.5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%);
  background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer__head h2 { font-size: 17px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { flex: none; padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }

.line {
  display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-2);
}
.line:last-child { border-bottom: none; }
.line__img {
  width: 68px; height: 68px; flex: none; border-radius: 10px; overflow: hidden;
  background: var(--bg-3); position: relative;
}
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__img .ph { font-size: 26px; }
.line__main { flex: 1; min-width: 0; }
.line__name { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.line__meta { font-size: 13px; color: var(--ink-3); }
.line__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }

.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-2); font-size: 16px; line-height: 1; }
.qty button:hover { background: var(--bg-3); color: var(--ink); }
.qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }

.line__rm { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; }
.line__rm:hover { color: var(--sale); }

.totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totals .grand { font-size: 18px; font-weight: 700; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
.ship-note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 11px; line-height: 1.45; }

/* ---------- quick view modal ---------- */
.modal {
  position: fixed; z-index: 100; inset: 0; display: grid; place-items: center;
  padding: 20px; pointer-events: none;
}
.modal.is-open { pointer-events: auto; }
.modal__card {
  background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--line);
  width: min(820px, 100%); max-height: 88vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
  transform: scale(.94) translateY(12px); opacity: 0;
  transition: transform .24s cubic-bezier(.34,1.3,.64,1), opacity .2s;
}
.modal.is-open .modal__card { transform: none; opacity: 1; }
.modal__media { position: relative; background: var(--bg-3); aspect-ratio: 1/1; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 30px 28px; display: flex; flex-direction: column; }
.modal__close {
  position: absolute; top: 13px; right: 13px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 17px; color: var(--ink-2);
}
.modal__close:hover { background: var(--bg-3); color: var(--ink); }
.modal__body h2 { font-size: 24px; margin: 6px 0 10px; }
.modal__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.modal__price b { font-size: 26px; letter-spacing: -.02em; }
.modal__price s { color: var(--ink-3); font-size: 16px; }
.modal__desc { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.feats { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.feats li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.feats li::before { content: "✓"; color: var(--good); font-weight: 700; flex: none; }
.modal__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--bg);
  padding: 13px 22px; border-radius: 11px;
  font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.34,1.4,.64,1), opacity .2s, visibility .3s;
  max-width: calc(100vw - 40px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- value props ---------- */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prop { text-align: center; padding: 8px; }
.prop__icon { font-size: 28px; margin-bottom: 11px; }
.prop h3 { font-size: 15.5px; margin-bottom: 5px; }
.prop p { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- contact / CTA band ---------- */
.band {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: var(--radius-lg); padding: 52px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 9px; }
.band p { opacity: .92; font-size: 16px; max-width: 460px; }
.band .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.band .btn--ghost:hover { background: rgba(255,255,255,.24); }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn--primary { background: #fff; color: var(--accent); }
.band .btn--primary:hover { background: #f1eeff; }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px;
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 15px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li a { font-size: 14.5px; color: var(--ink-2); }
.footer li a:hover { color: var(--accent); }
.footer__about p { font-size: 14.5px; color: var(--ink-2); margin: 13px 0 18px; max-width: 320px; }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); background: var(--bg);
  transition: all .15s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer__bar {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-3);
}

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.42);
  transition: transform .18s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cats  { grid-template-columns: repeat(2, 1fr); }
  .props { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .modal__card { grid-template-columns: 1fr; }
  .modal__media { aspect-ratio: 16/10; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 16px; margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
  .nav a:hover, .nav a.is-active { border-bottom-color: var(--line-2); }
  .menu-btn { display: grid; }
  .hero__inner { padding: 56px 20px 62px; }
  .trust { gap: 18px; margin-top: 34px; }
  .section { padding: 54px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card__body { padding: 12px 13px 14px; }
  .card__name { font-size: 14px; }
  .card__price { gap: 6px; margin-bottom: 11px; }
  .card__price b { font-size: 16px; }
  .card__price s { font-size: 12.5px; }
  .card__off { font-size: 11px; }
  .band { padding: 36px 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .count { width: 100%; margin-left: 0; }
  .fab { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
