/* =====================================================================
   ISULAN Boutique - stylesheet v2
   Keeps the original class names (.header .logo nav .hero .hero-content
   .welcome .description .shop-button footer) and adds the app components.
   Change the look from the :root block below.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700&family=DM+Sans:wght@400;500;700&display=swap");

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    /* colors */
    --bg: #f7f5f6;
    --surface: #ffffff;
    --surface-2: #fbf9fa;
    --ink: #241d21;
    --muted: #6f6469;
    --line: #e6dfe2;
    --accent: #7a1f3d;
    --accent-dark: #5e1730;
    --accent-ink: #ffffff;
    --accent-soft: #f3e3e9;
    --gold: #b98a2e;
    --header-bg: #7a1f3d;
    --header-ink: #ffffff;
    --header-muted: #f0d9df;

    /* status colors */
    --ok: #1f7a4d;   --ok-bg: #e1f2e8;
    --warn: #9a6a10; --warn-bg: #fbf0d5;
    --bad: #b3261e;  --bad-bg: #fbe4e2;
    --info: #1d5a99; --info-bg: #e1edfa;

    /* type */
    --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
    --body: "DM Sans", "Segoe UI", Arial, sans-serif;

    /* shape and depth */
    --radius: 10px;
    --radius-sm: 7px;
    --shadow-sm: 0 1px 2px rgba(36, 29, 33, 0.06);
    --shadow-md: 0 8px 22px rgba(36, 29, 33, 0.10);
    --ease: 160ms ease;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #171215;
        --surface: #221b1f;
        --surface-2: #1d171a;
        --ink: #f2eaee;
        --muted: #a99ca3;
        --line: #3a2f35;
        --accent: #d9668a;
        --accent-dark: #e585a4;
        --accent-ink: #1a0d13;
        --accent-soft: #34202a;
        --gold: #d8b25c;
        --header-bg: #241a1f;
        --header-ink: #f2eaee;
        --header-muted: #a99ca3;
        --ok: #62c796;   --ok-bg: #183326;
        --warn: #e2b04f; --warn-bg: #3a2c0e;
        --bad: #f08a82;  --bad-bg: #3b1b19;
        --info: #7fb4ec; --info-bg: #172b43;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
        --bg: #171215;
        --surface: #221b1f;
        --surface-2: #1d171a;
        --ink: #f2eaee;
        --muted: #a99ca3;
        --line: #3a2f35;
        --accent: #d9668a;
        --accent-dark: #e585a4;
        --accent-ink: #1a0d13;
        --accent-soft: #34202a;
        --gold: #d8b25c;
        --header-bg: #241a1f;
        --header-ink: #f2eaee;
        --header-muted: #a99ca3;
        --ok: #62c796;   --ok-bg: #183326;
        --warn: #e2b04f; --warn-bg: #3a2c0e;
        --bad: #f08a82;  --bad-bg: #3b1b19;
        --info: #7fb4ec; --info-bg: #172b43;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
}

/* ---------- 2. BASE ---------- */
[hidden] { display: none !important; }

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.55;
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main,
body > .container { flex: 1 0 auto; }

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.2;
    text-wrap: balance;
}

p { max-width: 70ch; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

::selection {
    background: var(--accent-soft);
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* skip link for keyboard users: <a class="skip-link" href="#main">Skip to content</a> */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    z-index: 100;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 3. HEADER AND NAVIGATION ---------- */
.header,
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--header-bg);
    color: var(--header-ink);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.logo h1 {
    font-size: 23px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--header-ink);
}

.logo h1 span { color: var(--gold); font-weight: 500; }

.logo p {
    font-size: 12.5px;
    margin-top: 2px;
    color: var(--header-muted);
}

nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    position: relative;
    color: var(--header-ink);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background-color var(--ease);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

nav a.active,
nav a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.badge {
    display: inline-block;
    min-width: 18px;
    text-align: center;
    background: var(--gold);
    color: #241d21;
    border-radius: 99px;
    font-size: 11px;
    line-height: 18px;
    padding: 0 6px;
    margin-left: 4px;
    font-weight: 700;
}

/* ---------- 4. HOMEPAGE HERO ---------- */
.hero {
    min-height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background:
        radial-gradient(600px 260px at 15% 20%, var(--accent-soft), transparent 70%),
        radial-gradient(520px 240px at 88% 85%, rgba(185, 138, 46, 0.16), transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}

.hero-content { max-width: 660px; }

.welcome {
    display: inline-block;
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h2 {
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -0.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.shop-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--accent-ink);
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.shop-button:hover {
    background-color: var(--accent-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.shop-button.outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    box-shadow: none;
}

.shop-button.outline:hover { background: var(--accent-soft); }

/* ---------- 5. PAGE LAYOUT ---------- */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

.container h1 { font-size: 28px; margin-bottom: 16px; }
.container h2 { font-size: 18px; margin: 28px 0 10px; }

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.page-head h1 { margin-bottom: 0; }

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.low { color: var(--bad); font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stack > * + * { margin-top: 12px; }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 14px 0;
}

/* ---------- 6. CARDS AND GRIDS ---------- */
.panel,
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    min-width: 0;
    box-shadow: var(--shadow-sm);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 18px;
}

.two, .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 16px 0 22px;
}

.stat b {
    display: block;
    font-family: var(--display);
    font-size: 27px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.stat span { font-size: 13px; color: var(--muted); }

.empty {
    padding: 34px 20px;
    text-align: center;
    color: var(--muted);
}

/* ---------- 7. PRODUCT CARDS ---------- */
.product {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
}

.thumb {
    height: 150px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(135deg, #a8405f, #c98a62);
    margin-bottom: 9px;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.product:hover .thumb img { transform: scale(1.05); }

.product .cat {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
}

.product .name { font-weight: 700; font-size: 16px; }
.product .name a { color: var(--ink); }
.product .name a:hover { color: var(--accent); text-decoration: none; }
.product .shop { font-size: 13px; color: var(--muted); }

.product .price {
    font-weight: 700;
    font-size: 17px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* the button (or its form) sits at the bottom so buttons line up across a row of cards */
.product > .btn,
.product > form { margin-top: auto; align-self: flex-start; }
.product > :nth-last-child(2) { margin-bottom: 8px; }

/* ---------- 8. BUTTONS ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn.secondary, .btn.alt {
    background: transparent;
    color: var(--accent);
}

.btn.secondary:hover, .btn.alt:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn.danger {
    background: var(--bad);
    border-color: var(--bad);
    color: #ffffff;
}

.btn.danger:hover { filter: brightness(0.92); }

.btn.small, .btn.sm { padding: 3px 11px; font-size: 13px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn[disabled], .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- 9. FORMS ---------- */
label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin: 14px 0 5px;
}

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=tel], input[type=date],
select, textarea {
    width: 100%;
    padding: 9px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color var(--ease), box-shadow var(--ease);
}

input:hover, select:hover, textarea:hover { border-color: var(--muted); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }

textarea { min-height: 92px; resize: vertical; }

.form-narrow { max-width: 460px; margin: 0 auto; }
.form-wide { max-width: 640px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

.search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 22px;
}

.search input, .search select { flex: 1 1 180px; width: auto; }

.inline { display: inline; }

.inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input[type=number] { width: 80px; }
.inline-form select { width: auto; }

/* ---------- 10. TABLES ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; }

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: middle;
}

th {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    background: var(--surface-2);
    white-space: nowrap;
}

tbody tr { transition: background-color var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 11. STATUS PILLS ---------- */
.pill {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--line);
    color: var(--muted);
}

.pill.PENDING, .pill.PACKED { background: var(--warn-bg); color: var(--warn); }
.pill.CONFIRMED, .pill.OUT_FOR_DELIVERY { background: var(--info-bg); color: var(--info); }
.pill.DELIVERED, .pill.ACTIVE, .pill.PAID { background: var(--ok-bg); color: var(--ok); }
.pill.CANCELLED, .pill.SUSPENDED, .pill.INACTIVE, .pill.REFUNDED { background: var(--bad-bg); color: var(--bad); }

/* ---------- 12. MESSAGES ---------- */
.flash, .error {
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid;
    animation: slide-in 220ms ease both;
}

.flash { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }

.notif {
    margin-bottom: 8px;
    border-left: 3px solid var(--line);
}

.notif.unread { border-left-color: var(--accent); background: var(--accent-soft); }

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- 13. FOOTER ---------- */
footer p { max-width: none; }

footer {
    flex-shrink: 0;
    background-color: var(--header-bg);
    color: var(--header-muted);
    text-align: center;
    padding: 18px;
    font-size: 13px;
}

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 760px) {
    .two, .split { grid-template-columns: 1fr; }
    .container { padding-top: 20px; }
    .container h1 { font-size: 24px; }
}

@media (max-width: 700px) {
    .header, .topbar {
        position: static;               /* a tall sticky header would hide too much of a phone screen */
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
    }

    nav { justify-content: center; }
    .hero { min-height: 0; padding: 44px 18px; }
    .description { font-size: 16px; }
    .thumb { height: 130px; }
}

/* ---------- 15. USER PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 16. INTERACTIVE PARTS (cart, quick view, filters, toast) ---------- */
.nav-btn {
    background: transparent;
    border: 0;
    color: var(--header-ink);
    font: inherit;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--ease);
}
.nav-btn:hover { background-color: rgba(255, 255, 255, 0.14); }
.nav-btn:focus-visible, nav a:focus-visible { outline-color: #ffffff; }

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0 14px;
}
.toolbar input { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 99px;
    padding: 5px 15px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--ease), background-color var(--ease);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

.result-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

button.thumb { border: 0; width: 100%; cursor: pointer; transition: filter var(--ease); }
button.thumb:hover { filter: brightness(1.07); }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.link-btn:hover { color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps h3 { font-size: 17px; margin: 4px 0 6px; }
.steps .muted { font-size: 14px; }
.step-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

/* overlay, drawer, modal */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 15, 0.55);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms;
}
.overlay.show { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(430px, 100%);
    background: var(--surface);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 260ms ease, visibility 260ms;
}
.drawer.open { transform: none; visibility: visible; }

.drawer-head, .drawer-foot { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-head h2 { font-size: 19px; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.drawer-foot { border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface-2); }

.icon-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 4px 11px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.ship { padding: 12px 0 6px; font-size: 14px; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 300ms ease; }

.line {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.mini {
    width: 58px; height: 58px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.92);
}
.line .nm { font-weight: 700; line-height: 1.3; }
.line .each { font-size: 13px; color: var(--muted); }
.line .sub { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.line .rm { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; margin-top: 6px; text-decoration: underline; }
.line .rm:hover { color: var(--bad); }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-top: 6px;
    overflow: hidden;
}
.qty button {
    background: var(--surface);
    border: 0;
    width: 30px; height: 30px;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.totals .sum { display: flex; justify-content: space-between; padding: 2px 0; font-variant-numeric: tabular-nums; }
.totals .sum.grand { font-weight: 700; font-size: 17px; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.drawer-foot .btn { margin-top: 12px; }

.pay-opt {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 8px 0 0;
    cursor: pointer;
    font-weight: 500;
}
.pay-opt input { width: auto; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.field-error { color: var(--bad); font-size: 13px; margin-top: 4px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }

.done { text-align: center; padding: 26px 4px; }
.done .tick {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--ok-bg);
    color: var(--ok);
    display: grid;
    place-items: center;
    font-size: 28px;
    margin: 0 auto 14px;
}
.done h3 { font-size: 21px; margin-bottom: 6px; }
.done p { margin: 0 auto 8px; }
.ref { font-family: var(--display); font-size: 20px; letter-spacing: 1px; color: var(--accent); }

.modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 780px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    position: relative;
    box-shadow: var(--shadow-md);
}
.modal-card .thumb { height: 100%; min-height: 240px; font-size: 64px; margin: 0; }
.modal-card h2 { font-size: 26px; margin: 4px 0; }
.modal-card .price { font-size: 24px; font-weight: 700; color: var(--accent); margin: 6px 0; }
.modal-close { position: absolute; top: 12px; right: 12px; background: var(--surface); }
.modal-info { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; }
.modal-info .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 16px);
    background: var(--ink);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 200;
    max-width: 92vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.badge.bump { animation: bump 320ms ease; }
@keyframes bump { 40% { transform: scale(1.4); } }

@media (max-width: 700px) {
    .modal-card { grid-template-columns: 1fr; }
    .modal-card .thumb { min-height: 170px; height: 170px; font-size: 48px; }
    .nav-btn { padding: 8px 10px; }
}
