/* ==========================================================================
   Lucy Crafts & Collections — design system
   --------------------------------------------------------------------------
   Warm craft-paper palette, seasonal accents, soft cards.
   Dependency-free: system fonts only, works from file://, no external
   requests.
   ========================================================================== */

:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --card: #ffffff;
  --ink: #33302a;
  --ink-soft: #57534a;
  --muted: #847d70;
  --line: #e7ddcc;
  --brand: #c4552d;
  --brand-deep: #8f3a1c;
  --brand-soft: #f7e3d7;
  --accent: #3f6d5e;
  --gold: #d9a441;
  --amber: #b97a1f;
  --amber-bg: #fdf1d7;
  --green: #2e7d4f;
  --green-bg: #e2f2e7;
  --shadow-sm: 0 1px 3px rgba(70, 50, 30, 0.10);
  --shadow-md: 0 6px 18px rgba(70, 50, 30, 0.12);
  --shadow-lg: 0 14px 34px rgba(70, 50, 30, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 85% -80px, rgba(217, 164, 65, 0.10), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
}

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

a { color: var(--brand-deep); }
a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid rgba(196, 85, 45, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 60;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; line-height: 1.15; color: var(--ink); letter-spacing: 0.01em; }
.brand-name small { display: block; font-weight: 600; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.brand:hover .brand-name { color: var(--brand-deep); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
  padding: 9px 13px; border-radius: 999px;
}
.site-nav a:hover { background: var(--paper-deep); color: var(--ink); }
.site-nav a.active { background: var(--brand-soft); color: var(--brand-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 700;
  color: var(--ink); cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; color: #fff; }
.hero-seasonal {
  background:
    radial-gradient(900px 340px at 12% 118%, rgba(240, 138, 60, 0.5), transparent 65%),
    radial-gradient(700px 300px at 88% -30%, rgba(240, 138, 60, 0.35), transparent 60%),
    linear-gradient(135deg, #3b2549 0%, #55336b 55%, #6d3f7a 100%);
}
.hero-default {
  background:
    radial-gradient(900px 340px at 12% 118%, rgba(196, 85, 45, 0.45), transparent 65%),
    radial-gradient(700px 300px at 88% -30%, rgba(217, 164, 65, 0.30), transparent 60%),
    linear-gradient(135deg, #6d3a22 0%, #8f4a28 55%, #a85c30 100%);
}

.hero-inner { padding: 74px 0 84px; max-width: 720px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.85); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.12; margin: 10px 0 16px; letter-spacing: 0.01em;
}
.hero p.lede { font-size: 1.12rem; color: rgba(255, 255, 255, 0.92); max-width: 58ch; margin: 0 0 26px; }

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

/* scallop edge */
.scallop { height: 22px; background: var(--paper); -webkit-mask: radial-gradient(14px at 14px 0, transparent 97%, #000) -14px 0 / 28px 22px repeat-x; mask: radial-gradient(14px at 14px 0, transparent 97%, #000) -14px 0 / 28px 22px repeat-x; }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before { content: "✂ "; color: var(--gold); }

.section { padding: 54px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 6px 0 0; letter-spacing: 0.01em; }
.section-head .more { font-weight: 600; font-size: 0.95rem; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 0.97rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-body);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.btn-quiet { background: var(--card); color: var(--brand-deep); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn[disabled], .btn.is-disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */

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

.cat-tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-tile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
  background: var(--tile-hue, var(--brand));
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }

.cat-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--tile-hue, var(--brand)), var(--tile-hue-deep, var(--brand-deep)));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}
.cat-icon svg { width: 28px; height: 28px; }

.cat-tile h3 { margin: 0 0 3px; font-family: var(--font-display); font-size: 1.04rem; }
.cat-tile p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.cat-tile .count { margin-left: auto; flex: 0 0 auto; font-size: 0.76rem; font-weight: 700; color: var(--muted); background: var(--paper-deep); border-radius: 999px; padding: 4px 10px; }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

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

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* honest "no artwork yet" tile — clearly not product art */
.media-soon {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; align-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(196, 85, 45, 0.05) 0 12px, rgba(196, 85, 45, 0.09) 12px 24px),
    var(--paper-deep);
  border-bottom: 1px dashed var(--line);
  color: var(--muted); text-align: center; padding: 14px;
}
.media-soon svg { width: 44px; height: 44px; opacity: 0.75; }
.media-soon span { font-size: 0.85rem; font-weight: 600; max-width: 20ch; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; }
.card-sub { margin: 0; color: var(--muted); font-size: 0.88rem; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.card-price { font-weight: 800; color: var(--brand-deep); font-size: 1.02rem; }
.card-price.tbc { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Badges & progress
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 11px;
}
.badge-prep { background: var(--amber-bg); color: var(--amber); border: 1px solid #ecd9ae; }
.badge-ready { background: var(--green-bg); color: var(--green); border: 1px solid #bfe0cb; }
.badge-listed { background: #e7f0fb; color: #2d6cb5; border: 1px solid #c4daf1; }

.badge.cat-chip { background: var(--chip-bg, var(--paper-deep)); color: var(--chip-fg, var(--ink-soft)); border: 1px solid var(--line); text-transform: none; letter-spacing: 0.01em; font-size: 0.78rem; }

.progress { height: 8px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brand)); border-radius: 999px; }
.progress-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   Filter bar / search
   -------------------------------------------------------------------------- */

.shop-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.search-bar { display: flex; gap: 10px; }
.search-bar input {
  flex: 1; font: inherit; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
}
.search-bar input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(196, 85, 45, 0.18); }
.search-bar button { border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; padding: 0 22px; cursor: pointer; }
.search-bar button:hover { background: var(--brand-deep); }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.sort-select { margin-left: auto; font: inherit; font-size: 0.9rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }

.result-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }

/* --------------------------------------------------------------------------
   Collection page hero wash
   -------------------------------------------------------------------------- */

.collection-hero { position: relative; overflow: hidden; color: #fff; }
.collection-hero .wash { position: absolute; inset: 0; background: linear-gradient(135deg, var(--wash-a, #555), var(--wash-b, #333)); }
.collection-hero .wrap { position: relative; padding: 48px 0 44px; display: flex; align-items: center; gap: 20px; }
.collection-hero .cat-icon { width: 66px; height: 66px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.collection-hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 4px; }
.collection-hero p { margin: 0; color: rgba(255, 255, 255, 0.88); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.crumbs { font-size: 0.86rem; color: var(--muted); margin: 20px 0 0; }
.crumbs a { text-decoration: none; }

.product-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: 34px; padding: 22px 0 10px; }

.gallery-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.gallery-main { aspect-ratio: 4 / 3; position: relative; background: var(--paper-deep); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background:
  repeating-conic-gradient(#f1ead9 0 25%, #faf6ef 0 50%) 0 0 / 28px 28px; }
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); overflow-x: auto; }
.gallery-thumbs button {
  flex: 0 0 auto; width: 76px; height: 60px; border-radius: 10px; border: 2px solid transparent;
  padding: 0; overflow: hidden; cursor: pointer; background: var(--paper-deep);
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--brand); }

.gallery-soon {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center;
  text-align: center; padding: 30px; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, rgba(196, 85, 45, 0.045) 0 14px, rgba(196, 85, 45, 0.085) 14px 28px),
    var(--paper-deep);
}
.gallery-soon svg { width: 56px; height: 56px; opacity: 0.7; }
.gallery-soon p { margin: 0; font-weight: 600; max-width: 34ch; }

.product-info h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 8px 0 6px; }
.product-info .subtitle { color: var(--muted); margin: 0 0 14px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.buy-box {
  margin-top: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.buy-box .price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--brand-deep); }
.buy-box .price.tbc { color: var(--muted); font-size: 1.15rem; }
.buy-box .note { font-size: 0.88rem; color: var(--muted); margin: 8px 0 0; }
.buy-box .btn { width: 100%; justify-content: center; margin-top: 14px; }

.progress-block { margin-top: 16px; }
.progress-block .progress { margin-top: 6px; }

.spec-list { margin: 0; padding: 0; list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; text-align: right; }

.info-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.info-box h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.02rem; }
.info-box p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.info-box ul { margin: 8px 0 0; padding-left: 20px; font-size: 0.92rem; color: var(--ink-soft); }
.info-box li { margin-bottom: 5px; }

.motif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 6px; }
.motif {
  display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--ink-soft);
  background: var(--paper-deep); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 9px 12px;
}
.motif svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--brand); }

.honesty-note {
  margin-top: 18px; border-left: 4px solid var(--gold);
  background: var(--amber-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 16px; font-size: 0.92rem; color: #6b5210;
}

/* --------------------------------------------------------------------------
   Promise / value cards & misc sections
   -------------------------------------------------------------------------- */

.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.promise-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.promise-card svg { width: 30px; height: 30px; color: var(--brand); margin-bottom: 10px; }
.promise-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.02rem; }
.promise-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-family: var(--font-display);
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.empty-state {
  text-align: center; padding: 44px 20px; border: 2px dashed var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--muted);
}
.empty-state svg { width: 46px; height: 46px; margin: 0 auto 12px; opacity: 0.7; }
.empty-state h3 { color: var(--ink); margin: 0 0 6px; font-family: var(--font-display); }
.empty-state p { margin: 0 auto; max-width: 46ch; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { margin-top: 70px; background: #2e2a24; color: #cfc7ba; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #948c7e; margin: 0 0 12px; font-family: var(--font-body); }
.footer-grid a { color: #e6ddcf; text-decoration: none; display: block; padding: 4px 0; font-size: 0.93rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 44px; height: 44px; margin-bottom: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.88rem; color: #b4ab9c; max-width: 30ch; margin: 8px 0 0; }
.footer-status span { display: block; font-size: 0.85rem; padding: 4px 0; color: #b4ab9c; }
.footer-status span::before { content: "• "; color: var(--gold); }
.footer-bottom { border-top: 1px solid #453f36; padding: 16px 0 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: #948c7e; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: rgba(40, 32, 24, 0.86); padding: 4vmin;
}
.lightbox.open { display: grid; place-items: center; }
.lightbox-figure { margin: 0; max-width: min(1100px, 94vw); max-height: 92vh; display: grid; gap: 10px; }
.lightbox-figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #efe7da; text-align: center; font-size: 0.92rem; }
.lightbox-close {
  position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 999px;
  border: none; background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Free downloads styling
   -------------------------------------------------------------------------- */

.badge-free { background: var(--green-bg); color: var(--green); border: 1px solid #bfe0cb; }
.badge-free::before { content: "★ "; font-size: 0.9em; }

.card-price.free,
.price.free { color: var(--green); }

.nav-free {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  border: 1px solid #bfe0cb;
}
.nav-free:hover { background: #d4ecdb !important; }

.hero-free {
  background:
    radial-gradient(900px 340px at 12% 118%, rgba(46, 125, 79, 0.45), transparent 65%),
    radial-gradient(700px 300px at 88% -30%, rgba(217, 164, 65, 0.30), transparent 60%),
    linear-gradient(135deg, #1f4d3a 0%, #2e6e50 55%, #3f8a64 100%);
}

.link-box a {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper-deep); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  text-decoration: none; color: var(--ink);
}
.link-box a:hover { border-color: var(--brand); background: var(--brand-soft); }
.link-box .link-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
}
.link-box .link-icon svg { width: 24px; height: 24px; }
.link-box .link-title { font-weight: 700; font-size: 0.97rem; display: block; }
.link-box .link-sub { color: var(--muted); font-size: 0.85rem; display: block; }
.link-box .badge { margin-left: auto; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Bundle deals styling
   -------------------------------------------------------------------------- */

.badge-best {
  background: linear-gradient(120deg, #f5c542, #e8a020);
  color: #4a3208;
  border: 1px solid #d99a1f;
  box-shadow: 0 1px 4px rgba(217, 154, 31, 0.4);
}
.badge-best::before { content: "★ "; }

.badge-offer { background: #e7f0fb; color: #2d6cb5; border: 1px solid #c4daf1; }
.badge-offer::before { content: "✂ "; }

.price-was { font-size: 0.88rem; color: var(--muted); margin: 8px 0 0; }
.price-was s { color: var(--ink-soft); }
.promo-label { font-size: 0.9rem; color: var(--brand-deep); background: var(--brand-soft); border-radius: var(--radius-sm); padding: 9px 12px; margin: 10px 0 0; }

.hero-deals {
  background:
    radial-gradient(900px 340px at 12% 118%, rgba(217, 164, 65, 0.5), transparent 65%),
    radial-gradient(700px 300px at 88% -30%, rgba(196, 85, 45, 0.35), transparent 60%),
    linear-gradient(135deg, #7a4a12 0%, #a06a1e 55%, #c08a2a 100%);
}

.tier-wrap { overflow-x: auto; }
.tier-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tier-table th, .tier-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.tier-table th { background: var(--paper-deep); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tier-table tbody tr:last-child td { border-bottom: none; }
.tier-table .tier-best { background: #fdf6e0; }
.tier-table .tier-best td:first-child { font-weight: 800; color: var(--brand-deep); }
.tier-table .tier-popular { background: #eef5fc; }
.tier-table .tier-popular td:first-child { font-weight: 800; color: #2d6cb5; }

.badge-popular { background: #e7f0fb; color: #2d6cb5; border: 1px solid #c4daf1; }
.badge-popular::before { content: "♥ "; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 18px 16px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
  .hero-inner { padding: 52px 0 62px; }
  .section { padding: 40px 0 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .sort-select { margin-left: 0; }
  .brand-name small { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
