/* Kailash Crackers – customer pages. Mobile first. --brand / --accent come from Admin → Settings. */
:root {
  --brand: #0d5c63;
  --accent: #f7a520;
  --brand-dark: color-mix(in srgb, var(--brand) 70%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fff);
  --red: #e23744;
  --green: #138a52;
  --ink: #1b2a2c;
  --muted: #6b7a7c;
  --line: #ece5da;
  --bg: #faf6f0;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27,42,44,.04), 0 6px 20px rgba(27,42,44,.06);
  --shadow-lg: 0 18px 50px rgba(27,42,44,.18);
  --head: 'Baloo 2', system-ui, sans-serif;
  --body: 'Mukta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.ic { flex: 0 0 auto; }
.p-price, .p-amt, .sums, .ci-amt, .ci-meta, .cp-text, .order-no, .pl-table td, .co-summary, .track-table td, .cb-info, .qv-price, .done-total { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

/* ---------- top bar + notice ---------- */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.9); font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.tb-text { display: none; }
.tb-phones { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.tb-phones a { color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .2px; }
.tb-phones .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.notice { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #ff6b35)); color: #2b1900; font-weight: 600; font-size: 14px; overflow: hidden; white-space: nowrap; }
.notice-track { display: inline-flex; animation: marquee 26s linear infinite; padding: 6px 0; }
.notice-track span { padding-right: 90px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.header-in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding-top: 10px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-img { height: 46px; width: auto; max-width: 120px; object-fit: contain; }
.logo-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1; }
.brand-text small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.main-nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { flex: 0 0 auto; padding: 7px 12px; border-radius: 10px; text-decoration: none; color: #3d4b4d; font-weight: 600; font-size: 15px; position: relative; }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--accent); }
.main-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.cart-pill { display: inline-flex; align-items: center; gap: 10px; border: 0; background: var(--brand); color: #fff; border-radius: 14px; padding: 7px 12px 7px 9px; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.cp-ic { position: relative; display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: rgba(255,255,255,.14); border-radius: 10px; }
.cp-count { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #2b1900; font-size: 11px; line-height: 19px; text-align: center; }
.cp-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.cp-text small { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .4px; }
.cp-text b { font-size: 15px; }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }
@media (max-width: 400px) { .pill-word { display: none; } .cart-pill { padding-right: 10px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2; transition: transform .1s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 14px 22px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #2b1900; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-outline { background: #fff; border: 1.5px solid var(--brand); color: var(--brand); }
.btn-wa { background: #25d366; color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-link { border: 0; background: none; color: var(--brand); text-decoration: underline; font-size: 14px; font-weight: 600; padding: 6px; }
.btn-link.danger { color: var(--red); }

/* ---------- hero ---------- */
.hero { margin-top: 14px; }
.hero-card { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 24px 20px; display: grid; grid-template-columns: 1fr; gap: 10px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 38%, transparent) 0, transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(255,255,255,.12) 0, transparent 60%),
    linear-gradient(140deg, var(--brand), var(--brand-dark)); box-shadow: var(--shadow); }
.hero-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(#fff 1px, transparent 1.6px); background-size: 26px 26px; }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero h1 { font-size: 32px; font-weight: 800; margin: 12px 0 6px; max-width: 14ch; }
.hero-text { margin: 0; opacity: .92; font-size: 16.5px; max-width: 46ch; }
.hero-points { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li { background: rgba(0,0,0,.16); border-radius: 10px; padding: 5px 10px 5px 8px; font-size: 14px; font-weight: 500; }
.hero-points li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-art { position: absolute; right: -24px; top: -18px; width: 150px; height: 150px; z-index: 0; }
.burst { position: absolute; right: 30px; top: 34px; width: 98px; height: 98px; border-radius: 50%; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--head); transform: rotate(-10deg); box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.25); }
.burst b { font-size: 32px; line-height: .9; }
.burst span { font-size: 16px; font-weight: 800; letter-spacing: 2px; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .9; animation: twinkle 2.4s ease-in-out infinite; }
.s1 { left: 6px; top: 60px; } .s2 { left: 40px; top: 10px; animation-delay: .4s; background: #fff; }
.s3 { right: 10px; top: 150px; animation-delay: .8s; } .s4 { left: 20px; top: 130px; animation-delay: 1.2s; background: #ff8fa3; } .s5 { right: 60px; top: 4px; animation-delay: 1.6s; background: #fff; }
@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.2); opacity: 1; } }
@media (max-width: 559px) {
  .hero-card { padding: 18px 16px 18px; border-radius: 18px; }
  .hero-copy { padding-right: 84px; }
  .kicker { font-size: 12px; padding: 2px 10px; }
  .hero h1 { font-size: 25px; margin: 8px 0 4px; }
  .hero-text { font-size: 14.5px; line-height: 1.4; }
  .hero-points { margin: 10px -16px 0 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-right: 16px; }
  .hero-points::-webkit-scrollbar { display: none; }
  .hero-points li { font-size: 12.5px; white-space: nowrap; padding: 4px 9px 4px 7px; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .btn-lg { padding: 11px 18px; font-size: 16px; }
  .hero-actions .btn-glass { display: none; }
  .hero-art { right: -30px; top: -26px; }
  .burst { width: 84px; height: 84px; right: 36px; top: 40px; }
  .burst b { font-size: 26px; } .burst span { font-size: 13px; }
  .features { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; gap: 8px; }
  .feat { padding: 10px; gap: 9px; border-radius: 12px; }
  .feat-ic { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .feat b { font-size: 13.5px; }
  .feat small { font-size: 11.5px; }
  .cp-text small { display: none; }
  .shop-main { padding-top: 20px; }
  .order-head h2 { font-size: 24px; }
}

.slider { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 1; min-height: 140px; background: var(--brand); box-shadow: var(--shadow); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.slides img.on { opacity: 1; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.55); transition: width .25s; }
.dots button.on { width: 22px; background: #fff; }

/* ---------- features ---------- */
.features { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; scroll-snap-type: x mandatory; }
.features::-webkit-scrollbar { display: none; }
.feat { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; scroll-snap-align: start; }
.feat-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.feat b { display: block; font-size: 15px; line-height: 1.2; }
.feat small { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; }

/* ---------- order area ---------- */
.shop-main { padding-top: 26px; padding-bottom: 30px; }
.order-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.order-head h2 { font-size: 28px; color: var(--ink); }
.order-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.oh-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-soft { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.pill-soft b { color: var(--brand); }
a.pill-soft:hover { border-color: var(--brand); }
.closed-msg { background: #fff4e5; border: 1px solid #fbd38d; color: #7b341e; padding: 12px 14px; border-radius: 12px; margin: 10px 0; font-weight: 600; }

.toolbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px 8px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: box-shadow .2s; }
.toolbar.stuck { box-shadow: 0 8px 18px -12px rgba(27,42,44,.35); }
.tb-row { display: flex; gap: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input { border: 0; outline: 0; flex: 1; padding: 11px 0; min-width: 0; background: transparent; font-size: 16px; color: var(--ink); }
#catJump { width: 46px; flex: 0 0 auto; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath fill='%230d5c63' d='M4 5h16v2H4zm0 6h16v2H4zm0 6h16v2H4z'/%3E%3C/svg%3E") center no-repeat; color: transparent; appearance: none; -webkit-appearance: none; }
#catJump option { color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #3d4b4d; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.list-head { display: none; }
.cat { margin-top: 18px; scroll-margin-top: 130px; }
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px 14px 0 0; color: #fff;
  background: linear-gradient(100deg, var(--brand), color-mix(in srgb, var(--brand) 78%, var(--accent))); }
.cat-bar h3 { font-size: 20px; font-weight: 700; }
.cat-meta { flex: 0 0 auto; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cat-list { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: var(--shadow); overflow: hidden; }

/* product row: phone layout */
.prow { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img price qty" "img amt amt"; gap: 4px 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); transition: background .2s; }
.prow:first-child { border-top: 0; }
.prow.in-cart { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.p-img { grid-area: img; position: relative; width: 80px; height: 80px; padding: 0; border: 0; background: none; align-self: start; border-radius: 12px; }
.p-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: #f3efe8; }
.p-badge { position: absolute; top: 4px; left: 4px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; line-height: 1.5; letter-spacing: .2px; }
.p-play { position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.p-info { grid-area: info; min-width: 0; }
.p-name { display: block; text-align: left; padding: 0; border: 0; background: none; font-weight: 600; font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; color: var(--ink); }
.p-name:hover { color: var(--brand); }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 12px; background: #f2eee7; color: #55625f; padding: 1px 8px; border-radius: 6px; font-weight: 600; border: 0; line-height: 1.6; }
.tag-brand { background: var(--accent-soft); color: #8a5300; }
.tag-video { background: #ffe9ec; color: var(--red); }
.p-price { grid-area: price; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.p-price b { color: var(--ink); font-size: 19px; font-weight: 700; }
.p-price s { color: var(--muted); font-size: 14px; }
.p-save { flex-basis: 100%; color: var(--green); font-size: 12.5px; font-weight: 700; }
.p-qty { grid-area: qty; justify-self: end; display: flex; align-items: center; }
.p-amt { grid-area: amt; justify-self: end; display: none; align-items: baseline; gap: 6px; }
.p-amt small { color: var(--muted); font-size: 12px; }
.p-amt b { color: var(--brand); font-size: 15px; }
.prow.in-cart .p-amt { display: flex; }
.oos-tag { display: inline-block; background: #f1f1f1; color: #8a8a8a; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 10px; letter-spacing: .3px; text-transform: uppercase; }
.prow.oos .p-img img { filter: grayscale(1); opacity: .55; }
.prow.oos .p-price b { color: var(--muted); }

/* ADD → stepper */
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-weight: 800; font-size: 14.5px; letter-spacing: .4px; box-shadow: 0 2px 6px rgba(13,92,99,.12); transition: background .15s, color .15s; }
.add-btn span { font-size: 18px; line-height: 1; }
.add-btn:hover { background: var(--brand); color: #fff; }
.stepper { display: none; align-items: stretch; height: 38px; border-radius: 10px; overflow: hidden; background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }
.in-cart .add-btn { display: none; }
.in-cart .stepper, .ci .stepper { display: inline-flex; }
.stepper button { width: 34px; border: 0; background: transparent; color: #fff; font-size: 20px; font-weight: 700; line-height: 1; touch-action: manipulation; }
.stepper button:active { background: rgba(0,0,0,.15); }
.stepper input { width: 40px; border: 0; text-align: center; font-weight: 800; font-size: 16px; padding: 0; background: transparent; color: #fff; -moz-appearance: textfield; appearance: textfield; outline: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm { height: 34px; }
.stepper.sm button { width: 30px; font-size: 18px; }
.stepper.sm input { width: 36px; font-size: 15px; }

.no-results { text-align: center; color: var(--muted); padding: 40px 0; }
.no-results div { font-size: 40px; }

/* ---------- how to order ---------- */
.steps { padding-top: 10px; padding-bottom: 20px; }
.steps h2 { font-size: 26px; text-align: center; margin-bottom: 14px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: s; }
.step-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 16px 66px; position: relative; box-shadow: var(--shadow); }
.step-no { position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.step-list b { font-size: 17px; }
.step-list p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- floating buttons + cart bar ---------- */
.float-left { position: fixed; left: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 40; transition: bottom .25s; }
.has-items .float-left { bottom: 92px; }
.fab { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.fab-call { background: var(--brand); }
.fab-wa { background: #25d366; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; animation: rise .3s ease; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.cb-in { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: var(--shadow-lg); max-width: 760px; }
.cb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-info b { font-size: 16px; }
.cb-info small { font-size: 12.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); margin-top: 5px; overflow: hidden; }
.cb-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.cartbar.ok .cb-track i { background: #34d399; }
.cb-btn { flex: 0 0 auto; border: 0; background: var(--accent); color: #2b1900; font-weight: 800; font-size: 15.5px; padding: 12px 16px; border-radius: 12px; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,26,.5); z-index: 60; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: #fff; z-index: 61; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 23px; }
.drawer-head small { color: var(--muted); font-size: 13.5px; }
.x { border: 0; background: #f3efe8; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.save-banner { background: #e8f7ef; color: #0f6b41; padding: 9px 18px; font-size: 14.5px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px; }
.ci { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #f3efe8; }
.ci-name { font-weight: 600; line-height: 1.2; }
.ci-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.ci-amt { color: var(--ink); font-size: 16px; }
.ci-del { border: 0; background: none; color: #9aa5a6; width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.ci-del:hover { background: #ffecee; color: var(--red); }
.cart-empty { text-align: center; padding: 50px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ce-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin: 0 0 12px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fcfaf7; }
.min-bar { background: #fff6e8; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 14px; color: #7a4a00; }
.min-bar.ok { background: #e8f7ef; color: #0f6b41; }
.min-track { height: 6px; background: rgba(0,0,0,.07); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.min-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.min-bar.ok .min-track i { background: var(--green); }
.sums { margin: 0 0 12px; }
.sums div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 15px; }
.sums dt { color: var(--muted); } .sums dd { margin: 0; font-weight: 600; }
.sums .save dd { color: var(--green); }
.sums .sub { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-size: 19px; }
.sums .sub dt { color: var(--ink); font-weight: 700; } .sums .sub dd { color: var(--brand); font-weight: 800; }
.drawer-links { display: flex; justify-content: space-between; margin-top: 6px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,26,.55); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.modal-card > .x { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* quick view */
.qv-card { padding: 0 0 calc(18px + env(safe-area-inset-bottom)); }
.qv-media { position: relative; background: #f3efe8; aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; }
.qv-media img { width: 100%; height: 100%; object-fit: contain; }
.qv-media .p-badge { top: 14px; left: 14px; font-size: 13px; padding: 3px 9px; }
.qv-video { position: absolute; inset: 0; background: #000; }
.qv-video iframe { width: 100%; height: 100%; border: 0; }
.qv-body { padding: 16px 18px 0; }
.qv-cat { color: var(--brand); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.qv-body h3 { font-size: 25px; margin: 2px 0 6px; }
.qv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 4px; }
.qv-price b { font-size: 28px; font-family: var(--head); }
.qv-price s { color: var(--muted); font-size: 17px; }
.qv-price .p-save { flex-basis: auto; background: #e8f7ef; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; }
.qv-desc { color: #46555a; margin: 10px 0; white-space: pre-line; }
#qvPlay { margin: 4px 0 6px; }
.qv-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.qv-actions .add-btn { flex: 1; height: 48px; font-size: 16px; background: var(--brand); color: #fff; }
.qv-actions .stepper { height: 46px; }
.qv-actions .stepper button { width: 46px; }
.qv-actions .stepper input { width: 54px; font-size: 18px; }
.qv-actions .oos-tag { display: none; }
.qv-actions.oos .add-btn, .qv-actions.oos .stepper { display: none; }
.qv-actions.oos .oos-tag { display: inline-block; }
.qv-amt { margin-left: auto; color: var(--brand); font-size: 18px; }

/* checkout */
.co-head h2 { font-size: 26px; color: var(--ink); padding-right: 40px; }
.co-head p { color: var(--muted); margin: 4px 0 14px; font-size: 14.5px; }
.co-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.co-summary div { background: #fcfaf7; padding: 10px 12px; display: flex; flex-direction: column; }
.co-summary small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.co-summary b { font-size: 18px; }
.co-summary div:last-child b { color: var(--brand); }
#orderForm label { display: block; font-weight: 600; font-size: 14px; margin-top: 12px; color: #34403f; }
#orderForm label em { color: var(--red); font-style: normal; }
#orderForm .opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
#orderForm input, #orderForm select, #orderForm textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 400; background: #fff; transition: border-color .2s, box-shadow .2s; }
#orderForm input:focus, #orderForm select:focus, #orderForm textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: #fff0f1; color: #b4232f; padding: 10px 12px; border-radius: 10px; margin-top: 12px; font-weight: 600; font-size: 14.5px; }
#placeBtn { margin-top: 16px; }
.co-fine { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* success */
#coDone { text-align: center; position: relative; padding-top: 6px; }
#coDone h2 { font-size: 26px; margin-top: 6px; }
.done-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; margin: 4px auto 4px; box-shadow: 0 0 0 8px #e8f7ef; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); } }
.order-no-box { margin: 14px auto 6px; border: 2px dashed color-mix(in srgb, var(--brand) 40%, #fff); background: var(--brand-soft); border-radius: 14px; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; max-width: 340px; }
.order-no-box small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.order-no { font-family: var(--head); font-size: 32px; font-weight: 800; color: var(--brand); letter-spacing: 1px; line-height: 1.1; }
.copy-btn { border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.done-total { font-size: 18px; margin: 6px 0; }
#coDone .btn { margin-top: 10px; }
.confetti { position: absolute; inset: -22px -18px auto; height: 160px; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: fall 1.8s ease-out forwards; }
.confetti i:nth-child(3n) { background: var(--accent); } .confetti i:nth-child(3n+1) { background: var(--red); } .confetti i:nth-child(3n+2) { background: var(--brand); }
.confetti i:nth-child(1){left:4%;animation-delay:.05s}.confetti i:nth-child(2){left:10%;animation-delay:.3s}.confetti i:nth-child(3){left:16%;animation-delay:.1s}.confetti i:nth-child(4){left:22%;animation-delay:.4s}.confetti i:nth-child(5){left:28%;animation-delay:.2s}.confetti i:nth-child(6){left:34%;animation-delay:.5s}.confetti i:nth-child(7){left:40%;animation-delay:0s}.confetti i:nth-child(8){left:46%;animation-delay:.35s}.confetti i:nth-child(9){left:52%;animation-delay:.15s}.confetti i:nth-child(10){left:58%;animation-delay:.45s}.confetti i:nth-child(11){left:64%;animation-delay:.25s}.confetti i:nth-child(12){left:70%;animation-delay:.55s}.confetti i:nth-child(13){left:76%;animation-delay:.05s}.confetti i:nth-child(14){left:82%;animation-delay:.3s}.confetti i:nth-child(15){left:88%;animation-delay:.2s}.confetti i:nth-child(16){left:94%;animation-delay:.4s}.confetti i:nth-child(17){left:7%;animation-delay:.6s}.confetti i:nth-child(18){left:91%;animation-delay:.65s}
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(150px) rotate(320deg); } }

/* ---------- inner pages (track, price list) ---------- */
.page { padding-top: 24px; padding-bottom: 60px; }
.page h1 { font-size: 30px; color: var(--ink); margin-bottom: 4px; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px 16px; margin-top: 14px; box-shadow: var(--shadow); }
.track-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.track-form label { font-weight: 600; font-size: 14px; }
.track-form input { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; }
.track-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.alert { padding: 12px 14px; border-radius: 12px; margin-top: 14px; font-weight: 600; }
.alert-err { background: #fff0f1; color: #b4232f; }
.track-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.track-top h2 { font-size: 24px; color: var(--brand); }
.timeline { display: flex; list-style: none; padding: 0; margin: 20px 0 8px; }
.timeline li { flex: 1; text-align: center; position: relative; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.timeline li::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: #ece5da; border: 4px solid #fff; box-shadow: 0 0 0 2px #ece5da; position: relative; z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #ece5da; }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--brand); }
.timeline li.done::before { background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.timeline li.done::after { background: var(--brand); }
.timeline li.current::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent); }
.cancelled-box { background: #fff0f1; color: #b4232f; border-radius: 12px; padding: 12px; font-weight: 700; text-align: center; margin-top: 12px; }
.shop-msg { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 12px; border-radius: 8px; margin-top: 12px; white-space: pre-line; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.track-table, .pl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.track-table th, .track-table td, .pl-table th, .pl-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.track-table th, .pl-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.track-table td.r, .track-table th.r, .pl-table .r { text-align: right; }
.track-table tfoot td { font-weight: 800; color: var(--brand); border-bottom: 0; }
.pl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.pl-table .pl-cat td { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-family: var(--head); font-size: 17px; }
.pl-table s { color: var(--muted); }
.pl-table td.pr { color: var(--red); font-weight: 700; }
.pl-table td.u { white-space: nowrap; color: var(--muted); }
.print-head { display: none; }

/* ---------- footer ---------- */
.site-footer { background: #0f2427; color: #b9c9c9; padding-top: 40px; margin-top: 30px; padding-bottom: 110px; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: #e7efef; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #9fb3b3; }
.f-about { font-size: 14.5px; line-height: 1.6; margin-top: 12px !important; max-width: 40ch; }
.f-line { display: inline-flex; align-items: flex-start; gap: 8px; }
.f-line .ic { margin-top: 3px; color: var(--accent); }
.f-map { color: var(--accent) !important; font-weight: 600; }
.f-small { font-size: 13.5px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--accent); color: #2b1900; }
.legal { margin-top: 30px; font-size: 13.5px; line-height: 1.6; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 14px 16px; border-radius: 14px; }
.legal strong { color: var(--accent); display: block; margin-bottom: 2px; }
.legal p { margin: 0; }
.copy { text-align: center; font-size: 13px; padding: 18px 16px 0; opacity: .7; }

/* ---------- small screens ---------- */
@media (max-width: 559px) {
  .float-left { left: 10px; gap: 8px; }
  .fab { width: 44px; height: 44px; }
  .fab .ic { width: 21px; height: 21px; }
  .has-items .float-left { bottom: 88px; }
}

/* ---------- tablets and up ---------- */
@media (min-width: 560px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .modal { align-items: center; padding: 20px; }
  .modal-card { border-radius: 22px; padding: 26px; max-height: 90vh; }
  .qv-card { padding: 0 0 22px; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; }
  .qv-media { aspect-ratio: auto; max-height: none; min-height: 100%; border-radius: 22px 0 0 22px; overflow: hidden; }
  .qv-body { padding: 26px 24px 0; }
  .hero-card { padding: 36px 36px; }
  .hero h1 { font-size: 42px; }
  .hero-art { right: 10px; top: 50%; transform: translateY(-50%); width: 230px; height: 230px; }
  .burst { right: 40px; top: 50px; width: 140px; height: 140px; }
  .burst b { font-size: 48px; } .burst span { font-size: 22px; }
  .hero-copy { padding-right: 220px; }
  .tb-text { display: inline; }
  .tb-phones { margin: 0; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .header-in { grid-template-columns: auto 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .main-nav { grid-column: auto; grid-row: auto; justify-content: center; margin: 0; }
  .hero h1 { font-size: 52px; }
  .features { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .list-head { display: grid; grid-template-columns: minmax(0, 1fr) 170px 150px 120px; gap: 16px; padding: 14px 18px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  .list-head span:nth-child(2), .list-head span:nth-child(4) { text-align: right; } .list-head span:nth-child(3) { text-align: center; }
  .prow { grid-template-columns: 72px minmax(0, 1fr) 170px 150px 120px; grid-template-areas: "img info price qty amt"; gap: 16px; padding: 12px 18px; }
  .prow:hover { background: #fdfbf8; }
  .prow.in-cart:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); }
  .p-img, .p-img img { width: 72px; height: 72px; }
  .p-img { align-self: center; }
  .p-price { flex-direction: column; align-items: flex-end; gap: 0; }
  .p-save { flex-basis: auto; }
  .p-qty { justify-self: center; }
  .p-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
  .p-amt small { display: none; }
  .prow:not(.in-cart) .p-amt b::before { content: '—'; color: #c9c2b6; }
  .cartbar { padding-bottom: 18px; }
}

/* ---------- print (price list) ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .notice, .site-header, .site-footer, .float-left, .cartbar, .pl-actions, .no-print { display: none !important; }
  .print-head { display: block; text-align: center; margin-bottom: 8px; }
  .print-head h1 { font-size: 20pt; color: #000; }
  .page { padding: 0; }
  .card { border: 0; padding: 0; box-shadow: none; }
  .pl-table { font-size: 10pt; }
  .pl-table th, .pl-table td { padding: 3px 6px; border-bottom: 1px solid #bbb; }
  .pl-table .pl-cat td { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pl-table tr { page-break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 559px) {
  .features { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; gap: 8px; }
  .oh-meta .pill-soft { font-size: 13px; padding: 5px 10px; }
}
@media (max-width: 559px) {
  .feat { padding: 10px; gap: 9px; border-radius: 12px; align-items: flex-start; }
  .feat-ic { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .feat b { font-size: 14px; }
  .feat small { font-size: 12px; }
  .cat-bar h3 { font-size: 18px; }
  .cat-meta { font-size: 11.5px; }
}
.qv-actions { flex-wrap: wrap; }
.qv-go { display: none; width: 100%; }
.qv-actions.in-cart .qv-go { display: inline-flex; }

/* ===== v3: fixed search, right-side cart, remove + undo ===== */
html { scroll-padding-top: calc(var(--tbh, 110px) + 12px); }
.cat { scroll-margin-top: calc(var(--tbh, 110px) + 12px); }

/* search bar fixed at the top of the screen */
.toolbar { position: sticky; top: 0; z-index: 35; margin: 0; padding: 10px 0 8px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toolbar.stuck { box-shadow: 0 8px 20px -14px rgba(27,42,44,.45); }
.search { position: relative; background: var(--bg); }
.search:focus-within { background: #fff; }
.search-x { border: 0; background: #e9e3d8; color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; flex: 0 0 auto; }
.search-info { background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: 15px; }
.search-info .btn-link { padding: 0 0 0 8px; }
.nr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.no-results p { margin: 6px 0; }

/* remove button on each row (only when the item is in the cart) */
.row-del { display: none; border: 0; background: #fff0f1; color: var(--red); font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; margin-left: 4px; }
.row-del:hover { background: var(--red); color: #fff; }
.prow.in-cart .row-del { display: inline-block; }
.p-amt { align-items: center; }

/* cart header: clear all */
.drawer-head h2 { display: flex; align-items: center; gap: 6px; }
.dh-actions { display: flex; align-items: center; gap: 8px; }
.clear-all { border: 1px solid #ffd3d7; background: #fff5f6; color: var(--red); font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.clear-all:hover { background: var(--red); color: #fff; border-color: var(--red); }
.ci-del { background: #fff5f6; color: var(--red); width: 32px; height: 32px; font-size: 15px; font-weight: 700; }
.keep-shop { display: block; margin: 8px auto 0; }

/* floating Call / WhatsApp stay on the left, cart on the right */
.float-left, .has-items .float-left { bottom: 16px; }
.cartbar { display: none !important; }

/* phone / tablet: cart button fixed bottom-right */
.cart-fab { position: fixed; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px; border: 0; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 150px; }
.cf-ic { position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #2b1900; display: flex; align-items: center; justify-content: center; }
.cf-ic b { position: absolute; top: -5px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; line-height: 21px; text-align: center; border: 2px solid var(--ink); }
.cf-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cf-text b { font-size: 17px; }
.cf-text small { font-size: 12px; opacity: .85; white-space: nowrap; }
.cf-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.cf-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.cart-fab.ok { background: var(--green); }
.cart-fab.ok .cf-ic b { border-color: var(--green); }
.cart-fab.ok .cf-track i { background: #fff; }
.cart-fab.empty .cf-ic b { display: none; }

/* undo message */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 14px; background: #1b2a2c; color: #fff; padding: 10px 10px 10px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px; max-width: calc(100% - 24px); }
.toast.show { animation: toastIn .25s ease; }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { flex: 0 0 auto; border: 0; background: var(--accent); color: #2b1900; font-weight: 800; padding: 7px 14px; border-radius: 10px; }

/* computers: cart is a fixed panel on the right of the list */
@media (min-width: 1100px) {
  .wrap { max-width: 1320px; }
  .shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
  .shop-main { min-width: 0; }
  .drawer { position: sticky; top: calc(var(--tbh, 110px) + 14px); right: auto; bottom: auto; width: auto; height: calc(100vh - var(--tbh, 110px) - 28px); max-height: 820px; transform: none; margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; z-index: 5; transition: box-shadow .3s; }
  .drawer .x, .drawer-backdrop { display: none !important; }
  .drawer.flash { animation: flash 1s ease; }
  @keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--accent), var(--shadow-lg); } }
  .drawer-head { background: var(--brand); color: #fff; border-bottom: 0; }
  .drawer-head small { color: rgba(255,255,255,.8); }
  .clear-all { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
  .cart-empty { padding: 30px 10px; }
  .keep-shop { display: none; }
  .cart-fab { display: none; }
  .toast { bottom: 26px; }
  .list-head, .prow { grid-template-columns: 64px minmax(0, 1fr) 140px 140px 130px; gap: 14px; }
  .list-head { grid-template-columns: minmax(0, 1fr) 140px 140px 130px; }
  .p-img, .p-img img { width: 64px; height: 64px; }
  .p-amt { flex-direction: column; align-items: flex-end; gap: 2px; }
  .row-del { margin-left: 0; padding: 2px 8px; font-size: 12px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .prow:not(.in-cart) .p-amt b::before { content: '—'; }
  .p-amt { flex-direction: column; align-items: flex-end; gap: 2px; }
}
@media (max-width: 899px) {
  .p-amt { gap: 8px; }
}
@media (max-width: 559px) {
  .cart-fab { min-width: 0; padding-right: 12px; }
  .toast { bottom: 80px; }
}

/* success screen: WhatsApp is the main step */
.wa-step { margin: 6px auto 14px; max-width: 40ch; color: #34403f; }
.wa-pulse { font-size: 18px; padding: 16px 20px; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 1.8s ease-out infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.done-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .done-links .btn { margin-top: 0 !important; }
