.advent-promo-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Load custom fonts */
@font-face {
    font-family: 'Parisienne';
    src: url('fonts/Parisienne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* no breadcrumbs */
section#wrapper nav.breadcrumb,
/* alysum: */
#main-content .page-width.top-content nav.breadcrumb
{
    display: none;
}

/* alysum: */
header#header {
    margin-bottom: 0px !important;
    position: relative;
    z-index: 6;
}

section#wrapper,
/* alysum:  */
main#main-content
{
    background-color: #e8e1d9;
    /* jasny beż */

    padding-top: 50px;
    /* odstęp belki od góry strony */

    position: relative;


    /* background img */
    background-image: url('/modules/abcweb_sales/views/img/advent-promo/bg-snowflakes-decorations.jpg');
    background-size: cover;
    background-position: center top;
    /* background-attachment: fixed; */
    /* background-repeat: no-repeat; */
}

/* global content wrapper, full width site */
#inner-wrapper,
/* alysum: */
main#main-content div.page-width.main-content
{
    max-width: 100%;
    width: 100%;
    /* jasny beż */
    /* fallback */
    /* background-color: #e8e1d9;  */
    background-color: transparent;


    border-top: 25px solid #947e42;
    /* belka vertical */
    padding-top: 0px;
    /* odstęp belki od tytułu strony */

    margin-top: 50px;
}

/* horizontal line */
#inner-wrapper,
/* alysum: */
main#main-content div.page-width.main-content
{
    display: flex;
    align-items: center;
    /* position: relative; */
}

/* Lewa Belka */
/* wrapper z trzema kolumnami */
#content-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding-top: 0 !important;
}

/* środek */
#main {
    flex: 1 1 auto;
    text-align: center;
}

/* lewy i prawy sidebar */
#left-sidebar,
#right-sidebar {
    flex: 0 0 100px;
}

/* belka vertical */
.advent-promo-horizontal-line-wrapper {
    width: 80px;
    height: 100%;

    position: absolute;
    top: 0;

    /* belka vertical */
    /* border-right: 25px solid #947e42;  */
}

.advent-promo-horizontal-line {
    height: 100%;
    width: 25px;
    margin-left: auto;
    background-color: #947e42;

    position: relative;
}

/* belka jinglebells */
.advent-promo-jingle-bells-sidebar {
    position: absolute;
    top: 15px;
    left: 30%;
    transform: translate(-50%, 0%);
}

.advent-promo-jingle-bells-sidebar > img {
    max-width: 120px;
    height: auto;
}


/* text */
.advent-promo-text {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
    text-align: center;
}


.advent-promo-text h2 {}

.advent-promo-text p {}

/* HEADER HEADER HEADER HEADER HEADER HEADER  */
/* HEADER HEADER HEADER HEADER HEADER HEADER  */
/* HEADER HEADER HEADER HEADER HEADER HEADER  */

/* Tło + złota belka u góry */
.advent-promo-header {
    padding: 8px 20px 5px;
    text-align: center;
}

/* Wrapper tytułu z flexa 20% | auto | 20% */
.advent-promo-title-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
}

.advent-promo-title-before,
.advent-promo-title-after {
    flex: 0 0 20%;

    position: relative;
}

/* to make bulbs "hide" behind the bar */
#inner-wrapper,
/* alysum: */
main#main-content div.page-width.main-content
{
    overflow-y: hidden;

    overflow-x: hidden;
}

.advent-promo-title-christmas-bulbs {
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 1
}


/* Cały tytuł */
.advent-promo-title {
    flex: 1 1 auto;
    margin: 0;
    line-height: 1;
}

/* "Kalendarz" – napis pisany, złoty */
.advent-promo-title-first {
    text-transform: none;
    position: relative;
    z-index: 2;
    font-family: 'Parisienne', cursive;
    font-size: 6.5rem;
    font-weight: 400;
    color: #a17f34;
    /* złoto/brąz */
    /* letter-spacing: 0.04em; */
    margin-bottom: -0.2em;
    /* lekkie zachodzenie na dół */
}

/* "Adwentowy" – czarny, gruby, wersaliki */
.advent-promo-title-second {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #000000;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.35);
    /* delikatny cień jak na grafice */
    margin-top: 0;
    /* bo wyjeżdżamy pierwszym napisem w dół */
}

/* Proste zmniejszenie na mniejszych ekranach */
@media (max-width: 768px) {
    .advent-promo-title-first {
        font-size: 5rem;
    }

    .advent-promo-title-second {
        font-size: 2.5rem;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 340px) {
    .advent-promo-title-first {
        font-size: 4.5rem;
    }

    .advent-promo-title-second {
        font-size: 2.2rem;
        letter-spacing: 0.12em;
    }
}

.advent-promo-abcweb-bar-line {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    border-top: 3px solid black;
    margin-top: 10px;
    position: relative;

    min-height: 150px;

    overflow-y: hidden;
    /* to make bulbs "hide" behind the bar */
}

.advent-promo-bar-line-christmas-bulbs-wrapper {
    flex: 0 0 20%;
    position: relative;

    display: flex;
}

.advent-promo-bar-line-christmas-bulbs {
    /* Add bulb styling here */
    text-align: left;
}

.advent-promo-bar-line-discount-badge {
    position: relative;
    width: 50%;
    min-width: 150px;

    margin-left: auto;
    margin-right: 20px;
}

.advent-promo-bar-line-discount-badge img {
    position: absolute;
    top: -25px;
    left: 0;
}


.advent-promo-abcweb-bar-line .advent-promo-subtitle {
    flex: 1 1 auto;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Podtytuł pod tytułem */
.advent-promo-subtitle {
    font-size: 0.95rem;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    color: #444444;
}

/* HEADER HEADER HEADER HEADER HEADER HEADER  */
/* HEADER HEADER HEADER HEADER HEADER HEADER  */
/* HEADER HEADER HEADER HEADER HEADER HEADER  */


/* ADVENT PRODUCTS ADVENT PRODUCTS ADVENT PRODUCTS */
/* ADVENT PRODUCTS ADVENT PRODUCTS ADVENT PRODUCTS */
/* ADVENT PRODUCTS ADVENT PRODUCTS ADVENT PRODUCTS */

.advent-promo-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* 4 w rzędzie */
    gap: 20px;
    margin-top: 24px;
}

.advent-day {
    max-width: 100%;
    /* Limit width on small screens */
    margin: 0 auto;
    /* Center the items */
    min-width: 0;
}

@media (max-width: 992px) {
    .advent-promo-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .advent-promo-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .advent-promo-body {
        gap: 10px;
        padding: 0 10px;
        /* Add padding to prevent overflow */
    }
}

@media (max-width: 375px) {
    .advent-promo-body {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    #main {
        width: 100%;
    }
}

/* Kafelek z produktem */
.advent-day {
    position: relative;
    height: 100%;
}

.advent-day-front {
    position: relative;
    background: transparent;
    border-radius: 12px;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.advent-day-front:hover {
    transform: translateY(-4px);
}

/* Numer dnia */
.advent-day-number {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 0px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #947e42;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advent-day--current .advent-day-number {
    background-color: #b11b1b;
}

/* Produkt (obrazek, nazwa, cena) */
.advent-day-content {
    margin-top: 10px;
    /* żeby numer dnia nie nachodził na treść */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advent-day-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    color: inherit;

    min-width: 0;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background-color: #f2f2f2;
    /* tło pod obrazek */
    overflow: hidden;
    position: relative;

    /* centrowanie obrazka */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* obrazek zawsze pośrodku, w całości widoczny, bez przycięcia */
.product-img img.product-img-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CAŁY obrazek, żadnego cięcia */
    display: block;
}


.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    min-height: 2.6em;
    /* ~2 linijki */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;

}


.product-price {
    margin-top: 10px;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Left column - 20% */
.price-left {
    flex: 0 0 20%;
    text-align: left;
}

/* Middle column - takes the rest */
.price-middle {
    flex: 1 1 auto;
    text-align: center;

    padding: 5px 10px 0px
}

/* padding for the old prices */
.advent-day--older .product-price {
    padding-top: 5px;
}

/* Right column - 20% */
.price-right {
    flex: 0 0 20%;
    text-align: right;
}

/* Original price - strikethrough and muted */
.regular-price {
    text-decoration: line-through;
    color: #999;
    /* Grayed out */
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

/* Discount badge - festive pill style */
.discount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #b11b1b, #e00000);
    /* Red gradient for excitement */
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(177, 27, 27, 0.3);
    /* Red shadow for pop */
}

.discount-percentage {
    /* Inherits from .discount-badge */
}

/* Final price - prominent and gold */
.price {
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}


/* Responsive adjustments */


/* STARSZE DNI: */
/* STARSZE DNI: */


.advent-day--older .product-img {
    filter: grayscale(100%);
}

/* "Mroźna" ramka i rozjaśnienie obrazka */
.advent-day--older .product-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 35%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    box-shadow:
        0 0 0 12px rgba(255, 255, 255, 0.95),
        0 0 25px rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.advent-day--older .product-name {
    color: #b3b3b3;
}

.advent-day--older .product-price {
    color: #b3b3b3;
    font-weight: 600;
}

/* AKTYWNY DZIEŃ: */
/* AKTYWNY DZIEŃ: */


/* delikatna ramka wokół produktu */
.advent-day--current .product-img {}

.advent-day--current .product-name {
    color: #111111;
}

.advent-day--current .product-price {
    color: #e00000;
    /* czerwony jak na podglądzie */
    font-weight: 700;
}

/* opcjonalny „badge” dzisiejszej oferty, jeśli używasz .advent-day-badge */
.advent-day-badge--today {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;

    pointer-events: none;
}

/* PRZYSZŁY DZIEŃ: */
/* PRZYSZŁY DZIEŃ: */

/* upewniamy się, że kontent ma pełną szerokość */
.advent-day--soon .advent-day-content,
.advent-day--soon .advent-day-locked {
    width: 100%;
}

/* IMAGE: taki sam rozmiar jak bazowy .product-img */
.advent-day--soon .product-img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background-color: #f2f2f2;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}


/* tytuł / komunikat */
.advent-day--soon .product-name,
.advent-day--soon .product-locked-title {
    /* font-size: 0.9rem; */
    /* font-weight: 500; */
    color: #25345b;
}

/* Numer dnia w przyszłym okienku – na środku obrazka */
.advent-day-number--soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advent-day-background--soon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    top: -10%;

    pointer-events: none;
}

.advent-day-background--soon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advent-day-text--soon {
    position: relative;
    z-index: 2;
    color: #b11b1b;
    font-size: 3.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


.advent-day--soon .advent-day-front {
    position: relative;
}

/* COUNTDOWN COUNTDOWN */
/* LICZNIK – tylko w przyszłych okienkach */
.advent-day--soon .product-countdown {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Tekst wprowadzający */
.advent-day--soon .product-countdown-intro {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b11b1b;
}

/* Kontener na segmenty licznika */
.advent-day--soon .product-countdown-timer {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
}

/* Pojedynczy segment: dni / godz / min / sek */
.advent-day--soon .countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wartość (00) – duże, "cyfrowe" */
.advent-day--soon .countdown-value {
    padding: 4px 6px;
    border-radius: 8px;
    background-color: #1b1b1b;
    color: #ffffff;
    font-family: "Courier New", monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Etykieta pod spodem: dni / godz / min / sek */
.advent-day--soon .countdown-label {
    margin-top: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffe6cc;
    /* lekko złamany, "świąteczny" beż */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b11b1b;

}

/* RESPONSIVE */
@media (max-width: 480px) {
    .advent-day--soon .product-countdown-timer {
        gap: 4px;
    }

    .advent-day--soon .countdown-value {
        font-size: 1rem;
    }
}


/* COUNTDOWN COUNTDOWN */



/* ADVENT PRODUCTS ADVENT PRODUCTS ADVENT PRODUCTS */
/* ADVENT PRODUCTS ADVENT PRODUCTS ADVENT PRODUCTS */
/* ADVENT PRODUCTS ADVENT PRODUCTS ADVENT PRODUCTS */


/* ADVENT SPECIAL DAYS DECORATIONS */
/* ADVENT SPECIAL DAYS DECORATIONS */
/* ADVENT SPECIAL DAYS DECORATIONS */

.advent-special-day--6th {
    position: absolute;
    left: 45%;
    top: 0;
    transform: translate(-50%, 0%);
    z-index: 4;
    pointer-events: none;
}

.advent-special-day--24th {
    position: absolute;
    left: 50%;
    top: 3%;
    transform: translate(-50%, 0%);
    z-index: 4;
    pointer-events: none;
}

.advent-special-day--24th>img {
    max-width: 160px;
    height: auto;
}

/* old overlay styles */
.product-img-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-image: url('/modules/abcweb_sales/views/img/advent-promo/frozen-product.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* elfs */
.advent-day-product-img-wrapper {
    position: relative;
}

.advent-day-decoration-elf {
    position: absolute;
    top: 25px;
    right: 5px;
    transform: translateX(100%);
    z-index: 2;
}

.advent-day-decoration-elf img {
    max-width: 50px;
    height: auto;
}

.advent-day-decoration-elf-2 {
    position: absolute;
    bottom: 25px;
    left: 12px;
    transform: translateX(-100%);
    z-index: 2;
}

.advent-day-decoration-elf-2 img {
    max-width: 50px;
    height: auto;
}

/* ADVENT SPECIAL DAYS DECORATIONS */
/* ADVENT SPECIAL DAYS DECORATIONS */
/* ADVENT SPECIAL DAYS DECORATIONS */


/* RESPONSIVE STYLES RESPONSIVE STYLES RESPONSIVE STYLES */
/* RESPONSIVE STYLES RESPONSIVE STYLES RESPONSIVE STYLES */
/* RESPONSIVE STYLES RESPONSIVE STYLES RESPONSIVE STYLES */

@media(max-width: 1024px) {

    /* dekoracje header */

    /* 20-off badge */
    .advent-promo-bar-line-discount-badge {
        min-width: 100px;

    }

    .advent-promo-bar-line-discount-badge img {
        max-width: 100px;
        top: -10px
    }


    .advent-promo-bar-line-christmas-bulbs-wrapper {
        flex: 0 0 10%;
    }

    /* bulbs */
    .advent-promo-bar-line-christmas-bulbs>img {
        max-width: 100px;
    }

    .advent-promo-title-christmas-bulbs>img {
        max-width: 120px;
    }


    /* horizontal line bells */
    .advent-promo-jingle-bells-sidebar>img {
        max-width: 100px;
    }

    /* today product badge  */
    .advent-day-badge.advent-day-badge--today img {
        max-width: 80px;
    }

    /* elfs */
    .advent-day-decoration-elf img,
    .advent-day-decoration-elf-2 img {
        max-width: 35px;
        height: auto;
    }

    .advent-day-decoration-elf {
        right: 3px
    }

    .advent-day-decoration-elf-2 {
        left: 8px;
    }

    /* special days decorations */
    .advent-special-day--6th img,
    .advent-special-day--24th img {
        max-width: 100px;
        height: auto;
    }

    .advent-special-day--6th {
        top: 5%;
    }

    .advent-special-day--24th {}

    /* "soon" day text */
    .advent-day-text--soon {
        font-size: 1.8rem;
    }
}

@media(max-width: 768px) {

    /* hide bulbs and discount badge */
    .advent-promo-bar-line-christmas-bulbs-wrapper {
        display: none;
    }

    /* "soon" day text */
    .advent-day-text--soon {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {

    .advent-promo-title-after,
    .advent-promo-title-before {
        display: none;
    }
}

@media (max-width: 490px) {

    /* side lines */

    #left-sidebar,
    #right-sidebar {
        flex: 0 0 0px;
        display: none;
    }

    .advent-promo-horizontal-line-wrapper {
        width: 25px;
    }

    /* size of lines */
    .advent-promo-horizontal-line {
        width: 15px;
    }

    #inner-wrapper,
    /* alysum: */
    main#main-content div.page-width.main-content
    {
        border-top-width: 0px;
        padding: 0;
    }

    /* horizontal line jingle bells */
    .advent-promo-jingle-bells-sidebar {}

    .advent-promo-jingle-bells-sidebar>img {}

}

/* RESPONSIVE STYLES RESPONSIVE STYLES RESPONSIVE STYLES */
/* RESPONSIVE STYLES RESPONSIVE STYLES RESPONSIVE STYLES */
/* RESPONSIVE STYLES RESPONSIVE STYLES RESPONSIVE STYLES */


/* SUMMARY STYLES SUMMARY STYLES SUMMARY STYLES */
/* SUMMARY STYLES SUMMARY STYLES SUMMARY STYLES */
/* SUMMARY STYLES SUMMARY STYLES SUMMARY STYLES */

/* 1. Setup the summary to be a Flex container */
.advent-promo-header summary {
    display: flex;
    justify-content: center;
    /* Pushes text to left, icon to right */
    align-items: center;
    /* Vertically centers the icon */
    cursor: pointer;
    list-style: none;
    /* Hides the default ::marker in Firefox/Chrome */

    background: #fafafa;
    padding: 10px 20px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 1em;
}

/* 2. Hides the default marker in Safari/Webkit */
.advent-promo-header summary::-webkit-details-marker {
    display: none;
}

/* 3. Create the custom marker on the right */
.advent-promo-header summary::after {
    content: "";
    width: 12px;
    /* Controls the size */
    height: 12px;
    /* Controls the size */

    /* This creates the two lines of the V */
    border-right: 3px solid #957d46;
    border-bottom: 3px solid #957d46;

    /* Rotates the square to look like a down arrow */
    transform: rotate(45deg);

    margin-left: 15px;
    margin-bottom: 4px;
    /* Visual correction to center it nicely */
    transition: transform 0.3s ease;

    flex: 0 0 12px;
}

/* 4. Rotate the marker when the details are open */
.advent-promo-header details[open] summary::after {
    transform: rotate(225deg);
}

/* Optional: Reset H2 margins so it fits the bar nicely */
.advent-promo-header summary h2 {
    margin: 0;
    display: inline-block;
}

/* SUMMARY STYLES SUMMARY STYLES SUMMARY STYLES */
/* SUMMARY STYLES SUMMARY STYLES SUMMARY STYLES */
/* SUMMARY STYLES SUMMARY STYLES SUMMARY STYLES */


/* RO, HR badge fix */
.discount-percentage, 
.discount-product
{
    background: unset;
    transform: unset;
}

.current_product .product {
    max-width: 320px;
    margin: 0 auto;
}
.current_product .advent-day-number {
    display: none;
}
