/* =========================================================================
   Vaux-Lierre — public shop theme
   Bootstrap stays the base; this only re-skins it to the La Vaux-Lierre
   identity (clean white/grey surfaces, golden-yellow accent, bold condensed
   uppercase headings) and adds a few shop-specific components.
   ========================================================================= */

:root {
    --vl-yellow: #f4a900;
    --vl-yellow-dark: #d59400;
    --vl-yellow-soft: #fdf3da;
    --vl-ink: #3a3a3a;
    --vl-ink-strong: #2b2b2b;
    --vl-paper: #ffffff;
    --vl-grey: #f5f5f5;
    --vl-grey-2: #ededed;
    --vl-muted: #767676;
    --vl-border: #e3e3e3;

    /* Bootstrap overrides */
    --bs-primary: var(--vl-yellow);
    --bs-primary-rgb: 244, 169, 0;
    --bs-body-bg: var(--vl-paper);
    --bs-body-color: var(--vl-ink);
    --bs-body-font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-border-color: var(--vl-border);
    --bs-link-color: var(--vl-ink);
    --bs-link-hover-color: var(--vl-yellow-dark);
    --bs-border-radius: .25rem;
    --bs-border-radius-lg: .35rem;
}

body {
    background: var(--vl-paper);
    color: var(--vl-ink);
    font-family: var(--bs-body-font-family);
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: keep the footer pinned to the bottom of the viewport
       even on short pages. main grows to absorb the remaining height. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; }
.vl-footer { flex-shrink: 0; }

h1, h2, h3, h4, h5, h6, .vl-display, .navbar-brand {
    font-family: "Oswald", "Open Sans", system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--vl-ink-strong);
}

/* Headings inside cards/tables stay readable without being shouty. */
.vl-surface .h5, .vl-surface h5, .table h6, .badge { letter-spacing: .03em; }

.text-muted-2 { color: var(--vl-muted) !important; }
.bg-grey { background: var(--vl-grey) !important; }
.bg-paper { background: var(--vl-paper) !important; }

/* ---- Buttons: squared, uppercase, condensed ---- */
.btn {
    border-radius: .2rem;
    padding-inline: 1.35rem;
    font-family: "Oswald", "Open Sans", system-ui, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.btn-lg { padding-inline: 1.85rem; }
.btn-primary {
    --bs-btn-color: var(--vl-ink-strong);
    --bs-btn-bg: var(--vl-yellow);
    --bs-btn-border-color: var(--vl-yellow);
    --bs-btn-hover-color: var(--vl-ink-strong);
    --bs-btn-hover-bg: var(--vl-yellow-dark);
    --bs-btn-hover-border-color: var(--vl-yellow-dark);
    --bs-btn-active-color: var(--vl-ink-strong);
    --bs-btn-active-bg: var(--vl-yellow-dark);
    --bs-btn-active-border-color: var(--vl-yellow-dark);
    --bs-btn-disabled-color: var(--vl-ink-strong);
    --bs-btn-disabled-bg: var(--vl-yellow);
    --bs-btn-disabled-border-color: var(--vl-yellow);
}
.btn-outline-primary {
    --bs-btn-color: var(--vl-ink-strong);
    --bs-btn-border-color: var(--vl-ink-strong);
    --bs-btn-hover-color: var(--vl-ink-strong);
    --bs-btn-hover-bg: var(--vl-yellow);
    --bs-btn-hover-border-color: var(--vl-yellow);
    --bs-btn-active-color: var(--vl-ink-strong);
    --bs-btn-active-bg: var(--vl-yellow);
    --bs-btn-active-border-color: var(--vl-yellow);
}
.btn-light {
    --bs-btn-color: var(--vl-ink-strong);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-bg: var(--vl-yellow);
    --bs-btn-hover-border-color: var(--vl-yellow);
}
.btn-link { text-transform: none; letter-spacing: 0; text-decoration: none; }

/* ---- Navbar ---- */
.vl-navbar {
    background: var(--vl-paper);
    border-bottom: 1px solid var(--vl-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.vl-navbar .navbar-brand { color: var(--vl-ink-strong); font-size: 1.5rem; display: inline-flex; align-items: center; gap: .55rem; }
.vl-navbar .navbar-brand img { height: 38px; width: auto; }
.vl-navbar .nav-link { color: var(--vl-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.vl-navbar .nav-link:hover, .vl-navbar .nav-link.active { color: var(--vl-yellow-dark); }
.vl-navbar .dropdown-menu { border-color: var(--vl-border); border-radius: .25rem; }
.vl-navbar .dropdown-item:active { background: var(--vl-yellow); color: var(--vl-ink-strong); }
.vl-cart-link { position: relative; }
.vl-cart-badge {
    position: absolute; top: -.35rem; right: -.55rem;
    background: var(--vl-yellow); color: var(--vl-ink-strong); font-size: .65rem; font-weight: 700;
    min-width: 1.15rem; height: 1.15rem; border-radius: 1rem;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 .3rem;
}

/* ---- Hero ---- */
.vl-hero {
    background:
        radial-gradient(circle at 88% -10%, var(--vl-yellow-soft), transparent 42%),
        var(--vl-grey);
    color: var(--vl-ink);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--vl-border);
    overflow: hidden;
}
.vl-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; font-weight: 700; }
.vl-hero h1::after {
    content: ""; display: block; width: 64px; height: 4px;
    background: var(--vl-yellow); margin-top: 1rem; border-radius: 2px;
}
.vl-hero .lead { color: var(--vl-muted); }

/* ---- Section heading / eyebrow + yellow underline accent ---- */
.vl-eyebrow {
    text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
    font-weight: 700; color: var(--vl-yellow-dark);
}
.vl-underline { position: relative; }
.vl-underline::after {
    content: ""; display: block; width: 48px; height: 3px;
    background: var(--vl-yellow); margin-top: .6rem; border-radius: 2px;
}

/* ---- Product card ---- */
.vl-product-card {
    background: var(--vl-paper);
    border: 1px solid var(--vl-border);
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
    display: flex; flex-direction: column;
}
.vl-product-card:hover { transform: translateY(-4px); box-shadow: 0 .7rem 1.5rem rgba(0, 0, 0, .08); border-color: var(--vl-yellow); }
.vl-product-media {
    aspect-ratio: 4 / 3; background: var(--vl-grey);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vl-product-media img { width: 100%; height: 100%; object-fit: cover; }
.vl-product-media .vl-placeholder { color: var(--vl-yellow); font-size: 2.4rem; }
.vl-product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.vl-product-title { font-weight: 600; color: var(--vl-ink-strong); text-decoration: none; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; }
.vl-product-title:hover { color: var(--vl-yellow-dark); }
.vl-price { font-weight: 600; color: var(--vl-yellow); font-family: "Oswald", sans-serif; }
.vl-price .vl-price-suffix { font-size: .8rem; color: var(--vl-muted); font-weight: 400; }

/* Public scarcity signals on the product page. */
.vl-stock:empty { display: none; }
.vl-stock span { display: inline-flex; align-items: center; margin-right: .75rem; font-weight: 600; }
.vl-stock-low { color: var(--vl-yellow-dark); }
.vl-stock-urgency { color: #c0392b; }
.vl-stock-out { color: var(--vl-muted); }

/* ---- Category chips: squared, outlined ---- */
.vl-chip {
    display: inline-block; padding: .4rem 1rem; border-radius: .2rem;
    border: 1px solid var(--vl-border); background: var(--vl-paper);
    color: var(--vl-ink); text-decoration: none; font-size: .82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    transition: all .15s ease;
}
.vl-chip:hover { border-color: var(--vl-yellow); color: var(--vl-yellow-dark); }
.vl-chip.active { background: var(--vl-yellow); border-color: var(--vl-yellow); color: var(--vl-ink-strong); }

/* ---- Cards / surfaces ---- */
.vl-surface {
    background: var(--vl-paper);
    border: 1px solid var(--vl-border);
    border-radius: var(--bs-border-radius-lg);
}
.vl-surface-grey { background: var(--vl-grey); }
.form-control, .form-select { border-radius: .25rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--vl-yellow);
    box-shadow: 0 0 0 .2rem rgba(244, 169, 0, .25);
}

/* ---- Contact / feature circular icon (yellow disc) ---- */
.vl-icon-circle {
    width: 3rem; height: 3rem; border-radius: 50%;
    background: var(--vl-yellow); color: var(--vl-ink-strong);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex: 0 0 auto;
}

/* ---- Quantity stepper ---- */
.vl-qty { display: inline-flex; align-items: center; border: 1px solid var(--vl-border); border-radius: .2rem; overflow: hidden; background: var(--vl-paper); }
.vl-qty button { border: 0; background: transparent; width: 2.2rem; height: 2.2rem; font-size: 1.1rem; line-height: 1; color: var(--vl-ink-strong); cursor: pointer; }
.vl-qty button:hover { background: var(--vl-yellow-soft); }
.vl-qty input { border: 0; width: 2.6rem; text-align: center; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.vl-qty input::-webkit-outer-spin-button, .vl-qty input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* ---- Product gallery ---- */
.vl-gallery-main { aspect-ratio: 1 / 1; border-radius: var(--bs-border-radius-lg); overflow: hidden; background: var(--vl-grey); border: 1px solid var(--vl-border); }
.vl-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.vl-gallery-thumb { width: 64px; height: 64px; border-radius: .2rem; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--vl-grey); }
.vl-gallery-thumb.active { border-color: var(--vl-yellow); }
.vl-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Footer ---- */
.vl-footer { background: var(--vl-ink-strong); color: rgba(255, 255, 255, .80); }
.vl-footer a { color: rgba(255, 255, 255, .80); text-decoration: none; }
.vl-footer a:hover { color: var(--vl-yellow); }
.vl-footer .vl-footer-brand { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; color: #fff; }
.vl-footer h6 { color: rgba(255, 255, 255, .9); }

/* ---- Fancybox tweaks ---- */
/* Drop the default content padding so the PDF/iframe fills the modal. */
.f-html { padding: 0; }
/* Receipt iframe: take the full viewport height; derive the width from it
   using the A4 ratio (210/297). An explicit width is required because
   aspect-ratio doesn't resolve inside Fancybox's flex slide. */
.has-iframe > .f-html {
    height: 95vh !important;
    width: calc(95vh * 210 / 297) !important;
    max-width: 96vw !important;
    padding: 0;
}

/* ---- Misc ---- */
.vl-flash-container { z-index: 1090; }
.vl-divider { height: 1px; background: var(--vl-border); border: 0; }
.object-cover { object-fit: cover; }
a.vl-quiet { color: inherit; text-decoration: none; }
a.vl-quiet:hover { color: var(--vl-yellow-dark); }
