/* ═══════════════════════════════════════════════════════════════════════
   SECOND CHANCE — theme
   Plain CSS layered over Bootstrap 5.3.
   Palette: --ink:#111714 --green:#18231e --cream:#f3f0e8 --line:#dedbd3 --muted:#666963
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #111714;
  --ink-soft: #2a322c;
  --green: #18231e;
  --green-2: #22352b;
  --cream: #f3f0e8;
  --cream-2: #eae6da;
  --line: #dedbd3;
  --line-2: #e7e4db;
  --muted: #666963;
  --accent: #b98a2f;
  --danger: #b3432f;
  --success: #2f6f4e;
  --white: #fdfcf9;
  --shadow: 0 1px 2px rgba(17, 23, 20, .06), 0 4px 16px rgba(17, 23, 20, .06);
  --shadow-lg: 0 8px 30px rgba(17, 23, 20, .12);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--green); }

.font-marker { font-family: "Permanent Marker", cursive; font-weight: 400; letter-spacing: .02em; }
.font-display { font-weight: 800; letter-spacing: -0.02em; }

.text-muted { color: var(--muted) !important; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .3rem .7rem; font-size: .82rem; }
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: var(--green);
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover { background: #000; border-color: #000; color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-brand:hover { background: var(--green); color: #fff; }
.btn-cream { background: var(--cream-2); color: var(--ink); border: 1px solid var(--line); }
.btn-cream:hover { background: var(--cream); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { background: #9a7424; color: #fff; border-color: #9a7424; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.4px solid var(--line);
  background: #fff;
  padding: .55rem .85rem;
  font-size: .95rem;
  color: var(--ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 .2rem rgba(24, 35, 30, .12);
}
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-soft); margin-bottom: .35rem; }
.input-group-text { background: var(--cream-2); border: 1.4px solid var(--line); border-radius: 0 10px 10px 0; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-switch .form-check-input { cursor: pointer; }

/* ── Navbar ──────────────────────────────────────────────────────────── */
.navbar-sc {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-sc .navbar-brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.navbar-sc .navbar-brand .marker { font-family: "Permanent Marker", cursive; color: var(--green); font-size: 1.5rem; }
/* SIGN wordmark, used as the brand in place of the old "SC / Second Chance"
   text. The artwork is a black wordmark on transparent, so it sits straight on
   the light headers; the dark green sidebar flips it to white. */
.brand-logo { height: 30px; width: auto; display: block; }
.store-drawer .brand-logo { height: 26px; }
.admin-sidebar .brand-logo { height: 24px; filter: invert(1); }
.admin-topbar .brand-logo { height: 26px; }
.navbar-sc .nav-link { color: var(--ink-soft); font-weight: 600; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 8px; }
.navbar-sc .nav-link:hover, .navbar-sc .nav-link.active { color: var(--green); background: rgba(24, 35, 30, .07); }
.navbar-sc .nav-icon { position: relative; font-size: 1.15rem; color: var(--ink); }
.nav-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--accent); color: #fff; border-radius: 20px;
  font-size: .66rem; font-weight: 700; min-width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-badge-heart { background: #d1435f; }
.search-pill { border-radius: 50rem; border: 1.4px solid var(--line); background: #fff; overflow: hidden; }
.search-pill input { border: 0; background: transparent; }
.search-pill input:focus { box-shadow: none; border: 0; }
.search-pill .btn { border: 0; border-radius: 0 50rem 50rem 0; }

/* ── Storefront mobile drawer ──────────────────────────────────────── */
.store-drawer.offcanvas-start { width: min(320px, 88vw); background: var(--cream-2); box-shadow: 8px 0 24px rgba(0, 0, 0, .14); }
.store-drawer .drawer-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.store-drawer .drawer-account {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem;
}
.store-drawer .drawer-account-toggle {
  width: 100%; display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.1rem; background: transparent; border: 0; color: var(--ink);
}
.store-drawer .drawer-chevron { transition: transform .2s ease; color: var(--muted); }
.store-drawer .drawer-account-toggle[aria-expanded="true"] .drawer-chevron { transform: rotate(180deg); }
.store-drawer .drawer-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-bottom: .4rem;
}
.store-drawer .drawer-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .7rem; border-radius: 10px; color: var(--ink-soft); font-weight: 600;
}
.store-drawer .drawer-link:hover, .store-drawer .drawer-link.active { background: rgba(24, 35, 30, .07); color: var(--green); }
.store-drawer .drawer-link i { width: 20px; text-align: center; color: var(--green); }
.drawer-cats > li > a {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem .7rem; border-radius: 10px; color: var(--ink-soft); font-weight: 600;
}
.drawer-cats > li > a:hover { background: rgba(24, 35, 30, .07); color: var(--green); }
.drawer-cats > li > a i { width: 20px; text-align: center; color: var(--green); }
.drawer-cats-sub { margin: .1rem 0 .35rem 1.45rem; border-left: 1.5px solid var(--line-2); padding-left: .7rem; }
.drawer-cats-sub a { display: block; padding: .25rem .5rem; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .88rem; }
.drawer-cats-sub a:hover { color: var(--green); }
.store-drawer .social a {
  display: inline-flex; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  align-items: center; justify-content: center;
}
.store-drawer .social a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,23,20,.78) 0%, rgba(17,23,20,.45) 55%, rgba(17,23,20,.05) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 560px; padding: 3rem; }
.hero-content h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-content .lead { color: rgba(255,255,255,.85); }
.hero-pill { background: var(--accent); color: #fff; display: inline-block; padding: .3rem .8rem; border-radius: 50rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* User-only caption over the hero for newsletter is a mismatch? no. */

/* promo strip */
.promo-strip { background: var(--green); color: #fff; border-radius: var(--radius); padding: .7rem 1.2rem; font-size: .92rem; font-weight: 600; }
.promo-strip a { color: var(--accent); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: none; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; position: relative; transition: transform .18s ease, box-shadow .18s ease; height: 100%; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; aspect-ratio: 4/4.4; overflow: hidden; background: var(--cream-2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.product-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.product-name { font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-name:hover { color: var(--green); }
.product-price { font-weight: 800; font-size: 1.05rem; }
.product-price .was { font-weight: 500; color: var(--muted); font-size: .85rem; text-decoration: line-through; margin-left: .4rem; }
.save-chip { background: #f4e9d3; color: #8a6414; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: .15rem .45rem; white-space: nowrap; }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .95rem; border-radius: 50rem; border: 1.4px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink-soft); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Shop filter panel (behind the Filters button) ──────────────────── */
.filter-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem 1.35rem; box-shadow: 0 4px 14px rgba(24, 35, 30, .05);
}
.filter-field { display: flex; flex-direction: column; gap: .45rem; }
.filter-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700; margin: 0;
}
.filter-panel .border-top { border-color: var(--line) !important; }
.panel-chev { transition: transform .2s ease; }
[aria-expanded="true"] .panel-chev { transform: rotate(180deg); }

/* ── Section headers ─────────────────────────────────────────────────── */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-title h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.section-title .marker-tag { font-family: "Permanent Marker", cursive; color: var(--accent); font-size: 1rem; margin-right: .5rem; }
.section-title a.view-all { font-weight: 700; font-size: .9rem; color: var(--green); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge-soft { background: rgba(24,35,30,.08); color: var(--green); font-weight: 700; font-size: .75rem; padding: .35em .7em; border-radius: 50rem; }
.badge-green { background: var(--green); color: #fff; }
.badge-accent { background: #f4e9d3; color: #8a6414; }
.badge-grey { background: #ece8dd; color: var(--muted); }
.badge-red { background: #f6e0da; color: var(--danger); }
.badge-blue { background: #dceaf2; color: #2b5a72; }
.status-Pending, .status-Processing { color: #8a6414; }
.status-Paid { color: var(--success); }
.status-Failed, .status-Cancelled, .status-Rejected { color: var(--danger); }
.status-Delivered, .status-Approved { color: var(--success); }
.status-Shipped { color: #2b5a72; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom: 1.5px solid var(--line); padding: .7rem .75rem; white-space: nowrap; }
.table td { padding: .8rem .75rem; vertical-align: middle; border-color: var(--line-2); font-size: .9rem; }
.table-hover tbody tr:hover { background: rgba(24,35,30,.03); }
.table-row-link { cursor: pointer; }

/* ── Admin chrome ────────────────────────────────────────────────────── */
.admin-body {
  background: #f6f4ec;
  /* status colours shared with the dashboard doughnut palette */
  --dot-Pending: #c9a13b;
  --dot-Processing: #7fa08f;
  --dot-Shipped: #4f7ba6;
  --dot-Delivered: #2f6f4e;
  --dot-Cancelled: #b3432f;
}
.admin-topbar {
  position: sticky; top: 0; z-index: 1020;
  height: 61px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(17,23,20,.03);
}
.admin-shell { display: flex; min-height: calc(100vh - 61px); }
.admin-sidebar {
  width: 250px; flex-shrink: 0; background: var(--green); color: #d7ddd6;
  padding: 1.3rem 1rem; position: sticky; top: 61px; height: calc(100vh - 61px);
  overflow-y: auto;
}
.admin-brand {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; font-size: 1.05rem; padding: .1rem .3rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.admin-brand:hover { color: #fff; }
.admin-sidebar .side-head { color: rgba(255,255,255,.45); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .8rem 0 .35rem; }
.admin-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; border-radius: 10px; color: #d7ddd6; font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.admin-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-link.active { background: var(--accent); color: #fff; }
.admin-link i { width: 18px; text-align: center; }
.admin-sidebar-foot { padding: 1rem .3rem 0; margin-top: .6rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5) !important; }
/* The sidebar doubles as a Bootstrap off-canvas drawer on small screens
   (see the media query below). On desktop, neutralise the offcanvas
   positioning so it stays a static sticky column beside the content. */
@media (min-width: 992px) {
  .admin-sidebar.offcanvas {
    position: sticky; top: 61px; width: 250px; max-width: 250px;
    height: calc(100vh - 61px); transform: none; visibility: visible;
    z-index: 0; transition: none; border: 0; box-shadow: none;
  }
}
.admin-main { flex: 1; padding: 1.6rem 2rem; min-width: 0; }
.admin-content { margin-top: 1.4rem; }

/* Admin stat tiles */
.stat-tile, .stat-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.1rem 1.25rem; height: 100%; }
.stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; display: block; }
.stat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.15; }
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.st { background: #e9efe9; color: var(--green); }
.sa { background: #f4e9d3; color: #8a6414; }
.sr { background: #f6e0da; color: var(--danger); }
.sb { background: #dceaf2; color: #2b5a72; }
.chart-wrap { position: relative; height: 300px; }
.chart-wrap-sm { position: relative; height: 250px; }

/* ── Toasts ──────────────────────────────────────────────────────────── */
.toast-live { position: fixed; top: 76px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.toast-live .toast { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.toast-live .toast-body { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .9rem; }

/* ── Skeleton ────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--cream-2) 25%, #f7f4ec 37%, var(--cream-2) 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
  border-radius: 10px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-img { aspect-ratio: 4/4.4; border-radius: var(--radius) var(--radius) 0 0; }
.sk-line { height: 14px; margin: .5rem 1rem; }
.sk-line.short { width: 55%; }

/* ── Misc ────────────────────────────────────────────────────────────── */
.empty-state { padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--line); }
.empty-state h5 { color: var(--ink-soft); font-weight: 700; margin-top: 1rem; }

.divider-line { border-top: 1px solid var(--line); }

.price-big { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.price-big .was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: .5rem; }

.rating-stars { color: var(--accent); font-size: .95rem; letter-spacing: 1px; }
.rating-stars .dim { color: var(--line); }

.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4/4.5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery-thumbs .th { width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; opacity: .65; }
.gallery-thumbs .th.active { border-color: var(--green); opacity: 1; }
.gallery-thumbs .th img { width: 100%; height: 100%; object-fit: cover; }

.qty-input { display: inline-flex; align-items: center; border: 1.4px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-input button { border: 0; background: transparent; width: 38px; height: 40px; font-size: 1.1rem; color: var(--ink-soft); }
.qty-input button:hover { background: var(--cream-2); }
.qty-input input { border: 0; width: 44px; text-align: center; font-weight: 700; }

.step-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; background: var(--line); color: var(--muted); }
.step-dot.done { background: var(--green); color: #fff; }
.step-dot.active { background: var(--accent); color: #fff; }
.step-label { font-weight: 700; font-size: .85rem; }

.pay-option { border: 1.6px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: center; cursor: pointer; background: #fff; }
.pay-option.active { border-color: var(--green); background: #f2f6f2; }

/* ── Cart (premium, chunky) ─────────────────────────────────────────── */
.icon-tile {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  background: var(--cream-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem; color: var(--ink);
}

.cart-line { display: flex; gap: 1.35rem; padding: 1.6rem 0; border-bottom: 1.5px solid var(--line-2); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-thumb { width: 124px; height: 138px; object-fit: cover; border-radius: 18px; border: 1.5px solid var(--line); box-shadow: 0 6px 18px rgba(24, 35, 30, .1); }
.cart-name { font-weight: 800; font-size: 1.12rem; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.cart-name:hover { color: var(--accent); }
.cart-meta .chip { padding: .34rem .85rem; font-size: .8rem; }
.btn-icon-ghost {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s ease;
}
.btn-icon-ghost:hover { background: #fbe8ea; border-color: #f3cfd4; color: #c03948; }
.cart-line-total { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

/* Right-aligned "price each / line total" block inside cart lines */
.price-block { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.price-block .line-total { font-size: 1.32rem; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* Chunkier, rounded steppers for the bag */
.cart-qty .qty-input { border-radius: 14px; border-width: 1.6px; background: #fff; }
.cart-qty .qty-input button { width: 52px; height: 54px; font-size: 1.4rem; font-weight: 700; color: var(--ink-soft); }
.cart-qty .qty-input .qty-num { min-width: 58px; text-align: center; font-weight: 800; font-size: 1.18rem; color: var(--ink); }
.cart-qty .qty-input button:disabled { opacity: .35; cursor: not-allowed; }

/* Stock badge sits nicely under the name */
.badge-red { font-size: .78rem; font-weight: 600; padding: .4em .8em; }

/* Coupon ticket */
.coupon-card { background: #fff; border: 2px dashed var(--line); border-radius: 18px; padding: 1.3rem 1.4rem; margin-top: 1.25rem; }
.coupon-card .form-control { border-radius: 12px; padding: .7rem 1rem; }
.coupon-ticket { display: flex; align-items: center; gap: 1.1rem; }
.coupon-ticket .tick {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  background: var(--cream-2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* Order summary – dark, premium */
.summary-dark { background: var(--ink); border: 0; border-radius: 22px; color: #dfe5df; box-shadow: 0 18px 40px rgba(17, 23, 20, .2); }
.summary-dark h5 { color: #fff; letter-spacing: .1em; }
.summary-dark .sum-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; color: #bcc5bd; font-size: .97rem; }
.summary-dark .sum-row .val { color: #fff; font-weight: 700; }
.summary-dark .sum-row .text-success { color: #8fd6a0 !important; }
.summary-dark .sum-hr { border-top: 1px solid rgba(255, 255, 255, .14); margin: 1.1rem 0; }
.summary-dark .sum-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 1.3rem; }
.summary-dark .free-note { color: #c6cdc6; }
.free-win { display: flex; align-items: center; color: #8fd6a0; font-weight: 700; font-size: .95rem; }
.progress-free { height: 9px; border-radius: 50rem; background: rgba(255, 255, 255, .14); }
.progress-free .progress-bar { background: var(--accent); border-radius: 50rem; }

.page-404 { text-align: center; padding: 6rem 1rem; }
.page-404 .big { font-family: "Permanent Marker", cursive; font-size: 7rem; color: var(--green); line-height: 1; }

.footer-sc { background: #0b2118; color: #c8cec8; margin-top: 4rem; }
.footer-sc a { color: #c8cec8; }
.footer-sc a:hover { color: #fff; }
.footer-sc .brand { color: #fff; font-size: 1.35rem; font-weight: 800; }
.footer-sc .marker { font-family: "Permanent Marker", cursive; color: var(--accent); }
.footer-sc .footer-col-title { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .9rem; }
.footer-sc .social a { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); align-items: center; justify-content: center; }
.footer-sc .social a:hover { background: rgba(255,255,255,.1); }
.footer-sc .bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.footer-logo { height: 30px; width: auto; display: block; filter: invert(1); }
.footer-about { color: #c8cec8; font-size: .9rem; max-width: 34ch; margin: 1rem 0 1.25rem; }
.footer-sign { font-family: "Caveat", "Permanent Marker", cursive; color: #fff; font-size: 1.7rem; line-height: 1.05; margin-bottom: .75rem; }
.footer-mail { font-size: .85rem; }
/* The SIGN homepage ends on the newsletter banner — no extra gap before the footer. */
body:has(.sign-home) .footer-sc { margin-top: 0; }

.value-tile { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.6rem 1.4rem; height: 100%; }
.value-tile i { font-size: 1.7rem; color: var(--green); }

.testimonial { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.5rem; height: 100%; }

.accordion-sc .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .7rem; }
.accordion-sc .accordion-button { font-weight: 700; background: #fff; }
.accordion-sc .accordion-button:not(.collapsed) { background: var(--cream-2); color: var(--ink); box-shadow: none; }
.accordion-sc .accordion-button:focus { box-shadow: none; }

.newsletter-box { background: var(--green); color: #fff; border-radius: 22px; padding: 2.6rem 2rem; }
.newsletter-box h2 { color: #fff; }
.newsletter-box .form-control { border-radius: 50rem; }
.newsletter-box .btn { border-radius: 50rem; }

.timeline { display: flex; gap: 0; margin: 1.5rem 0; }
.timeline .tl-step { flex: 1; text-align: center; position: relative; }
.timeline .tl-step::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.timeline .tl-step:first-child::before { display: none; }
.timeline .tl-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; margin: 0 auto 0.5rem; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.timeline .tl-step.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline .tl-step.done::before { background: var(--green); }
.timeline .tl-label { font-size: .78rem; font-weight: 700; }

.chart-bar { display: flex; align-items: flex-end; gap: 4px; height: 200px; }
.chart-bar .bar { flex: 1; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart-bar .bar:hover { background: var(--accent); }
.chart-bar .bar:hover::after { content: attr(data-val); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

.login-card { max-width: 460px; margin: 3rem auto; }

@media (max-width: 991.98px) {
  .admin-topbar { padding: 0 1rem; }
  /* the sidebar becomes a slide-in nav drawer opened from the header hamburger */
  .admin-sidebar.offcanvas-start {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1045;
    width: min(300px, 84vw); max-width: 84vw;
    height: 100vh; height: 100dvh;
    padding: 0; margin: 0; overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 6px 0 28px rgba(0, 0, 0, .18);
    transform: translateX(-100%);
  }
  .admin-sidebar.offcanvas-start.show { transform: none; }
  .admin-sidebar .offcanvas-header { padding: 1rem 1.25rem; }
  .admin-sidebar nav { align-items: stretch; gap: 2px; margin-top: .3rem; padding: .5rem .85rem 0; }
  .admin-link { padding: .6rem .9rem; margin-bottom: 0; }
  .admin-sidebar .btn-close { filter: invert(1); }
  .admin-brand { display: none; }
  .admin-sidebar-foot { padding: 1rem 1.25rem; }
  .admin-shell { flex-direction: column; min-height: 0; }
  .admin-main { padding: 1.2rem 1rem; }
  .hero { min-height: 340px; }
  .hero-content { padding: 1.8rem; }
}

@media (max-width: 576px) {
  .admin-topbar { padding: 0 .75rem; height: 56px; }
  .admin-main { padding: 1rem .75rem; }
  .admin-content { margin-top: 1rem; }
  .chart-wrap { height: 250px; }
  .chart-wrap-sm { height: 220px; }
  .stat-value { font-size: 1.35rem; }
}

/* ── Cart · small screens ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  /* keep the whole grid from inflating the horizontal scroll area */
  .container, .container-fluid { overflow-x: clip; }

  /* tighter bag lines — tile, stepper and pricing scale down together */
  .cart-thumb { width: 96px; height: 108px; border-radius: 15px; }
  .cart-line { gap: 1rem; padding: 1.25rem 0; }
  .cart-name { font-size: 1.02rem; }
  .cart-line-total { font-size: 1.2rem; }
  .price-block .line-total { font-size: 1.2rem; }

  /* the qty stepper stays fat enough to tap */
  .cart-qty .qty-input button { width: 46px; height: 48px; }
  .cart-qty .qty-input .qty-num { min-width: 48px; font-size: 1.1rem; }

  /* coupon — full-width field so Apply never gets squeezed off-screen */
  .coupon-form { flex-direction: column; align-items: stretch; }
  .coupon-form .coupon-field { width: 100%; }
  .coupon-form .btn { width: 100%; }

  /* coupon catalog stacks card-style; Apply goes full-width */
  .coupon-avail { flex-direction: column; align-items: stretch; gap: .9rem; padding: 1rem 1.1rem; }
  .coupon-avail-thumb { width: 52px; height: 52px; border-radius: 13px; }
  .coupon-avail-apply .btn { width: 100%; padding: .65rem 1rem; }

  .coupon-card { padding: 1.1rem 1.05rem; }

  /* keep the shopping-link / clear action from fighting for space */
  .bag-actions .btn { font-size: .9rem; }
}

/* ── Coupon catalog (cart) ──────────────────────────────────────────────── */
.coupon-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .4rem; }
.coupon-avail {
  display: flex; align-items: center; gap: 1.1rem;
  background: #fff; border: 2px dashed var(--line); border-radius: 18px;
  padding: 1.05rem 1.25rem; transition: border-color .15s ease, transform .15s ease;
}
.coupon-avail:hover { border-color: var(--green-2); }
.coupon-avail.locked { opacity: .55; }
.coupon-avail-thumb {
  width: 58px; height: 58px; object-fit: cover; border-radius: 14px;
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.coupon-avail-thumb--fallback { color: var(--accent); font-size: 1.4rem; }
.coupon-avail-info { flex-grow: 1; min-width: 0; }
.coupon-avail-code { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: .02em; }
.coupon-avail-benefit { font-size: .95rem; color: #5b6b5e; margin-top: .15rem; }
.coupon-avail-apply { flex-shrink: 0; }
.coupon-avail-apply .btn { padding: .55rem 1.15rem; font-size: .9rem; }
.coupon-avail-apply .btn:disabled { opacity: .45; cursor: not-allowed; }
.coupon-manual summary {
  font-size: .92rem; color: #5b6b5e; cursor: pointer; user-select: none;
  list-style: none; padding: .8rem 0 .2rem; font-weight: 600;
}
.coupon-manual summary::-webkit-details-marker { display: none; }

/* ── Cart summary → compact bottom checkout bar on small screens ────────── */
@media (max-width: 991.98px) {
  .cart-page { padding-bottom: 6.75rem; }

  .summary-dark {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 1050;
    border-radius: 18px 18px 0 0; margin: 0;
    box-shadow: 0 -14px 30px rgba(17, 23, 20, .3);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .summary-dark .p-4 { padding: .9rem 1.1rem; display: flex; align-items: center; gap: .9rem; }
  .summary-dark .free-win,
  .summary-dark .progress-free,
  .summary-dark .free-note,
  .summary-dark h5,
  .summary-dark .sum-row,
  .summary-dark .sum-hr { display: none !important; }
  .summary-dark .sum-total {
    display: flex; align-items: baseline; gap: .35rem; flex-wrap: nowrap; white-space: nowrap;
    font-size: 1.05rem; margin: 0; flex-grow: 1; min-width: 0;
  }
  .summary-dark .sum-total span:last-child { font-size: 1.2rem; }
  .summary-dark a.btn { width: auto !important; flex-shrink: 0; padding: .65rem 1.1rem; font-size: .92rem; white-space: nowrap; }
}

/* ── App download page (/app) ─────────────────────────────────────────────── */
.app-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.app-badge-pill { background: var(--green); color: #fff; font-weight: 600; letter-spacing: .02em; }

/* Full-bleed background image mode (admin › App › Hero background): the hero
   shows the uploaded image fully visible — no darkening. Only a whisper of
   shade at the very top/bottom edges keeps the headline and store badges
   readable; the layout images (phones) sit on top with their own cards and
   stay fully visible in both text-only and image-only heroes. Falls back to
   the cream gradient when no image is set. */
.app-hero-bg {
  background: linear-gradient(180deg, rgba(17, 23, 20, .10), rgba(17, 23, 20, 0) 30%,
              transparent 68%, rgba(17, 23, 20, .18)),
              var(--hero-bg) center / cover no-repeat;
  border-bottom-color: rgba(255, 255, 255, .14);
  color: #fff;
}
.app-hero-bg h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(17, 23, 20, .5), 0 1px 3px rgba(17, 23, 20, .55);
}
.app-hero-bg .lead { color: rgba(255, 255, 255, .95); text-shadow: 0 1px 10px rgba(17, 23, 20, .6); }
.app-hero-bg .text-muted { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(17, 23, 20, .6); }
.app-hero-bg .store-badge {
  background: #fff; color: var(--ink); border-color: #fff;
  box-shadow: 0 6px 16px rgba(17, 23, 20, .18);
}
.app-hero-bg .store-badge span { color: rgba(17, 23, 20, .72); }
.app-hero-bg .store-badge strong { color: #0f0f0f; }
.app-hero-bg .store-badge:hover { box-shadow: 0 16px 30px rgba(17, 23, 20, .4); }

/* Uploaded hero images (admin › App) — clickable, arranged by the chosen layout.
   Some layouts are fanned/overlapped so images are interactive at every layer. */
.app-hero-photo {
  display: block;
  max-width: min(330px, 100%);
  max-height: 640px;
  border-radius: 30px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-hero-photo img {
  display: block; width: 100%; height: auto; max-height: 640px;
  border-radius: 30px; border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-lg), 0 24px 60px rgba(17, 23, 20, .18);
}
.app-hero-photo:hover { transform: translateY(-2px); }

/* Stacked → "standing cards" arrangement (admin › App): images stand side by
   side on the same ground line at opposing slight angles, each one overlapping
   the one behind it. The first image is the front phone (left, top leaning
   slightly left), later images sit slightly behind it toward the right (top
   leaning right) — like two cards standing at opposing angles. */
.app-stack { position: relative; width: min(340px, 86vw); height: 420px; }
.app-stack::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 6px; height: 16px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(17, 23, 20, .16), transparent 72%);
  filter: blur(2px); pointer-events: none;
}
.app-stack-item {
  position: absolute; bottom: 0; display: block;
  width: calc((100% + (var(--n) - 1) * var(--p, 8%)) / var(--n));
  aspect-ratio: 9 / 19;
  left: calc(var(--i) * (100% - var(--p, 8%)) / var(--n));
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-lg), 0 24px 42px rgba(17, 23, 20, .16);
  transform-origin: bottom center;
  transform: rotate(var(--tilt, 0deg)) scale(var(--scale, 1));
  z-index: calc(var(--n) - var(--i));
  transition: box-shadow .15s ease;
}
.app-stack-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-stack-item:hover { box-shadow: 0 26px 54px rgba(17, 23, 20, .22), 0 8px 18px rgba(17, 23, 20, .12); }
.app-stack[data-single] .app-stack-item {
  left: 50%; width: min(190px, 100%);
  transform: translateX(-50%) rotate(0deg) scale(1);
}

/* Side-by-side layout — one image next to the other(s). */
.app-side { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.app-side-item {
  flex: 1 1 0; min-width: 130px; max-width: calc(50% - 7px); display: block;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-lg), 0 18px 40px rgba(17, 23, 20, .12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-side-item img { display: block; width: 100%; height: 280px; object-fit: cover; }
.app-side-item:hover { transform: translateY(-2px); }

/* Admin › App — hero image tiles and the layout preview. */
.app-img-tile {
  position: relative; width: 120px; height: 120px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--cream-2);
}
.app-img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-img-remove {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: 0; line-height: 1; font-size: 1rem;
  background: rgba(17, 23, 20, .72); color: #fff; display: grid; place-items: center;
}
.app-img-remove:hover { background: var(--danger); }

.app-layout-preview {
  position: relative; height: 120px; background: var(--cream-2);
  border: 1px dashed var(--line); border-radius: var(--radius); overflow: hidden;
}
.app-layout-preview-tile {
  position: absolute; display: block; width: 62px; height: 104px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow); transition: left .18s ease, top .18s ease, transform .18s ease, opacity .18s ease;
}
.app-layout-preview-tile-a { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.app-layout-preview-tile-b { display: none; }
[data-app-layout-preview][data-layout="stack"] .app-layout-preview-tile-a {
  left: 20px; top: auto; bottom: 10px;
  transform: rotate(-2deg); z-index: 2;
}
[data-app-layout-preview][data-layout="stack"] .app-layout-preview-tile-b {
  display: block; left: 46px; top: auto; bottom: 8px;
  transform: rotate(3.5deg); z-index: 1;
}
[data-app-layout-preview][data-layout="side"] .app-layout-preview-tile-a { left: 8px; top: 50%; transform: translateY(-50%); }
[data-app-layout-preview][data-layout="side"] .app-layout-preview-tile-b { display: block; left: 80px; top: 50%; transform: translateY(-50%); }

.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #0f0f0f; color: #fff; border-radius: 12px; padding: .55rem 1rem;
  text-decoration: none; line-height: 1.15; border: 1px solid #0f0f0f;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store-badge i { font-size: 1.6rem; }
.store-badge span { font-size: .72rem; color: rgba(255,255,255,.85); }
.store-badge strong { display: block; font-size: .95rem; color: #fff; font-weight: 700; }
.store-badge:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.store-badge-light { background: #fff; color: var(--ink); border-color: var(--line); }
.store-badge-light span { color: var(--ink-soft); }
.store-badge-light strong { color: var(--ink); }
.app-cta .store-badge-light:hover { background: var(--cream); }

.phone-frame {
  width: 280px; background: #0e0e0e; border-radius: 44px; padding: 12px;
  position: relative; box-shadow: var(--shadow-lg), 0 24px 60px rgba(17, 23, 20, .18);
}
.phone-notch {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #0e0e0e; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  background: var(--white); border-radius: 32px; overflow: hidden;
  aspect-ratio: 9/19; display: flex; flex-direction: column;
}
.phone-topbar { display: flex; align-items: center; padding: .95rem .9rem .3rem; }
.phone-topbar .marker { font-size: .72rem; padding: .22rem .5rem; }
.phone-search {
  margin: .35rem .75rem .2rem; padding: .5rem .85rem; font-size: .72rem; color: var(--muted);
  background: var(--cream-2); border-radius: 50rem;
}
.phone-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding: .6rem .75rem; }
.phone-card { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
.phone-card .phone-ph { height: 72px; border-radius: 9px; margin-bottom: .42rem; }
.phone-card p { font-size: .7rem; margin: 0; color: var(--ink); font-weight: 600; }
.phone-card b { font-size: .72rem; color: var(--accent); }
.phone-nav {
  margin-top: auto; display: flex; justify-content: space-around; padding: .55rem .75rem .85rem;
  border-top: 1px solid var(--line-2); color: var(--muted); font-size: .95rem;
}
.phone-nav .bi-active { color: var(--accent); }

.app-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; height: 100%; }
.app-step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.app-cta { background: var(--green); border-top: 1px solid var(--line); }
.app-cta h2 { color: #fff; }

.qr-tile {
  width: 190px; border-radius: var(--radius); padding: 1rem;
  background: #fff; border: 1.4px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.qr-tile svg { border-radius: 6px; }
/* ═══════════════════════════════════════════════════════════════════════
   AI FIT CHECK — product page modal (✨ Try Fit Check · AI)
   ═══════════════════════════════════════════════════════════════════════ */
.btn-fitcheck {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .8rem 1.25rem;
  border: 1.5px solid var(--green); border-radius: 999px;
  background: transparent; color: var(--green);
  font-weight: 600; letter-spacing: .02em;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.btn-fitcheck:hover { background: var(--green); color: var(--white); }
.btn-fitcheck:active { transform: scale(.99); }
.btn-fitcheck .spark { font-size: 1.1em; line-height: 1; }

.fitcheck-modal .modal-content {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
}
.fitcheck-modal .modal-header { border-bottom: 1px solid var(--line); }
.fitcheck-modal .modal-title { font-size: 1.05rem; }
.fitcheck-modal .modal-body { padding: 1.5rem; }

.fc-drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--white); padding: 2.2rem 1.5rem;
  text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.fc-drop:hover, .fc-drop:focus-visible { border-color: var(--green); outline: none; }
.fc-drop.dragover { border-color: var(--green); background: #f7f5ee; }

.fc-preview img {
  max-height: 320px; width: 100%; object-fit: contain;
  border-radius: var(--radius-sm); background: #fff;
}
.fc-note { color: var(--muted); }

.fc-processing { text-align: center; padding: 1.6rem .5rem; }
.fc-pulse {
  display: inline-block; font-size: 2.4rem; color: var(--green);
  animation: fc-pulse 1.6s ease-in-out infinite;
}
@keyframes fc-pulse {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

.fc-steps { list-style: none; padding: 0; margin: 1.2rem auto 0; max-width: 360px; text-align: left; }
.fc-steps li { position: relative; padding: .35rem 0 .35rem 1.9rem; color: var(--muted); }
.fc-steps li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white);
}
.fc-steps li.done { color: var(--green); }
.fc-steps li.done::before { border-color: var(--green); background: var(--green); }
.fc-steps li.done::after {
  content: "✓"; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 10px;
}
.fc-steps li.active { color: var(--ink); font-weight: 600; }
.fc-steps li.active::before { border-color: var(--green); background: var(--green); }

.fc-result-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; justify-content: center;
}
.fc-result-frame img { display: none; max-height: 460px; width: 100%; object-fit: contain; }

.fc-error {
  border: 1px solid rgba(179, 67, 47, .4); background: rgba(179, 67, 47, .06);
  color: var(--danger); border-radius: var(--radius-sm);
  padding: .7rem .9rem; font-size: .92rem; margin-top: .9rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   DONATE (/donate) — public clothing-donation landing + form
   ═══════════════════════════════════════════════════════════════════════ */
.font-editorial {
  font-family: "Playfair Display", "DM Sans", Georgia, serif;
}

.donate-hero {
  position: relative; min-height: 380px;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: var(--green);
}
.donate-hero-default {
  background:
    radial-gradient(120% 160% at 88% 0%, rgba(185, 138, 47, .32) 0%, rgba(185, 138, 47, 0) 46%),
    linear-gradient(120deg, var(--ink) 0%, var(--green) 55%, var(--green-2) 100%);
}
.donate-hero-default .hero-content { max-width: 640px; }
.donate-hero .hero-content h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.08; }
.donate-hero .hero-content .lead { max-width: 480px; }

.benefit-icon {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--cream-2); border: 1px solid var(--line);
  color: var(--green); font-size: 1.25rem;
}

.cat-circle {
  width: 78px; height: 78px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line);
  color: var(--accent); font-size: 1.7rem;
}
.cat-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

.donate-story {
  position: relative; min-height: 190px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--cream-2);
}
.donate-story-default { background: linear-gradient(120deg, var(--green-2), var(--green)); }
.story-title {
  position: absolute; left: 2rem; right: 2rem; bottom: 1.6rem; z-index: 2;
  color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; line-height: 1.2;
  text-shadow: 0 2px 12px rgba(17, 23, 20, .45);
}

.form-section-title { letter-spacing: .01em; color: var(--ink-soft); margin-bottom: .9rem; }
.form-section-title:not(:first-child) { margin-top: 1.5rem; }

@media (max-width: 575.98px) {
  .donate-hero { min-height: 300px; }
  .donate-hero .hero-content { padding: 1.6rem; }
  .cat-circle { width: 62px; height: 62px; font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SOCIAL — feed, post detail, people, profiles
   Built on the storefront's own tokens (--ink/--green/--cream/--line)
   and Bootstrap components, so the social layer reads as the same shop
   rather than a bolted-on second design language.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Shared atoms ─────────────────────────────────────────────────────── */

.sc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: var(--cream-2);
  border: 1px solid var(--line); flex: 0 0 auto;
}
.sc-avatar-sm { width: 36px; height: 36px; }
.sc-avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--cream-2); }
.sc-avatar-link { display: inline-flex; flex: 0 0 auto; text-decoration: none; }

.sc-handle { color: var(--muted); font-size: .88rem; }
.sc-dot { color: var(--line); margin: 0 .15rem; }
.sc-when { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.min-width-0 { min-width: 0; }

.sc-author { color: var(--ink); font-weight: 700; text-decoration: none; }
.sc-author:hover { color: var(--green-2); }
.sc-caption-name { color: var(--ink); font-weight: 700; text-decoration: none; }
.sc-caption-name:hover { color: var(--green-2); }

/* ── Feed ─────────────────────────────────────────────────────────────── */

.sc-feed {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: 1.75rem;
}

.sc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sc-card-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; }
.sc-card-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; min-width: 0; line-height: 1.35; }

.sc-card-media { display: block; background: var(--cream-2); }
.sc-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.sc-card-body { padding: .85rem 1rem 1.1rem; }
.sc-caption { margin: 0; color: var(--ink); line-height: 1.55; }
.sc-hashtags { margin: .35rem 0 0; color: var(--green-2); font-size: .88rem; }

.sc-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  margin-left: .35rem;
  background: var(--danger); color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1;
}

/* ── Engagement row (shared by feed card + post detail) ───────────────── */

.sc-engagement { display: flex; align-items: center; gap: 1.1rem; }
.sc-eng-item {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink); font-size: .95rem; font-weight: 600;
  text-decoration: none; background: none; border: 0;
}
.sc-eng-item:hover { color: var(--green-2); }
.sc-eng-item .bi { font-size: 1.35rem; line-height: 1; }
.sc-eng-item.is-on { color: var(--danger); }
.sc-eng-item.is-on .bi { color: var(--danger); }
.sc-eng-link { color: var(--ink); }
.sc-eng-link:hover { color: var(--green-2); }

/* ── Post detail ──────────────────────────────────────────────────────── */

.sc-detail {
  max-width: 760px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sc-detail-head { padding: 1rem 1.15rem; }

.sc-carousel { background: var(--cream-2); }
.sc-carousel .carousel-item img { aspect-ratio: 4 / 3; object-fit: cover; }
.sc-carousel .carousel-control-prev,
.sc-carousel .carousel-control-next { width: 12%; }
.sc-carousel-count {
  position: absolute; top: .75rem; right: .75rem; z-index: 3;
  padding: .2rem .55rem;
  background: rgba(17, 23, 20, .62); color: #fff;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
}

.sc-detail-eng { padding: .85rem 1.15rem 0; }
.sc-caption-block { padding: .85rem 1.15rem 1.1rem; }

/* ── Items rail ───────────────────────────────────────────────────────── */

.sc-items { padding: 0 1.15rem 1.15rem; border-top: 1px solid var(--line-2); padding-top: 1.1rem; }
.sc-items-row {
  display: flex; gap: .85rem;
  overflow-x: auto; padding-bottom: .35rem;
  scroll-snap-type: x proximity;
}
.sc-items-row::-webkit-scrollbar { height: 6px; }
.sc-items-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.sc-item-card {
  flex: 0 0 168px; scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sc-item-media { display: block; background: var(--cream-2); }
.sc-item-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.sc-item-body { padding: .55rem .6rem .7rem; }
.sc-item-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink); font-size: .84rem; font-weight: 600; line-height: 1.3;
  text-decoration: none; min-height: 2.2em;
}
.sc-item-name:hover { color: var(--green-2); }
.sc-item-price { margin-top: .3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }
.sc-price-now { font-weight: 700; font-size: .92rem; }
.sc-price-old { color: var(--muted); text-decoration: line-through; font-size: .8rem; }
.sc-off-badge {
  background: var(--cream-2); color: var(--green-2);
  border-radius: 999px; padding: .05rem .4rem;
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}

/* ── Comments ─────────────────────────────────────────────────────────── */

.sc-comments { padding: 1.15rem; border-top: 1px solid var(--line-2); }
.sc-comments-list { display: flex; flex-direction: column; gap: 1.1rem; }
.sc-comment { display: flex; gap: .75rem; }
.sc-comment-body { flex: 1; min-width: 0; }
.sc-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; line-height: 1.3; }
.sc-comment-name { color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.sc-comment-name:hover { color: var(--green-2); }
.sc-comment-text { margin: .15rem 0 0; color: var(--ink); font-size: .93rem; line-height: 1.5; }
.sc-comment-actions { margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.sc-comment-actions .btn { color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.sc-comment-actions .btn:hover { color: var(--danger); }
.sc-comment-actions .btn.is-on { color: var(--danger); }

.sc-composer {
  display: flex; align-items: flex-end; gap: .7rem;
  padding: .9rem 1.15rem;
  border-top: 1px solid var(--line-2);
  background: var(--cream);
}
.sc-composer-form { display: flex; align-items: flex-end; gap: .5rem; flex: 1; }
.sc-composer-input { border-radius: 999px; background: var(--white); font-size: .93rem; }
.sc-composer-input:focus { background: var(--white); }
.sc-composer-send { border-radius: 999px; flex: 0 0 auto; }

/* ── People ───────────────────────────────────────────────────────────── */

.sc-people-tabs .nav-link { color: var(--ink); font-weight: 600; }
.sc-people-tabs .nav-link.active { background: var(--green); color: #fff; }

.sc-people-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.sc-filter {
  padding: .32rem .85rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-decoration: none;
}
.sc-filter:hover { border-color: var(--green-2); color: var(--green-2); }
.sc-filter.active { background: var(--green); border-color: var(--green); color: #fff; }

.sc-people-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.sc-person-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem;
  display: flex; flex-direction: column;
}
.sc-person-thumbs { display: flex; gap: .4rem; margin-top: .75rem; }
.sc-person-thumbs img {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--cream-2); border: 1px solid var(--line-2);
}

.sc-people-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sc-person-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
}
.sc-person-row + .sc-person-row { border-top: 1px solid var(--line-2); }
.sc-person-row a { text-decoration: none; }

/* ── Profile ──────────────────────────────────────────────────────────── */

.sc-profile {
  max-width: 760px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sc-profile-head { display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.sc-profile-id { min-width: 0; }
.sc-profile-stats {
  display: flex; gap: 2rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.sc-profile-stats a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.sc-profile-stats a:hover { color: var(--green-2); }
.sc-stat-num { font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.sc-stat-label { color: var(--muted); font-size: .84rem; }

.sc-post-grid {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.sc-post-tile {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden; background: var(--cream-2);
}
.sc-post-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.sc-post-tile:hover img { transform: scale(1.03); }
.sc-post-tile-likes {
  position: absolute; left: .5rem; bottom: .5rem;
  padding: .1rem .45rem;
  background: rgba(17, 23, 20, .6); color: #fff;
  border-radius: 999px; font-size: .75rem; font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 575.98px) {
  .sc-engagement { gap: .85rem; }
  .sc-eng-item { font-size: .88rem; }
  .sc-eng-item .bi { font-size: 1.2rem; }
  .sc-item-card { flex-basis: 140px; }
  .sc-profile { padding: 1.15rem; }
  .sc-profile-stats { gap: 1.25rem; }
  .sc-composer { padding: .75rem .9rem; }
}
