/* ============================================================================
   site.css — frontend starter theme
   ----------------------------------------------------------------------------
   Deliberately minimal and unbranded: a clean, modern baseline your devs
   restyle per client. Referenced by the "Base Layout" CMS template.
   ========================================================================== */

:root {
  --accent: #0971fe;
  --ink: #16243c;
  --body: #46586f;
  --mut: #8295ab;
  --line: #e6eaf1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 10px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mut); font-size: .9rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.button, button.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
}
.button:hover { filter: brightness(.94); text-decoration: none; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-wide { width: 100%; text-align: center; }
.button-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

/* ── Header / nav ─────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.site-logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-nav a { color: var(--body); padding: 8px 12px; border-radius: 7px; font-size: .95rem; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.cart-summary {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.cart-summary:hover { text-decoration: none; background: var(--bg-soft); }
.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: .75rem;
  margin-left: 4px;
}

/* ── Main / hero ──────────────────────────────────────────────────────────── */
.site-main { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 80px; min-height: 55vh; }
.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { font-size: 2.6rem; margin-bottom: .35em; }
.hero p { max-width: 560px; margin: 0 auto 1.2em; }

/* ── Product grid / cards (used by {products} + shop pages) ──────────────── */
.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin: 18px 0;
}
.product-card, .card-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(22, 36, 60, .1); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 1; background: var(--bg-soft); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 14px 16px 16px; }
.product-card-body h3 { font-size: .98rem; margin-bottom: 4px; }
.product-card .price { color: var(--accent); font-weight: 700; margin: 0; }
.card-item { padding: 16px; }

/* ── Shop layout ──────────────────────────────────────────────────────────── */
.shop-head { margin-bottom: 12px; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.shop-filters h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.shop-cats { display: flex; flex-direction: column; gap: 2px; }
.shop-cats a { color: var(--body); padding: 7px 10px; border-radius: 7px; font-size: .93rem; }
.shop-cats a:hover { background: var(--bg-soft); text-decoration: none; }
.shop-cats a.active { background: #eef4ff; color: var(--accent); font-weight: 600; }
.shop-cats a.depth-1 { padding-left: 24px; }
.shop-cats a.depth-2 { padding-left: 38px; }
.shop-empty { color: var(--mut); padding: 30px 0; }
.crumbs { font-size: .88rem; color: var(--mut); margin-bottom: 18px; }

/* ── Product page ─────────────────────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-main-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.product-main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.sku { color: var(--mut); font-size: .85rem; }
.lead { font-size: 1.05rem; }
.buy-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.buy-box label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.buy-box select, .buy-box input[type="number"] {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: var(--font);
}
.buy-box select { width: 100%; margin-bottom: 12px; }
.buy-row { display: flex; gap: 10px; }
.buy-row input[type="number"] { width: 84px; }
.price-big { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.price-big s { color: var(--mut); font-weight: 400; font-size: 1rem; margin-left: 8px; }
.variant-label { font-size: .8rem; color: var(--mut); font-weight: 400; margin-left: 8px; }
.buy-msg { font-size: .88rem; min-height: 1.2em; margin: 8px 0 0; }
.buy-msg.ok { color: #1c7c3c; }
.buy-msg.err { color: #a13030; }
.product-desc { margin-top: 22px; }
.product-features { margin: 18px 0 0; padding-left: 20px; }
.product-features li { margin-bottom: 6px; }

/* ── Cart ─────────────────────────────────────────────────────────────────── */
.cart-page { max-width: 880px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.cart-line-info { flex: 1; display: flex; flex-direction: column; }
.cart-line-info a { font-weight: 600; color: var(--ink); }
.cart-line-info .unit { color: var(--mut); font-size: .85rem; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty button {
  width: 28px; height: 28px; border: 1px solid var(--line); background: #fff;
  border-radius: 6px; cursor: pointer; font-weight: 700; color: var(--body);
}
.cart-line-total { min-width: 84px; text-align: right; font-weight: 700; color: var(--ink); }
.cart-remove { border: 0; background: none; color: var(--mut); font-size: 1.2rem; cursor: pointer; }
.cart-side { margin-top: 26px; max-width: 380px; margin-left: auto; }
.discount-box label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.discount-row { display: flex; gap: 8px; margin-top: 6px; }
.discount-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); }
.cart-totals { margin: 18px 0; }
.cart-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-totals dt { color: var(--mut); }
.cart-totals dd { margin: 0; font-weight: 600; color: var(--ink); }
.cart-totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.1rem; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
.checkout-form h2 { margin-top: 22px; font-size: 1.05rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .wide, .checkout-form .wide { grid-column: 1 / -1; display: block; }
.checkout-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.checkout-form input, .checkout-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: var(--font);
}
.checkout-payment-note {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: .9rem; margin-top: 20px;
}
.checkout-summary {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg-soft); position: sticky; top: 20px;
}
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; }

/* ── Order complete ───────────────────────────────────────────────────────── */
.complete-card { max-width: 480px; margin: 40px auto; text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 40px 32px; }
.complete-tick {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: #e8f6ee; color: #1c7c3c; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; }
.site-footer .wrap { padding: 26px 20px; color: var(--mut); font-size: .88rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .shop-layout, .product-layout, .checkout-layout { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
}

/* ── Customer portal ──────────────────────────────────────────────────────── */
.portal-link { margin-left: 12px; color: var(--ink); font-weight: 600; font-size: .9rem; }

.auth-page { display: flex; justify-content: center; padding: 30px 0; }
.auth-card {
  width: 100%; max-width: 420px; border: 1px solid var(--line);
  border-radius: 14px; padding: 32px; text-align: left;
}
.auth-card h1 { font-size: 1.45rem; }
.auth-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-top: 14px; }
.auth-card input {
  width: 100%; margin-top: 5px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: var(--font);
}
.auth-card .button { margin-top: 18px; }
.auth-links { margin-top: 16px; font-size: .9rem; }
.auth-success { padding: 8px 0; }
.auth-card .complete-tick { margin-bottom: 14px; }

.account-page h1 { margin-bottom: 18px; }
.account-layout { display: grid; grid-template-columns: 210px 1fr; gap: 36px; align-items: start; }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.account-hello { font-size: .9rem; margin-bottom: 10px; }
.account-nav nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { color: var(--body); padding: 8px 10px; border-radius: 7px; font-size: .93rem; }
.account-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.account-nav a.active { background: #eef4ff; color: var(--accent); font-weight: 600; }

.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 28px; }
.account-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: inherit; }
.account-card:hover { text-decoration: none; box-shadow: 0 8px 20px rgba(22,36,60,.08); }
.account-card h3 { font-size: 1rem; margin-bottom: 4px; }
.account-card p { color: var(--mut); font-size: .88rem; margin: 0; }

.account-table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; }
.account-table th, .account-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
.account-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); }
.account-table .r { text-align: right; } .account-table .c { text-align: center; }
.account-totals { max-width: 340px; margin-left: auto; }

.pill { display: inline-flex; padding: 2px 10px; border-radius: 11px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--bg-soft); color: var(--mut); }
.pill-confirmed, .pill-complete, .pill-active { background: #e8f6ee; color: #1c7c3c; }
.pill-processing, .pill-dispatched, .pill-pending_payment { background: #fef4e8; color: #b6770a; }
.pill-cancelled { background: #fbeaea; color: #a13030; }

.account-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.account-panel h2 { font-size: 1.05rem; }
.account-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-top: 12px; }
.account-form input {
  width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: var(--font);
}
.account-form .button, .account-form .button-ghost { margin-top: 14px; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.address-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.address-card h3 { font-size: .98rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.address-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button-ghost.danger { color: #a13030; border-color: #f0cccc; }

.sub-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.sub-tile.paused { opacity: .65; }
.sub-tile-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.sub-tile-next { color: var(--mut); font-size: .9rem; }
.sub-tile-items { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip-lite { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-size: .85rem; }
.sub-tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
}

/* ── Footer columns ───────────────────────────────────────────────────────── */
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 20px 24px;
}
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; color: var(--body); padding: 3px 0; font-size: .92rem; }
.footer-col .site-nav { display: block; flex: none; }
.footer-col .site-nav a { padding: 3px 0; border-radius: 0; }
.footer-col .site-nav a:hover { background: none; text-decoration: underline; }
.footer-blurb { font-size: .92rem; }
.footer-base { border-top: 1px solid var(--line); padding: 18px 20px; color: var(--mut); font-size: .85rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ── Blog (list v2) ─────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.blog-card { border: 1px solid #e2e6ef; border-radius: 12px; padding: 22px; background: #fff; }
.blog-card h3 { margin: 0 0 6px; }
.blog-card a { text-decoration: none; color: inherit; }
.blog-date { color: #888; font-size: 13px; margin: 0 0 10px; }
.blog-more { font-weight: 600; }
.blog-detail { max-width: 720px; margin: 0 auto; }

/* ── List pagination ────────────────────────────────────────────────────── */
.list-pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.list-pager a, .list-pager .current {
  min-width: 34px; text-align: center; padding: 7px 10px; border-radius: 8px;
  border: 1px solid #e2e6ef; text-decoration: none; font-size: 14px;
}
.list-pager .current { background: #0971fe; border-color: #0971fe; color: #fff; font-weight: 600; }

/* ── Forms ({form} tag) + newsletter ────────────────────────────────────── */
.site-form { max-width: 560px; margin: 24px 0; }
.site-form .form-row { margin-bottom: 16px; }
.site-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.site-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.site-form input[type="text"], .site-form input[type="email"], .site-form input[type="number"],
.site-form input[type="date"], .site-form select, .site-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d6dbe6; border-radius: 8px;
  font: inherit; font-size: 15px;
}
.site-form .req { color: #d33; }
.form-success { background: #effaf1; border: 1px solid #bfe8c8; color: #1c7a35;
  border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.form-errors { background: #fdf1f1; border: 1px solid #f0c8c8; color: #b32d2d;
  border-radius: 10px; padding: 10px 18px; margin: 18px 0; }
.form-errors ul { margin: 6px 0; padding-left: 18px; }
.newsletter-form { margin: 20px 0; }
.newsletter-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.newsletter-form .nl-row { display: flex; gap: 10px; max-width: 460px; }
.newsletter-form input[type="email"] { flex: 1; padding: 10px 12px; border: 1px solid #d6dbe6; border-radius: 8px; font: inherit; }

/* ── Pay page + promo badge ─────────────────────────────────────────────── */
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 26px 0; }
.pay-card { border: 1px solid #e2e6ef; border-radius: 14px; padding: 26px; background: #fff; }
.pay-card h3 { margin: 0 0 14px; }
.pay-card .button { margin-top: 18px; width: 100%; }
.promo-badge { display: inline-block; background: #eaf2ff; color: #0971fe; border-radius: 999px;
  padding: 3px 12px; font-size: 12.5px; font-weight: 600; vertical-align: middle; margin-left: 6px; }

/* ── Accessibility ──────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid #0971fe; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── {shop_nav} dynamic shop menu ───────────────────────────────────────── */
.shop-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.shop-nav a { text-decoration: none; color: inherit; padding: 4px 0; font-size: 14.5px; }
.shop-nav a:hover { color: #0971fe; }
.shop-nav .shop-nav-all { font-weight: 700; }
.shop-nav a.depth-2 { font-size: 13.5px; opacity: .85; }
.site-footer .shop-nav { flex-direction: column; align-items: flex-start; gap: 6px; }

/* ── Demo home hero ─────────────────────────────────────────────────────── */
.hero-banner { background: linear-gradient(135deg, #0971fe, #3f93ff); color: #fff;
  border-radius: 18px; padding: 54px 40px; margin: 8px 0 34px; }
.hero-banner h1 { color: #fff; font-size: 34px; margin: 0 0 10px; }
.hero-banner p { font-size: 17px; max-width: 560px; opacity: .95; }
.hero-banner .button { background: #fff; color: #0971fe; }

/* ── Subscription manager (account/subscriptions/:id) ───────────────────── */
.subman { max-width: 760px; margin: 0 auto; }
.subman-headrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.subman-headrow h1 { margin: 0; }
.subman-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.subman-pill.active { background: #effaf1; color: #1c7a35; }
.subman-pill.active .d { width: 7px; height: 7px; border-radius: 50%; background: #1f9d57; }
.subman-pill.paused { background: #eef0f3; color: #707a88; }
.subman-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #eef0f3; border: 1px solid #dde3ea; border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.subman-alert.warn { background: #fdf3e0; border-color: #f0d9a8; }
.subman-hero { background: linear-gradient(135deg, #0971fe, #3f93ff); color: #fff;
  border-radius: 18px; padding: 24px 26px; margin-bottom: 18px; }
.subman-hero .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 600; }
.subman-hero .date { font-size: 29px; font-weight: 700; margin: 4px 0 2px; }
.subman-hero .count { font-size: 14px; opacity: .92; }
.subman-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 13px; font-size: 13.5px; opacity: .95; }
.subman-hero .thumbs { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.subman-hero .th { background: rgba(255,255,255,.18); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.subman-hero .th .q { opacity: .8; font-weight: 600; }
.subman-hero .hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.subman-hero .tot b { font-size: 19px; }
.subman-hero .hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-btn { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px; padding: 9px 14px; font: 600 13px/1 inherit; cursor: pointer; }
.hero-btn:hover { background: rgba(255,255,255,.28); }
.hero-btn.solid { background: #fff; color: #0971fe; border-color: #fff; }
#date-pick input[type="date"] { padding: 9px 12px; border-radius: 10px; border: 0; font: inherit; margin-right: 8px; }
.subman-sec { background: #fff; border: 1px solid #e2e6ef; border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.subman-sec h2 { font-size: 17px; margin: 0 0 3px; }
.subman-sec .sub { font-size: 13.5px; color: #8a93a5; margin: 0 0 16px; }
.subman-freq { display: flex; gap: 8px; flex-wrap: wrap; }
.subman-freq button { flex: 1; min-width: 130px; border: 1.5px solid #dde3ea; background: #fff;
  border-radius: 13px; padding: 12px 14px; cursor: pointer; text-align: left; font: inherit; }
.subman-freq button:hover { border-color: #a9c8f7; }
.subman-freq button.active { border-color: #0971fe; background: #eaf2ff; }
.subman-freq .ft { font-weight: 600; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.subman-freq .fs { font-size: 12px; color: #8a93a5; margin-top: 2px; display: block; }
.subman-freq .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #dde3ea;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.subman-freq button.active .tick { background: #0971fe; border-color: #0971fe; }
.subman-items { display: flex; flex-direction: column; gap: 9px; }
.subman-item { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid #e7ebf2; border-radius: 13px; }
.subman-item .nm { flex: 1; }
.subman-item .nm b { display: block; font-size: 14.5px; }
.subman-item .nm small { color: #8a93a5; font-size: 12.5px; }
.subman-item .stepper { display: flex; align-items: center; border: 1.5px solid #dde3ea; border-radius: 10px; overflow: hidden; }
.subman-item .stepper button { width: 32px; height: 32px; border: 0; background: #fff; cursor: pointer;
  font-size: 17px; color: #0971fe; font-weight: 600; }
.subman-item .stepper button:disabled { color: #c4ccd8; cursor: default; }
.subman-item .stepper button:hover:not(:disabled) { background: #eaf2ff; }
.subman-item .qv { min-width: 30px; text-align: center; font-weight: 600; }
.subman-item .ip { width: 64px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.subman-item .rm { border: 0; background: none; color: #9aa3b3; cursor: pointer; font-size: 17px; padding: 4px 6px; border-radius: 7px; }
.subman-item .rm:hover { color: #bb3b30; background: #fcecea; }
.subman-subtotal { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 15px;
  border-top: 1px solid #e7ebf2; font-size: 15px; }
.subman-subtotal b { font-size: 18px; }
.subman-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.subman-grid .pcard { border: 1px solid #e7ebf2; border-radius: 14px; padding: 13px; text-align: center; }
.subman-grid .pcard:hover { border-color: #a9c8f7; }
.subman-grid img { width: 100%; height: 84px; object-fit: cover; border-radius: 10px; margin-bottom: 9px; background: #f3f5f9; }
.subman-grid .pn { font-weight: 600; font-size: 13.5px; min-height: 36px; }
.subman-grid .pp { color: #8a93a5; font-size: 12.5px; margin: 3px 0 10px; }
.subman-grid .add { width: 100%; }
.subman-grid .add.in { background: #eaf2ff; color: #0971fe; }
.subman-addrs { display: flex; flex-direction: column; gap: 9px; }
.subman-addrs .addr { display: flex; gap: 11px; align-items: flex-start; border: 1.5px solid #dde3ea;
  border-radius: 13px; padding: 13px 15px; cursor: pointer; font-size: 14px; }
.subman-addrs .addr.picked, .subman-addrs .addr:hover { border-color: #0971fe; background: #eaf2ff; }
.subman-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.subman-card .cardface { width: 118px; height: 74px; border-radius: 12px;
  background: linear-gradient(135deg, #2c3b46, #445665); color: #fff; padding: 11px 13px;
  display: flex; flex-direction: column; justify-content: space-between; }
.subman-card .cardface.soon { outline: 2px solid #b6770a; }
.subman-card .cardface.dead { outline: 2px solid #bb3b30; }
.subman-card .brand { font-weight: 700; font-size: 13px; }
.subman-card .num { font-size: 13px; letter-spacing: 1px; }
.subman-card .exp { font-size: 11px; opacity: .85; }
.subman-card .pm-info b { display: block; }
.subman-card .pm-info small { color: #8a93a5; }
.subman-manage { display: flex; gap: 10px; flex-wrap: wrap; }
.button-ghost.danger { border-color: #f1cdc9; color: #bb3b30; }
.button-ghost.danger:hover { background: #fcecea; }
.button-sm { padding: 7px 13px; font-size: 13px; }
@media (max-width: 560px) { .subman-hero .date { font-size: 24px; } .subman-item .ip { display: none; } }

/* ── Nav dropdowns (page hierarchy) ─────────────────────────────────────── */
.site-nav .nav-item.has-children { position: relative; display: inline-block; }
.site-nav .nav-item.has-children > a::after { content: " ▾"; font-size: 10px; opacity: .6; }
.site-nav .nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 190px; background: #fff; border: 1px solid #e2e6ef; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, .1); padding: 8px;
}
.site-nav .nav-item.has-children:hover .nav-dropdown,
.site-nav .nav-item.has-children:focus-within .nav-dropdown { display: block; }
.site-nav .nav-dropdown a { display: block; padding: 8px 12px; border-radius: 8px; }
.site-nav .nav-dropdown a:hover { background: #eaf2ff; color: #0971fe; }

/* ── Toggle switches for site checkboxes ────────────────────────────────── */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 38px; height: 22px; min-width: 38px; border-radius: 999px;
  background: #e2e6ef; border: 0; position: relative; cursor: pointer;
  transition: background .15s ease; vertical-align: middle; margin: 0; flex: none;
}
input[type="checkbox"]::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(20, 30, 50, .25); transition: transform .15s ease;
}
input[type="checkbox"]:checked { background: #0971fe; }
input[type="checkbox"]:checked::before { transform: translateX(16px); }
/* Radios (address picker etc.) keep their native look but get brand colour */
input[type="radio"] { accent-color: #0971fe; }

/* ══════════════════════════════════════════════════════════════════════════
   Customer portal — Untitled UI skin (v4)
   Scoped STRICTLY to portal/auth classes so client site branding elsewhere
   is untouched. Values are hardcoded UUI tokens (gray 25–900, brand 600
   #7F56D9) rather than re-pointing :root — the theme vars belong to the
   client's site look, not to the portal.
   ══════════════════════════════════════════════════════════════════════════ */

.auth-card, .account-nav, .account-card, .account-panel, .address-card, .sub-tile {
  border-color: #EAECF0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.10), 0 1px 2px rgba(16,24,40,.06);
}
.auth-card h1, .account-page h1, .account-panel h2, .account-card h3,
.address-card h3 { color: #101828; font-weight: 600; }

.auth-card input, .account-form input {
  border-color: #D0D5DD;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
  color: #101828;
}
.auth-card input:focus, .account-form input:focus {
  outline: none;
  border-color: #E9D7FE;
  box-shadow: 0 0 0 4px #F4EBFF;
}
.auth-card label, .account-form label { color: #344054; font-weight: 500; }

.account-nav a { color: #344054; border-radius: 6px; font-weight: 500; }
.account-nav a:hover { background: #F9FAFB; color: #101828; }
.account-nav a.active { background: #F2F4F7; color: #101828; font-weight: 600; }

.account-card:hover {
  box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03);
  border-color: #E9D7FE;
}
.account-card p { color: #667085; }

/* Portal tables → UUI table anatomy */
.account-table th {
  background: #FCFCFD;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  border-bottom-color: #EAECF0;
}
.account-table td { color: #475467; border-bottom-color: #EAECF0; }
.account-table td:first-child { color: #101828; font-weight: 500; }
.account-table tbody tr:hover td { background: #F9FAFB; }

/* Portal status pills → mixed-case UUI badges with status dot */
.pill {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 500;
  border-radius: 16px;
  padding: 2px 10px 2px 8px;
  gap: 6px;
  align-items: center;
  background: #F2F4F7;
  color: #344054;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-confirmed, .pill-complete, .pill-active { background: #ECFDF3; color: #027A48; }
.pill-confirmed::before, .pill-complete::before, .pill-active::before { background: #12B76A; }
.pill-processing, .pill-dispatched, .pill-pending_payment { background: #FFFAEB; color: #B54708; }
.pill-processing::before, .pill-dispatched::before, .pill-pending_payment::before { background: #F79009; }
.pill-cancelled { background: #FEF3F2; color: #B42318; }
.pill-cancelled::before { background: #F04438; }

/* ══════════════════════════════════════════════════════════════════════════
   Wards Music brand pass (2026-07-28)
   Colours lifted from the live site's own css/main.css (dark charcoal header
   #231f20, orange accent #df5226) — brand-consistent rebuild using this
   platform's own component patterns, not a pixel clone of the legacy CSS.
   Content pages (CMS pages migrated from CMSMS) already look correct because
   they preserve the legacy template + legacy CSS verbatim; this section is
   what brings the shop module (Base Layout / Header / Footer / site.css —
   the parts a legacy CMS page never touches) into the same palette.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --accent: #df5226;
  --accent-dark: #b2330b;
  --ink: #231f20;
}

.site-header { background: #231f20; border-bottom: 4px solid var(--accent); }
.site-logo { color: #fff; }
.site-nav a { color: #a7a7a7; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cart-summary { border-color: rgba(255, 255, 255, .25); color: #fff; }
.cart-summary:hover { background: rgba(255, 255, 255, .08); }
.site-nav .nav-dropdown a { color: var(--body); }

/* ── /shop landing — category tile grid ("Catalogue") ───────────────────── */
.shop-landing-head h1 { text-transform: uppercase; letter-spacing: .02em; }
.cat-tile-grid {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px;
}
.cat-tile a {
  position: relative; display: block; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cat-tile a:hover img { transform: scale(1.06); }
.cat-tile-name {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent);
  color: #fff; text-align: center; padding: 10px 8px; font-weight: 700;
  text-transform: uppercase; font-size: .85rem; letter-spacing: .03em;
}
