/* ═══ WineGuru design system ════════════════════════════════════════════
   Palette: warm paper background, refined burgundy, muted gold accents.
   Type: Cormorant Garamond (headings) + Mulish (body), latin-ext.
*/

:root {
    color-scheme: light;
    --wg-wine: #8a1f3d;
    --wg-wine-deep: #4a1024;
    --wg-wine-night: #2a0914;
    --wg-wine-soft: #f7e9ec;
    --wg-gold: #b8893b;
    --wg-gold-bright: #dcb469;
    --wg-gold-soft: #f5ead3;
    --wg-ink: #33262b;
    --wg-muted: #6d5a62;
    --wg-paper: #faf5ec;
    --wg-surface: #fffdf9;
    --wg-line: #eadfd0;
    --wg-radius: 16px;
    --wg-shadow: 0 14px 34px rgba(74, 16, 36, .13);
    --wg-shadow-sm: 0 3px 12px rgba(74, 16, 36, .06);
    /* fonts are loaded in views/layouts/_head.php; Cormorant has a small x-height,
       so display text is scaled up to an x-height of .5 where the browser supports it */
    --wg-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --wg-display-adjust: .5;
    --wg-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* the four wine colours: tint (surface), tone (text on tint), body (the liquid) */
    --wg-rosu: #8a1f3d;      --wg-rosu-tint: #f7e6ea;    --wg-rosu-tone: #7a1a35;
    --wg-alb: #d9b84a;       --wg-alb-tint: #f8f0cf;     --wg-alb-tone: #6e5710;
    --wg-rose: #e58a9c;      --wg-rose-tint: #fde8ec;    --wg-rose-tone: #a23653;
    --wg-spumant: #cfae6e;   --wg-spumant-tint: #f6ecd9; --wg-spumant-tone: #76571c;
}

/* ─── Base ──────────────────────────────────────────────────────────── */

body {
    background-color: var(--wg-paper);
    /* faint glass-ring stains on the paper, top corners only */
    background-image:
        radial-gradient(circle at 96% 190px, transparent 118px, rgba(138, 31, 61, .045) 120px, rgba(138, 31, 61, .045) 126px, transparent 129px),
        radial-gradient(circle at 3% 620px, transparent 88px, rgba(184, 137, 59, .07) 90px, rgba(184, 137, 59, .07) 95px, transparent 98px);
    background-repeat: no-repeat;
    color: var(--wg-ink);
    font-family: var(--wg-body);
    font-size-adjust: none;
    font-size: 1.0625rem;
    line-height: 1.65;
}

h1, h2, h3, .h1, .h2, .h3, .display-5, .navbar-brand {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--wg-wine-deep);
    line-height: 1.2;
    text-wrap: balance;
}

h1, .h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
}

h4, h5, h6, .h4, .h5, .h6 {
    color: var(--wg-wine-deep);
    font-weight: 600;
}

main > .container {
    padding: 96px 15px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

a {
    color: var(--wg-wine);
    text-decoration-color: rgba(139, 41, 66, .35);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--wg-wine-deep);
}

.lead {
    color: var(--wg-muted);
    font-size: 1.15rem;
    font-weight: 400;
}

.text-muted, .small.text-muted {
    color: var(--wg-muted) !important;
}

::selection {
    background: var(--wg-gold-soft);
    color: var(--wg-wine-deep);
}

:focus-visible {
    outline: 3px solid var(--wg-gold);
    outline-offset: 2px;
}

/* ─── Navbar ────────────────────────────────────────────────────────── */

.wg-navbar {
    background: linear-gradient(120deg, rgba(42, 9, 20, .96) 0%, rgba(74, 16, 36, .96) 55%, rgba(110, 28, 54, .96) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-top: .7rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid rgba(220, 180, 105, .35);
    box-shadow: 0 2px 18px rgba(42, 9, 20, .35);
}

.wg-navbar .navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.wg-brand-mark {
    width: 26px;
    height: 30px;
    flex: none;
}

.wg-brand-guru {
    color: var(--wg-gold-bright);
    font-style: italic;
    font-weight: 500;
}

.wg-navbar .nav-link {
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    font-weight: 500;
    padding-left: .8rem !important;
    padding-right: .8rem !important;
    border-bottom: 2px solid transparent;
}

/* 10 top-level items: tighten spacing on narrow desktops so the fixed navbar stays one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .wg-navbar .nav-link {
        padding-left: .4rem !important;
        padding-right: .4rem !important;
    }
}

.wg-navbar .nav-link:hover,
.wg-navbar .nav-link:focus,
.wg-navbar .nav-link.active {
    color: #fff;
    border-bottom-color: var(--wg-gold-bright);
}

.wg-navbar .dropdown-menu {
    border: 1px solid var(--wg-line);
    border-radius: 10px;
    box-shadow: var(--wg-shadow);
}

.wg-navbar .dropdown-item:active {
    background: var(--wg-wine);
}

/* ─── Breadcrumbs ───────────────────────────────────────────────────── */

.breadcrumb {
    font-size: .85rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--wg-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--wg-wine);
}

.breadcrumb-item.active {
    color: var(--wg-ink);
}

/* ─── Hero ──────────────────────────────────────────────────────────── */

.wg-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 46%, transparent 168px, rgba(220, 180, 105, .13) 170px, rgba(220, 180, 105, .13) 173px, transparent 176px),
        radial-gradient(circle at 88% 82%, transparent 96px, rgba(220, 180, 105, .09) 98px, rgba(220, 180, 105, .09) 100px, transparent 103px),
        radial-gradient(ellipse at 80% 40%, rgba(184, 137, 59, .30) 0%, transparent 52%),
        radial-gradient(ellipse at 8% 100%, rgba(165, 42, 76, .55) 0%, transparent 60%),
        linear-gradient(130deg, var(--wg-wine-night) 0%, var(--wg-wine-deep) 48%, #7c2040 100%);
    color: #fff;
    border-radius: calc(var(--wg-radius) + 10px);
    box-shadow: 0 24px 50px rgba(42, 9, 20, .28);
}

.wg-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.wg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wg-gold-bright);
}

.wg-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.wg-hero h1 {
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.35rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.wg-hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--wg-gold-bright);
}

.wg-hero-art {
    position: absolute;
    z-index: 0;
    right: 4%;
    bottom: -6px;
    height: 94%;
    width: auto;
    pointer-events: none;
}

.wg-hero-wave {
    animation: wg-slosh 7s ease-in-out infinite;
    transform-origin: 160px 110px;
}

@keyframes wg-slosh {
    0%, 100% { transform: rotate(-2.2deg); }
    50% { transform: rotate(2.2deg); }
}

.wg-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin: 2rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    list-style: none;
    font-size: .9rem;
    color: rgba(255, 255, 255, .78);
}

.wg-hero-stats strong {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-right: .35rem;
}

@media (max-width: 991.98px) {
    .wg-hero-art {
        opacity: .13;
        right: -30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wg-hero-wave {
        animation: none;
    }
}

.wg-hero h1 {
    color: #fff;
}

.wg-hero .lead {
    color: rgba(255, 255, 255, .85);
    max-width: 620px;
}

.wg-hero .btn-light {
    background: var(--wg-gold-bright);
    border-color: var(--wg-gold-bright);
    color: #2e1420;
    font-weight: 600;
}

.wg-hero .btn-light:hover {
    background: #e8c583;
    border-color: #e8c583;
    color: #2e1420;
}

.wg-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    font-weight: 500;
}

.wg-hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

/* ─── Section titles ────────────────────────────────────────────────── */

.wg-section-title {
    display: block;
    border: 0;
    padding-bottom: 0;
}

.wg-section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 9px;
    margin-top: .6rem;
    /* a gold rule ending in a single grape */
    background:
        radial-gradient(circle at 4.5px 4.5px, var(--wg-wine) 4px, transparent 4.5px),
        linear-gradient(90deg, var(--wg-gold) 0%, rgba(184, 137, 59, 0) 100%) 14px 4px / 106px 1.5px no-repeat;
}

.wg-section-title a {
    color: inherit;
}

.wg-section-sub {
    color: var(--wg-muted);
    margin-top: -.75rem;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

/* ─── Cards ─────────────────────────────────────────────────────────── */

.wg-card {
    border: 1px solid var(--wg-line);
    border-radius: var(--wg-radius);
    background: var(--wg-surface);
    color: var(--wg-ink);
    box-shadow: var(--wg-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    height: 100%;
    overflow: hidden;
}

/* wine cards carry their colour as a thin band along the top */
.wg-card[class*="wg-card--"] {
    border-top: 3px solid var(--wg-type, var(--wg-wine));
}

.wg-card--rosu { --wg-type: var(--wg-rosu); }
.wg-card--alb { --wg-type: var(--wg-alb); }
.wg-card--rose { --wg-type: var(--wg-rose); }
.wg-card--spumant { --wg-type: var(--wg-spumant); }

.wg-card .card-text, .wg-fact p, .wg-answer-box p {
    color: var(--wg-ink);
}

.wg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow);
    border-color: rgba(184, 137, 59, .6);
}

.wg-card .card-title, .wg-card h2.h6, .wg-card h3.h6 {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
}

.wg-card .card-title a,
.wg-card h2 a, .wg-card h3 a {
    color: var(--wg-wine-deep);
}

.wg-card .card-title a:hover,
.wg-card h2 a:hover, .wg-card h3 a:hover {
    color: var(--wg-wine);
}

/* ─── Badges, price ─────────────────────────────────────────────────── */

.wg-badge {
    background: var(--wg-wine-soft);
    color: var(--wg-wine);
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .4em .85em;
}

.wg-badge--rosu { background: var(--wg-rosu-tint); color: var(--wg-rosu-tone); }
.wg-badge--alb { background: var(--wg-alb-tint); color: var(--wg-alb-tone); }
.wg-badge--rose { background: var(--wg-rose-tint); color: var(--wg-rose-tone); }
.wg-badge--spumant { background: var(--wg-spumant-tint); color: var(--wg-spumant-tone); }

.wg-badge[class*="wg-badge--"]::before {
    content: '';
    display: inline-block;
    width: .55em;
    height: .55em;
    margin-right: .45em;
    border-radius: 50%;
    background: var(--wg-dot, currentColor);
    vertical-align: .05em;
}

.wg-badge--rosu { --wg-dot: var(--wg-rosu); }
.wg-badge--alb { --wg-dot: var(--wg-alb); }
.wg-badge--rose { --wg-dot: var(--wg-rose); }
.wg-badge--spumant { --wg-dot: var(--wg-spumant); }

.wg-price {
    color: var(--wg-wine);
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.15em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */

.btn {
    border-radius: 999px;
    padding-left: 1.15em;
    padding-right: 1.15em;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-wine {
    background-color: var(--wg-wine);
    border-color: var(--wg-wine);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(138, 31, 61, .25);
}

.btn-wine:hover, .btn-wine:focus {
    background-color: var(--wg-wine-deep);
    border-color: var(--wg-wine-deep);
    color: #fff;
}

.btn-emag {
    background-color: #ffd429;
    border-color: #ffd429;
    color: #231f20;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(180, 140, 0, .25);
}

.btn-emag:hover, .btn-emag:focus {
    background-color: #ffc800;
    border-color: #ffc800;
    color: #231f20;
    box-shadow: 0 3px 10px rgba(180, 140, 0, .35);
}

.btn-outline-secondary {
    border-color: var(--wg-line);
    color: var(--wg-ink);
    background: var(--wg-surface);
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background: var(--wg-wine-soft);
    border-color: var(--wg-wine);
    color: var(--wg-wine-deep);
}

/* ─── Content blocks ────────────────────────────────────────────────── */

.wg-answer-box {
    background: var(--wg-surface);
    border: 1px solid var(--wg-line);
    border-left: 5px solid var(--wg-gold);
    border-radius: var(--wg-radius);
    padding: 1.4rem 1.6rem;
    background-image: linear-gradient(120deg, var(--wg-gold-soft) 0%, var(--wg-surface) 46%);
    box-shadow: var(--wg-shadow-sm);
}

.wg-fact {
    position: relative;
    background: var(--wg-surface);
    border: 1px solid var(--wg-line);
    border-radius: var(--wg-radius);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--wg-shadow-sm);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wg-fact:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 137, 59, .6);
    box-shadow: var(--wg-shadow);
}

.wg-fact strong {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--wg-gold);
}

.wg-fact--feature {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(220, 180, 105, .4);
    color: rgba(255, 255, 255, .9);
    padding: 1.5rem;
    box-shadow: none;
}

.wg-fact--feature::after {
    content: '';
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(220, 180, 105, .2);
}

.wg-fact--feature strong {
    color: var(--wg-gold-bright);
}

.wg-fact--feature p {
    color: rgba(255, 255, 255, .9);
}

.wg-fact--feature a {
    position: relative;
    z-index: 1;
    color: var(--wg-gold-bright);
    text-decoration-color: rgba(220, 180, 105, .5);
}

.wg-fact--feature a:hover {
    color: #fff;
}

.wg-prose > h1:first-child::after,
.wg-prose > .badge + h1::after {
    content: '';
    display: block;
    width: 120px;
    height: 9px;
    margin-top: .9rem;
    background:
        radial-gradient(circle at 4.5px 4.5px, var(--wg-wine) 4px, transparent 4.5px),
        linear-gradient(90deg, var(--wg-gold) 0%, rgba(184, 137, 59, 0) 100%) 14px 4px / 106px 1.5px no-repeat;
}

.wg-prose {
    max-width: 760px;
}

.wg-article-hero {
    margin: 1rem 0 1.5rem;
}

.wg-article-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--wg-radius);
    box-shadow: var(--wg-shadow);
}

.wg-article-hero figcaption {
    margin-top: .35rem;
    font-size: .8rem;
    color: #6c757d;
}

.wg-article-hero figcaption a {
    color: inherit;
}

/* Thumbnails on the /ghid index cards (600px copies of the hero images) */
.wg-guide-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-top-left-radius: var(--wg-radius);
    border-top-right-radius: var(--wg-radius);
}

.wg-prose h2 {
    margin-top: 2.25rem;
    margin-bottom: .75rem;
}

.wg-prose h3 {
    margin-top: 1.5rem;
    color: var(--wg-wine);
}

/* Wine cards inside guide prose ("Ce să cumperi"): keep the card title tight */
.wg-prose .wg-card h3 {
    margin-top: 0;
}

.wg-prose ul li, .wg-prose ol li {
    margin-bottom: .4rem;
}

.wg-prose table {
    font-size: .95rem;
}

/* ─── Tables ────────────────────────────────────────────────────────── */

.table.bg-white, .wg-prose .table {
    background: var(--wg-surface);
    border-color: var(--wg-line);
    border-radius: 12px;
    overflow: hidden;
}

.wg-prose .table thead th, .table.bg-white thead th {
    background: var(--wg-wine-soft);
    color: var(--wg-wine-deep);
    border-color: var(--wg-line);
    font-weight: 600;
}

.wg-prose .table td, .table.bg-white td {
    border-color: var(--wg-line);
}

/* ─── Forms ─────────────────────────────────────────────────────────── */

.form-select, .form-control {
    background-color: var(--wg-surface);
    color: var(--wg-ink);
    border-color: var(--wg-line);
    border-radius: 10px;
    padding: .6rem .9rem;
}

.form-select:focus, .form-control:focus {
    border-color: var(--wg-wine);
    box-shadow: 0 0 0 .25rem rgba(139, 41, 66, .12);
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--wg-wine-deep);
}

/* ─── Footer ────────────────────────────────────────────────────────── */

.wg-footer {
    position: relative;
    background: linear-gradient(180deg, var(--wg-wine-night) 0%, #1e060e 100%);
    color: rgba(255, 255, 255, .78);
    margin-top: 6rem;
    padding-top: 2.5rem !important;
}

/* rolling vineyard hills leading into the footer */
.wg-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 56px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V30C150 6 300 2 450 22s300 30 450 10 200-24 300-14v38z' fill='%234a1024' opacity='.35'/%3E%3Cpath d='M0 56V42c200-26 400-26 600-8s400 14 600-10v32z' fill='%232a0914'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.wg-footer strong {
    color: var(--wg-gold-bright);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wg-footer-link {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    line-height: 2;
}

.wg-footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.wg-footer-copy {
    border-color: rgba(255, 255, 255, .15) !important;
    color: rgba(255, 255, 255, .65);
}

/* ─── Misc ──────────────────────────────────────────────────────────── */

.site-error {
    flex: 1;
}

.alert {
    border-radius: var(--wg-radius);
}

/* align navbar brand baseline with nav links */
.navbar > .container,
.navbar > .container-fluid {
    align-items: center;
}

@media (max-width: 991.98px) {
    .wg-navbar .nav-link {
        border-bottom: 0;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    main > .container {
        padding-top: 84px;
    }
}

/* ─── Wine product images ───────────────────────────────────────────── */

/* The source shots are 450x450 squares with the bottle centered on white.
   A 3:4 frame + object-fit: cover trims only the white side margins, so the
   bottle keeps its natural proportions and fills the frame consistently at
   every column width — no image processing needed. */

.wg-wine-img-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    background: radial-gradient(ellipse at 50% 38%, #fffdf9 0%, #f6eee1 100%);
    border-bottom: 1px solid var(--wg-line);
}

.wg-wine-img-link::after,
.wg-wine-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 100%, rgba(74, 16, 36, .07) 0%, transparent 46%);
}

.wg-wine-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform .35s ease;
}

.wg-card:hover .wg-wine-img {
    transform: scale(1.06) translateY(-2px);
}

.wg-wine-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    mix-blend-mode: normal;
}

.wg-pick-img {
    display: block;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.wg-wine-photo {
    background: radial-gradient(ellipse at 50% 38%, #fffdf9 0%, #f6eee1 100%);
    border: 1px solid var(--wg-line);
    box-shadow: var(--wg-shadow-sm);
    border-radius: var(--wg-radius);
    overflow: hidden;
    position: relative;
}

.wg-wine-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
}

@media (max-width: 767.98px) {
    /* detail page: don't let the product shot fill the whole viewport */
    .wg-wine-photo {
        max-width: 300px;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wg-wine-img {
        transition: none;
    }

    .wg-card:hover .wg-wine-img {
        transform: none;
    }
}

/* "Top alegere" card at the top of the list pages */
.wg-top-pick {
    border: 2px solid var(--wg-wine);
}

.wg-top-badge {
    background: var(--wg-wine);
    color: #fff;
    font-size: .8rem;
}

.wg-top-pick .wg-wine-img-link {
    border-bottom: 0;
    height: 100%;
}

@media (max-width: 575.98px) {
    .wg-top-pick .wg-wine-img-link {
        max-width: 220px;
        margin: 1rem auto 0;
        border-radius: var(--wg-radius);
    }
}

/* /regiuni-viticole: harta viticolă (inline SVG) */
.wg-map-svg {
    display: block;
    width: 100%;
    height: auto;
    padding: 1rem;
}

.wg-map-romania {
    fill: var(--wg-wine-soft);
    stroke: var(--wg-wine);
    stroke-width: 2;
    stroke-linejoin: round;
}

.wg-map-moldova {
    fill: var(--wg-gold-soft);
    stroke: var(--wg-gold);
    stroke-width: 2;
    stroke-linejoin: round;
}

.wg-map-country {
    fill: var(--wg-muted);
    font-size: 15px;
    letter-spacing: .2em;
    opacity: .55;
}

.wg-map-pin {
    fill: var(--wg-wine);
    stroke: #fff;
    stroke-width: 2.5;
}

.wg-map-label {
    fill: var(--wg-wine-deep);
    font-size: 15px;
    font-weight: 600;
    paint-order: stroke;
    stroke: var(--wg-surface);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.wg-map a:hover .wg-map-pin,
.wg-map a:focus .wg-map-pin {
    fill: var(--wg-gold);
}

.wg-map a:hover .wg-map-label {
    text-decoration: underline;
}

/* ─── Home: wine colours, pairing tiles, shopping lists ─────────────── */

.wg-type-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 168px;
    padding: 1.1rem 1.2rem;
    border-radius: var(--wg-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(160deg, var(--wg-tile-a), var(--wg-tile-b));
    box-shadow: var(--wg-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

.wg-type-tile:hover, .wg-type-tile:focus-visible {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow);
}

.wg-type-tile--rosu { --wg-tile-a: #a3294c; --wg-tile-b: #4a1024; }
.wg-type-tile--alb { --wg-tile-a: #e6cf73; --wg-tile-b: #b08d24; }
.wg-type-tile--rose { --wg-tile-a: #f2a9b6; --wg-tile-b: #c95672; }
.wg-type-tile--spumant { --wg-tile-a: #e3c88f; --wg-tile-b: #9a7430; }

.wg-type-tile--alb, .wg-type-tile--alb:hover,
.wg-type-tile--spumant, .wg-type-tile--spumant:hover {
    color: #2e2208;
}

.wg-type-tile strong {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}

.wg-type-tile span {
    font-size: .85rem;
    opacity: .88;
}

.wg-type-glass {
    position: absolute;
    top: 12px;
    right: 10px;
    width: 74px;
    height: 104px;
    opacity: .9;
    transition: transform .3s ease;
}

.wg-type-tile:hover .wg-type-glass {
    transform: rotate(-8deg) translateY(-2px);
}

.wg-bubble {
    animation: wg-rise 2.6s ease-in infinite;
}

.wg-bubble:nth-of-type(2) { animation-delay: .9s; }
.wg-bubble:nth-of-type(3) { animation-delay: 1.7s; }

@keyframes wg-rise {
    0% { transform: translateY(8px); opacity: 0; }
    30% { opacity: .9; }
    100% { transform: translateY(-14px); opacity: 0; }
}

.wg-tile {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--wg-line);
    border-radius: var(--wg-radius);
    background: var(--wg-surface);
    color: var(--wg-ink);
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: var(--wg-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wg-tile:hover, .wg-tile:focus-visible {
    color: var(--wg-wine-deep);
    transform: translateY(-3px);
    border-color: rgba(184, 137, 59, .6);
    box-shadow: var(--wg-shadow);
}

.wg-tile-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--wg-gold-soft);
    font-size: 1.3rem;
    transition: transform .2s ease;
}

.wg-tile:hover .wg-tile-icon {
    transform: scale(1.12) rotate(-6deg);
}

.wg-tile-dot {
    flex: none;
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    background: var(--wg-type, var(--wg-gold));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wg-type, var(--wg-gold)) 18%, transparent);
}

.wg-tile small {
    display: block;
    color: var(--wg-muted);
    font-weight: 400;
}

.wg-picker {
    background: var(--wg-surface);
    border: 1px solid var(--wg-line);
    border-radius: calc(var(--wg-radius) + 4px);
    padding: 1.5rem;
    box-shadow: var(--wg-shadow-sm);
}

.wg-week {
    border: 0;
    background: var(--wg-surface);
    box-shadow: var(--wg-shadow);
}

.wg-week-ribbon {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wg-gold);
}

/* sections ease in as they scroll into view (only once JS has opted in) */
.wg-js .wg-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.wg-js .wg-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .wg-js .wg-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wg-bubble {
        animation: none;
    }

    .wg-card:hover, .wg-tile:hover, .wg-type-tile:hover {
        transform: none;
    }
}

/* ─── Page wash, bands, photo tiles, chips, specs ───────────────────── */

main {
    overflow-x: clip;
}

/* full-bleed band behind a section that still sits in the container */
.wg-band {
    position: relative;
    isolation: isolate;
    padding-block: 3.5rem;
    margin-block: 4rem;
}

.wg-band::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
}

.wg-band--dark::before {
    background:
        radial-gradient(circle at 12% 30%, transparent 138px, rgba(220, 180, 105, .1) 140px, rgba(220, 180, 105, .1) 143px, transparent 146px),
        radial-gradient(circle at 93% 85%, transparent 108px, rgba(220, 180, 105, .08) 110px, rgba(220, 180, 105, .08) 113px, transparent 116px),
        radial-gradient(ellipse at 80% 0%, rgba(184, 137, 59, .22) 0%, transparent 55%),
        linear-gradient(140deg, var(--wg-wine-night) 0%, var(--wg-wine-deep) 60%, #6d1c36 100%);
}

.wg-band--dark .wg-section-title {
    color: #fff;
}

.wg-band--dark .wg-section-title::after {
    background:
        radial-gradient(circle at 4.5px 4.5px, var(--wg-gold-bright) 4px, transparent 4.5px),
        linear-gradient(90deg, var(--wg-gold-bright) 0%, rgba(220, 180, 105, 0) 100%) 14px 4px / 106px 1.5px no-repeat;
}

.wg-bento {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 1rem;
}

.wg-photo-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 190px;
    border-radius: var(--wg-radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--wg-shadow-sm);
    isolation: isolate;
}

.wg-photo-tile--lead {
    grid-row: span 2;
}

.wg-photo-tile img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.wg-photo-tile::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 9, 20, 0) 25%, rgba(42, 9, 20, .55) 62%, rgba(42, 9, 20, .92) 100%);
    transition: opacity .3s ease;
}

.wg-photo-tile:hover, .wg-photo-tile:focus-visible {
    color: #fff;
    box-shadow: var(--wg-shadow);
}

.wg-photo-tile:hover img {
    transform: scale(1.06);
}

.wg-photo-tile-body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.2rem 1.3rem;
}

.wg-photo-tile-body strong {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.15;
}

.wg-photo-tile--lead .wg-photo-tile-body strong {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
}

.wg-photo-tile-body > span:last-child {
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}

.wg-photo-tile .wg-eyebrow {
    font-size: .7rem;
}

@media (max-width: 767.98px) {
    .wg-bento {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .wg-photo-tile--lead {
        min-height: 260px;
    }

    .wg-band {
        padding-block: 2.5rem;
        margin-block: 3rem;
    }
}

/* picker: every option visible as a chip */
.wg-chip-group {
    margin: 0 0 1.1rem;
    padding: 0;
    border: 0;
}

.wg-chip-group legend {
    float: none;
    width: auto;
    margin-bottom: .5rem;
}

.wg-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .95rem;
    border: 1px solid var(--wg-line);
    border-radius: 999px;
    background: var(--wg-paper);
    color: var(--wg-ink);
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.wg-chip:hover {
    border-color: var(--wg-wine);
    transform: translateY(-1px);
}

.wg-chip[class*="wg-chip--"]::before {
    content: '';
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--wg-type);
}

.wg-chip--rosu { --wg-type: var(--wg-rosu); }
.wg-chip--alb { --wg-type: var(--wg-alb); }
.wg-chip--rose { --wg-type: var(--wg-rose); }
.wg-chip--spumant { --wg-type: var(--wg-spumant); }

.btn-check:checked + .wg-chip {
    background: var(--wg-wine-deep);
    border-color: var(--wg-wine-deep);
    color: #fff;
}

.btn-check:focus-visible + .wg-chip {
    outline: 3px solid var(--wg-gold);
    outline-offset: 2px;
}

.wg-picker-status {
    margin: 1.4rem 0 .9rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--wg-line);
    font-size: .9rem;
    color: var(--wg-muted);
}

.wg-picker-status:empty {
    margin: 0;
    padding: .6rem 0 0;
    border: 0;
}

/* top lists: the rank as a big serif numeral */
.wg-rank {
    flex: none;
    width: 2.2rem;
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 2.6rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    color: var(--wg-gold);
    text-align: center;
}

@media (max-width: 767.98px) {
    .wg-rank {
        display: inline-block;
        margin-right: .75rem;
        vertical-align: top;
    }
}

/* wine page: the facts as a small label-and-value grid */
.wg-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 2rem;
    background: var(--wg-line);
    border: 1px solid var(--wg-line);
    border-radius: var(--wg-radius);
    overflow: hidden;
    box-shadow: var(--wg-shadow-sm);
}

.wg-specs > div {
    padding: .9rem 1.1rem;
    background: var(--wg-surface);
}

.wg-specs > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.wg-specs dt {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wg-gold);
    margin-bottom: .15rem;
}

.wg-specs dd {
    margin: 0;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .wg-specs {
        grid-template-columns: 1fr;
    }
}

/* cards that are one big link */
.wg-card:has(.stretched-link):hover .stretched-link {
    color: var(--wg-wine);
}

.wg-card:has(.stretched-link) .card-body {
    padding: 1.25rem 1.35rem;
}

/* picker results: compact, bottle on the left */
.wg-result {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
}

.wg-result .wg-wine-img-link {
    border-bottom: 0;
    border-right: 1px solid var(--wg-line);
}

.wg-result .wg-wine-img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 150px;
}

.wg-result-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .9rem 1rem;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .wg-type-tile {
        min-height: 150px;
        padding: .9rem 1rem;
    }

    .wg-type-tile strong {
        font-size: 1.2rem;
    }

    .wg-type-glass {
        width: 42px;
        height: 60px;
        top: 10px;
        right: 8px;
    }
}

.btn-emag {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .wg-week .wg-wine-photo {
        max-width: 190px;
    }
}

/* ─── Masthead: the dark title band on every inner page ─────────────── */

.wg-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(62px + 1.5rem) 0 4.4rem;
    color: rgba(255, 255, 255, .86);
    background:
        radial-gradient(circle at 96% 8%, transparent 88px, rgba(220, 180, 105, .08) 90px, rgba(220, 180, 105, .08) 92px, transparent 95px),
        radial-gradient(ellipse at 84% 50%, rgba(184, 137, 59, .26) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(165, 42, 76, .5) 0%, transparent 55%),
        linear-gradient(125deg, var(--wg-wine-night) 0%, var(--wg-wine-deep) 50%, #7c2040 100%);
}

/* the band ends on the same rolling hills that open the footer */
.wg-masthead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 38px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 38' preserveAspectRatio='none'%3E%3Cpath d='M0 38V20C160 2 320 0 480 14s300 20 450 6 180-16 270-8v26z' fill='%23faf5ec' opacity='.28'/%3E%3Cpath d='M0 38V30c200-18 400-18 600-6s400 10 600-8v22z' fill='%23faf5ec'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.wg-masthead > .container {
    position: relative;
}

main > .wg-masthead + .container {
    padding-top: 2.5rem;
}

.wg-masthead-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.wg-masthead-copy > :last-child {
    margin-bottom: 0;
}

.wg-masthead h1 {
    color: #fff;
    font-size: clamp(2rem, 1.35rem + 2.5vw, 3.1rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 0;
}

.wg-masthead h1::after {
    content: '';
    display: block;
    width: 120px;
    height: 9px;
    margin: 1.1rem 0 1.2rem;
    background:
        radial-gradient(circle at 4.5px 4.5px, var(--wg-gold-bright) 4px, transparent 4.5px),
        linear-gradient(90deg, var(--wg-gold-bright) 0%, rgba(220, 180, 105, 0) 100%) 14px 4px / 106px 1.5px no-repeat;
}

.wg-masthead-copy > h1:last-child::after {
    margin-bottom: 0;
}

.wg-masthead .lead {
    color: rgba(255, 255, 255, .88);
}

.wg-masthead p {
    color: rgba(255, 255, 255, .76);
}

.wg-masthead .text-muted, .wg-masthead .small.text-muted {
    color: rgba(255, 255, 255, .6) !important;
}

.wg-masthead a:not(.btn) {
    color: var(--wg-gold-bright);
    text-decoration-color: rgba(220, 180, 105, .45);
}

.wg-masthead a:not(.btn):hover {
    color: #fff;
}

.wg-masthead .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4);
    margin-bottom: 1.5rem;
}

.wg-masthead .breadcrumb a {
    color: rgba(255, 255, 255, .7);
}

.wg-masthead .breadcrumb a:hover {
    color: #fff;
}

.wg-masthead .breadcrumb-item.active {
    color: rgba(255, 255, 255, .95);
}

.wg-masthead .wg-price {
    color: var(--wg-gold-bright);
}

.wg-masthead-art {
    position: absolute;
    z-index: 0;
    right: 6%;
    top: 50%;
    height: 215px;
    width: auto;
    overflow: visible;
    transform: translateY(-44%);
    pointer-events: none;
}

.wg-art-wine { fill: #a12a4c; }
.wg-art-tint { fill: rgba(220, 180, 105, .12); stroke: none; }
.wg-art-leaf { fill: #5d7a3a; }

@media (min-width: 992px) {
    .wg-masthead > .container {
        min-height: 150px;
    }
}

@media (max-width: 991.98px) {
    .wg-masthead-art {
        display: none;
    }

    .wg-masthead {
        padding-bottom: 3.6rem;
    }
}

/* product page: bottle photo and facts share the band */
.wg-masthead--product .wg-masthead-copy {
    max-width: none;
}

.wg-masthead--product .wg-wine-photo {
    border: 0;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .38);
}

.wg-masthead--product h1 {
    font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
}

/* the "Pe scurt" box and the article photo step up onto the band */
@supports selector(:has(*)) {
    main:has(.wg-masthead + .container > article > .wg-answer-box:first-child) .wg-masthead,
    main:has(.wg-masthead + .container > article > .wg-article-hero:first-child) .wg-masthead {
        padding-bottom: 7.5rem;
    }

    .wg-masthead + .container > article > .wg-answer-box:first-child,
    .wg-masthead + .container > article > .wg-article-hero:first-child {
        position: relative;
        z-index: 2;
        margin-top: -6.5rem !important;
    }

    .wg-masthead + .container > article > .wg-answer-box:first-child {
        box-shadow: var(--wg-shadow);
    }
}

/* ─── Long-form reading ─────────────────────────────────────────────── */

.wg-prose h2 {
    font-size: clamp(1.45rem, 1.2rem + .9vw, 1.8rem);
}

.wg-prose h2[id], .wg-prose h3[id] {
    scroll-margin-top: 90px;
}

.wg-prose ul li::marker {
    color: var(--wg-gold);
}

.wg-prose ol li::marker {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-weight: 600;
    color: var(--wg-wine);
}

.wg-prose blockquote {
    margin: 1.5rem 0;
    padding: .2rem 0 .2rem 1.4rem;
    border-left: 3px solid var(--wg-gold);
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--wg-wine-deep);
}

/* contents rail beside long articles (built by js/site.js) */
.wg-toc-rail {
    display: none;
}

@media (min-width: 1200px) {
    article.wg-has-toc {
        position: relative;
    }

    .wg-toc-rail {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(100% + 3.5rem);
        width: 270px;
    }

    .wg-toc {
        position: sticky;
        top: 92px;
        padding: 1.2rem 1.3rem;
        border: 1px solid var(--wg-line);
        border-radius: var(--wg-radius);
        background: var(--wg-surface);
        box-shadow: var(--wg-shadow-sm);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .wg-toc-title {
        display: block;
        margin-bottom: .7rem;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--wg-gold);
    }

    .wg-toc ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .wg-toc li {
        margin: 0 !important;
    }

    .wg-toc a {
        display: block;
        padding: .32rem 0 .32rem .8rem;
        border-left: 2px solid var(--wg-line);
        font-size: .88rem;
        line-height: 1.35;
        color: var(--wg-muted);
        text-decoration: none;
        transition: color .15s ease, border-color .15s ease;
    }

    .wg-toc a:hover {
        color: var(--wg-wine);
    }

    .wg-toc a.is-active {
        border-left-color: var(--wg-wine);
        color: var(--wg-wine-deep);
        font-weight: 600;
    }
}

/* ─── Glossary and calculator ───────────────────────────────────────── */

.wg-az {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.wg-az a {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--wg-line);
    border-radius: 50%;
    background: var(--wg-surface);
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--wg-wine-deep);
    text-decoration: none;
    box-shadow: var(--wg-shadow-sm);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.wg-az a:hover, .wg-az a:focus-visible {
    background: var(--wg-wine-deep);
    color: #fff;
    transform: translateY(-2px);
}

.wg-term {
    scroll-margin-top: 90px;
}

.wg-term:target > .wg-card {
    border-color: var(--wg-gold);
    box-shadow: 0 0 0 3px var(--wg-gold-soft), var(--wg-shadow);
}

.wg-calc-result {
    position: relative;
    overflow: hidden;
    padding: 1.8rem 2rem;
    border-radius: var(--wg-radius);
    color: rgba(255, 255, 255, .88);
    background:
        radial-gradient(circle at 100% 0%, transparent 108px, rgba(220, 180, 105, .14) 110px, rgba(220, 180, 105, .14) 113px, transparent 116px),
        linear-gradient(140deg, var(--wg-wine-night) 0%, var(--wg-wine-deep) 60%, #6d1c36 100%);
    box-shadow: var(--wg-shadow);
}

.wg-calc-result h2 {
    font-family: var(--wg-body);
    font-size-adjust: none;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wg-gold-bright);
}

.wg-calc-number {
    font-family: var(--wg-display);
    font-size-adjust: var(--wg-display-adjust);
    font-size: clamp(2.6rem, 2rem + 2.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
}

.wg-calc-number span {
    color: var(--wg-gold-bright);
}

.wg-calc-result .text-muted {
    color: rgba(255, 255, 255, .65) !important;
}

.wg-calc-result hr {
    border-color: rgba(255, 255, 255, .25);
    opacity: 1;
}

.wg-calc-result strong {
    color: #fff;
}

.wg-calc-result li::marker {
    color: var(--wg-gold-bright);
}

/* tables: site is light-only, so pin Bootstrap's table colours to the palette */
.table {
    --bs-table-bg: var(--wg-surface);
    --bs-table-color: var(--wg-ink);
    --bs-table-border-color: var(--wg-line);
    --bs-table-striped-bg: var(--wg-paper);
    border-color: var(--wg-line);
}

.wg-prose .table thead th, .table.bg-white thead th {
    background: var(--wg-wine-deep);
    color: #fff;
    border-color: var(--wg-wine-deep);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wg-prose .table tbody th, .table.bg-white tbody th {
    background: var(--wg-wine-soft);
    color: var(--wg-wine-deep);
}

.table-responsive {
    border-radius: 12px;
    box-shadow: var(--wg-shadow-sm);
}

.table-responsive > .table {
    margin-bottom: 0;
}

.wg-pick-img {
    background: transparent;
    mix-blend-mode: multiply;
}

.wg-media {
    background: radial-gradient(ellipse at 50% 38%, #fffdf9 0%, #f6eee1 100%);
    border-right: 1px solid var(--wg-line);
}

@media (max-width: 575.98px) {
    .wg-media {
        border-right: 0;
        border-bottom: 1px solid var(--wg-line);
    }
}

/* ─── Error page ────────────────────────────────────────────────────── */

.wg-error {
    max-width: 560px;
    padding: 3rem 0;
}

.wg-error-art {
    width: 170px;
    height: auto;
    margin-bottom: .5rem;
}

.wg-error-code {
    font-size: clamp(4.5rem, 3rem + 8vw, 7.5rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    color: var(--wg-wine);
}

/* the large buy button may wrap on very narrow phones */
.btn-emag.btn-lg {
    white-space: normal;
}

/* ─── Wine card ─────────────────────────────────────────────────────── */

/* each wine colour also has a pale tint, used for the arch behind the bottle */
.wg-card--rosu, .wg-arch--rosu { --wg-type-tint: #ecc2cc; }
.wg-card--alb, .wg-arch--alb { --wg-type-tint: #f4e6ae; }
.wg-card--rose, .wg-arch--rose { --wg-type-tint: #fbd3dc; }
.wg-card--spumant, .wg-arch--spumant { --wg-type-tint: #eedbb4; }

/* the bottle stands in an arched niche tinted in its wine colour */
.wg-wine-img-link, .wg-wine-photo {
    background: var(--wg-surface);
}

.wg-wine-img-link::before, .wg-wine-photo::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 68%;
    height: 86%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--wg-type-tint, var(--wg-gold-soft)) 0%, color-mix(in srgb, var(--wg-type-tint, var(--wg-gold-soft)) 45%, #fffdf9) 100%);
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    transition: transform .35s ease;
}

.wg-wine-img, .wg-wine-photo img {
    position: relative;
}

.wg-card:hover .wg-wine-img-link::before {
    transform: translateX(-50%) scale(1.06);
}

.wg-card:hover .wg-wine-img {
    transform: translateY(-6px) scale(1.05) rotate(-2deg);
}

.wg-card.wg-wine-card {
    border-top: 1px solid var(--wg-line);
}

.wg-card.wg-wine-card:hover {
    border-color: var(--wg-type, var(--wg-gold));
}

.wg-wine-card .wg-wine-img-link {
    border-bottom: 0;
}

.wg-wine-card-type {
    position: absolute;
    top: .7rem;
    left: .7rem;
    z-index: 1;
    background: rgba(255, 253, 249, .92) !important;
    box-shadow: 0 1px 4px rgba(74, 16, 36, .12);
}

.wg-wine-card-tag {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 1;
    padding: .3em .75em;
    border-radius: 999px;
    background: var(--wg-wine-deep);
    color: var(--wg-gold-bright);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wg-wine-card .card-body {
    padding: 1rem 1.1rem 1.1rem;
    border-top: 1px solid var(--wg-line);
}

.wg-wine-card-meta {
    margin-bottom: .35rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wg-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wg-wine-card .card-title {
    margin-bottom: .45rem;
    font-size: 1.18rem;
}

.wg-wine-card .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    flex-grow: 0 !important;
    margin-bottom: .8rem;
    color: var(--wg-muted);
}

.wg-wine-card-pairs {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    font-size: .78rem;
    color: var(--wg-muted);
}

.wg-wine-card-pairs > span:first-child {
    margin-right: .15rem;
}

.wg-pair {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--wg-gold-soft);
    font-size: 1rem;
    cursor: default;
    transition: transform .15s ease;
}

.wg-pair:hover {
    transform: scale(1.18);
}

.wg-wine-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px dashed var(--wg-line);
}

.wg-wine-card .card-text + .wg-wine-card-foot {
    margin-top: auto;
}

.wg-wine-card-foot .wg-price {
    font-size: 1.45rem;
    line-height: 1;
}

.wg-price small {
    font-family: var(--wg-body);
    font-size-adjust: none;
    font-size: .55em;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--wg-muted);
}

@media (prefers-reduced-motion: reduce) {
    .wg-card:hover .wg-wine-img {
        transform: none;
    }

    .wg-card:hover .wg-wine-img-link::before {
        transform: translateX(-50%);
    }
}


/* Cormorant is scaled up by font-size-adjust, so headings need more leading than the
   font-size suggests (Romanian diacritics above capitals were touching the line above) */
h1, h2, h3, .h1, .h2, .h3 {
    line-height: 1.28;
}

.wg-hero h1, .wg-masthead h1 {
    line-height: 1.2;
}

.wg-photo-tile-body strong, .wg-type-tile strong {
    line-height: 1.25;
}
