/* ============ Rahim Traders — styles ============ */
:root {
  --navy: #0b2a4a;
  --navy-2: #10385f;
  --blue: #1677ff;
  --teal: #0fb5c9;
  --orange: #ff7a1a;
  --orange-2: #ff5a00;
  --ink: #0f1b2d;
  --text: #3b4a5e;
  --muted: #6b7a8f;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --card: #ffffff;
  --green: #18b26b;
  --red: #e5484d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow: 0 10px 30px -10px rgba(11, 42, 74, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 74, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: .75em 1.35em; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 90, 0, .6); }
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(255, 90, 0, .75); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.modal .btn--ghost, .success .btn--ghost { background: var(--bg-alt); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1fbd5a; }
.btn--lg { padding: .95em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--navy); color: #cfe0f5; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar__phone { color: #fff; font-weight: 700; white-space: nowrap; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--blue)); color: var(--orange);
  box-shadow: 0 8px 18px -8px rgba(22, 119, 255, .7);
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { color: var(--ink); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.brand__text small { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #9fb6d1; }

.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { padding: .5rem .8rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--text); transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: .45rem;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  padding: .6rem 1rem; border-radius: 12px; font-weight: 700;
  transition: background .2s, transform .15s;
}
.cart-btn:hover { background: var(--navy-2); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: .75rem; display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.95); } }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #d7e6f7;
  background: radial-gradient(1200px 500px at 85% -10%, #1a5ea8 0%, transparent 60%),
              linear-gradient(160deg, #07203a 0%, var(--navy) 45%, #0d3d6b 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 380px; height: 380px; background: var(--teal); top: -120px; left: -80px; opacity: .35; }
.b2 { width: 320px; height: 320px; background: var(--orange); bottom: -140px; right: 10%; opacity: .3; }
.b3 { width: 260px; height: 260px; background: var(--blue); top: 30%; right: -60px; }
.hero__pipes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; }
.hero__pipes path { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5.5rem 0 6rem; }
.pill {
  display: inline-block; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .45em; }
.grad { background: linear-gradient(90deg, #5fd4ff, var(--teal) 40%, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.1rem; max-width: 560px; }
.hero p strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 2.2rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 1.4rem; justify-content: start; }
.hero__trust li { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; line-height: 1.25; color: #cfe0f5; }
.hero__trust b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.09); font-size: 1.15rem; }

.hero__visual { position: relative; height: 440px; }
.hero__ring { position: absolute; width: 360px; height: 360px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 2px dashed rgba(255,255,255,.15); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero__card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: .85rem 1rem;
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; z-index: 2;
}
.hero__card small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.hero__card strong { display: block; font-size: .95rem; }
.hc-main { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 1.3rem; flex-direction: column; text-align: center; width: 230px; animation-name: floatC; }
.hc-main .hc-icon { width: 120px; height: 120px; border-radius: 26px; }
.hc-main .hc-icon svg { width: 66px; height: 66px; }
.hc-price { display: inline-block; margin-top: .35rem; font-weight: 800; color: var(--orange-2); font-size: 1.25rem; }
.hc-a { top: 6%; left: 2%; animation-delay: -1s; font-weight: 700; font-size: .9rem; }
.hc-b { bottom: 10%; left: 0; animation-delay: -3s; font-weight: 700; font-size: .9rem; }
.hc-c { top: 14%; right: 0; animation-delay: -2s; }
.hc-emoji { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(140deg, #e3f9ee, #c8f1dc); font-size: 1.2rem; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes floatC { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } }

.hc-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, #e8f3ff, #d4f4f8); }
.hc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--orange-2); margin-bottom: .5rem; }
.eyebrow--light { color: #ffb36b; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat {
  --c1: #e8f3ff; --c2: #d4f4f8; --ic: var(--navy);
  display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
  padding: 1.15rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--c1), var(--c2)); transition: transform .3s; }
.cat:hover .cat__icon { transform: rotate(-8deg) scale(1.06); }
.cat__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ic); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat b { color: var(--ink); font-size: .95rem; line-height: 1.25; }
.cat small { color: var(--muted); font-size: .8rem; margin-top: -.6rem; }

/* category colour themes */
.t-taps       { --c1: #e3f0ff; --c2: #cde6ff; --ic: #1062c9; }
.t-pipes      { --c1: #e0f8f4; --c2: #c6efe7; --ic: #0b8a76; }
.t-bath       { --c1: #e4f7fc; --c2: #c9eef8; --ic: #0a8bad; }
.t-kitchen    { --c1: #eef0ff; --c2: #dde1ff; --ic: #4a4fd1; }
.t-tools      { --c1: #fff1e5; --c2: #ffe0c7; --ic: #d4580b; }
.t-locks      { --c1: #f4ecff; --c2: #e6d8ff; --ic: #7444cf; }
.t-fasteners  { --c1: #eef2f6; --c2: #dfe6ee; --ic: #3d5068; }
.t-adhesives  { --c1: #fff5d9; --c2: #ffe9a8; --ic: #b07800; }
.t-electrical { --c1: #fffbe0; --c2: #fff2a6; --ic: #b38a00; }
.t-tanks      { --c1: #e6f6ff; --c2: #c4e8fb; --ic: #0b6fa4; }
.brand-tag { color: var(--orange-2); font-weight: 800; }
.price-note { font-size: .82rem; color: var(--muted); margin: -.6rem 0 1.2rem; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 300px; padding: .75rem 1rem .75rem 2.6rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus, .toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.12); }
.toolbar select { padding: .75rem 2.2rem .75rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8f' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right .7rem center / 16px; appearance: none; cursor: pointer; outline: none; }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip span { opacity: .6; margin-left: .25rem; font-weight: 500; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: rise .45s ease both;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.product__media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 55%), linear-gradient(140deg, var(--c1, #e8f3ff), var(--c2, #d4f4f8));
}
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product__media img { transform: scale(1.06); }
.product__media:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,42,74,.18), transparent 35%); pointer-events: none; }
.product__media svg { width: 72px; height: 72px; fill: none; stroke: var(--ic, var(--navy)); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s; filter: drop-shadow(0 8px 10px rgba(11,42,74,.12)); }
.product:hover .product__media svg { transform: scale(1.1) rotate(-4deg); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: .25rem .6rem; border-radius: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  background: var(--navy); color: #fff;
}
.badge--offer { background: var(--red); }
.badge--new { background: var(--green); }
.badge--out { background: #6b7a8f; left: auto; right: 12px; }
.product__body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.product__name { font-size: 1rem; margin: .2rem 0 .2rem; color: var(--ink); font-weight: 700; line-height: 1.3; }
.product__desc { font-size: .84rem; color: var(--muted); margin: 0 0 .9rem; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price b { font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.price small { color: var(--muted); font-size: .75rem; }
.price s { color: var(--muted); font-size: .8rem; margin-left: .3rem; font-weight: 500; }
.add-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 12px; padding: .6rem .85rem;
  font-weight: 700; font-size: .85rem; cursor: pointer; transition: background .2s, transform .15s;
}
.add-btn:hover { background: var(--orange-2); }
.add-btn:active { transform: scale(.95); }
.add-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.add-btn:disabled { background: #c5cfdb; cursor: not-allowed; }

.qty { display: inline-flex; align-items: center; background: var(--bg-alt); border-radius: 12px; border: 1px solid var(--line); }
.qty button { width: 34px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--ink); border-radius: 10px; }
.qty button:hover { background: #fff; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .92rem; }

.empty { text-align: center; padding: 3rem 1rem; max-width: 460px; margin: 0 auto; }
.empty__icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__n { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.6rem; font-weight: 800; color: #edf2f8; line-height: 1; }
.step__icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 16px; background: linear-gradient(140deg, #fff1e5, #ffe0c7); margin-bottom: 1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Request ---------- */
.request { background: linear-gradient(150deg, var(--navy) 0%, #0d3d6b 60%, #0b5679 100%); color: #cfe0f5; position: relative; overflow: hidden; }
.request::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: var(--orange); filter: blur(120px); opacity: .18; right: -150px; top: -150px; }
.request__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.request h2 { color: #fff; }
.request p { font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: #fff; }
.ticks li::before { content: "✓"; width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,122,26,.2); color: #ffb36b; font-weight: 800; font-size: .85rem; }

/* ---------- Forms ---------- */
.form { padding: 1.8rem; color: var(--text); box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.form__note { font-size: .82rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; flex: 1; min-width: 0; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: #fbfcfe; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22,119,255,.12); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.field .err { color: var(--red); font-size: .78rem; font-weight: 600; }
.row { display: flex; gap: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: stretch; }
.info-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list li > span { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--bg-alt); font-size: 1.2rem; }
.info-list b { color: var(--ink); }
.info-list p { margin: 0; color: var(--muted); }
.info-list a { color: var(--blue); font-weight: 700; }
.contact__map { border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--bg-alt); border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-placeholder {
  height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 2rem;
  background-color: #eaf1f8;
  background-image: linear-gradient(#dbe6f2 1px, transparent 1px), linear-gradient(90deg, #dbe6f2 1px, transparent 1px);
  background-size: 36px 36px;
}
.map-placeholder svg { width: 54px; height: 54px; fill: var(--orange); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 10px 10px rgba(255,90,0,.35)); animation: float 3s ease-in-out infinite; }
.map-placeholder strong { color: var(--ink); font-size: 1.1rem; margin-top: .4rem; }
.map-placeholder span { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: #071a2e; color: #9fb6d1; padding: 4rem 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer__about { margin-top: 1rem; max-width: 380px; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.3rem 0; font-size: .82rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 24px -6px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Overlay / drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7, 26, 46, .5); backdrop-filter: blur(3px); z-index: 90; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100;
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.drawer__foot { padding: 1.2rem 1.3rem; border-top: 1px solid var(--line); background: #fbfcfe; }
.sum-row { display: flex; justify-content: space-between; align-items: center; margin: .3rem 0; }
.sum-row b { color: var(--ink); font-size: 1.05rem; }
.sum-row.total { border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: .6rem; }
.sum-row.total b { font-size: 1.3rem; color: var(--orange-2); }
.pay-note { text-align: center; font-size: .82rem; color: var(--green); font-weight: 700; margin: .7rem 0 0; }

.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: .8rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__thumb { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--c1, #e8f3ff), var(--c2, #d4f4f8)); }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__thumb svg { width: 30px; height: 30px; fill: none; stroke: var(--ic, var(--navy)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-item__name { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.cart-item__meta { font-size: .8rem; color: var(--muted); }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cart-item__right b { color: var(--ink); }
.remove { background: none; border: 0; color: var(--muted); font-size: .78rem; cursor: pointer; padding: 0; text-decoration: underline; }
.remove:hover { color: var(--red); }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty div { font-size: 3rem; }

.free-bar { font-size: .82rem; font-weight: 600; margin-bottom: .8rem; }
.free-bar .track { height: 6px; border-radius: 999px; background: var(--line); margin-top: .4rem; overflow: hidden; }
.free-bar .fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 999px; transition: width .4s; }

.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal__box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-lg);
  animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close { position: absolute; top: 1rem; right: 1rem; }
.modal h3 { font-size: 1.4rem; margin-bottom: .2rem; padding-right: 3rem; }

.method { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.2rem 0; }
.method__opt input { position: absolute; opacity: 0; pointer-events: none; }
.method__card { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; transition: all .2s; height: 100%; }
.method__card b { color: var(--ink); font-size: .95rem; }
.method__card small { color: var(--muted); font-size: .8rem; }
.method__opt input:checked + .method__card { border-color: var(--orange); background: #fff7f0; box-shadow: 0 0 0 4px rgba(255,122,26,.12); }
.method__opt input:focus-visible + .method__card { outline: 2px solid var(--blue); outline-offset: 2px; }

.summary { background: var(--bg-alt); border-radius: 14px; padding: 1rem 1.1rem; margin: .4rem 0 1.2rem; font-size: .9rem; }
.summary__items { max-height: 140px; overflow-y: auto; margin-bottom: .5rem; }
.summary__items div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.summary__items span:first-child { color: var(--text); }

.success { text-align: center; padding: 1rem 0 0; }
.success__icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #2bd987, var(--green)); color: #fff; font-size: 2.2rem; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(24,178,107,.7); animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }
.success h3 { padding: 0; }
.success .btn { margin-top: .6rem; }
.success b { color: var(--ink); }

.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-top: .8rem; }
.order-card__head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.order-card__head b { color: var(--ink); }
.status { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 8px; background: #fff3e0; color: #b25b00; }
.order-card p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Product details page ---------- */
.product__name a:hover { color: var(--orange-2); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--light:hover { background: var(--bg-alt); }

.pview { padding: 1.5rem 0 4.5rem; background: linear-gradient(180deg, var(--bg-alt), #fff 420px); min-height: 70vh; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { font-weight: 600; color: var(--text); }
.crumbs a:hover { color: var(--orange-2); }
.crumbs a:first-child { color: var(--blue); }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }

.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: start; }
.pd__media {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 55%), linear-gradient(140deg, var(--c1, #e8f3ff), var(--c2, #d4f4f8));
  box-shadow: var(--shadow); position: sticky; top: 96px;
}
.pd__media img { width: 100%; height: 100%; object-fit: cover; animation: fade .4s ease; }
.pd__media svg { width: 40%; height: 40%; fill: none; stroke: var(--ic, var(--navy)); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pd__media .badge { top: 16px; left: 16px; font-size: .8rem; padding: .35rem .7rem; }
.pd__media .badge--out { left: auto; right: 16px; }
.pd__photo-note { position: absolute; right: 12px; bottom: 12px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(7,26,46,.55); padding: .25rem .6rem; border-radius: 8px; backdrop-filter: blur(4px); }

.pd__info .product__cat { font-size: .8rem; }
.pd__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: .35rem 0 .5rem; }
.pd__desc { font-size: 1.05rem; color: var(--muted); }
.pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .7rem; margin: 1.2rem 0 .4rem; }
.pd__price b { font-size: 2.2rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.pd__price small { color: var(--muted); font-size: .95rem; }
.pd__price s { color: var(--muted); font-size: 1.05rem; }
.pd__save { background: #ffe9e9; color: var(--red); font-weight: 800; font-size: .8rem; padding: .25rem .6rem; border-radius: 8px; }
.pd__stock { color: var(--green); font-weight: 700; font-size: .9rem; margin-bottom: 1.4rem; }
.pd__stock.is-out { color: var(--red); }

.pd__buy { display: flex; flex-wrap: wrap; gap: .7rem; align-items: stretch; }
.pd__buy .btn { flex: 1; min-width: 140px; }
.qty--lg { background: #fff; }
.qty--lg button { width: 46px; height: 52px; font-size: 1.3rem; }
.qty--lg span { min-width: 34px; font-size: 1.05rem; }
.pd__incart { font-size: .88rem; font-weight: 600; color: var(--green); margin: .7rem 0 0; min-height: 1.4em; }
.pd__incart a { color: var(--blue); text-decoration: underline; }

.pd__perks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pd__perks li { display: flex; gap: .6rem; align-items: center; padding: .8rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pd__perks span { font-size: 1.3rem; }
.pd__perks b { display: block; color: var(--ink); font-size: .84rem; line-height: 1.25; }
.pd__perks small { color: var(--muted); font-size: .74rem; line-height: 1.3; display: block; }
.pd__links { display: flex; flex-wrap: wrap; gap: .6rem; }

.pd__more { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3rem; }
.pd__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: .8rem 0 0; font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; }
.ticks--dark li { color: var(--text); font-weight: 500; align-items: flex-start; font-size: .92rem; }
.ticks--dark li::before { background: #e6f7ef; color: var(--green); margin-top: .05rem; }
.pd__related-head { margin-top: 3.5rem; }

@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; gap: 1.5rem; }
  .pd__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .pd__more { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pview { padding-top: 1rem; }
  .crumbs b { max-width: 22ch; }
  .pd__price b { font-size: 1.9rem; }
  .pd__perks { grid-template-columns: 1fr; }
  .pd__buy .qty { flex: 1 1 100%; justify-content: space-between; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 14px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg); transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s, visibility .35s; max-width: calc(100% - 32px);
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding: 4rem 0 4.5rem; }
  .hero__visual { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: .5rem .55rem; font-size: .88rem; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem 16px 1rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .8rem .5rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header__actions { margin-left: auto; }
  .request__inner, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
  .search input { width: 100%; }
  .toolbar { width: 100%; }
  .search { flex: 1; }
}
@media (max-width: 600px) {
  .topbar__inner > span { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar.no-phone { display: none; }
  .section { padding: 3.5rem 0; }
  .hero__trust { grid-template-columns: repeat(2, auto); gap: 1rem 1.5rem; }
  .hero__visual { height: 300px; }
  .hc-main { width: 190px; padding: 1rem; }
  .hc-main .hc-icon { width: 90px; height: 90px; }
  .hc-main .hc-icon svg { width: 50px; height: 50px; }
  .hc-a { left: 0; top: 0; }
  .hc-b { left: 0; bottom: 4%; }
  .hc-c { right: 0; top: auto; bottom: 22%; }
  .hc-c small { display: none; }
  .hero__ring { width: 260px; height: 260px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .brand__text small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product__body { padding: .8rem; }
  .product__name { font-size: .9rem; }
  .product__desc { display: none; }
  .product__foot { flex-direction: column; align-items: stretch; gap: .6rem; }
  .add-btn { justify-content: center; }
  .qty { justify-content: space-between; }
  .product__media svg { width: 56px; height: 56px; }
  .steps { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
  .method { grid-template-columns: 1fr; }
  .modal__box { padding: 1.5rem 1.2rem; border-radius: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .cat { padding: .9rem .7rem; align-items: center; text-align: center; }
  .cat b { font-size: .82rem; }
  .cat small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
