/* ============================================================================
   bleyer.css — Bleyer Bullion single site-wide stylesheet
   ----------------------------------------------------------------------------
   The ONE stylesheet for the whole public site. Loaded once in
   includes/header.php (<link ... /assets/css/bleyer.css>) before any page
   renders, so every page inherits the same tokens, fonts and components.

   FONTS (client homepage system, July 2026):
     - Montserrat everywhere. Body 500. Headings (h1–h4) 700.
     - Cormorant Garamond / any serif: REMOVED site-wide. Do not reintroduce.

   Structure:
     1. Design tokens (:root)
     2. Base / reset + typography  ← site-wide font defaults live here
     3. Layout helpers shared across pages (breadcrumb, etc.)
     4. Buttons
     5. Product card (shop / homepage / search / related)
     6. Site chrome: price bar, header, nav, announcement, paused banner
     7. Footer (white, July 2026 mock-up)

   Page-specific CSS (shop sidebar, product gallery, basket summary, homepage
   hero, etc.) stays in each page's own <style> block. Anything used by more
   than one page belongs HERE.
   ============================================================================ */

:root {
    /* ── New brand palette (July 2026 mock-up) ──
       Names kept identical to the old palette so shared
       components keep resolving; only the values changed. */
    --green:       #116600;
    --green-dark:  #0a3d00;
    --green-mid:   #0f7a00;
    --gold:        #e6d27a;
    --gold-light:  #f0e2a0;
    --gold-pale:   #f7f0d4;
    --gold-ink:    #5f5210;  /* readable text colour on the pale gold */
    --cream:       #faf8f3;
    --ink:         #111827;
    --text:        #111827;
    --text-muted:  #4b5563;
    --border:      #e5e7eb;
    /* ── Footer (white background, July 2026 mock-up) ──
       A muted forest green, distinct from --green / --green-dark.
       Taken verbatim from the client's mock-up stylesheet. */
    --footer-text:    #1f4f34;  /* body copy */
    --footer-heading: #154227;  /* column headings */
    --footer-link:    #0f3a24;  /* links */
    --footer-contact: #0b2e1b;  /* phone / email block */
    --shadow-soft: 0 10px 24px rgba(0,0,0,.10);
    --text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    margin: 0;
}
/* Site-wide heading default — Montserrat 700. This is what makes the
   internal pages stop looking "weedy" once their own font rules are removed.
   Headings that need a lighter/heavier weight override locally AFTER this. */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-mid); }

/* ── Shared layout helpers (used by more than one page) ── */
.breadcrumb-nav { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb-nav a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--green); }
.breadcrumb-nav span { margin: 0 6px; }

/* Pagination (shop, news, and any other listing). Default margin-top is 32px;
   a page that wants different spacing overrides just .pagination-wrap margin
   locally (news uses 40px). */
.pagination-wrap { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; font-size: 0.85rem; color: var(--text); text-decoration: none; transition: all 0.15s; padding: 0 10px; }
.page-btn:hover { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── Account area shell (account.php, waitlist.php, and future logged-in
   sub-pages). Sidebar + card furniture only — page-specific content styles
   (stat boxes, orders table, forms) stay in each page's own <style>. ── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
@media (max-width: 767px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
    .account-sidebar .nav-item { flex: 0 0 auto; }
}
.account-sidebar { position: sticky; top: 80px; }
.account-sidebar .nav-item a {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 6px; font-size: 0.85rem; color: var(--text); text-decoration: none;
    transition: background 0.15s, color 0.15s; margin-bottom: 2px;
}
.account-sidebar .nav-item a:hover { background: var(--cream); color: var(--green); }
.account-sidebar .nav-item a.active { background: var(--green); color: #fff; font-weight: 500; }
.account-sidebar .nav-item a i { font-size: 1rem; opacity: 0.8; }
.account-sidebar .nav-item a.active i { opacity: 1; }
.account-sidebar .sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.account-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.account-card-header {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.account-card-header h2 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--green); margin: 0; }
.account-card-body { padding: 20px; }

/* ── Legal / policy pages (acceptable-use, privacy-policy, terms, shipping…)
   Shared body styling so every policy page matches. Headings are Montserrat
   via the site-wide default; sizes/spacing set here. ── */
.legal-body h2 { font-size: 1.35rem; font-weight: 700; color: var(--green); margin: 36px 0 12px; }
.legal-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.legal-body p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin: 0 0 14px; }
.legal-body ul { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; padding-left: 22px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a  { color: var(--green); }

/* Table-of-contents box used by the longer policy pages (terms, privacy). */
.legal-toc { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; margin-bottom: 36px; }
.legal-toc ol  { margin: 0; padding-left: 20px; }
.legal-toc li  { font-size: 0.85rem; line-height: 2; }
.legal-toc a   { color: var(--green); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
/* ── Spot price bar ── */
.price-bar {
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}
.price-bar .price-wrap {
    display: flex;
    gap: 28px;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}
.price-bar .price-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    line-height: 1;
}
.price-bar .metal { color: var(--text-muted); font-weight: 700; }
.price-bar .price { font-weight: 800; color: var(--ink); }
.price-bar .change { font-weight: 800; font-variant-numeric: tabular-nums; }
.price-bar .change.up { color: #16a34a; }
.price-bar .change.down { color: #dc2626; }
.price-bar .updated { opacity: .6; font-weight: 700; }
.price-bar .view-charts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--ink);
    font-weight: 800;
    font-size: 12px;
}
.price-bar .view-charts:hover { background: #e5e7eb; }
.price-bar .view-charts .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #16a34a; display: inline-block;
    box-shadow: 0 0 0 0 rgba(22,163,74,.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.7); }
    70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@media (max-width: 900px) {
    .price-bar .price-wrap { justify-content: flex-start; gap: 14px; }
}
/* ── Main header ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}
/* Logo — client's full lockup (starburst + BLEYER BULLION, all in
   the artwork). No separate text; the image is the whole wordmark. */
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo .logo-img {
    height: 64px; width: auto; display: block; flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .site-logo .logo-img { height: 52px; }
}
/* Search (centre) */
.header-search { flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.header-search .form-control {
    border-radius: 999px; border-color: var(--border);
    padding: 8px 16px; height: 42px; text-align: left;
}
.header-search .btn-search {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: var(--green); color: #fff; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
/* Feefo badge */
.feefo-badge { display: flex; align-items: center; gap: 8px; }
.feefo-badge .feefo-stars { color: #f6c21a; font-size: 13px; font-weight: 800; line-height: 1; }
.feefo-badge .feefo-reviews { font-size: 11px; color: var(--text-muted); font-weight: 700; line-height: 1.2; }
/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-actions .action-btn {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 52px; padding: 4px 6px; color: var(--green); background: transparent;
    border: none; font-size: 1.15rem; cursor: pointer; text-decoration: none;
    position: relative; transition: color 0.15s;
}
.header-actions .action-btn .action-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; margin-top: 2px; }
.header-actions .action-btn:hover { color: var(--green-mid); }
.header-actions .basket-count {
    position: absolute; top: -2px; right: 8px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: #dc2626; color: #fff; border-radius: 999px;
    font-size: 0.62rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
/* ── Navigation ── */
.main-nav { background: #fff; border-bottom: 2px solid var(--green); }
.main-nav .nav-inner { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-item-wrap { position: relative; }
.nav-link-top {
    display: flex; align-items: center; gap: 4px;
    padding: 12px 16px; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.03em; text-transform: uppercase;
    color: var(--green); text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.nav-link-top:hover, .nav-link-top.active { color: var(--green); border-bottom-color: var(--gold); }
.nav-link-top i { font-size: 0.7rem; opacity: 0.6; }
/* Dropdown */
.nav-dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    min-width: 220px; background: #fff; border: 1px solid var(--border);
    border-top: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 500; border-radius: 0 0 8px 8px; padding: 6px 0;
}
.nav-item-wrap:hover .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block; padding: 9px 16px; font-size: 0.82rem; font-weight: 500;
    color: var(--text); transition: background 0.1s, color 0.1s;
}
.nav-dropdown a:hover { background: var(--cream); color: var(--green); }
/* Special offers pill (shimmer) */
.nav-link-offers {
    position: relative; overflow: hidden;
    background: var(--gold); color: var(--gold-ink) !important;
    border-radius: 999px; padding: 7px 16px !important; margin: auto 8px;
    font-size: 0.78rem !important; font-weight: 800;
    border-bottom-color: transparent !important;
}
.nav-link-offers::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-120%); pointer-events: none;
    animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .nav-link-offers::before { animation: none; } }
.nav-link-offers:hover { background: var(--gold-light); color: var(--gold-ink) !important; border-bottom-color: transparent !important; }
/* ── Announcement bar ── */
.announcement-bar {
    background: #e6f9e9; color: var(--green-dark); font-weight: 700;
    text-align: center; padding: 10px 44px 10px 16px; position: relative;
}
.announcement-bar p { margin: 0; font-size: 0.85rem; }
.announcement-bar .announcement-close {
    border: none; background: transparent; color: var(--green-dark);
    font-size: 18px; font-weight: 700; cursor: pointer;
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    padding: 2px 6px; border-radius: 4px; line-height: 1;
}
.announcement-bar .announcement-close:hover { background: rgba(10,61,0,0.12); }
.announcement-bar.hidden { display: none; }
/* ── Mobile ── */
.mobile-menu-toggle { display: none; }
@media (max-width: 991px) {
    .header-search { display: none; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav .nav-inner { flex-direction: column; }
    .nav-dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; }
    .nav-item-wrap:hover .nav-dropdown { display: none; }
    .nav-item-wrap.open .nav-dropdown { display: block; }
    .nav-link-offers { margin: 8px 16px; display: inline-block; }
    .mobile-menu-toggle { display: inline-flex; }
}
/* ── Site paused banner ── */
.site-paused-banner {
    background: #c0392b; color: #fff; text-align: center;
    padding: 8px; font-size: 0.85rem; font-weight: 600;
}
/* ── Shared product card styles (shop, homepage, search) ── */
.product-card {
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
    background: #fff; transition: all 0.2s; display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-card-img {
    height: 180px !important; max-height: 180px !important; background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden !important; position: relative; flex-shrink: 0;
}
.product-card-img img {
    width: 100% !important; height: 100% !important; max-height: 180px !important;
    object-fit: contain !important; padding: 12px; display: block;
}
.product-card-img .no-image { font-size: 3rem; opacity: 0.2; }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
    font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 700;
    line-height: 1.3; color: var(--text); margin-bottom: 6px; text-decoration: none; display: block;
}
.product-card-name:hover { color: var(--green); }
.product-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: auto; }
.product-card-footer { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--green); }
.product-price.unavailable { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.btn-add {
    background: var(--green); color: #fff; border: none; padding: 6px 14px;
    border-radius: 4px; font-size: 0.78rem; cursor: pointer; text-decoration: none;
    transition: background 0.15s; display: inline-block; font-weight: 600;
}
.btn-add:hover { background: var(--green-mid); color: #fff; }
.btn-gold {
    background: var(--gold); color: var(--gold-ink); border: none; padding: 12px 28px;
    font-size: 0.9rem; font-weight: 800; border-radius: 999px; text-decoration: none;
    display: inline-block; transition: all 0.2s; letter-spacing: 0.02em;
}
.btn-gold:hover { background: var(--gold-light); color: var(--gold-ink); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,210,122,0.5); }
.btn-outline-white {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 28px; font-size: 0.9rem; border-radius: 999px; text-decoration: none;
    display: inline-block; transition: all 0.2s; font-weight: 700;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }