/* Nadia Gadget House — storefront styles (mobile-first) */
:root {
  --navy: #0b0c2a; --navy-2: #121445; --purple: #7c3aed; --cyan: #22d3ee; --royal: #2563eb;
  --text: #f4f6ff; --muted: #aeb4d8; --line: rgba(255,255,255,.12);
  --glass: rgba(20,22,66,.62); --card: rgba(24,26,78,.78);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 10px 30px rgba(3,4,20,.45);
  --font: 'Noto Sans Bengali', 'Noto Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--navy);
  line-height: 1.6; font-size: 16px; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .4em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* Animated gradient background — transform-only animation (GPU friendly on low-end Android) */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--navy); }
.bg::before {
  content: ''; position: absolute; inset: -50%; width: 200%; height: 200%;
  background:
    radial-gradient(circle at 20% 25%, rgba(124,58,237,.55), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,.5), transparent 36%),
    radial-gradient(circle at 70% 80%, rgba(34,211,238,.28), transparent 34%),
    radial-gradient(circle at 25% 80%, rgba(37,99,235,.35), transparent 38%);
  animation: drift 28s ease-in-out infinite alternate; will-change: transform;
}
@keyframes drift { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(-6%, 5%, 0) rotate(8deg); } }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(11,12,42,.82); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-in { display: flex; align-items: center; gap: 10px; min-height: 66px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: none; }
.logo.fallback { display: none; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: .2s; }
.nav a:hover, .nav a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.search { order: 5; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted); }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 11px 0; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; min-height: 44px; transition: .2s; }
.chip:hover { background: rgba(255,255,255,.16); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); cursor: pointer; display: inline-grid; place-items: center; transition: .2s; }
.icon-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: linear-gradient(135deg, var(--purple), var(--cyan)); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.nav.open { display: flex; flex-direction: column; order: 6; flex: 1 1 100%; margin: 4px 0 0; padding: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); }
.nav.open a { padding: 12px 14px; font-size: 1rem; }

/* Hero */
.hero { display: grid; gap: 28px; padding: 36px 0 20px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: rgba(34,211,238,.14); color: #8bf0ff; border: 1px solid rgba(34,211,238,.35); font-size: .85rem; font-weight: 600; }
.hero h1 { font-size: clamp(1.9rem, 6.5vw, 3.4rem); font-weight: 700; letter-spacing: -.5px; }
.lead { color: #d6daf5; font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--royal) 60%, #0891b2); color: #fff; box-shadow: 0 8px 24px rgba(124,58,237,.4); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(34,211,238,.35); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: var(--line); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.hero-art { position: relative; min-height: 220px; display: grid; place-items: center; }
.hero-art img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.orb { position: absolute; border-radius: 50%; opacity: .75; animation: float 9s ease-in-out infinite alternate; }
.orb-a { width: 170px; height: 170px; background: radial-gradient(circle at 30% 30%, #a78bfa, var(--purple) 55%, transparent 72%); left: 8%; top: 4%; }
.orb-b { width: 130px; height: 130px; background: radial-gradient(circle at 30% 30%, #67e8f9, var(--royal) 55%, transparent 72%); right: 10%; bottom: 2%; animation-delay: -4s; }
@keyframes float { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-16px,0); } }
.hero-card { position: relative; z-index: 1; padding: 22px 30px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); text-align: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.hc-title { display: block; font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-sub { color: var(--muted); font-size: .9rem; }

/* Trust */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 0 8px; }
.trust-item { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.trust-item svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item b { display: block; font-size: .9rem; line-height: 1.25; }
.trust-item small { color: var(--muted); font-size: .78rem; }

/* Sections */
.section { padding: 34px 0 6px; }
.section[hidden] { display: none; }
.sec-head h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); margin-bottom: 2px; }
.sec-head p { margin: 0 0 16px; color: var(--muted); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(124,58,237,.45), rgba(37,99,235,.35)); cursor: pointer; display: flex; align-items: flex-end; padding: 0; text-align: left; transition: transform .2s; width: 100%; }
.cat:hover { transform: translateY(-3px); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat span { position: relative; width: 100%; padding: 28px 14px 12px; font-weight: 600; background: linear-gradient(transparent, rgba(5,6,30,.88)); }

/* Toolbar */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pill { flex: none; padding: 8px 16px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); cursor: pointer; font-weight: 500; transition: .2s; }
.pill:hover { background: rgba(255,255,255,.14); }
.pill[aria-pressed="true"] { background: linear-gradient(135deg, var(--purple), var(--royal)); border-color: transparent; color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.sort select, .field input, .field select, .field textarea, .qty-input { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; font-size: 16px; color: #fff; width: 100%; }
.sort select { width: auto; }
select option { background: #121445; color: #fff; }
.count { color: var(--muted); margin: 6px 0 12px; font-size: .9rem; min-height: 1.4em; }

/* Product grid & card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; contain: layout paint; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.4); box-shadow: var(--shadow); }
.pimg { position: relative; display: block; width: 100%; aspect-ratio: 1/1; background: #15184f center/cover no-repeat; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.pimg img.loaded { opacity: 1; }
.pimg .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.pimg .ph svg { width: 44px; height: 44px; }
.pimg.soldout img { filter: grayscale(.7) brightness(.7); }
.tags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(5,6,30,.78); border: 1px solid var(--line); }
.tag-off { background: linear-gradient(135deg, #ef4444, #f97316); border: 0; }
.tag-new { background: linear-gradient(135deg, var(--royal), var(--cyan)); border: 0; color: #031327; }
.tag-feat { background: linear-gradient(135deg, var(--purple), #c026d3); border: 0; }
.tag-sample { background: #92400e; border: 0; color: #fff; }
.pbody { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pname { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.pshort { color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; }
.price { font-weight: 700; font-size: 1.1rem; color: #fff; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.stock { font-size: .78rem; font-weight: 600; } .stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.pactions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
.pactions .btn { padding: 0 8px; font-size: .82rem; min-height: 40px; }
.pcard-link { grid-column: 1 / -1; font-size: .8rem; color: #8bf0ff; background: none; border: 0; cursor: pointer; padding: 2px 0; min-height: 28px; }

/* Skeleton & states */
.skel { background: linear-gradient(100deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); aspect-ratio: 3/4; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state { grid-column: 1 / -1; text-align: center; padding: 36px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.state .btn { margin-top: 12px; }

/* Delivery & FAQ */
.del-grid { display: grid; gap: 12px; }
.card-glass { padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.card-glass h3 { font-size: 1.05rem; } .card-glass p { margin: 0; color: var(--muted); }
.price-big { font-size: 2rem !important; font-weight: 700; color: #fff !important; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; min-height: 48px; list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* Footer */
.footer { margin-top: 56px; padding: 40px 0 24px; background: rgba(5,6,26,.7); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
.footer h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--cyan); }
.footer ul a { display: inline-block; padding: 4px 0; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.secret-tap { width: 48px; height: 48px; border: 0; background: transparent; cursor: default; opacity: 0; flex: none; }

/* Floating buttons */
.fab { position: fixed; right: 16px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow); z-index: 35; color: #fff; transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.fab-wa { bottom: calc(16px + env(safe-area-inset-bottom)); background: #25d366; }
.fab-top { bottom: calc(80px + env(safe-area-inset-bottom)); background: linear-gradient(135deg, var(--purple), var(--royal)); }

/* Dialogs */
dialog { color: var(--text); border: 1px solid var(--line); padding: 0; background: #0f1138; max-width: 100vw; }
dialog::backdrop { background: rgba(3,4,20,.72); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border-radius: 22px 0 0 22px; }
.drawer[open] { display: flex; flex-direction: column; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 1.2rem; }
.dlg-body { flex: 1; overflow-y: auto; padding: 12px 16px; overscroll-behavior: contain; }
.dlg-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.03); }
.modal { margin: auto; width: min(960px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border-radius: 22px; overflow: hidden; position: fixed; }
.modal[open] { animation: pop .22s ease; overflow-y: auto; overscroll-behavior: contain; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x { position: sticky; top: 10px; display: grid; margin: 10px 10px -54px auto; z-index: 5; background: rgba(5,6,30,.8); }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #15184f; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 600; font-size: .92rem; } .line-price { color: var(--muted); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.qty button { width: 38px; height: 38px; border: 0; background: rgba(255,255,255,.08); cursor: pointer; font-size: 1.1rem; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty output { min-width: 36px; text-align: center; font-weight: 600; }
.link-btn { background: none; border: 0; color: #fda4af; cursor: pointer; font-size: .82rem; padding: 6px 0; min-height: 32px; }
.sum { display: grid; gap: 6px; margin-bottom: 12px; } .sum div { display: flex; justify-content: space-between; } .sum .grand { font-size: 1.15rem; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.empty-cart { text-align: center; padding: 40px 10px; color: var(--muted); } .empty-cart svg { width: 120px; height: 120px; margin: 0 auto 10px; stroke: rgba(255,255,255,.35); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Product detail */
.pd { display: grid; gap: 18px; padding: 16px; }
.pd-gallery .main { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: #15184f; position: relative; }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #15184f; }
.thumbs button[aria-current="true"] { border-color: var(--cyan); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd h2 { font-size: 1.5rem; padding-right: 48px; }
.pd .prices .price { font-size: 1.6rem; }
.note-sample { background: rgba(146,64,14,.35); border: 1px solid #b45309; padding: 8px 12px; border-radius: 10px; font-size: .85rem; margin: 8px 0; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.buy-row .btn { flex: 1 1 140px; }
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .specs th { color: var(--muted); font-weight: 500; width: 40%; }
.rich { color: #dfe3ff; overflow-wrap: anywhere; } .rich h4 { font-size: 1.05rem; margin: 18px 0 6px; color: #fff; } .rich p { margin: 0 0 12px; } .rich ul { padding-left: 1.2rem; margin: 0 0 12px; }

/* Checkout */
.ck { padding: 16px; display: grid; gap: 18px; }
.ck h2 { padding-right: 48px; margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field textarea { min-height: 84px; resize: vertical; }
.field .err { color: var(--bad); font-size: .82rem; }
.field .err:empty { display: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.pay-opts { display: grid; gap: 8px; border: 0; padding: 0; margin: 0 0 12px; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; min-height: 48px; }
.pay-opt:has(input:checked) { border-color: var(--cyan); background: rgba(34,211,238,.1); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--cyan); }
.pay-info { background: rgba(124,58,237,.16); border: 1px solid rgba(124,58,237,.5); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; font-size: .9rem; }
.pay-info .num { font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: rgba(248,113,113,.14); border: 1px solid var(--bad); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; font-size: .9rem; }
.ok-box { text-align: center; padding: 30px 12px; }
.ok-box .tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,.2); border: 2px solid var(--ok); display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.8rem; color: var(--ok); }
.ok-box .onum { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; margin: 4px 0 10px; }
.ok-box .warn { background: rgba(251,191,36,.14); border: 1px solid var(--warn); border-radius: var(--radius-sm); padding: 10px 12px; margin: 12px auto; max-width: 480px; font-size: .9rem; }
.ok-box .good { color: var(--ok); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toasts */
#toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: #1c1f5c; border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .2s ease; text-align: center; font-size: .92rem; }
.toast.out { opacity: 0; transition: opacity .25s; }
.toast-ok { border-color: var(--ok); } .toast-error { border-color: var(--bad); }
body:has(dialog[open]) #toasts { z-index: 2147483647; }
body:has(dialog[open]) { overflow: hidden; }

/* Breakpoints */
@media (min-width: 520px) { .pactions { grid-template-columns: 1fr 1fr; } .trust { grid-template-columns: repeat(4, 1fr); } .grid { gap: 16px; } .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 56px; }
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .del-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .foot-grid > div:first-child { grid-column: auto; }
  .pd { grid-template-columns: 1fr 1fr; padding: 24px; gap: 28px; }
  .ck { grid-template-columns: 1.2fr 1fr; padding: 24px; } .ck h2 { grid-column: 1 / -1; }
  .pname { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .nav { display: flex; } .menu-btn { display: none; }
  .search { order: 0; flex: 0 1 300px; margin-left: auto; } .actions { margin-left: 0; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cats { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 359px) { .brand-name { font-size: .92rem; } .chip { padding: 6px 10px; } .wrap { width: calc(100% - 24px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
