/* GiftKaro — storefront theme
   Brand colours come from admin settings via --primary / --accent on :root. */

:root {
  --primary: #6b1fa2;
  --accent: #f26b1d;
  --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --primary-softer: color-mix(in srgb, var(--primary) 5%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --ink: #1c0f2b;
  --ink-2: #2b1d3a;
  --body: #3d3448;
  --muted: #6f6680;
  --line: #e6e1ec;
  --line-2: #efebf3;
  --soft: #f7f5fa;
  --white: #fff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --heading: 'Poppins', 'Lato', system-ui, sans-serif;
  --display: 'Poppins', 'Lato', system-ui, sans-serif;
  --container: 1440px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.strong { font-weight: 700; color: var(--ink); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; align-items: center; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: .18s ease; white-space: nowrap; background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink); line-height: 1.4; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-accent { background: var(--accent); color: #fff; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-dark { background: var(--ink); color: #fff; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 18px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; transition: .15s; outline: none; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: 12.5px; margin-top: 5px; display: block; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; display: block; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Alerts / toasts ---------- */
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.alert-success { background: var(--success-soft); color: #065f46; }
.alert-danger { background: var(--danger-soft); color: #991b1b; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); }
.alert-warning { background: var(--warning-soft); color: #92400e; }
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 1000; display: grid; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: 380px; animation: toastIn .35s ease; }
.toast.toast-error { background: var(--danger); }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #e2e8f0; font-size: 13px; font-weight: 600; text-align: center; padding: 9px 16px; }
.announce strong { color: #fff; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-2); }
.header-main { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.03em; flex: none; }
.brand img { max-height: 44px; width: auto; }
.brand-mark { position: relative; width: 36px; height: 36px; flex: none; }
.brand-mark i { position: absolute; inset: 0 8px 8px 0; border-radius: 9px; background: var(--primary); }
.brand-mark b { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.brand span em { font-style: normal; color: var(--primary); }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--soft); padding: 0 52px 0 20px; outline: none; transition: .15s; }
.search input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search button svg { width: 18px; height: 18px; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--ink); position: relative; transition: .15s; }
.hdr-link:hover { background: var(--soft); }
.hdr-link svg { width: 22px; height: 22px; }
.hdr-link .count { position: absolute; top: 0; left: 20px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
.hdr-link small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.hdr-link .lbl { line-height: 1.15; }
.menu-toggle { display: none; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--soft); }
.dropdown-menu svg { width: 18px; height: 18px; color: var(--muted); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }

/* Category nav + mega menu */
.catnav { border-top: 1px solid var(--line-2); }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav > .container > ul > li { position: static; }
.catnav-link { display: block; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2.5px solid transparent; transition: .15s; }
.catnav li:hover > .catnav-link, .catnav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 30px 40px -24px rgba(15, 23, 42, .25); opacity: 0; visibility: hidden; transition: .18s; transition-delay: .08s; }
.catnav li:hover > .mega { opacity: 1; visibility: visible; }
.mega-inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 28px 24px 34px; }
.mega-intro { background: var(--soft); border-radius: 18px; padding: 22px; }
.mega-intro img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.mega-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-content: start; }
.mega-products a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; font-weight: 600; font-size: 14px; color: var(--ink); transition: .15s; }
.mega-products a:hover { background: var(--soft); color: var(--primary); }
.mega-products img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.mega-products small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 90; opacity: 0; visibility: hidden; transition: .2s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 100; transform: translateX(-100%); transition: .25s ease; overflow-y: auto; padding: 20px; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line-2); font-weight: 600; color: var(--ink); }
.drawer a img { width: 40px; height: 40px; border-radius: 10px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--primary); }
.crumbs span.sep { opacity: .5; }

/* ---------- Hero slider ---------- */
.hero { padding: 24px 0 8px; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.slides { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.slide { flex: 0 0 100%; min-height: 440px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding: 56px 64px; position: relative; overflow: hidden; color: #fff; }
.slide::before { content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.slide::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; left: -120px; bottom: -200px; background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 65%); }
.slide-copy { position: relative; z-index: 2; max-width: 560px; }
.slide .eyebrow { color: inherit; opacity: .85; background: rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.slide h1 { color: inherit; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; margin-bottom: 18px; letter-spacing: -.02em; }
.slide p { font-size: 17px; opacity: .85; margin-bottom: 28px; max-width: 460px; }
.slide-art { position: relative; z-index: 2; display: flex; justify-content: center; }
.slide-art img { width: min(420px, 100%); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: rotate(-3deg); }
.slider-dots { position: absolute; left: 64px; bottom: 28px; display: flex; gap: 8px; z-index: 5; }
.slider-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: .3s; padding: 0; }
.slider-dots button.active { width: 32px; background: #fff; }
.slider-nav { position: absolute; right: 28px; bottom: 24px; display: flex; gap: 8px; z-index: 5; }
.slider-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.slider-nav button:hover { background: rgba(255, 255, 255, .25); }
.slider-nav svg { width: 20px; height: 20px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0 8px; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--soft); }
.trust-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); flex: none; }
.trust-item .ic svg { width: 22px; height: 22px; }
.trust-item strong { display: block; color: var(--ink); font-size: 14.5px; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* Section heading */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Horizontal carousel (product rails) ---------- */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 20px) / 6); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 14px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail.cats .rail-track { grid-auto-columns: calc((100% - 7 * 20px) / 8); }
.rail-btn { position: absolute; top: 38%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; z-index: 3; transition: .15s; }
.rail-btn:hover { transform: translateY(-50%) scale(1.06); }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn.prev { left: -20px; }
.rail-btn.next { right: -20px; }
.rail-btn[hidden] { display: none; }

.cat-card { display: block; text-align: left; }
.cat-card .thumb { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--soft); transition: .25s; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .thumb { box-shadow: var(--shadow); border-color: transparent; }
.cat-card:hover .thumb img { transform: scale(1.06); }
.cat-card h3 { font-size: 15.5px; margin: 14px 0 2px; font-weight: 700; }
.cat-card span { font-size: 12.5px; color: var(--muted); }

/* Product card */
.p-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; transition: .25s; position: relative; }
.p-card .thumb { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--soft); }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .thumb { box-shadow: var(--shadow); border-color: transparent; }
.p-card:hover .thumb img { transform: scale(1.05); }
.p-card .deal { position: absolute; top: 12px; left: 12px; background: var(--primary-soft); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 25%, #fff); font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; letter-spacing: .01em; backdrop-filter: blur(4px); }
.p-card .tag { position: absolute; top: 46px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.p-card .body { padding: 14px 4px 4px; }
.p-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 4px; }
.p-card .price { font-size: 13.5px; color: var(--muted); }
.p-card .price b { color: var(--ink); font-size: 15px; }
.p-card .price s { color: #94a3b8; margin-left: 4px; }
.p-card .quick { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: .25s; }
.p-card:hover .quick { opacity: 1; transform: none; }
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }

/* Promo tiles */
.promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.promo { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 16px; border-radius: 24px; padding: 30px 34px; overflow: hidden; position: relative; min-height: 200px; }
.promo h3 { font-family: var(--display); font-weight: 600; font-size: 28px; margin-bottom: 6px; color: inherit; }
.promo p { opacity: .75; margin-bottom: 16px; }
.promo img { border-radius: 18px; transform: rotate(4deg); box-shadow: var(--shadow); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line-2); position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; right: 22px; top: 18px; font-family: var(--display); font-size: 40px; font-weight: 600; color: var(--line); }
.step .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.step .ic svg { width: 24px; height: 24px; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* Dark band */
.band { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 45%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 40%), var(--ink); color: #cbd5e1; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.band h2 { color: #fff; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); }
.band .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.band .stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px; }
.band .stat b { display: block; font-size: 30px; color: #fff; font-weight: 800; letter-spacing: -.02em; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quote { background: var(--soft); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.quote p { color: var(--ink-2); font-size: 14.5px; margin: 0; flex: 1; }
.stars { display: flex; gap: 2px; color: #f59e0b; }
.stars svg { width: 16px; height: 16px; }
.quote .who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--primary); flex: none; }
.quote .who b { display: block; color: var(--ink); font-size: 14px; }
.quote .who span { font-size: 12.5px; color: var(--muted); }

/* CTA / enquiry */
.cta { border-radius: 28px; background: linear-gradient(120deg, var(--primary-soft), var(--accent-soft)); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Footer ---------- */
.footer { background: #0b1120; color: #94a3b8; margin-top: 80px; padding-top: 64px; font-size: 14px; }
.footer .brand { color: #fff; }
.footer .brand-mark b { box-shadow: 0 0 0 3px #0b1120; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #cbd5e1; }
.socials a:hover { background: var(--primary); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); z-index: 40; transition: .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Listing page ---------- */
.page-hero { border-radius: 26px; padding: 32px 44px; display: grid; grid-template-columns: 1fr 190px; gap: 30px; align-items: center; margin-top: 18px; overflow: hidden; }
.page-hero img { border-radius: 20px; box-shadow: var(--shadow); }
.page-hero h1 { margin-bottom: 8px; }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 36px; margin-top: 32px; }
.filters { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.filters a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.filters a:hover { background: var(--soft); }
.filters a.active { background: var(--primary-soft); color: var(--primary); }
.filters a span { color: var(--muted); font-weight: 500; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.toolbar .select { width: auto; height: 42px; }
.empty { text-align: center; padding: 70px 20px; border: 2px dashed var(--line); border-radius: 24px; }
.empty .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .ic svg { width: 32px; height: 32px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; margin-top: 24px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 64px); }
.gallery-main { aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--soft); border: 1px solid var(--line-2); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; }
.gallery-thumbs button { width: 78px; height: 78px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); flex: none; }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.rating-line { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.pdp-lead { font-size: 16px; color: var(--body); }
.config { border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-top: 22px; background: #fff; }
.opt { margin-bottom: 22px; }
.opt-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.opt-label span { color: var(--muted); font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; flex-direction: column; align-items: center; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; background: #fff; color: var(--ink); line-height: 1.3; }
.pill span small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pill:hover span { border-color: #94a3b8; }
.pill input:checked + span { border-color: var(--primary); background: var(--primary-softer); box-shadow: 0 0 0 3px var(--primary-soft); color: var(--primary); }
.pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch { position: relative; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(15, 23, 42, .15); box-shadow: inset 0 0 0 3px #fff; transition: .15s; }
.swatch input:checked + span { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--primary); }
.qty-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.qty-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; transition: .15s; margin-bottom: 8px; background: #fff; }
.qty-row:hover { border-color: #94a3b8; }
.qty-row.active { border-color: var(--primary); background: var(--primary-softer); box-shadow: 0 0 0 3px var(--primary-soft); }
.qty-row b { color: var(--ink); }
.qty-row .save { color: var(--success); font-weight: 700; font-size: 12.5px; }
.qty-custom { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.qty-custom .input { width: 140px; height: 42px; }
.price-box { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--soft); margin: 18px 0; }
.price-box .total { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.price-box s { color: #94a3b8; font-size: 15px; margin-left: 6px; }
.price-box .unit { font-size: 13px; color: var(--muted); margin-top: 6px; }
.price-box .off { background: var(--success-soft); color: var(--success); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.price-box.loading .total { opacity: .4; }
.design-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 14px; text-align: center; cursor: pointer; transition: .18s; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.choice:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.choice .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.choice .ic svg { width: 22px; height: 22px; }
.choice small { font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1.35; }
.choice.is-active { border-color: var(--primary); background: var(--primary-softer); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.perks div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.perks svg { width: 18px; height: 18px; color: var(--success); flex: none; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 14px 18px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.prose { color: var(--body); max-width: 780px; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* Upload dropzone */
.dropzone { display: block; border: 2px dashed color-mix(in srgb, var(--primary) 40%, #fff); background: var(--primary-softer); border-radius: 18px; padding: 26px; text-align: center; cursor: pointer; transition: .15s; position: relative; }
.dropzone:hover, .dropzone.drag { background: var(--primary-soft); border-color: var(--primary); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.dropzone .ic svg { width: 24px; height: 24px; }
.upload-preview { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; background: #fff; }
.upload-preview .pv { width: 84px; height: 84px; border-radius: 10px; background: var(--soft) center/contain no-repeat; flex: none; display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 13px; border: 1px solid var(--line-2); }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.modal-box { position: relative; background: #fff; border-radius: 24px; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px 26px; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tpl-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: .2s; background: #fff; text-align: left; padding: 0; }
.tpl-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.tpl-card .tpl-thumb { background: var(--soft) repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0/16px 16px; display: grid; place-items: center; padding: 14px; aspect-ratio: 4/3; }
.tpl-card .tpl-thumb img, .tpl-card .tpl-thumb canvas { max-width: 100%; max-height: 100%; box-shadow: var(--shadow); border-radius: 4px; }
.tpl-card .tpl-meta { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tpl-card .tpl-meta b { color: var(--ink); font-size: 14px; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; margin-top: 24px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; background: #fff; }
.cart-item .thumb { width: 120px; height: 120px; border-radius: 14px; background: var(--soft) center/contain no-repeat; border: 1px solid var(--line-2); overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.opt-list span { font-size: 12px; background: var(--soft); color: var(--ink-2); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.cart-item .actions { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 700; align-items: center; }
.cart-item .actions a, .cart-item .actions button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.cart-item .actions a:hover, .cart-item .actions button:hover { color: var(--primary); }
.cart-item .actions svg { width: 15px; height: 15px; }
.cart-item .line-total { text-align: right; }
.cart-item .line-total b { display: block; font-size: 18px; color: var(--ink); }
.qty-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; height: 38px; }
.qty-input input { width: 74px; border: 0; text-align: center; font-weight: 700; outline: none; height: 100%; }
.summary { border: 1px solid var(--line); border-radius: 22px; padding: 24px; position: sticky; top: calc(var(--header-h) + 64px); background: #fff; }
.summary h3 { margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 16px; font-size: 19px; font-weight: 800; color: var(--ink); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form .input { height: 44px; text-transform: uppercase; }
.applied { display: flex; justify-content: space-between; align-items: center; background: var(--success-soft); color: var(--success); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; margin: 12px 0; }
.ship-meter { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.ship-meter .progress i { background: var(--success); }
.checkout-steps { display: flex; gap: 10px; align-items: center; margin: 22px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.checkout-steps .on { color: var(--primary); }
.checkout-steps i { width: 30px; height: 2px; background: var(--line); }
.box { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: #fff; margin-bottom: 20px; }
.box h3 { display: flex; align-items: center; gap: 10px; }
.box h3 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; display: grid; place-items: center; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; margin-bottom: 10px; transition: .15s; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-softer); }
.pay-option input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; }
.pay-option b { display: block; color: var(--ink); }
.pay-option span { font-size: 13px; color: var(--muted); }
.addr-card { display: block; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; font-size: 14px; }
.addr-card:has(input:checked) { border-color: var(--primary); background: var(--primary-softer); }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.mini-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: contain; background: var(--soft); flex: none; border: 1px solid var(--line-2); }

/* Success */
.success-hero { text-align: center; padding: 56px 20px 30px; }
.success-hero .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .5s ease; }
.success-hero .tick svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 70% { transform: scale(1.1) } 100% { transform: scale(1); opacity: 1 } }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); }
.auth-art { background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 40%), linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #e0e7ff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-art h2 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 40px; }
.auth-art .art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 420px; }
.auth-art .art-grid img { border-radius: 14px; box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .4); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 36px; margin-top: 28px; align-items: start; }
.acc-nav { border: 1px solid var(--line); border-radius: 22px; padding: 12px; position: sticky; top: calc(var(--header-h) + 64px); }
.acc-user { display: flex; gap: 12px; align-items: center; padding: 12px 12px 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.acc-user b { display: block; color: var(--ink); }
.acc-user span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.acc-nav a, .acc-nav button { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--ink-2); width: 100%; background: none; border: 0; cursor: pointer; }
.acc-nav a:hover, .acc-nav button:hover { background: var(--soft); }
.acc-nav a.active { background: var(--primary-soft); color: var(--primary); }
.acc-nav svg { width: 19px; height: 19px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.stat-card b { display: block; font-size: 26px; color: var(--ink); }
.stat-card span { font-size: 13px; color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; background: var(--soft); font-weight: 700; white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-confirmed, .status-design_review { background: #e0e7ff; color: #4338ca; }
.status-printing, .status-ready { background: #f3e8ff; color: #7e22ce; }
.status-shipped { background: #cffafe; color: #0e7490; }
.status-delivered, .status-paid { background: #dcfce7; color: #15803d; }
.status-cancelled, .status-failed { background: #fee2e2; color: #b91c1c; }
.status-refunded { background: #f1f5f9; color: #475569; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 26px 0 10px; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.timeline .tl { position: relative; z-index: 1; text-align: center; flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 8px; display: grid; place-items: center; }
.timeline .tl.done { color: var(--ink); }
.timeline .tl.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline .dot svg { width: 15px; height: 15px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled span { opacity: .4; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .rail-track { grid-auto-columns: calc((100% - 4 * 20px) / 5); }
  .rail.cats .rail-track { grid-auto-columns: calc((100% - 5 * 20px) / 6); }
  .mega-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .header-main { gap: 16px; }
  .hdr-link .lbl { display: none; }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
  .rail.cats .rail-track { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
  .trust, .steps, .quotes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .band, .cta { grid-template-columns: 1fr; padding: 40px; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: flex; gap: 8px; overflow-x: auto; }
  .filters h4 { display: none; }
  .filters a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
  .filters a span { display: none; }
  .account { grid-template-columns: 1fr; }
  .acc-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .acc-user { display: none; }
  .acc-nav a, .acc-nav button { white-space: nowrap; width: auto; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .menu-toggle { display: grid; }
  .catnav { display: none; }
  .header-main { gap: 10px; flex-wrap: wrap; height: auto; padding: 10px 0; }
  .brand { font-size: 19px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .search button { width: 34px; height: 34px; }
  .hdr-link { padding: 8px; }
  .hdr-link.hide-sm { display: none; }
  .slide { grid-template-columns: 1fr; padding: 36px 26px 80px; min-height: 0; }
  .slide-art { display: none; }
  .slider-dots { left: 26px; }
  .slider-nav { right: 18px; bottom: 18px; }
  .rail-track { grid-auto-columns: 46%; gap: 14px; }
  .rail.cats .rail-track { grid-auto-columns: 34%; }
  .rail-btn { display: none; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-item { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .promos { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr 110px; padding: 24px; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .band, .cta { padding: 28px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { grid-template-columns: 1fr; padding: 28px; }
  .page-hero img { display: none; }
  .design-choices { grid-template-columns: 1fr; }
  .choice { flex-direction: row; text-align: left; }
  .perks { grid-template-columns: 1fr; }
  .qty-row { grid-template-columns: 1fr 1fr auto; }
  .qty-row .per { display: none; }
  .cart-item { grid-template-columns: 80px 1fr; padding: 16px; gap: 14px; }
  .cart-item .thumb { width: 80px; height: 80px; }
  .cart-item .line-total { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .stat-cards { grid-template-columns: 1fr; }
  .timeline .tl { font-size: 10.5px; }
  .modal-body { padding: 18px; }
  .p-card .quick { display: none; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
.footer .contact-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.footer .contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: color-mix(in srgb, var(--primary) 55%, #fff); }

/* ---------- Maths captcha ---------- */
.captcha { border: 1.5px solid color-mix(in srgb, var(--primary) 22%, #fff); background: linear-gradient(135deg, var(--primary-softer), #fff 60%, var(--accent-soft)); border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; position: relative; overflow: hidden; }
.captcha::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%); pointer-events: none; }
.captcha.has-error { border-color: var(--danger); }
.captcha-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.captcha-head b { display: block; color: var(--ink); font-size: 14px; }
.captcha-head small { color: var(--muted); font-size: 12px; }
.captcha-badge { width: 36px; height: 36px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -8px var(--primary); flex: none; }
.captcha-badge svg { width: 19px; height: 19px; }
.captcha-body { display: flex; align-items: center; gap: 10px; }
.captcha-q { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 12px; padding: 0 16px; height: 50px; font-weight: 800; font-size: 22px; letter-spacing: .02em; box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08); user-select: none; font-variant-numeric: tabular-nums; }
.captcha-q i { font-style: normal; color: color-mix(in srgb, var(--accent) 80%, #fff); font-size: 20px; }
.captcha-input { width: 92px; height: 50px; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--primary) 45%, #fff); background: #fff; text-align: center; font-size: 22px; font-weight: 800; color: var(--primary); outline: none; transition: .15s; -moz-appearance: textfield; }
.captcha-input::-webkit-outer-spin-button, .captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input:focus { border-style: solid; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.captcha-input::placeholder { color: color-mix(in srgb, var(--primary) 40%, #fff); }
.captcha-refresh { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .3s; margin-left: auto; }
.captcha-refresh:hover { color: var(--primary); border-color: var(--primary); transform: rotate(180deg); }
.captcha-refresh svg { width: 18px; height: 18px; }

/* ---------- OTP boxes ---------- */
.otp-boxes { display: flex; gap: 10px; justify-content: space-between; margin: 8px 0 6px; }
.otp-boxes input { width: 100%; max-width: 58px; aspect-ratio: 1 / 1.1; border: 2px solid var(--line); border-radius: 14px; text-align: center; font-size: 26px; font-weight: 800; color: var(--ink); outline: none; transition: .15s; background: #fff; }
.otp-boxes input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.otp-boxes input.filled { border-color: color-mix(in srgb, var(--primary) 50%, #fff); background: var(--primary-softer); }
.otp-email { display: inline-flex; gap: 8px; align-items: center; background: var(--soft); padding: 6px 12px; border-radius: 999px; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.otp-email svg { width: 16px; height: 16px; color: var(--primary); }
.otp-dev { background: #fffbeb; border: 1px dashed #f59e0b; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* ---------- Artwork upload (product page) ---------- */
.upload-panel { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: linear-gradient(180deg, var(--primary-softer), #fff 45%); animation: toastIn .25s ease; }
.upload-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.upload-head-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 20px -10px var(--primary); }
.upload-head-ic svg { width: 20px; height: 20px; }
.upload-head b { display: block; color: var(--ink); font-size: 15px; }
.upload-head span { font-size: 12.5px; color: var(--muted); }
.upload-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.upload-grid.two { grid-template-columns: 1fr 1fr; }
.upzone { display: block; position: relative; min-height: 150px; border: 2px dashed color-mix(in srgb, var(--primary) 35%, #fff); border-radius: 18px; background: #fff; cursor: pointer; transition: .18s; overflow: hidden; }
.upzone:hover, .upzone.drag { border-color: var(--primary); background: var(--primary-softer); box-shadow: 0 0 0 4px var(--primary-soft); }
.upzone.drag { transform: scale(1.01); }
.upzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.upzone-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px; text-align: center; }
.upzone-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; transition: .2s; }
.upzone:hover .upzone-ic { background: var(--primary); color: #fff; transform: translateY(-2px); }
.upzone-ic svg { width: 22px; height: 22px; }
.upzone-empty b { color: var(--ink); font-size: 15px; }
.upzone-empty small { color: var(--muted); font-size: 12.5px; }
.upzone-empty u { color: var(--primary); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.upzone-tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--soft); padding: 2px 8px; border-radius: 99px; margin-top: 2px; }
.upzone.has-file { border-style: solid; border-color: color-mix(in srgb, var(--success) 55%, #fff); background: #fff; }
.upzone-file { display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 150px; }
.upzone-file[hidden], .upzone-empty[hidden] { display: none; }
.upzone-thumb { width: 92px; height: 92px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--soft) center/contain no-repeat; display: grid; place-items: center; font-weight: 800; color: var(--primary); font-size: 15px; }
.upzone-meta { flex: 1; min-width: 0; }
.upzone-meta b { display: block; color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upzone-meta small { color: var(--success); font-size: 12px; font-weight: 600; }
.upzone-remove { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.upzone-remove:hover { color: var(--danger); border-color: var(--danger); }
.upzone-remove svg { width: 15px; height: 15px; }
.upload-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload-specs span { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; }
.upload-specs svg { width: 14px; height: 14px; color: var(--primary); }
@media (max-width: 768px) { .upload-grid.two { grid-template-columns: 1fr; } }

/* Shipment card */
.ship-card h3 { display: flex; gap: 10px; align-items: center; }
.ship-card h3 svg { color: var(--primary); }
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ship-field { background: var(--soft); border-radius: 14px; padding: 12px 16px; }
.ship-field span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.ship-field b { color: var(--ink); font-size: 16px; display: flex; align-items: center; gap: 8px; word-break: break-all; }
.awb { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 30px; height: 30px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }
.copy-btn svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .ship-grid { grid-template-columns: 1fr; } }

/* ---------- Product gallery: hover zoom + lightbox ---------- */
.gallery { position: sticky; z-index: 20; }
.gallery-main { cursor: zoom-in; outline: none; }
.gallery-main img { user-select: none; }
.gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #0b1120; display: block; }
.gallery-main video[hidden], .gallery-main img[hidden] { display: none; }
.gallery-main.is-video { cursor: default; }
.g-label { position: absolute; left: 16px; top: 16px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; }
.g-nav, .g-expand { position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: .2s; z-index: 2; color: var(--ink); }
.g-nav svg, .g-expand svg { width: 20px; height: 20px; }
.g-nav { top: 50%; transform: translateY(-50%); }
.g-nav.prev { left: 14px; }
.g-nav.next { right: 14px; }
.g-expand { right: 14px; top: 14px; }
.gallery-main:hover .g-nav, .gallery-main:hover .g-expand, .gallery-main:focus-visible .g-nav { opacity: 1; }
.zoom-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255, 255, 255, .9); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; display: flex; gap: 6px; align-items: center; pointer-events: none; transition: .2s; white-space: nowrap; box-shadow: var(--shadow-sm); }
.zoom-hint svg { width: 14px; height: 14px; }
.gallery-main:hover .zoom-hint, .gallery-main.is-video .zoom-hint { opacity: 0; }
.zoom-lens { position: absolute; border: 2px solid #fff; background: color-mix(in srgb, var(--primary) 14%, transparent); box-shadow: 0 0 0 1px rgba(15, 23, 42, .15), 0 8px 20px rgba(15, 23, 42, .15); border-radius: 10px; pointer-events: none; z-index: 1; }
.zoom-pane { position: absolute; left: calc(100% + 28px); top: 0; width: 100%; aspect-ratio: 1; border-radius: 22px; background: #fff no-repeat; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 30; pointer-events: none; animation: toastIn .15s ease; }
.gallery-thumbs { padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button { width: 84px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; overflow: visible; }
.gallery-thumbs .t-img { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line-2); background: var(--soft); transition: .15s; display: block; }
.gallery-thumbs button:hover .t-img { border-color: #94a3b8; }
.gallery-thumbs button.active .t-img { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.gallery-thumbs small { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; max-width: 84px; overflow: hidden; text-overflow: ellipsis; }
.gallery-thumbs button.active small { color: var(--primary); }
.t-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .35); font-style: normal; }
.t-play::before { content: ''; width: 0; height: 0; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.t-play svg { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8, 11, 22, .96); display: grid; grid-template-rows: auto 1fr auto auto; color: #fff; animation: toastIn .2s ease; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; font-size: 14px; }
.lb-top b { flex: 1; text-align: center; font-size: 15px; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; cursor: zoom-in; transition: transform .15s ease-out; user-select: none; }
.lb-stage.zoomed img { cursor: zoom-out; transition: transform .05s linear; }
.lb-stage video { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lb-stage video[hidden], .lb-stage img[hidden] { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-thumbs { display: flex; gap: 10px; justify-content: center; padding: 14px; overflow-x: auto; }
.lb-thumbs button { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #1e293b; cursor: pointer; opacity: .6; flex: none; }
.lb-thumbs button.active { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-hint { text-align: center; font-size: 12px; color: #94a3b8; margin: 0 0 12px; }
@media (max-width: 1024px) { .zoom-pane, .zoom-lens { display: none !important; } }
@media (max-width: 768px) { .g-nav { opacity: 1; width: 36px; height: 36px; } .zoom-hint { display: none; } .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { display: none; } .gallery-thumbs button, .gallery-thumbs .t-img { width: 68px; } .gallery-thumbs .t-img { height: 68px; } }

/* Ready-made designs: front/back flip cards */
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.flip { position: relative; background: var(--soft) radial-gradient(circle at 30% 20%, #fff, transparent 70%); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px 22px 14px; perspective: 1200px; transition: .25s; }
.flip:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.flip-inner { position: relative; width: 100%; max-height: 260px; margin: 0 auto; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1); cursor: pointer; }
.flip.has-back:hover .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 18px 30px -16px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06); }
.flip-face img { width: 100%; height: 100%; object-fit: contain; }
.flip-face.back { transform: rotateY(180deg); }
.flip-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.flip-meta b { display: block; color: var(--ink); font-size: 14.5px; }
.flip-meta span { font-size: 12px; color: var(--muted); }
.flip-badge { position: absolute; top: 10px; right: 12px; font-size: 10.5px; font-weight: 700; color: var(--primary); background: #fff; padding: 3px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: .2s; }
.flip:hover .flip-badge { opacity: 0; }
@media (hover: none) { .flip-badge::after { content: ' (tap)'; } }

/* Checkout: guest OTP note, saved-address chips, admin preview strip */
.otp-note { display: flex; gap: 10px; align-items: flex-start; background: var(--primary-softer); border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff); color: var(--ink-2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.otp-note svg { color: var(--primary); flex: none; margin-top: 2px; }
.saved-addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-btn { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip-btn:hover, .chip-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-softer); }
.admin-strip { background: #fef3c7; color: #92400e; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; border-bottom: 1px solid #fde68a; }
.admin-strip a, .admin-strip button { color: #92400e; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.admin-note { display: flex; gap: 10px; align-items: flex-start; background: #fef3c7; color: #92400e; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin-top: 12px; }

/* Homepage: two full rows of products */
.p-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; }
.p-grid-6 .p-card h3 { font-size: 14.5px; }
@media (max-width: 1200px) { .p-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) { .p-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }

/* Back-to-top button */
.to-top { position: fixed; right: 22px; bottom: 90px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 39; opacity: 0; transform: translateY(10px); transition: .25s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--primary); }
.to-top svg { width: 22px; height: 22px; transform: rotate(180deg); }
.to-top[hidden] { display: grid; pointer-events: none; }
@media (max-width: 768px) { .to-top { right: 14px; bottom: 76px; width: 44px; height: 44px; } }

/* Mobile: product grids become a 2-row, swipeable rail (4 cards on screen, swipe for the rest) */
@media (max-width: 768px) {
  .p-grid-6 { display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 44%; gap: 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; }
  .p-grid-6::-webkit-scrollbar { display: none; }
  .p-grid-6 > * { scroll-snap-align: start; }
  .p-grid-6 .p-card .body { padding-top: 8px; }
  .p-grid-6 .p-card h3 { font-size: 13.5px; }
  .p-grid-6 .p-card .price { font-size: 12.5px; }
  .p-grid-6 .p-card .deal { font-size: 10.5px; padding: 3px 8px; top: 8px; left: 8px; }
  .p-grid-6 .p-card .tag { font-size: 9.5px; top: 34px; left: 8px; }
  .swipe-hint { display: flex; }
}
.swipe-hint { display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.swipe-hint svg { width: 14px; height: 14px; }

/* Checkout: sign in / create account choice */
.signin-hint { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--soft); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; color: var(--ink-2); }
.signin-hint svg { color: var(--primary); }
.acct-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-choice { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: .15s; position: relative; }
.acct-choice input { position: absolute; opacity: 0; }
.acct-choice .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--muted); display: grid; place-items: center; flex: none; transition: .15s; }
.acct-choice .ic svg { width: 20px; height: 20px; }
.acct-choice b { display: block; color: var(--ink); }
.acct-choice small { color: var(--muted); font-size: 12.5px; }
.acct-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-softer); box-shadow: 0 0 0 3px var(--primary-soft); }
.acct-choice:has(input:checked) .ic { background: var(--primary); color: #fff; }
.acct-choice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 600px) { .acct-choices { grid-template-columns: 1fr; } }
.buy-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
@media (max-width: 420px) { .buy-row { grid-template-columns: 1fr; } }

/* Small centred popup (e.g. "You don't have an account") */
.popup-box { width: min(420px, 100%); padding: 30px 28px 22px; text-align: center; }
.popup-box h3 { margin: 6px 0 8px; }
.popup-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 6px; }
.popup-ic svg { width: 28px; height: 28px; }

/* =====================================================================
   GiftKaro look — purple + orange marketplace style.
   Placed last so it refines the base components above.
   ===================================================================== */
body { font-size: 15px; color: var(--body); }
h1, h2, h3, h4, h5, .btn, .brand, .eyebrow, .catnav-link, .hdr-link { font-family: var(--heading); }
h1, h2 { font-weight: 800; letter-spacing: -.025em; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.display, .slide h1, .promo h3, .band h2, .auth-art h2 { font-family: var(--heading); font-weight: 800; letter-spacing: -.025em; }

/* Buttons: squarer, bolder, like a marketplace */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: .005em; }
.btn-icon { border-radius: 50%; }
.btn-primary { box-shadow: 0 8px 18px -10px var(--primary); }
.btn-accent { box-shadow: 0 8px 18px -10px var(--accent); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.input, .select, .textarea { border-radius: 8px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--primary); }

/* Top bars */
.announce { background: var(--primary); color: #fff; font-family: var(--heading); font-weight: 500; font-size: 12.5px; padding: 7px 16px; }

/* Header */
.header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 var(--line-2); }
.header-main { height: 84px; gap: 32px; }
.brand { gap: 10px; }
.brand .brand-mark { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--primary) 30%, transparent)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--heading); font-weight: 800; font-size: 27px; letter-spacing: -.04em; color: var(--primary); }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-tag { font-family: var(--heading); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; margin-top: 4px; }
.search { max-width: 640px; }
.search input { height: 48px; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding-left: 18px; font-size: 14.5px; }
.search input:focus { border-color: var(--primary); }
.search button { background: transparent; color: var(--muted); border-radius: 8px; }
.search button:hover { color: var(--primary); }
.hdr-link { font-weight: 500; font-size: 14.5px; color: var(--ink-2); gap: 7px; }
.hdr-link:hover { background: transparent; color: var(--primary); }
.hdr-link svg { width: 22px; height: 22px; }
.hdr-link .count { background: var(--primary); left: auto; right: 2px; top: -2px; }
.catnav { background: var(--soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.catnav ul { gap: 8px; }
.catnav ul > li:first-child { margin-left: auto; }
.catnav ul > li:last-child { margin-right: auto; }
.catnav-link { font-weight: 500; font-size: 14.5px; color: var(--ink-2); padding: 11px 12px; border-bottom-width: 2px; }
.catnav li:first-child > .catnav-link { color: var(--accent); }
.catnav li:hover > .catnav-link, .catnav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.mega-intro { background: var(--primary-softer); }
.drawer .brand-mark { width: 40px; height: 40px; }
.drawer .brand-name { font-size: 22px; }

/* Home: category icon strip */
.cat-strip { padding: 18px 0 6px; }
.cat-strip .rail-track { grid-auto-columns: calc((100% - 10 * 12px) / 11); gap: 12px; padding-bottom: 6px; }
.cat-ico { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-family: var(--heading); font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--ink-2); }
.cat-ico .ic { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(28, 15, 43, .35); transition: .2s; }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-ico:hover { color: var(--primary); }
.cat-ico:hover .ic { box-shadow: 0 0 0 2px var(--primary), 0 12px 22px -12px var(--primary); transform: translateY(-2px); }
.cat-strip .rail-btn { top: 38px; }

/* Home: offer bar + hero banner cards */
.hero { padding: 12px 0 8px; }
.offer-bar { display: block; background: var(--accent); color: #fff; font-family: var(--heading); font-weight: 700; font-size: clamp(13px, 1.6vw, 19px); text-align: center; text-transform: uppercase; letter-spacing: .02em; padding: 11px 16px; border-radius: 8px; margin-bottom: 22px; box-shadow: 0 12px 24px -16px var(--accent); }
.offer-bar:hover { filter: brightness(1.04); }
.hero-rail .rail-track { grid-auto-columns: calc((100% - 22px) / 2); gap: 22px; padding-bottom: 10px; }
.hero-card { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 10px; min-height: 260px; border-radius: 20px; padding: 30px 26px 30px 32px; overflow: hidden; isolation: isolate; transition: .25s; }
.hero-card::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -90px; top: -110px; background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 65%); z-index: -1; }
.hero-card::after { content: ''; position: absolute; inset: auto -40px -70px auto; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); z-index: -1; }
.hero-card:hover { box-shadow: 0 24px 40px -24px rgba(28, 15, 43, .45); transform: translateY(-2px); }
.hero-card .eyebrow { color: var(--accent); font-size: 11px; margin-bottom: 8px; }
.hero-card h2 { color: inherit; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; margin-bottom: 10px; }
.hero-card p { font-size: 15px; opacity: .8; margin-bottom: 18px; max-width: 360px; }
.hero-art img { width: 100%; max-width: 230px; margin-left: auto; border-radius: 16px; box-shadow: 0 26px 40px -22px rgba(28, 15, 43, .55); transform: rotate(-4deg); transition: .4s; }
.hero-card:hover .hero-art img { transform: rotate(0) scale(1.03); }

/* Section heads like "SHOP BY …  /  Title  /  See all →" */
.section-sm { padding: 30px 0; }
.sec-head { margin-bottom: 20px; align-items: flex-end; }
.sec-head h2 { font-size: clamp(21px, 2.3vw, 27px); margin: 2px 0 0; }
.sec-head p { margin-top: 4px; font-size: 14.5px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-family: var(--heading); font-weight: 600; font-size: 15px; color: var(--primary); white-space: nowrap; }
.see-all svg { width: 17px; height: 17px; transition: .2s; }
.see-all:hover svg { transform: translateX(3px); }

/* Rails */
.rail-track { grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px; padding: 6px 4px 18px; }
.rail-btn { width: 42px; height: 42px; border: 0; box-shadow: 0 6px 18px -6px rgba(28, 15, 43, .35); color: var(--ink); }
.rail-btn.prev { left: -14px; }
.rail-btn.next { right: -14px; }

/* Occasion / category cards: image tile, title on top, orange Explore pill */
.occ-track { grid-auto-columns: calc((100% - 5 * 18px) / 6); }
.occ-card { position: relative; display: block; aspect-ratio: 4 / 5.4; border-radius: 16px; overflow: hidden; isolation: isolate; }
.occ-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.occ-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 15, 43, .72) 0%, rgba(28, 15, 43, .1) 38%, transparent 60%, rgba(28, 15, 43, .25)); }
.occ-card:hover img { transform: scale(1.07); }
.occ-top { padding: 16px 14px 0; text-align: center; color: #fff; }
.occ-top h3 { color: #fff; font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.occ-top small { font-size: 12px; opacity: .9; }
.occ-btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; gap: 4px; align-items: center; background: var(--accent); color: #fff; font-family: var(--heading); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 4px; white-space: nowrap; }
.occ-btn svg { width: 13px; height: 13px; }

/* Product card: white card, soft shadow, "from ₹ / Min.Qty" */
.p-card { border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(28, 15, 43, .05), 0 6px 18px -10px rgba(28, 15, 43, .2); border: 1px solid var(--line-2); overflow: hidden; height: 100%; }
.p-card:hover { box-shadow: 0 22px 36px -20px rgba(28, 15, 43, .4); transform: translateY(-3px); border-color: transparent; }
.p-card .thumb { border-radius: 0; border: 0; background: var(--soft); }
.p-card:hover .thumb { box-shadow: none; }
.p-card .tag { top: 10px; left: 10px; background: var(--accent); font-family: var(--heading); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; padding: 3px 11px; }
.p-card .tag-new { background: var(--primary); }
.p-card .body { padding: 12px 14px 14px; }
.p-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.p-card .price { font-size: 14px; color: var(--body); }
.p-card .price b { font-size: 14.5px; font-weight: 900; color: var(--ink); }
.p-card .minqty { font-size: 12px; color: var(--muted); margin-top: 3px; }
.p-card .quick { left: 10px; right: 10px; bottom: 10px; }
.p-grid { gap: 22px 18px; }

/* Promo tiles */
.promo { border-radius: 18px; min-height: 180px; border: 1px solid rgba(28, 15, 43, .05); }
.promo h3 { font-size: 26px; }

/* Why-us band: deep brand purple */
.band { background: radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 38%), radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .12), transparent 40%), linear-gradient(120deg, color-mix(in srgb, var(--primary) 80%, #000), var(--primary)); color: #eadff4; border-radius: 22px; padding: 46px 52px; }
.band .eyebrow { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.band .stat { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .14); border-radius: 14px; }
.band .stat b { font-family: var(--heading); }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--line-2); box-shadow: 0 6px 18px -12px rgba(28, 15, 43, .25); border-radius: 16px; }
.stars { color: var(--accent); }

/* How it works — compact strip near the bottom */
.how { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; background: var(--primary-softer); border: 1px solid color-mix(in srgb, var(--primary) 12%, #fff); border-radius: 18px; padding: 22px 26px; }
.how-head h3 { font-size: 19px; margin: 4px 0 0; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: how; }
.how-step { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; position: relative; }
.how-step::after { counter-increment: how; content: counter(how); position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px/22px var(--heading); text-align: center; }
.how-step .ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--primary); color: #fff; }
.how-step .ic svg { width: 19px; height: 19px; }
.how-step b { display: block; font-family: var(--heading); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.how-step small { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; }
.trust { padding: 18px 0 0; }
.trust-item { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; }
.trust-item .ic { background: var(--accent-soft); color: var(--accent); box-shadow: none; }

/* Corporate CTA */
.cta { background: linear-gradient(120deg, var(--primary-soft), #fff 55%, var(--accent-soft)); border: 1px solid var(--line-2); border-radius: 22px; }
.cta-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.cta-tile img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.cta-tile:hover img { transform: scale(1.06); }
.cta-tile span { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink); font-family: var(--heading); font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; box-shadow: var(--shadow-sm); }

/* Footer: light, printo-like */
.footer { background: #fff; color: var(--body); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 52px; }
.footer .brand { color: var(--ink); }
.footer h5 { color: var(--ink); font-family: var(--heading); font-size: 15px; font-weight: 600; }
.footer a:hover { color: var(--primary); }
.footer ul { gap: 8px; }
.socials a { background: var(--primary-soft); color: var(--primary); }
.socials a:hover { background: var(--primary); color: #fff; }
.footer .contact-list svg { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line-2); flex-direction: column-reverse; align-items: center; text-align: center; color: var(--muted); }

/* Inner pages pick up the brand */
.page-hero { border-radius: 18px; }
.crumbs a:hover { color: var(--accent); }
.filters a.active { background: var(--primary); color: #fff; }
.filters a.active span { color: rgba(255, 255, 255, .8); }
.price-box { background: var(--primary-softer); border: 1px solid color-mix(in srgb, var(--primary) 12%, #fff); }
.price-box .total { color: var(--accent); font-family: var(--heading); }
.config, .summary, .box, .cart-item, .acc-nav, .stat-card, .table-wrap { border-radius: 16px; }
.tabs button.active { color: var(--primary); }
.sum-row.total { color: var(--primary); }
.box h3 .num { background: var(--accent); }
.auth-art { background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 40%), linear-gradient(150deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); color: #efe4f7; }
.to-top { background: var(--primary); }
.to-top:hover { background: var(--accent); }

@media (max-width: 1200px) {
  .cat-strip .rail-track { grid-auto-columns: calc((100% - 8 * 12px) / 9); }
  .rail-track, .occ-track { grid-auto-columns: calc((100% - 4 * 18px) / 5); }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .header-main { gap: 16px; }
  .hdr-link .lbl { display: none; }
  .rail-track, .occ-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
  .cat-strip .rail-track { grid-auto-columns: calc((100% - 6 * 12px) / 7); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
      .header-main { height: auto; }
  .brand .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 22px; }
  .brand-tag { display: none; }
  .cat-strip .rail-track { grid-auto-columns: 22%; }
  .cat-ico .ic { width: 62px; height: 62px; }
  .cat-ico { font-size: 11.5px; }
  .hero-rail .rail-track { grid-auto-columns: 88%; gap: 12px; }
  .hero-card { min-height: 200px; padding: 22px; }
  .rail-track { grid-auto-columns: 46%; gap: 12px; }
  .occ-track { grid-auto-columns: 42%; }
  .sec-head { align-items: flex-start; }
  .sec-head p { display: none; }
  .see-all { font-size: 13.5px; margin-top: 22px; }
  .band { padding: 28px 22px; }
  .how { padding: 18px; }
  .how-steps { grid-template-columns: 1fr; }
  .p-card .body { padding: 10px 11px 12px; }
  .p-card h3 { font-size: 13.5px; }
}
.quote .who .avatar { color: #fff; font-size: 16px; font-family: var(--heading); }
