/* Public shell: cart bar, cookie bar, promo, header, footer (cacheable; dynamic :root vars stay in base.html). */

/* Flush with viewport top — no default browser or Bootstrap gap above the sticky header */
html {
    margin: 0;
    padding: 0;
}

/* Cookie consent bar */
.cookie-consent-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.95);
    color: #fff;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-link {
    color: #9982f2;
    text-decoration: underline;
    margin-left: 5px;
}

.cookie-link:hover {
    color: #b3a5f7;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Marketing session popup */
.marketing-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.marketing-popup-overlay.show {
    display: flex;
}

.marketing-popup-box {
    position: relative;
    width: min(720px, 100%);
    border-radius: 1.25rem;
    padding: 3.0rem 2.25rem 2rem;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    align-items: center;
}

.marketing-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.65rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.8;
    font-weight: 800;
}

.marketing-popup-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    margin: 0 auto;
}

.marketing-popup-title {
    margin: 0;
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.marketing-popup-message {
    margin: 0;
    opacity: 0.95;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 560px;
}

.marketing-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    width: 100%;
    max-width: 420px;
    margin-top: 0.35rem;
}

/* Floating cart bar + drawer */
.bundle-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; background: var(--cart-chrome-bg, #3d3270); color: var(--cart-chrome-fg, #fff); padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,.18); transform: translateY(100%); transition: transform .3s ease; }
.bundle-cart-bar.visible { transform: translateY(0); }
.bundle-cart-bar .cart-bar-info { display: flex; flex-direction: column; gap: 0.1rem; }
.bundle-cart-bar .cart-bar-qty { font-size: 0.78rem; opacity: .88; }
.bundle-cart-bar .cart-bar-total { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }
.bundle-cart-bar .cart-bar-actions { display: flex; gap: 0.5rem; align-items: center; }
.bundle-cart-bar .cart-bar-view { color: var(--cart-chrome-fg, #fff); padding: 0.45rem 0.9rem; border-radius: 0.4rem; font-size: 0.875rem; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.42); }
.bundle-cart-bar .cart-bar-view:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.62); }
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .bundle-cart-bar .cart-bar-view { background: color-mix(in srgb, var(--cart-chrome-fg, #fff) 16%, transparent); border-color: color-mix(in srgb, var(--cart-chrome-fg, #fff) 42%, transparent); }
    .bundle-cart-bar .cart-bar-view:hover { background: color-mix(in srgb, var(--cart-chrome-fg, #fff) 26%, transparent); border-color: color-mix(in srgb, var(--cart-chrome-fg, #fff) 58%, transparent); }
}
.bundle-cart-bar .cart-bar-checkout { background: #fff; color: var(--cart-chrome-bg, #3d3270); border: none; padding: 0.55rem 1.2rem; border-radius: 0.4rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: filter .15s; }
.bundle-cart-bar .cart-bar-checkout:hover { filter: brightness(0.97); }
.bundle-cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: #fff; z-index: 1060; box-shadow: -6px 0 32px rgba(0,0,0,.16); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.bundle-cart-drawer.open { transform: translateX(0); }
.bundle-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1055; opacity: 0; pointer-events: none; transition: opacity .3s; }
.bundle-cart-overlay.open { opacity: 1; pointer-events: all; }
.bundle-cart-drawer-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cart-chrome-bg, #3d3270);
    color: var(--cart-chrome-fg, #fff);
}
.bundle-cart-drawer-header h5 { margin: 0; font-size: 1.05rem; font-weight: 700; color: inherit; }
.bundle-cart-drawer-close { background: none; border: none; font-size: 1.35rem; line-height: 1; color: inherit; opacity: 0.82; cursor: pointer; padding: 0.15rem; }
.bundle-cart-drawer-close:hover { opacity: 1; }
.bundle-cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.bundle-cart-drawer-body .bundle-cart-item-row { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 0.5rem; font-size: 0.875rem; }
.bundle-cart-drawer-body .bundle-cart-item-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.08); }
.bundle-cart-drawer-body .cart-item-noimg { width: 44px; height: 44px; border-radius: 10px; background: rgba(0,0,0,.05); flex: 0 0 auto; border: 1px solid rgba(0,0,0,.08); }
.bundle-cart-drawer-body .bundle-cart-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bundle-cart-drawer-body .bundle-cart-item-subtotal { flex-shrink: 0; font-weight: 600; }
.bundle-cart-drawer-body .bundle-cart-tier-info { margin-bottom: 0.75rem; font-size: 0.9rem; }
.bundle-cart-drawer-footer { padding: 1rem 1.25rem; border-top: 1px solid #eee; }
.bundle-cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; margin-bottom: 0.75rem; }
.bundle-cart-total-row .cart-total-label { color: #6c757d; }
.bundle-cart-total-row .cart-total-amount { font-size: 1.5rem; font-weight: 800; color: #1a1a1a; }
.bundle-cart-checkout-btn { width: 100%; background: var(--cart-chrome-bg, #3d3270); color: var(--cart-chrome-fg, #fff); border: none; border-radius: 0.5rem; padding: 0.9rem; font-size: 1rem; font-weight: 700; cursor: pointer; transition: filter .15s; }
.bundle-cart-checkout-btn:hover { filter: brightness(1.06); }
.bundle-cart-drawer-body img.bundle-cart-thumb {
    width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,.08); background: #f1f3f5;
}

/* Header / promo */
.site-public-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    align-self: flex-start;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.site-public-header > header {
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
}
.site-navbar.site-navbar--scrolled.navbar-dark {
    background-color: rgba(8, 8, 10, 0.94) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-navbar.site-navbar--scrolled.navbar-light {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.site-promo-banner {
    position: relative;
    width: 100%;
    height: var(--site-promo-banner-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-weight: 500;
    margin: 0;
    flex-shrink: 0;
    border: 0;
    border-bottom: none;
    box-shadow: none;
    line-height: 1.2;
}
.site-promo-banner__link { color: inherit; text-decoration: none; display: flex; align-items: center; width: 100%; height: 100%; min-width: 100%; }
.site-promo-banner__scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: site-promo-banner-scroll 50s linear infinite;
}
.site-promo-banner__segment {
    display: inline-flex;
    flex-shrink: 0;
}
.site-promo-banner__item {
    padding: 0 2rem;
}
@keyframes site-promo-banner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
:root {
    --site-promo-banner-height: 48px;
    --site-navbar-row-height: 58px;
    --site-header-spacer: var(--site-navbar-row-height);
}
.site-navbar {
    position: relative;
    width: 100%;
    z-index: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent !important;
    box-shadow: none !important;
    min-height: 58px;
    margin: 0;
    flex-shrink: 0;
    border: 0 !important;
    border-top: 0 !important;
    /* Bootstrap 5 adds vertical padding here; it reads as empty space above/below the row */
    --bs-navbar-padding-y: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.site-public-header:has(.site-promo-banner) .site-navbar {
    margin-top: -1px;
}
.site-navbar.navbar-light .site-navbar__brand {
    color: rgba(0, 0, 0, 0.9) !important;
}
.site-navbar.navbar-dark .site-navbar__brand {
    color: rgba(255, 255, 255, 0.95) !important;
}
@media (min-width: 992px) {
    .site-navbar.navbar-light .navbar-nav .nav-link {
        color: rgba(0, 0, 0, 0.88);
    }
    .site-navbar.navbar-light .navbar-nav .nav-link:hover,
    .site-navbar.navbar-light .navbar-nav .nav-link:focus {
        color: rgba(0, 0, 0, 1);
    }
    .site-navbar.navbar-dark .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.88);
    }
    .site-navbar.navbar-dark .navbar-nav .nav-link:hover,
    .site-navbar.navbar-dark .navbar-nav .nav-link:focus {
        color: #fff;
    }
}
.site-navbar .container {
    position: relative;
}
.site-navbar__brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    padding: 0 clamp(2.75rem, 8vw, 4rem);
    font-size: clamp(1.35rem, 3.5vw, 2rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    max-width: min(78vw, 22rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}
.site-navbar__toggler {
    position: relative;
    z-index: 2;
}
.site-nav-mobile .nav-link {
    padding: 0.65rem 0.75rem;
    border-radius: 0.35rem;
}
.site-navbar.navbar-light .site-nav-mobile .nav-link {
    color: rgba(0, 0, 0, 0.88);
}
.site-navbar.navbar-dark .site-nav-mobile .nav-link {
    color: rgba(255, 255, 255, 0.92);
}
.site-navbar.navbar-light .site-nav-mobile .nav-link.text-muted {
    color: #6c757d !important;
}
.site-navbar.navbar-dark .site-nav-mobile .nav-link.text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}
.site-nav-mobile .cart-nav-badge {
    position: static;
    display: none;
    margin-left: 0.35rem;
    vertical-align: middle;
}
@media (max-width: 991.98px) {
    .site-navbar #navbarNav {
        background: #ffffff;
        border-radius: 0 0 0.75rem 0.75rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-top: none;
        margin-top: 0.35rem;
        padding-top: 0.25rem;
        padding-bottom: 0.5rem;
    }
    .site-navbar #navbarNav .site-nav-mobile .nav-link {
        color: #212529 !important;
    }
    .site-navbar #navbarNav .site-nav-mobile .nav-link.text-muted {
        color: #6c757d !important;
    }
    .site-navbar #navbarNav .site-nav-mobile .nav-link.text-danger {
        color: #dc3545 !important;
    }
    .site-navbar #navbarNav .site-nav-mobile .nav-link:hover,
    .site-navbar #navbarNav .site-nav-mobile .nav-link:focus {
        color: #000 !important;
        background-color: rgba(0, 0, 0, 0.05);
    }
    .site-navbar #navbarNav hr.opacity-25 {
        border-color: rgba(0, 0, 0, 0.12) !important;
        opacity: 1 !important;
    }
}
.site-page-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* Avoid a hairline gap above the sticky public header */
.site-page-column > .site-public-header {
    margin-top: 0;
}
.site-footer .site-footer__link {
    color: inherit;
    opacity: 0.78;
    text-decoration: none;
}
.site-footer .site-footer__link:hover,
.site-footer .site-footer__link:focus {
    opacity: 1;
}
.site-footer hr {
    border-color: currentColor;
    opacity: 0.22;
}
