/* ==========================================================================
   Promotions (class/PromotionView.php, js/promotions.js) – e.g. Black Friday
   Black + Tails Up lime, big condensed type, countdown boxes.
   ========================================================================== */
:root {
    --promo-black: #0a0a0a;
    --promo-lime: var(--lime, #d4f300);
    --promo-hot: #ff3b30;
}

/* ── Banner on every page ─────────────────────────────────────────────── */
.promo-deal-banner {
    position: relative;
    background: var(--promo-black);
    color: #fff;
    border-bottom: 3px solid var(--promo-lime);
    overflow: hidden;
    z-index: 5;
}
.promo-deal-banner::before {   /* subtle moving diagonal stripes */
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, rgba(212, 243, 0, .07) 0 14px, transparent 14px 28px);
    background-size: 40px 40px;
    animation: promo-stripes 2.5s linear infinite;
    pointer-events: none;
}
.promo-deal-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 9px 16px;
    font-family: 'Barlow', sans-serif;
}
.promo-deal-flag {
    font-family: 'Bebas Neue', 'Barlow', sans-serif;
    font-size: 1.45rem;
    letter-spacing: .06em;
    line-height: 1;
    padding: 6px 14px 4px;
    background: var(--promo-lime);
    color: #000;
    transform: skewX(-12deg);
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.promo-deal-flag::after {   /* shine sweeping across the flag */
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
    animation: promo-shine 3s ease-in-out infinite;
}
.promo-deal-text {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.promo-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000 !important;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .04em;
    padding: 7px 14px;
    border-radius: 999px;
    transition: transform .15s ease, background .15s ease;
    white-space: nowrap;
}
.promo-deal-cta:hover { background: var(--promo-lime); transform: translateY(-1px); }

/* ── Countdown ───────────────────────────────────────────────────────── */
.promo-countdown { display: inline-flex; align-items: center; gap: 6px; }
.promo-countdown-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-right: 2px; }
.promo-cd-part { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.promo-cd-part b { font-family: 'Bebas Neue', 'Barlow', sans-serif; font-weight: 400; font-variant-numeric: tabular-nums; }
.promo-cd-part small { font-size: .55rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-top: 2px; }

.promo-countdown-inline .promo-cd-part b {
    font-size: 1.25rem;
    min-width: 34px;
    text-align: center;
    padding: 4px 4px 2px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(212, 243, 0, .45);
    border-radius: 4px;
    color: var(--promo-lime);
}
.promo-countdown-inline .promo-cd-part small { display: none; }
.promo-countdown-inline.is-last-day .promo-cd-part b { color: #fff; border-color: var(--promo-hot); background: rgba(255, 59, 48, .25); }

.promo-countdown-big { gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.promo-countdown-big .promo-countdown-label { width: 100%; font-size: .8rem; color: var(--promo-lime); opacity: 1; }
.promo-countdown-big .promo-cd-part {
    min-width: 72px;
    padding: 10px 8px 8px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    box-shadow: 0 4px 0 var(--promo-lime);
}
.promo-countdown-big .promo-cd-part b { font-size: 2.6rem; }
.promo-countdown-big .promo-cd-part small { font-size: .65rem; opacity: .8; font-weight: 700; }
.promo-countdown-big.is-last-day .promo-cd-part { box-shadow: 0 4px 0 var(--promo-hot); }

/* ── Deals section at the top of the shop ────────────────────────────── */
.promo-shop {
    background: var(--promo-black);
    color: #fff;
    padding: 34px 0 40px;
    position: relative;
    overflow: hidden;
}
.promo-shop::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 85% 0%, rgba(212, 243, 0, .18), transparent 60%),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 12px);
    pointer-events: none;
}
.promo-shop > .container { position: relative; }

.promo-hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin-bottom: 30px; }
.promo-hero.has-art { grid-template-columns: minmax(280px, 5fr) 7fr; }
.promo-hero-flag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--promo-hot); color: #fff;
    font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 3px;
    animation: promo-pulse 1.6s ease-in-out infinite;
}
.promo-hero-title {
    font-family: 'Bebas Neue', 'Barlow', sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    line-height: .9;
    letter-spacing: .02em;
    margin: 14px 0 6px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 rgba(212, 243, 0, .9);
}
.promo-hero-headline {
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    font-weight: 700;
    color: var(--promo-lime);
    text-transform: uppercase;
    margin: 0 0 14px;
    letter-spacing: .02em;
}
.promo-hero-dates { font-size: .85rem; color: #bbb; margin: 8px 0 0; }

.promo-hero-art { border-radius: 10px; overflow: hidden; border: 3px solid var(--promo-lime); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); background: #111; }
.promo-carousel .tu-carousel-slide img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.promo-carousel .tu-carousel-nav { background: rgba(0, 0, 0, .6); color: #fff; }

.promo-deals-title {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    font-family: 'Bebas Neue', 'Barlow', sans-serif;
    font-size: 2.1rem; letter-spacing: .04em; color: #fff;
    margin: 10px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(212, 243, 0, .35);
}
.promo-deals-title i { color: var(--promo-lime); font-size: 1.5rem; }
.promo-deals-title span { font-family: 'Barlow', sans-serif; font-size: .95rem; font-weight: 700; color: var(--promo-lime); text-transform: uppercase; letter-spacing: .05em; }

/* Bundle cards */
.promo-bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 28px; }
.promo-bundle-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff; color: #111;
    border-radius: 10px;
    padding: 16px;
    border: 3px solid var(--promo-lime);
    transition: transform .15s ease, box-shadow .15s ease;
}
.promo-bundle-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(212, 243, 0, .25); }
.promo-bundle-card.is-sold-out { opacity: .6; border-color: #666; }
.promo-save-badge {
    position: absolute; top: -12px; right: 12px;
    background: var(--promo-hot); color: #fff;
    font-weight: 800; font-size: .85rem; text-transform: uppercase;
    padding: 5px 10px; border-radius: 4px;
    transform: rotate(3deg);
    box-shadow: 0 3px 0 #000;
}
.promo-bundle-pics { display: flex; gap: 6px; margin-bottom: 12px; }
.promo-bundle-pic {
    position: relative; flex: 1 1 0; aspect-ratio: 1; min-width: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f3f3f3; border-radius: 6px; overflow: hidden; color: #bbb; font-size: 1.6rem;
}
.promo-bundle-pic img { width: 100%; height: 100%; object-fit: cover; }
.promo-bundle-qty { position: absolute; bottom: 4px; right: 4px; background: #000; color: var(--promo-lime); font-weight: 700; font-size: .75rem; padding: 1px 6px; border-radius: 3px; }
.promo-bundle-name { font-family: 'Bebas Neue', 'Barlow', sans-serif; font-size: 1.7rem; letter-spacing: .02em; line-height: 1; margin: 0 0 6px; }
.promo-bundle-desc { font-size: .9rem; color: #555; margin: 0 0 8px; }
.promo-bundle-items { list-style: none; padding: 0; margin: 0 0 12px; font-size: .88rem; }
.promo-bundle-items li { padding: 3px 0; border-bottom: 1px dashed #e3e3e3; }
.promo-bundle-items li span { font-weight: 700; display: inline-block; min-width: 26px; }
.promo-bundle-items a { color: #111; text-decoration: none; }
.promo-bundle-items a:hover { text-decoration: underline; }
.promo-bundle-price { margin-top: auto; display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.promo-bundle-price s { color: #888; font-size: 1rem; }
.promo-bundle-price strong { font-family: 'Bebas Neue', 'Barlow', sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; color: #000; }
.promo-bundle-add {
    width: 100%; border: 0; border-radius: 6px;
    background: #000; color: var(--promo-lime);
    font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: 12px 14px; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.promo-bundle-add:hover:not(:disabled) { background: var(--promo-lime); color: #000; }
.promo-bundle-add:disabled { opacity: .6; cursor: not-allowed; }
.promo-bundle-add.is-added { background: var(--promo-lime); color: #000; }

/* Products on special */
.promo-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.promo-product-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; color: #111 !important; text-decoration: none !important;
    border-radius: 8px; overflow: hidden;
    border: 2px solid transparent;
    transition: transform .15s ease, border-color .15s ease;
}
.promo-product-card:hover { transform: translateY(-3px); border-color: var(--promo-lime); }
.promo-product-card.is-sold-out { opacity: .6; }
.promo-pct-badge {
    position: absolute; top: 8px; left: 8px; z-index: 1;
    background: var(--promo-hot); color: #fff;
    font-family: 'Bebas Neue', 'Barlow', sans-serif; font-size: 1.4rem; line-height: 1;
    padding: 5px 8px 3px; border-radius: 4px;
}
.promo-product-img { aspect-ratio: 1; background: #f3f3f3; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 2rem; }
.promo-product-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-product-name { padding: 10px 12px 2px; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.promo-product-price { padding: 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.promo-product-price s { color: #888; font-size: .85rem; }
.promo-product-price strong { font-size: 1.1rem; color: #000; }
.promo-product-cta { margin-top: auto; padding: 10px 12px 12px; font-size: .8rem; font-weight: 800; text-transform: uppercase; color: #000; letter-spacing: .04em; }
.promo-product-card:hover .promo-product-cta { color: #5a6b00; }

/* ── Basket: bundles ─────────────────────────────────────────────────── */
.cart-bundle-head td { background: #0a0a0a; color: #fff; border-top: 3px solid var(--promo-lime); vertical-align: middle; }
.cart-bundle-head .qty-input { color: #000; }
.cart-bundle-head .btn-link-small.danger { color: #ff8a80; }
.cart-bundle-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--promo-lime); color: #000; border-radius: 6px; font-size: 1.2rem; }
.cart-bundle-tag { display: inline-block; background: var(--promo-lime); color: #000; font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }
.cart-bundle-saving { color: var(--promo-lime); font-weight: 700; }
.cart-bundle-item td { background: #fafbf3; font-size: .9rem; }

/* ── Admin ───────────────────────────────────────────────────────────── */
.promo-admin-thumb { display: flex; width: 80px; height: 50px; align-items: center; justify-content: center; background: #111; color: var(--promo-lime); border-radius: 4px; overflow: hidden; }
.promo-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-admin-images { display: flex; flex-wrap: wrap; gap: 12px; }
.promo-admin-image { width: 220px; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; background: #fff; }
.promo-admin-image img { display: block; width: 100%; height: 124px; object-fit: cover; background: #111; }
.promo-admin-image-tools { display: flex; gap: 6px; justify-content: flex-end; padding: 6px; }
.promo-bundle-edit { border: 1px solid #ddd; border-left: 4px solid var(--promo-lime); border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; background: #fcfcf7; }
.promo-bundle-preview { font-size: .9rem; }
.promo-preview-save { color: #2e7d32; font-weight: 700; }
.promo-products-table select, .promo-bundle-edit select { width: 100%; }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes promo-stripes { to { background-position: 40px 0; } }
@keyframes promo-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes promo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); } 50% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } }
@media (prefers-reduced-motion: reduce) {
    .promo-deal-banner::before, .promo-deal-flag::after, .promo-hero-flag { animation: none; }
}

/* ── Small screens ───────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .promo-hero.has-art { grid-template-columns: 1fr; }
    .promo-hero-art { order: -1; }
}
@media (max-width: 576px) {
    .promo-deal-inner { gap: 8px 12px; padding: 8px 10px; }
    .promo-deal-flag { font-size: 1.2rem; }
    .promo-deal-text { font-size: .85rem; text-align: center; width: 100%; order: 3; }
    .promo-countdown-inline .promo-countdown-label { display: none; }
    .promo-countdown-inline .promo-cd-part b { font-size: 1.05rem; min-width: 28px; }
    .promo-deal-cta { padding: 6px 11px; font-size: .75rem; }
    .promo-countdown-big .promo-cd-part { min-width: 60px; }
    .promo-countdown-big .promo-cd-part b { font-size: 2rem; }
    .promo-products { grid-template-columns: repeat(2, 1fr); }
}

/* ── Compact deals section (keeps the shop's products close to the top) ─────────── */
.promo-shop { padding: 16px 0 18px; }
.promo-hero { gap: 18px; margin-bottom: 14px; }
.promo-hero.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.promo-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-hero-flag { font-size: .68rem; padding: 4px 8px; }
.promo-hero-dates { margin: 0; font-size: .78rem; }
.promo-hero-title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 6px 0 2px; text-shadow: 3px 3px 0 rgba(212, 243, 0, .9); }
.promo-hero-headline { font-size: 1.05rem; margin: 0 0 8px; }
.promo-countdown-big { gap: 6px; margin: 0; }
.promo-countdown-big .promo-countdown-label { width: auto; margin-right: 4px; }
.promo-countdown-big .promo-cd-part { min-width: 52px; padding: 6px 6px 5px; box-shadow: 0 3px 0 var(--promo-lime); }
.promo-countdown-big .promo-cd-part b { font-size: 1.7rem; }
.promo-countdown-big .promo-cd-part small { font-size: .55rem; }
.promo-hero-art { border-width: 2px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.promo-carousel .tu-carousel-slide img { height: 190px; max-height: none; object-fit: cover; }

.promo-deals-title { font-size: 1.45rem; margin: 4px 0 10px; padding-bottom: 5px; }
.promo-deals-title i { font-size: 1.1rem; }
.promo-deals-title span { font-size: .8rem; }

/* One swipeable row each, instead of a tall grid */
.promo-bundles, .promo-products {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 12px 2px 10px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--promo-lime) rgba(255, 255, 255, .1);
}
.promo-bundles { grid-auto-columns: 250px; gap: 14px; }
.promo-products { grid-auto-columns: 165px; gap: 12px; }
.promo-bundle-card, .promo-product-card { scroll-snap-align: start; }
.promo-bundles::-webkit-scrollbar, .promo-products::-webkit-scrollbar { height: 6px; }
.promo-bundles::-webkit-scrollbar-thumb, .promo-products::-webkit-scrollbar-thumb { background: var(--promo-lime); border-radius: 3px; }

.promo-bundle-card { padding: 12px; border-width: 2px; }
.promo-bundle-card:hover { transform: translateY(-2px); }
.promo-save-badge { top: -10px; font-size: .75rem; padding: 4px 8px; }
.promo-bundle-pics { margin-bottom: 8px; }
.promo-bundle-img { margin: 0 0 8px; border-radius: 6px; overflow: hidden; background: #f3f3f3; aspect-ratio: 16 / 10; }
.promo-bundle-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-bundle-name { font-size: 1.35rem; margin-bottom: 4px; }
.promo-bundle-desc { font-size: .8rem; margin-bottom: 6px; }
.promo-bundle-items { font-size: .8rem; margin-bottom: 8px; }
.promo-bundle-items li { padding: 2px 0; }
.promo-bundle-price { margin-bottom: 8px; }
.promo-bundle-price strong { font-size: 1.75rem; }
.promo-bundle-add { padding: 9px 10px; font-size: .82rem; }
.promo-pct-badge { font-size: 1.15rem; }
.promo-product-name { font-size: .85rem; padding-top: 8px; }
.promo-product-price strong { font-size: 1rem; }
.promo-product-cta { padding: 8px 12px 10px; font-size: .72rem; }

/* Admin: bundle picture */
.promo-bundle-image-field select { min-width: 210px; }
.promo-bundle-image-preview { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; background: #111; }

@media (max-width: 992px) {
    .promo-hero.has-art { grid-template-columns: 1fr; }
    .promo-hero-art { order: 0; }
    .promo-carousel .tu-carousel-slide img { height: 150px; }
}
@media (max-width: 576px) {
    .promo-hero-title { font-size: 2.1rem; }
    .promo-countdown-big .promo-cd-part { min-width: 46px; }
    .promo-countdown-big .promo-cd-part b { font-size: 1.4rem; }
    .promo-bundles { grid-auto-columns: 78%; }
    .promo-products { grid-template-columns: none; grid-auto-columns: 42%; }
}

/* ── One row of deals (bundles, then specials) + slimmer shop heading while a promotion runs ── */
.hero.hero-compact { padding: 16px 16px 12px; }
.hero.hero-compact h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.hero.hero-compact p { display: none; }

.promo-deals-row {
    display: flex;
    gap: 14px;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 12px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--promo-lime) rgba(255, 255, 255, .1);
}
.promo-deals-row::-webkit-scrollbar { height: 6px; }
.promo-deals-row::-webkit-scrollbar-thumb { background: var(--promo-lime); border-radius: 3px; }
.promo-deals-row > * { scroll-snap-align: start; flex: 0 0 auto; }
.promo-deals-row .promo-bundle-card { width: 250px; }
.promo-deals-row .promo-product-card { width: 165px; }
.promo-deals-title { position: relative; }
.promo-deals-swipe { margin-left: auto; font-family: 'Barlow', sans-serif; font-size: .75rem; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .05em; }
.promo-deals-swipe i { color: var(--promo-lime); font-size: .75rem !important; }

/* Shorter bundle pictures */
.promo-bundle-img { aspect-ratio: 2 / 1; }
.promo-bundle-pic { aspect-ratio: auto; height: 64px; }
.promo-shop { padding-bottom: 12px; }

@media (max-width: 576px) {
    .promo-deals-row .promo-bundle-card { width: 78vw; max-width: 280px; }
    .promo-deals-row .promo-product-card { width: 42vw; }
    .promo-deals-swipe { display: none; }
}

/* Even tighter: shorter slideshow, no slideshow / banner sentence on phones */
.promo-carousel .tu-carousel-slide img { height: 160px; }
.promo-hero-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
@media (max-width: 576px) {
    .promo-hero-art { display: none; }
    .promo-deal-text { display: none; }
    .promo-shop { padding-top: 12px; }
}

/* Bundle picture: square, whole image shown (never stretched or cropped); black fills any gap */
.promo-bundle-img { aspect-ratio: 1 / 1; background: #000; }
.promo-bundle-img img { object-fit: contain; }

/* Bigger countdown in the shop's deals section */
.promo-countdown-big { gap: 10px; margin-top: 6px; }
.promo-countdown-big .promo-countdown-label { font-size: .9rem; margin-right: 6px; }
.promo-countdown-big .promo-cd-part { min-width: 82px; padding: 10px 8px 8px; box-shadow: 0 4px 0 var(--promo-lime); }
.promo-countdown-big .promo-cd-part b { font-size: 3.2rem; }
.promo-countdown-big .promo-cd-part small { font-size: .68rem; }
.promo-countdown-big.is-last-day .promo-cd-part { box-shadow: 0 4px 0 var(--promo-hot); }
.promo-deals-row { padding-top: 16px; }
@media (max-width: 576px) {
    .promo-countdown-big { gap: 6px; }
    .promo-countdown-big .promo-countdown-label { width: 100%; }
    .promo-countdown-big .promo-cd-part { min-width: 0; flex: 1 1 0; }
    .promo-countdown-big .promo-cd-part b { font-size: 2.4rem; }
}
