@font-face {
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Core palette (storefront) ---- */
  --bg: #fffaf0;
  --card: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: #ece6d7;
  --accent: #0f172a;
  --accent-fg: #ffffff;
  --sun: #f59e0b;
  --sun-soft: #fef3c7;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #15803d;

  /* ---- Admin variant ---- */
  --admin-bg: #f4f4f1;

  /* ---- Creative (social) renders ---- */
  --creative-bg-1: #fffbeb;
  --creative-bg-2: #fef3c7;
  --creative-glow-1: #fde68a;
  --creative-glow-2: #fb923c;
  --creative-bolt: #ea580c;
  --creative-price: #ea580c;
  --creative-price-alt: #fbbf24;
  --creative-ink: #0f172a;
  --creative-ink-soft: #334155;
  --creative-ink-xsoft: #94a3b8;

  /* ---- Status badges ---- */
  --badge-paid-bg: #dcfce7;
  --badge-paid-fg: #15803d;
  --badge-pend-bg: #fef3c7;
  --badge-pend-fg: #b45309;
  --badge-fail-bg: #fee2e2;
  --badge-fail-fg: #b91c1c;

  /* ---- Gradients ---- */
  --gradient-hero:
    radial-gradient(circle at 20% 10%, var(--sun-soft) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #ffe8b3 0%, transparent 45%);
  --gradient-creative:
    radial-gradient(circle at 10% 0%, #fde68a 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, #fb923c 0%, transparent 40%),
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  --gradient-popup-head: linear-gradient(135deg, #fde68a, #fb923c);

  /* ---- Type ---- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-eyebrow: 0.78rem;
  --fs-body: 1rem;
  --fs-helper: 0.92rem;
  --fs-h3: 1.1rem;
  --fs-h2: 1.5rem;
  --fs-h1: 2rem;
  --fs-hero: 2.8rem;
  --fs-pd-title: 1.75rem;
  --fs-price-big: 2rem;
  --track-tight-xl: -0.02em;
  --track-tight: -0.01em;
  --track-label: 0.08em;
  --track-chip: 0.04em;
  --lh-body: 1.55;
  --lh-title: 1.25;
  --lh-hook: 1.05;

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-hero: 20px;
  --r-creative: 24px;
  --r-pill: 999px;

  /* ---- Space ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --container: 1120px;

  /* ---- Shadows ---- */
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover-strong: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-image-soft: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-creative: 0 40px 80px rgba(0, 0, 0, 0.4);

  /* ---- Motion ---- */
  --ease-default: ease;
  --dur-tap: 0.15s;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
}
body.admin { background: var(--admin-bg); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- Announcement bar + nav ---- */
.announce { background: var(--accent); color: var(--accent-fg); text-align: center; padding: 8px 16px; font-size: .9rem; letter-spacing: .02em; }
.nav { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 5; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.sun, .bolt { color: var(--sun); font-size: 1.3em; display: inline-block; transform: translateY(1px); }
.nav nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav nav a, .nav nav button { margin-left: 10px; color: var(--fg); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .95rem; }
.nav nav a:hover { background: var(--sun-soft); }
.nav nav a.active { background: var(--sun-soft); color: var(--accent); font-weight: 600; }
.nav nav a.cart-link { background: var(--accent); color: #fff; font-weight: 600; }
.nav nav a.cart-link:hover { background: #000; }
main { padding: 32px 0 64px; }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 80px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { margin: 0 0 8px; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid a { display: block; text-decoration: none; color: var(--fg); padding: 4px 0; font-size: .95rem; }
.footer-grid a:hover { color: var(--sun); }
.footer-grid .brand { font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Headings ---- */
h1 { margin: 0 0 24px; font-size: 2rem; letter-spacing: -0.02em; }
h2 { margin: 48px 0 20px; font-size: 1.5rem; letter-spacing: -0.01em; }
.section-title { text-align: center; margin: 56px 0 28px; }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 56px 20px 40px;
  background:
    radial-gradient(circle at 20% 10%, var(--sun-soft) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #ffe8b3 0%, transparent 45%);
  border-radius: 20px;
  margin-bottom: 40px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 10px; }
.hero .lede { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; }
.button.large { padding: 14px 28px; font-size: 1.05rem; }

/* ---- Value strip ---- */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; }
.value-strip > div { text-align: center; font-size: .92rem; }
.value-strip strong { color: var(--accent); }
.value-strip span { color: var(--muted); }
@media (max-width: 720px) { .value-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Product grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.thumb { aspect-ratio: 1/1; background: #fef3c7 center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.thumb-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--sun); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.mini-thumb { width: 48px; height: 48px; border-radius: 6px; background: var(--sun-soft) center/cover no-repeat; }
.card-body { padding: 16px; }
.card-body h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 700; font-size: 1.05rem; }
.price-strike { color: var(--muted); text-decoration: line-through; font-size: .9rem; }

/* ---- Product page (redesign) ---- */
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 20px 0 48px; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; gap: 28px; } }

.pd-gallery { position: sticky; top: 90px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pd-crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.pd-crumbs a { color: var(--muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--fg); text-decoration: underline; }
.pd-crumbs span { margin: 0 6px; opacity: 0.5; }

.pd-title { font-size: 1.75rem; font-weight: 800; line-height: 1.25; margin: 0 0 18px; color: var(--fg); }
@media (max-width: 560px) { .pd-title { font-size: 1.4rem; } }

.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-price-now { font-size: 2rem; font-weight: 800; color: var(--accent); }
.pd-price-was { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.pd-badge-save { font-size: 0.75rem; font-weight: 800; background: #fef3c7; color: #92400e; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }

.pd-trust { list-style: none; padding: 14px 0; margin: 0 0 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; gap: 8px; font-size: 0.92rem; }
.pd-trust li { display: flex; align-items: center; gap: 10px; color: #374151; }
.pd-trust li span { width: 22px; text-align: center; }
.pd-trust .pd-stock-in { color: #166534; font-weight: 500; }
.pd-trust .pd-stock-out { color: #b91c1c; font-weight: 500; }

.pd-cart-form { display: flex; gap: 12px; align-items: end; margin-bottom: 32px; }
.pd-qty { flex: 0 0 90px; font-size: 0.85rem; color: var(--muted); }
.pd-qty input { margin-top: 4px; text-align: center; }
.pd-cart-btn { flex: 1; background: var(--accent); color: var(--accent-fg); font-size: 1.05rem; font-weight: 700; padding: 14px 24px; border: none; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
.pd-cart-btn:hover { background: #000; }
.pd-cart-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.pd-section { margin-bottom: 28px; }
.pd-h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; color: var(--fg); text-transform: uppercase; letter-spacing: 0.5px; }
.pd-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pd-bullets li { position: relative; padding-left: 22px; color: #374151; font-size: 0.95rem; line-height: 1.5; }
.pd-bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.pd-para { color: #374151; font-size: 0.95rem; line-height: 1.55; margin: 0 0 10px; }

.pd-guarantee { background: var(--sun-soft); padding: 18px; border-radius: 12px; border: 1px solid #fde68a; }
.pd-guarantee .pd-h2 { color: #92400e; }

.pd-related { margin: 48px 0; padding-top: 32px; border-top: 1px solid var(--border); }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
@media (max-width: 720px) { .pd-related-grid { grid-template-columns: repeat(2, 1fr); } }
.pd-related-card { display: block; text-decoration: none; color: var(--fg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.pd-related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.pd-related-img { aspect-ratio: 1/1; background: var(--sun-soft) center/cover no-repeat; }
.pd-related-body { padding: 12px; }
.pd-related-title { font-size: 0.85rem; font-weight: 500; line-height: 1.35; height: 2.7em; overflow: hidden; margin-bottom: 6px; }
.pd-related-price { font-size: 0.95rem; font-weight: 700; color: var(--accent); }

/* ---- Buttons, forms ---- */
button, .button { font: inherit; cursor: pointer; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--fg); text-decoration: none; display: inline-block; font-weight: 500; }
button.primary, .button.primary, a.primary.button { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.primary:hover, .button.primary:hover { background: #000; }
button.link, .link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; margin-right: 8px; font-size: inherit; }
button.danger, .danger { color: var(--danger); }
form.inline, .inline { display: inline; }
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
form.stack .row, .newsletter .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: .88rem; color: var(--muted); font-weight: 500; }
label input, label textarea, label select, input, textarea, select { display: block; width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--fg); margin-top: 4px; }
label input:focus, label textarea:focus, input:focus, textarea:focus { outline: 2px solid var(--sun); outline-offset: -1px; border-color: var(--sun); }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
legend { padding: 0 6px; color: var(--muted); font-size: .85rem; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; margin: 0; }

/* ---- Cart + table ---- */
.cart, table.admin { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.cart th, .cart td, table.admin th, table.admin td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cart tfoot td, table.admin tfoot td { border-top: 2px solid var(--border); background: #fafaf7; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---- Checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.summary { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: sticky; top: 80px; }
.summary ul { list-style: none; padding: 0; margin: 0; }
.summary li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.summary .total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 2px solid var(--border); font-size: 1.1rem; }
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---- Info blocks ---- */
.notice { background: var(--sun-soft); border: 1px solid #fcd34d; color: #78350f; padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.flash { background: #dcfce7; padding: 10px 14px; border-radius: 8px; margin-top: 16px; border: 1px solid #86efac; }
.err { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; border: 1px solid #fecaca; }

/* ---- Admin ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat .num { font-size: 1.9rem; font-weight: 700; }
.stat.warn { border-color: #fbbf24; background: #fffbeb; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eee; font-size: .78rem; color: #333; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.badge.paid, .badge.placed { background: #dcfce7; color: var(--ok); }
.badge.unpaid, .badge.pending, .badge.queued { background: #fef3c7; color: var(--warn); }
.badge.failed { background: #fee2e2; color: var(--danger); }
.order-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.fulfill-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.hint { color: var(--muted); font-size: .9rem; }
.login-card { max-width: 400px; margin: 80px auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; }

/* ---- Content pages (prose) ---- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; }
.prose .lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 24px; }
.prose h3 { margin-top: 28px; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 4px 0; }
.muted { color: var(--muted); }

.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 20px 0; }
@media (max-width: 720px) { .contact-card { grid-template-columns: 1fr; } }

/* ---- Why + newsletter ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-grid > div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.why-grid h3 { margin-top: 0; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

.filters { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-row input[type=search], .filter-row select { flex: 0 1 auto; width: auto; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sun-soft); color: var(--fg); text-decoration: none; font-size: .9rem; border: 1px solid transparent; }
.chip:hover { border-color: var(--sun); }
.chip.active { background: var(--accent); color: #fff; }
.pagination .chip { min-width: 36px; text-align: center; }

.newsletter { background: var(--sun-soft); border-radius: 16px; padding: 40px; text-align: center; margin-top: 40px; }
.newsletter h2 { margin-top: 0; }
.newsletter .row { max-width: 480px; margin: 20px auto 0; grid-template-columns: 2fr 1fr; }
