/* TBR-8696: Akcija - traka iznad menija i stiker na proizvodima (podešavanje: Proizvodi -> Akcija) */

/* Traka je u toku strane iznad <header>-a (nije sticky); header pomera JS iz inc/akcija.php */
.akcija-traka {
    position: relative;
    z-index: 1000;
    display: block;
    width: 100%;
    padding: 9px 15px;
    background: var(--akcija-pozadina, #000);
    color: var(--akcija-boja, #fff);
    text-align: center;
    text-transform: uppercase;
    /* RidleyGrotesk nema znakove "%" i "–", pa traka koristi sistemski font */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-sizing: border-box;
}
a.akcija-traka:hover {
    color: var(--akcija-boja, #fff);
    text-decoration: none;
}
.akcija-traka__istaknuto {
    color: var(--akcija-istaknuto, #e30613);
    font-weight: 700;
}
.akcija-traka__tekst {
    font-weight: 700;
}

/* Stiker akcije - gornji desni ugao */
.akcija-stiker {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
    pointer-events: none;
}
.akcija-stiker img {
    display: block;
    width: 100%;
    height: auto;
}
.akcija-stiker--lista {
    width: 80px;
}
/* Postojeći ACF stiker proizvoda (npr. vegan) je takođe gore desno - spušta se ispod stikera akcije */
.product-image-wrapper:has(.akcija-stiker--lista) .product-sticker-list {
    top: 98px;
}
.single-product .woo-product-gallery-slider,
.single-product .woocommerce-product-gallery {
    position: relative;
}
.akcija-stiker--single {
    top: 0;
    right: 0;
    width: 120px;
    /* pozicija (top/left) se računa u JS-u (inc/akcija.php); sakriven dok galerija ne bude spremna */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.akcija-stiker--single.akcija-stiker--vidljiv {
    visibility: visible;
    opacity: 1;
}
.single-content-wrapper:has(.akcija-stiker--single) .product-sticker {
    top: 130px;
}
.akcija-stiker__tekst {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #e30613;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}
.akcija-stiker--single .akcija-stiker__tekst {
    font-size: 32px;
}

@media (max-width: 767px) {
    .akcija-traka {
        font-size: 12px;
        padding: 7px 10px;
    }
    .akcija-stiker--lista {
        width: 60px;
        top: 6px;
        right: 6px;
    }
    .product-image-wrapper:has(.akcija-stiker--lista) .product-sticker-list {
        top: 72px;
    }
    .akcija-stiker--single {
        width: 85px;
    }
    .single-content-wrapper:has(.akcija-stiker--single) .product-sticker {
        top: 95px;
    }
    .akcija-stiker__tekst {
        font-size: 16px;
    }
}
