/* ═══════════════════════════════════════════════════════════════
   SUPER ALMOUROL — Mercearia Tradicional Portuguesa
   Ported to PHP app from Claudia's prototype charte.
   Fonts: Playfair Display (brand/headings) + Lato (body)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Brand palette */
    --primary:           #1A4A1E;
    --primary-dark:      #0F2E12;
    --primary-mid:       #2E7D32;
    --primary-light:     #C8E6C9;
    --primary-xlight:    #F1F8F1;
    --accent-gold:       #D4A017;
    --accent-gold-dark:  #B8880F;
    --accent-gold-light: #FFF3CD;
    --accent-red:        #C62828;
    --accent-red-light:  #FFEBEE;

    --bg:                #FAFAF5;
    --bg-card:           #FFFFFF;
    --bg-warm:           #F5F0E8;
    --bg-subtle:         #F8F5EF;

    --text:              #1C1C1C;
    --text-muted:        #6B6B5E;
    --text-light:        #9E9E8E;

    --border:            #DDD8C4;
    --border-light:      #EDE9D8;

    --shadow-xs: 0 1px 2px rgba(26,74,30,.04);
    --shadow-sm: 0 1px 4px rgba(26,74,30,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:    0 2px 8px rgba(26,74,30,.08), 0 1px 3px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(26,74,30,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 32px rgba(26,74,30,.12), 0 4px 12px rgba(0,0,0,.07);

    --radius-xs:   6px;
    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   20px;
    --radius-pill: 50px;

    --t-fast: 150ms ease;
    --t:      220ms ease;
    --t-slow: 320ms cubic-bezier(.4,0,.2,1);

    /* back-compat with existing markup variables */
    --ink: var(--text);
    --ink-soft: var(--text-muted);
    --muted: var(--text-light);
    --line: var(--border);
    --line-soft: var(--border-light);
    --surface: var(--bg-card);
    --bg-alt: var(--bg-warm);
    --accent: var(--primary);
    --accent-dark: var(--primary-dark);
    --accent-soft: var(--primary-xlight);
    --gold: var(--accent-gold);
    --gold-soft: var(--accent-gold-light);
    --danger: var(--accent-red);
    --danger-soft: var(--accent-red-light);
    --success: var(--primary-mid);
    --success-soft: var(--primary-xlight);
    --warn: var(--accent-gold-dark);
    --warn-soft: var(--accent-gold-light);

    --font-brand: 'Playfair Display', Georgia, serif;
    --font-body:  'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: var(--font-brand);
    --font-sans:  var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

img { display: block; max-width: 100%; }
button { font-family: var(--font-body); }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }

h1, h2, h3 {
    font-family: var(--font-brand);
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: .5rem; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); font-weight: 700; margin-bottom: .75rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }

.muted { color: var(--text-muted); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 14px rgba(26,74,30,.10), 0 1px 3px rgba(0,0,0,.05);
    border-bottom: 3px solid var(--accent-gold);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: 70px;
    padding-top: 0;
    padding-bottom: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.brand-mark img, .brand-mark svg { width: 56px; height: 56px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.brand-name {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.22rem;
    color: var(--primary);
    letter-spacing: .1px;
    line-height: 1.1;
}
.brand-tag {
    font-family: var(--font-body);
    font-size: .67rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: .8px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: .1rem;
}

.header-nav { display: flex; align-items: center; gap: 1rem; }
.nav-link {
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: var(--radius-pill);
    transition: all var(--t);
}
.nav-link:hover { background: var(--primary-xlight); color: var(--primary); text-decoration: none; }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: auto;
    height: 44px;
    padding: 0 1.1rem 0 .9rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 2px 8px rgba(26,74,30,.22);
    transition: all var(--t);
}
.cart-link:hover { background: var(--primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px; height: 22px;
    padding: 0 6px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    border: 2px solid #fff;
    position: static;
    margin-left: .15rem;
}

@media (max-width: 640px) {
    .brand-tag { display: none; }
    .nav-link { display: none; }
    .brand-name { font-size: 1.05rem; }
    .brand-mark, .brand-mark img, .brand-mark svg { width: 44px; height: 44px; }
    .cart-link { padding: 0 .9rem 0 .7rem; height: 40px; }
}

/* ── FLASHES ────────────────────────────────────────────────── */
.flash-zone { margin-top: 1rem; display: grid; gap: .5rem; }
.flash {
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 500;
}
.flash-success { background: var(--primary-xlight); color: var(--primary); border-color: var(--primary-light); }
.flash-error { background: var(--accent-red-light); color: var(--accent-red); border-color: #F5B5B5; }
.flash-info { background: var(--accent-gold-light); color: var(--accent-gold-dark); border-color: #F5DFA6; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: clamp(3rem, 7vw, 5.5rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(212,160,23,0.25) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(46,125,50,0.35) 0%, transparent 45%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    padding: .45rem 1.1rem;
    background: rgba(212,160,23,0.12);
    border: 1px solid rgba(212,160,23,0.35);
    border-radius: var(--radius-pill);
}
.hero-inner h1 {
    font-family: var(--font-brand);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}
.hero-inner h1 em {
    font-style: italic;
    font-weight: 700;
    color: var(--accent-gold);
}
.hero-tag {
    font-family: var(--font-brand);
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    margin: 0 auto .75rem;
    max-width: 620px;
}
.hero-sub {
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: .92rem;
    color: rgba(255,255,255,0.85);
}
.hero-features span::before { content: "✓"; color: var(--accent-gold); font-weight: 700; margin-right: .4rem; }

/* ── CATEGORY PILLS ─────────────────────────────────────────── */
.catalogue { padding: 2.5rem 0 4rem; }
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
    padding-bottom: .25rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: .88rem;
    font-weight: 700;
    transition: all var(--t);
    cursor: pointer;
}
.pill:hover {
    background: var(--primary-xlight);
    border-color: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}
.pill.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(26,74,30,.22);
}

/* ── CATEGORY BLOCKS ────────────────────────────────────────── */
.cat-block { margin-bottom: 3rem; scroll-margin-top: 100px; }
.cat-title {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--text);
    margin-bottom: 1.25rem;
    border: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    position: relative;
    padding-left: 1rem;
}
.cat-title::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 70%;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* ── PRODUCT GRID ───────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1.3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-card.is-out { opacity: 0.55; }

.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--primary-xlight);
}
.product-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.product-media .placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-xlight) 0%, #E8F5E9 100%);
    font-size: 2.8rem;
}
.product-media .placeholder svg { width: 40%; height: 40%; opacity: 0.4; }

.badge {
    position: absolute;
    top: .6rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .22rem .58rem;
    border-radius: var(--radius-pill);
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 2;
}
.badge-low {
    left: .6rem;
    background: rgba(255,255,255,.93);
    color: var(--accent-gold-dark);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-xs);
}
.badge-out {
    right: .6rem;
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(198,40,40,.38);
}

.product-body {
    padding: .9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}
.product-name {
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.product-desc {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .75rem;
    gap: .5rem;
}
.price {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    letter-spacing: -.5px;
    line-height: 1;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.35rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    font: inherit;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,74,30,.22);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(26,74,30,.3); }

.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-xlight); color: var(--primary-dark); border-color: var(--primary-light); }

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(212,160,23,.32);
}
.btn-gold:hover { background: var(--accent-gold-dark); color: #fff; }

.btn-disabled { background: var(--bg-warm); color: var(--text-light); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

.btn-block { display: flex; width: 100%; margin-top: .5rem; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .45rem .85rem; font-size: .82rem; }
.add-form .btn { padding: .55rem 1rem; font-size: .82rem; }

/* Add-to-cart circular green button (product-card variant) */
.product-card .add-form { margin: 0; }
.product-card .add-form .btn {
    width: 38px; height: 38px; padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(26,74,30,.28);
}

/* ── PAGE HEAD ──────────────────────────────────────────────── */
.page-head { padding: 2.5rem 0 1rem; }
.page-head h1 { margin-bottom: .25rem; }

/* ── CART ───────────────────────────────────────────────────── */
.empty-card {
    background: #fff;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
    max-width: 480px;
    margin: 1.5rem auto 4rem;
}
.empty-card svg { margin-bottom: 1rem; opacity: .6; }
.empty-card .btn { margin-top: 1rem; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
}
@media (min-width: 860px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }

.cart-items { display: grid; gap: .75rem; }
.cart-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
        "media main remove"
        "media qty total";
    gap: .5rem 1rem;
    align-items: center;
    padding: .85rem;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t);
}
.cart-row:hover { border-color: var(--accent-gold); }
@media (min-width: 620px) {
    .cart-row {
        grid-template-columns: 80px 1fr auto auto auto;
        grid-template-areas: "media main qty total remove";
    }
}
.cart-row-media { grid-area: media; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--primary-xlight); }
.cart-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-row-media svg { width: 100%; height: 100%; display: block; padding: 16px; opacity: .4; }
.cart-row-main { grid-area: main; min-width: 0; }
.cart-row-name { font-size: 1rem; font-weight: 700; margin: 0 0 .15rem; }
.cart-row-price { font-size: .85rem; color: var(--text-muted); }
.cart-row-total { grid-area: total; font-family: var(--font-brand); font-weight: 800; color: var(--primary); text-align: right; font-size: 1.1rem; }

.qty-group {
    grid-area: qty;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: var(--bg);
    border-radius: var(--radius-pill);
    padding: .2rem;
    border: 1px solid var(--border);
}
.qty-mini { display: inline-flex; align-items: center; margin: 0; }
.qty-btn {
    background: transparent;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
}
.qty-btn:hover { background: var(--primary-xlight); }
.qty-input {
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--text);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.icon-btn {
    grid-area: remove;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent-red);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}
.icon-btn:hover { background: var(--accent-red-light); border-color: var(--accent-red); }

/* ── CART SUMMARY / CHECKOUT SIDEBAR ────────────────────────── */
.summary-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 90px;
}
.summary-card h2 {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1.5px dashed var(--border);
}
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.summary-row.total {
    border-top: 1.5px solid var(--border);
    margin-top: .5rem;
    padding-top: .8rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-brand);
}

/* ── CHECKOUT FORM ──────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 860px) { .checkout-layout { grid-template-columns: 1fr 360px; align-items: start; } }

.form-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.form-card + .form-card { margin-top: 1.25rem; }
.form-card h2 { font-family: var(--font-brand); font-size: 1.25rem; margin-bottom: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.form-group label .req { color: var(--accent-red); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font: inherit;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-mid);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,74,30,.12);
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.radio-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--t);
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-xlight);
    box-shadow: 0 0 0 3px rgba(26,74,30,.08);
}
.radio-card-title { font-weight: 700; color: var(--text); }
.radio-card-hint { font-size: .82rem; color: var(--text-muted); }

/* ── ORDER SUCCESS ──────────────────────────────────────────── */
.success-card {
    background: #fff;
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    max-width: 640px;
    margin: 2rem auto 4rem;
    box-shadow: var(--shadow-lg);
}
.success-check {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary-xlight);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 2.5rem;
}
.success-ref {
    display: inline-block;
    padding: .5rem 1.1rem;
    background: var(--accent-gold-light);
    color: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-family: var(--font-body);
    letter-spacing: .05em;
    margin: .75rem 0 1.5rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    margin-top: 3rem;
    padding: 2.5rem 0 1.25rem;
    border-top: 4px solid var(--accent-gold);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.site-footer strong { color: #fff; display: block; margin-bottom: .4rem; font-family: var(--font-brand); font-weight: 700; letter-spacing: .02em; }
.site-footer a { color: var(--accent-gold); }
.site-footer a:hover { color: var(--accent-gold-light); }
.site-footer .muted { color: rgba(255,255,255,0.65); }
.footer-meta {
    grid-column: 1 / -1;
    padding-top: 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,0.55);
    text-align: center;
}
