/* ==========================================================================
   Desa Print — design system
   Rainbow brand: red → orange → yellow → green → blue → indigo → violet
   ========================================================================== */
:root {
  --r-red: #E5243B; --r-orange: #F26B21; --r-yellow: #F7B500; --r-green: #2BB673;
  --r-blue: #1E9BD7; --r-indigo: #4B49AC; --r-violet: #B53FA1;
  --rainbow: linear-gradient(90deg, var(--r-red), var(--r-orange), var(--r-yellow), var(--r-green), var(--r-blue), var(--r-indigo), var(--r-violet));
  --rainbow-soft: linear-gradient(120deg, #fde3e6 0%, #feead9 18%, #fff4d1 34%, #dcf5e9 52%, #d9eefa 68%, #e2e1f5 84%, #f6e0f2 100%);

  --ink: #14151a; --ink-2: #3b3d46; --muted: #6b6f7b; --line: #e7e8ee; --line-2: #f0f1f5;
  --bg: #ffffff; --bg-2: #f7f8fb; --card: #ffffff;
  --primary: var(--r-indigo); --primary-ink: #ffffff; --accent: var(--r-orange);
  --ok: #1f9d55; --warn: #d97706; --bad: #dc2626; --info: #2563eb;

  --radius: 14px; --radius-sm: 9px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,21,26,.06), 0 1px 1px rgba(20,21,26,.04);
  --shadow: 0 6px 20px rgba(20,21,26,.08), 0 2px 6px rgba(20,21,26,.05);
  --shadow-lg: 0 24px 60px rgba(20,21,26,.14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--r-blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 44px 0; } }

.rainbow-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rainbow-bar { height: 4px; background: var(--rainbow); }
.rainbow-border { position: relative; }
.rainbow-border::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid var(--b); background: var(--b); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s;
  font-family: inherit; line-height: 1.2; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-rainbow { border: 0; background: var(--rainbow); background-size: 200% 100%; animation: slide 8s linear infinite; box-shadow: 0 6px 18px rgba(75,73,172,.25); }
@keyframes slide { to { background-position: 200% 0; } }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--primary); background: var(--bg-2); box-shadow: none; }
.btn-dark { --b: var(--ink); }
.btn-green { --b: var(--r-green); } .btn-red { --b: var(--bad); } .btn-orange { --b: var(--r-orange); } .btn-blue { --b: var(--r-blue); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: 6px; color: var(--ink-2); }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--r-blue); box-shadow: 0 0 0 4px rgba(30,155,215,.14); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 17px; height: 17px; vertical-align: -3px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.help { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.error { color: var(--bad); font-size: .82rem; margin-top: 5px; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 500; }

/* ---------- Cards / alerts / badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 22px; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-head h3 { margin: 0; font-size: 1.02rem; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .93rem; border: 1px solid; }
.alert-ok { background: #ecfdf3; border-color: #b7ebc9; color: #12663a; }
.alert-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: #dcfce7; color: #166534; } .badge-warn { background: #fef3c7; color: #92400e; } .badge-bad { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; } .badge-violet { background: #f3e8ff; color: #6b21a8; } .badge-dark { background: var(--ink); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: #fafbfd; }
.table .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #e9e9ef; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); }
.logo img { width: 42px; height: 42px; border-radius: 50%; }
.logo .word { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.nav a:hover, .nav a.active { background: var(--bg-2); color: var(--ink); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search input { border-radius: 999px; padding-left: 40px; background: var(--bg-2); border-color: transparent; }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--r-red); color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.menu-toggle { display: none; }
.mega { border-top: 1px solid var(--line); background: #fff; }
.mega .container { display: flex; gap: 6px; overflow-x: auto; height: 46px; align-items: center; scrollbar-width: none; }
.mega a { display: inline-flex; gap: 7px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mega a:hover { background: var(--bg-2); }
.mega .dot { width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 900px) {
  .nav, .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .container { height: 64px; }
  .nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .header-actions { margin-left: auto; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--rainbow-soft); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: .82rem; margin-bottom: 18px; }
.hero-art { position: relative; aspect-ratio: 1/1; max-width: 520px; justify-self: end; width: 100%; }
.hero-art .blob { position: absolute; border-radius: 30px; box-shadow: var(--shadow-lg); background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-art .b1 { inset: 4% 26% 30% 0; transform: rotate(-5deg); }
.hero-art .b2 { inset: 36% 0 0 34%; transform: rotate(4deg); }
.hero-art .b3 { width: 38%; aspect-ratio: 1.75; right: 2%; top: 4%; transform: rotate(8deg); border-radius: 12px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; } .hero-art { justify-self: center; max-width: 380px; } }

/* ---------- Category & product cards ---------- */
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card .art { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.cat-card .body { padding: 16px 18px 18px; }
.cat-card .body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.cat-card .bar { height: 4px; }

.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.product-card .media { aspect-ratio: 1/1; background: var(--bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .name { font-weight: 700; font-size: 1rem; }
.product-card .price { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ink-2); }
.product-card .price strong { color: var(--ink); font-size: 1.05rem; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); }
.swatch-lg { width: 34px; height: 34px; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.swatch-lg.active, .swatch-lg:hover { box-shadow: 0 0 0 2.5px var(--ink); }

.mock-placeholder { width: 70%; height: 70%; display: flex; align-items: center; justify-content: center; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.pdp-gallery { position: sticky; top: 130px; }
.pdp-main-img { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.pdp-main-img img, .pdp-main-img svg { width: 100%; height: 100%; object-fit: contain; }
.opt-group { margin-bottom: 20px; }
.opt-group > .label { font-weight: 700; font-size: .9rem; margin-bottom: 9px; display: flex; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; flex-direction: column; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s; background: #fff; }
.chip span small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.chip input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chip input:focus-visible + span { outline: 3px solid rgba(30,155,215,.4); }
.qty-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.size-grid .sz { text-align: center; }
.size-grid .sz input { text-align: center; padding: 8px 4px; }
.size-grid .sz small { display: block; font-weight: 700; font-size: .8rem; margin-bottom: 4px; }
.price-box { background: var(--bg-2); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.price-box .total { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.price-box .each { color: var(--muted); font-weight: 600; }
.cta-stack { display: grid; gap: 10px; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.feature-list li { display: flex; gap: 9px; align-items: start; }
.feature-list li::before { content: "✓"; color: var(--r-green); font-weight: 900; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 26px; } .pdp-gallery { position: static; } }

/* ---------- Steps / promo ---------- */
.steps { counter-reset: s; }
.step { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; margin-bottom: 14px; font-family: var(--display); }
.step:nth-child(1)::before { background: var(--r-red); } .step:nth-child(2)::before { background: var(--r-yellow); } .step:nth-child(3)::before { background: var(--r-green); } .step:nth-child(4)::before { background: var(--r-blue); }
.promo { border-radius: var(--radius-lg); padding: 44px; color: #fff; background: linear-gradient(135deg, var(--r-indigo), var(--r-violet) 60%, var(--r-red)); position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: var(--rainbow); opacity: .35; filter: blur(30px); }

/* ---------- Footer ---------- */
.site-footer { background: #101116; color: #c9cad3; margin-top: 60px; }
.site-footer .rainbow-bar { height: 5px; }
.site-footer .container { padding-top: 54px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #c9cad3; display: block; padding: 3px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-bottom { border-top: 1px solid #23252e; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 50px 20px; background: var(--rainbow-soft); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; }
.auth-card h1 { font-size: 1.75rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- Account / admin shells ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.side-nav { position: sticky; top: 130px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: .93rem; }
.side-nav a:hover { background: var(--bg-2); color: var(--ink); }
.side-nav a.active { background: var(--ink); color: #fff; }
.side-nav .sep { height: 1px; background: var(--line); margin: 8px 4px; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side-nav { position: static; display: flex; overflow-x: auto; } .side-nav a { white-space: nowrap; } .side-nav .sep { display: none; } }

.stat { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--primary)); }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.stat .v { font-family: var(--display); font-size: 1.8rem; font-weight: 800; margin-top: 4px; }
.stat .d { font-size: .82rem; color: var(--muted); }

.tracker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 10px 0 6px; }
.tracker .t { text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); position: relative; padding-top: 34px; }
.tracker .t::before { content: ""; position: absolute; top: 9px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.tracker .t::after { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.tracker .t:first-child::after { display: none; }
.tracker .t.done { color: var(--ink); }
.tracker .t.done::before { background: var(--r-green); border-color: var(--r-green); }
.tracker .t.done::after { background: var(--r-green); }
.tracker .t.now::before { border-color: var(--r-blue); box-shadow: 0 0 0 5px rgba(30,155,215,.18); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--r-blue); }
.timeline li:last-child { border-left-color: transparent; }
.timeline .when { font-size: .78rem; color: var(--muted); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ico { font-size: 2.6rem; margin-bottom: 8px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; background: #fff; }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .45; }

/* ---------- Cart ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .img { width: 96px; height: 96px; border-radius: 12px; background: var(--bg-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-line .img img { width: 100%; height: 100%; object-fit: contain; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 1.2rem; font-family: var(--display); }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.pay-method:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .cart-line { grid-template-columns: 72px 1fr; } .cart-line .img { width: 72px; height: 72px; } .cart-line .actions { grid-column: 1 / -1; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
[x-cloak] { display: none !important; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; font-weight: 600; }
.split { grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
