/*
 * Stil sekcija strane proizvoda (18.10.2026, /fix brzina-inline).
 *
 * Do 18.10.2026. su ova pravila stajala u <style> bloku u telu
 * product.php („Additional CSS for CRO elements", ~42 KB u svakom HTML
 * odgovoru, bez keša). Sada se fajl kešira 30 dana (asset_url, ?v=) i
 * deli između svih proizvoda. Učitava ga includes/header.php POSLE
 * responsive.css ($page_css_posle u product.php), pa je redosled pravila
 * (kaskada) isti kao dok su bila u telu: između responsive.css i ovih
 * pravila nema drugih stilova (black-friday-banner.php, samo u novembru,
 * ima isključivo .bf-* klase i @keyframes pulse, bez preklapanja).
 * Sadržaj je prepisan bez izmene, istim redom; novo pravilo za stranu
 * proizvoda pisati ovde ili u product.css, ne u <style> u product.php.
 */

        /* Stock status indicators */
        .stock-indicator {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 4px;
            margin: 15px 0;
            font-weight: 500;
        }
        .stock-indicator.in-stock {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
            border-left: 4px solid #28a745;
        }
        .stock-indicator.low-stock {
            background-color: rgba(255, 193, 7, 0.1);
            color: #dc3545;
            border-left: 4px solid #ffc107;
        }
        .stock-indicator.out-of-stock {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
            border-left: 4px solid #dc3545;
        }
        .stock-indicator i {
            margin-right: 8px;
        }
        .stock-count {
            font-weight: 700;
            color: #dc3545;
        }
        
        /* Wishlist button */
        .wishlist-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            padding: 10px 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .wishlist-btn:hover {
            background-color: #f8f9fa;
            border-color: #c1c9d0;
        }
        .wishlist-btn i {
            color: #dc3545;
        }
        
        /* Social proof */
        .social-proof {
            margin: 15px 0;
            padding: 12px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }
        .proof-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
        }
        .proof-item:last-child {
            margin-bottom: 0;
        }
        .proof-item i {
            color: #28a745;
            margin-right: 8px;
        }
        
        /* Payment methods */
        .payment-methods {
            margin: 15px 0;
        }
        .payment-methods-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 10px;
        }
        .payment-icons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .payment-icon {
            height: 24px;
            width: auto;
            filter: grayscale(0.4);
            transition: filter 0.2s;
        }
        /* Metoda plaćanja bez logoa (npr. uplata na račun) — prikazuje se kao
           tekstualna oznaka iste visine kao ikonice, da red ostane poravnat. */
        .payment-text {
            display: inline-flex;
            align-items: center;
            height: 24px;
            padding: 0 10px;
            font-size: 12px;
            font-weight: 600;
            color: #555;
            background: #f4f4f4;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            white-space: nowrap;
        }
        .payment-icon:hover {
            filter: grayscale(0);
        }
        
        /* Shipping calculator */
        .shipping-calculator {
            margin: 15px 0;
            padding: 12px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }
        .shipping-calculator-title {
            font-weight: 500;
            margin-bottom: 10px;
        }
        .zipcode-input-group {
            display: flex;
            max-width: 300px;
        }
        .zipcode-input-group input {
            flex-grow: 1;
            border: 1px solid #dee2e6;
            border-right: none;
            border-radius: 4px 0 0 4px;
            padding: 8px 12px;
        }
        .zipcode-input-group button {
            background-color: #f6cc00;
            color: #343a40;
            border: none;
            border-radius: 0 4px 4px 0;
            padding: 0 12px;
            font-weight: 500;
            cursor: pointer;
        }
        #shipping-result {
            margin-top: 10px;
            font-size: 14px;
        }
        
        /* Buy button enhancements */
        /* CTA odmah uz cenu (above-the-fold) */
        .price-buy-cta {
            margin: 14px 0 4px;
        }
        .buy-button-top {
            box-shadow: 0 3px 10px rgba(246, 204, 0, 0.35);
        }
        /* COD reassurance ispod glavnog KUPI dugmeta */
        .cod-reassurance {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 10px 0 0;
            padding: 9px 12px;
            background: #e8f5e9;
            border: 1px solid #c8e6c9;
            border-radius: 8px;
            color: #2e7d32;
            font-size: 13px;
            line-height: 1.35;
        }
        .cod-reassurance i {
            flex-shrink: 0;
            font-size: 15px;
        }
        .cod-reassurance strong {
            font-weight: 700;
        }
        .buy-button {
            width: 100%;
            padding: 16px;
            background-color: #f6cc00;
            color: #343a40;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }
        .buy-button:hover {
            background-color: #e6b900;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .buy-button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }
        .buy-button:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0;
            }
            20% {
                transform: scale(25, 25);
                opacity: 0.5;
            }
            100% {
                opacity: 0;
                transform: scale(40, 40);
            }
        }
        
        /* Recently viewed products */
        .recently-viewed-section {
            margin: 30px 0;
        }
        .recently-viewed-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            position: relative;
            padding-bottom: 10px;
        }
        .recently-viewed-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: #f6cc00;
        }
        .recently-viewed-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }
        
        /* Enhanced product benefits section */
        .enhanced-benefits {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 20px 0;
        }
        .benefit-card {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.2s;
        }
        .benefit-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .benefit-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            border-radius: 50%;
            margin-bottom: 10px;
            color: #f6cc00;
            font-size: 20px;
        }
        .benefit-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 15px;
        }
        .benefit-text {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }
        
        /* FAQ Section */
        .faq-section {
            margin: 30px 0;
        }
        .faq-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
        }
        .faq-item {
            margin-bottom: 10px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            overflow: hidden;
        }
        .faq-question {
            /* Sada je <button>, ne <div> — resetuj podrazumevane stilove dugmeta
               da izgled ostane identičan kao pre, ali da tastatura radi. */
            width: 100%;
            border: 0;
            margin: 0;
            text-align: left;
            font-family: inherit;
            font-size: inherit;
            color: inherit;
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #f8f9fa;
            font-weight: 600;
            cursor: pointer;
        }
        .faq-question:focus-visible {
            outline: 3px solid #0a3d91;
            outline-offset: -3px;
        }
        .faq-answer {
            padding: 0 15px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s, padding 0.3s;
        }
        .faq-item.active .faq-answer {
            padding: 15px;
            /* 200px je secilo duze odgovore na pola — 1200px pokriva i najduzi. */
            max-height: 1200px;
        }
        
        /* Enhanced sticky cart for mobile */
        .sticky-cart {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            padding: 10px 15px;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 999;
            transform: translateY(100%);
            transition: transform 0.3s;
        }
        .sticky-cart.visible {
            transform: translateY(0);
        }
        .sticky-product-info {
            display: flex;
            align-items: center;
        }
        .sticky-product-image {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            margin-right: 10px;
            object-fit: contain;
        }
        .sticky-product-details {
            overflow: hidden;
        }
        .sticky-product-name {
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 14px;
        }
        .sticky-product-price {
            font-weight: 700;
            color: #dc3545;
            font-size: 15px;
        }
        .sticky-buy-btn {
            background-color: #f6cc00;
            color: #343a40;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .sticky-buy-btn:hover {
            background-color: #e6b900;
        }
        /* Rasprodato — vizuelno odvojeno od žutog CTA da se ne pomešaju. */
        .sticky-notify-btn {
            background-color: #6c757d;
            color: #fff;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
            transition: background-color 0.2s;
        }
        .sticky-notify-btn:hover {
            background-color: #5a6268;
        }
        
        /* Save contact modal */
        .save-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .save-modal-content {
            background-color: white;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            padding: 25px;
            position: relative;
        }
        .save-modal-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            background: none;
            border: none;
            cursor: pointer;
            color: #aaa;
        }
        .save-modal-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #343a40;
        }
        .save-modal-description {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        .save-form-group {
            margin-bottom: 15px;
        }
        .save-form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            font-size: 14px;
        }
        .save-form-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            font-size: 14px;
        }
        .save-form-submit {
            width: 100%;
            padding: 12px;
            background-color: #f6cc00;
            color: #343a40;
            border: none;
            border-radius: 4px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        /* Shipping info tooltip */
        .shipping-info {
            margin-bottom: 5px;
            font-size: 13px;
            color: #666;
        }
        .shipping-info i {
            margin-right: 5px;
            color: #17a2b8;
        }
        
        /* Utilities */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }
        
        /* Desktop specific styles */
        @media (min-width: 992px) {
            .payment-methods, .shipping-calculator {
                text-align: center;
            }
            
            .payment-icons, .zipcode-input-group {
                justify-content: center;
                margin: 0 auto;
            }
            
            .enhanced-benefits {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .recently-viewed-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 992px) {
            .recently-viewed-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .enhanced-benefits {
                grid-template-columns: 1fr;
            }
            .countdown-value {
                font-size: 16px;
                width: 36px;
                height: 36px;
            }
            .countdown-label {
                font-size: 11px;
            }
            .recently-viewed-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* Notify button */
.notify-button {
    width: 100%;
    padding: 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.notify-button:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.notify-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.notify-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Notify modal */
.notify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.notify-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    position: relative;
}
/* A/B varijanta B modal: širi (bundle kartice) + scroll ako je visok */
.ab-bundle-modal-content {
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
}
.ab-bundle-modal-content .product-bundle-section {
    margin: 8px 0 0;
}
.notify-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
}
.notify-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #343a40;
}
.notify-modal-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}
.notify-form-group {
    margin-bottom: 15px;
}
.notify-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}
.notify-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}
.notify-form-submit {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.notify-form-submit:hover {
    background-color: #0b7dda;
}
.notify-success {
    text-align: center;
    padding: 20px 0;
    display: none;
}
.notify-success i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}
.notify-success h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.notify-success p {
    font-size: 14px;
    color: #666;
}

/* Desktop only styles for recommended products */
@media (min-width: 992px) {
    .similar-products-section .recommended-products-container {
        width: 100%;
    }
    
    .similar-products-section .recommended-products-scroll {
        display: flex;
        gap: 20px;
        overflow: hidden;
        scroll-behavior: smooth;
        padding: 10px 0;
    }
    
    .similar-products-section .product-card {
        flex: 0 0 calc(25% - 15px);
        min-width: calc(25% - 15px);
    }
    
    /* Hide scroll hints on desktop when all products are visible */
    .similar-products-section .scroll-hint {
        display: none !important;
    }
}

/* Mobile specific styles */
@media (max-width: 991px) {
    .similar-products-section .recommended-products-container {
        width: 100%;
        position: relative;
    }
    
    .similar-products-section .recommended-products-wrapper {
        width: 100%;
        overflow: hidden;
        padding: 10px 0;
        position: relative;
    }
    
    .similar-products-section .recommended-products-scroll {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        padding: 10px 0 10px 15px;
    }
    
    .similar-products-section .recommended-products-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .similar-products-section .product-card {
        flex: 0 0 calc(85% - 15px);
        min-width: calc(85% - 15px);
        scroll-snap-align: start;
    }
    
    /* Show next product partially */
    .similar-products-section .recommended-products-scroll::after {
        content: '';
        display: block;
        min-width: 30px;
    }
    
    /* Style scroll hints for mobile */
    .similar-products-section .scroll-hint {
        width: 36px;
        height: 36px;
        background-color: white;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .similar-products-section .scroll-hint.left {
        left: 10px;
    }
    
    .similar-products-section .scroll-hint.right {
        right: 10px;
    }
    
    .similar-products-section .scroll-hint.active {
        opacity: 1;
    }
    
    /* Ensure dots are visible on mobile */
    .similar-products-section .scroll-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    
    .similar-products-section .scroll-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ddd;
        transition: background-color 0.3s ease;
    }
    
    .similar-products-section .scroll-dots .dot.active {
        background-color: #f6cc00;
    }
}

/* ============================================
   GIFT NOTE NEAR PRICE
   ============================================ */
.price-gift-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Sekcija "Šta dobijate uz aparat" — nasledila sadržaj modala
   "Našli ste jeftinije?", ali kao mirna sekcija niže na stranici. */
.value-section {
    margin: 40px 0;
    padding: 28px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
}
.value-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}
.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}
.value-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.value-item i {
    color: #f6cc00;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.value-item strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.value-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}
.value-item a {
    color: #1a1a1a;
    font-weight: 600;
}
.value-note {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #ececec;
    font-size: 14px;
    color: #666;
    font-style: italic;
}
@media (max-width: 768px) {
    .value-section { padding: 20px; margin: 28px 0; }
    .value-grid { grid-template-columns: 1fr; gap: 18px; }
    .value-section-title { font-size: 18px; }
}

/* MOBILNI: uslovi kupovine u jedan red teksta.
   Na telefonu je vertikalni prostor najskuplji, a ove četiri stavke se
   PONAVLJAJU niže na stranici u sekciji „Šta dobijate uz aparat". Ključni
   podaci o aparatu ostaju puni — oni se ne ponavljaju nigde iznad pregiba.
   Mereno na 390px: blok 106px -> 40px, dugme se diže za ~66px. */
@media (max-width: 640px) {
    .price-includes-list {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 10px;
    }

    .price-includes-list li {
        font-size: 12.5px;
        gap: 4px;
    }

    /* Dugačka stavka (dostava po dogovoru) i dalje ide u svoj red. */
    .price-includes-list li.is-wide { flex: 1 0 100%; }

    .price-includes-title {
        font-size: 11px;
        margin-bottom: 2px;
    }
}

/* Zvezdica sa uslovima uz „Slanje u servis i nazad o našem trošku".
   Uslov postoji (originalna ambalaža, prihvaćena reklamacija) i kupac ga
   mora videti PRE kupovine — ali ne sme da guši samu pogodnost. Zato
   zvezdica: obećanje ostaje kratko, detalj je na dodir ili prelaz mišem.

   Radi i na telefonu: tooltip se otvara na klik (JS ispod), jer hover
   na dodirnim ekranima ne postoji. */
.uslov-zvezdica {
    display: inline;
    margin-left: 1px;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #8a6d00;
    background: none;
    border: 0;
    cursor: help;
    vertical-align: super;
}

.uslov-zvezdica:hover,
.uslov-zvezdica:focus-visible { color: #5a4700; }

.uslov-tooltip {
    position: absolute;
    z-index: 60;
    max-width: 290px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #f5f5f5;
    background: #2b2b2b;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    pointer-events: none;
}

.uslov-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: var(--strelica, 16px);
    width: 10px;
    height: 10px;
    background: #2b2b2b;
    transform: rotate(45deg);
}

@media (max-width: 640px) {
    .uslov-tooltip { max-width: calc(100vw - 32px); font-size: 12px; }
}

/* KLJUČNI PODACI — tri činjenice o aparatu, odmah ispod cene.
   Namerno izgledaju kao PODACI, ne kao marketinški bedževi: bez ikonica,
   bez boje, samo tekst sa tankom linijom levo. Kupac ih čita kao
   specifikaciju, a specifikaciji se veruje više nego obećanju. */
.key-specs {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.key-specs li {
    position: relative;
    padding: 3px 0 3px 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #2a2a2a;
}

/* Tanka žuta crta umesto tačke — veže podatke za brend, a ne odvlači
   pažnju kao ikonica. */
.key-specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 3px;
    height: 12px;
    background: var(--primary-color, #f5c518);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .key-specs li { font-size: 13.5px; padding-top: 2px; padding-bottom: 2px; }
    .key-specs { margin-top: 8px; }
}

/* "U cenu je uključeno" — lista vrednosti odmah ispod cene.
   Namerno bez okvira i jake boje: ne takmiči se sa cenom iznad ni sa
   dugmetom ispod, samo popunjava prazninu između njih smislom.
   Zamenila je blok "NAŠLI STE JEFTINIJE" (vidi komentar uz HTML). */
.price-includes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8e2c4;
}
.price-includes-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.price-includes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* Dve kolone: četiri kratke činjenice staju u dva reda umesto četiri,
       pa dugme „Kupi odmah" ostaje bliže pregibu. Merenje na 390px:
       blok 106px -> 62px. */
    grid-template-columns: 1fr;
    gap: 2px;
    align-items: start;
}

/* Stavka koja se ne skraćuje (dostava po dogovoru) uzima ceo red da se
   ne prelama na dve linije u uzanoj koloni. */
.price-includes-list li.is-wide {
    grid-column: 1 / -1;
}
.price-includes-list li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.35;
}

/* Tekst stavke je jedan blok, pa se duga rečenica prelama normalno.
   Bez ovoga su <strong> i okolni tekst zasebne flex stavke, pa se fraza
   cepala usred sebe ("po" u jednom redu, "dogovoru" u drugom). */
.price-includes-list li > span {
    display: inline;
}
.price-includes-list i {
    color: #2e7d32;
    font-size: 11px;
    flex-shrink: 0;
}
.price-gift-note i {
    font-size: 14px;
}

/* ============================================
   AUTHORIZED DEALER
   ============================================ */
.product-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.authorized-dealer {
    font-size: 12px;
    color: #065f46;
    font-weight: 600;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ============================================
   BUNDLE / PAKET SECTION
   ============================================ */
.product-bundle-section {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
    border: 2px solid #f6cc00;
    border-radius: 12px;
}

.bundle-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.bundle-section-title svg {
    color: #f6cc00;
    flex-shrink: 0;
}

.bundle-section-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.bundle-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bundle-option-card {
    display: block;
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bundle-option-card:hover {
    border-color: #f6cc00;
}

.bundle-option-card.active {
    border-color: #f6cc00;
    box-shadow: 0 0 0 3px rgba(246, 204, 0, 0.2);
}

.bundle-option-card input[type="radio"] {
    display: none;
}

/* Rasprodato — paketi ostaju vidljivi kao informacija, ali se ne biraju.
   Bez ovoga kupac bira paket za aparat koji ne može da kupi. */
.bundle-section-disabled .bundle-option-card {
    cursor: default;
    opacity: 0.65;
    background: #fafafa;
}
.bundle-section-disabled .bundle-option-card:hover {
    border-color: #e0e0e0;
}
.bundle-section-disabled .bundle-option-card.active {
    border-color: #e0e0e0;
    box-shadow: none;
}
/* Kružić za izbor nema smisla kad se ne bira. */
.bundle-section-disabled .bundle-radio-circle {
    display: none;
}
.bundle-section-disabled .bundle-section-subtitle {
    color: #b8860b;
    font-weight: 600;
}

.bundle-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bundle-radio-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.bundle-option-card.active .bundle-radio-circle {
    border-color: #f6cc00;
}

.bundle-option-card.active .bundle-radio-circle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f6cc00;
}

.bundle-option-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.bundle-header-price {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.bundle-header-price .bundle-total-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.bundle-header-price .bundle-total-original {
    font-size: 12px;
    color: #999;
}

.bundle-header-price .bundle-total-original del {
    color: #999;
}

.bundle-header-price .bundle-total-saving {
    display: none;
}

.bundle-popular-badge {
    display: inline-block;
    background: #b45309;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.bundle-discount-info {
    font-size: 12px;
    color: #666;
    padding-left: 30px;
    margin-top: 4px;
}

.bundle-toggle-icon {
    display: none;
    margin-left: 6px;
    transition: transform 0.3s;
    color: #999;
    flex-shrink: 0;
}

.bundle-option-card.expanded .bundle-toggle-icon {
    transform: rotate(180deg);
}

@media (min-width: 769px) {
    .bundle-toggle-icon {
        display: inline-block;
    }

    .bundle-option-card .bundle-collapsible {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .bundle-option-card.expanded .bundle-collapsible {
        max-height: 800px;
    }

    .bundle-option-card .bundle-header-meta {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .bundle-option-card.expanded .bundle-header-meta {
        max-height: 100px;
    }
}

.bundle-gift-note {
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    padding: 8px 12px;
    background: #f5f3ff;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bundle-option-body {
    margin-top: 10px;
    padding-left: 30px;
}

.bundle-option-card[data-bundle="none"] .bundle-option-body {
    margin-top: 4px;
}

.bundle-included-note {
    font-size: 13px;
    color: #059669;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
}

.bundle-included-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #059669;
}

/* Equipment info za proizvode bez bundlova */
.product-included-equipment {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8f8f8 100%);
    border: 1px solid #d1fae5;
    border-radius: 10px;
}

.equipment-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #059669;
    line-height: 1.5;
}

.equipment-line + .equipment-line {
    margin-top: 8px;
}

.equipment-line svg,
.equipment-line i {
    flex-shrink: 0;
    margin-top: 2px;
}

.equipment-line strong {
    color: #047857;
}

.equipment-gift {
    color: #b45309;
}

.equipment-gift i {
    color: #f59e0b;
}

.bundle-price-line {
    font-size: 14px;
    color: #666;
}

.bundle-price-line del {
    color: #999;
    margin-right: 6px;
}

.bundle-price-line .bundle-saving-note {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

.bundle-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.bundle-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bundle-item-row:last-child {
    border-bottom: none;
}

.bundle-item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f9f9f9;
}

.bundle-item-info {
    flex: 1;
    min-width: 0;
}

.bundle-item-name {
    display: block;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bundle-item-qty {
    font-size: 11px;
    color: #999;
}

.bundle-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
}

.bundle-item-price del {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    display: block;
}

.bundle-item-price .item-discounted {
    color: #d32f2f;
}

.bundle-item-saving {
    font-size: 11px;
    color: #2e7d32;
    font-weight: 600;
}

.bundle-savings-total {
    background: #ecfdf5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #065f46;
    font-weight: 600;
    text-align: center;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .product-bundle-section {
        margin: 16px 0;
        padding: 14px;
    }

    .bundle-section-title {
        font-size: 16px;
    }

    .bundle-option-body {
        padding-left: 0;
    }

    .bundle-item-img {
        display: none;
    }

    .bundle-item-name {
        white-space: normal;
    }

    .bundle-popular-badge {
        margin-left: 0;
        margin-top: 4px;
        display: block;
        width: fit-content;
        font-size: 9px;
    }

    .bundle-header-price .bundle-total-price {
        font-size: 14px;
    }

    .bundle-discount-info {
        padding-left: 0;
    }

    .bundle-price-detail-desktop {
        display: none;
    }

    .bundle-header-price .bundle-total-saving {
        display: block;
        font-size: 11px;
        color: #2e7d32;
        font-weight: 600;
    }
}

/* Pozitivan prazan state za recenzije */
.no-reviews-cta {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffe082;
    border-radius: 8px;
    margin: 16px 0;
}
.no-reviews-cta .no-reviews-stars {
    color: #ffb300;
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 12px;
}
.no-reviews-cta h3 {
    color: #5d4037;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 700;
}
.no-reviews-cta p {
    color: #6d4c41;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
.no-reviews-cta strong {
    color: #d84315;
}

/* Datum dostave widget — iznad CTA */
.delivery-eta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 14px;
    color: #1b5e20;
}
.delivery-eta .delivery-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.delivery-eta strong {
    color: #1b5e20;
}
.delivery-eta-note {
    color: #4e342e;
    font-size: 12px;
    margin-left: auto;
}
/* Kalkulator dostave za kabastu robu — nema polja za poštanski broj
   (cena zavisi od udaljenosti), pa umesto njega ide broj telefona. */
.shipping-calculator--freight .shipping-info {
    color: #5d4037;
    line-height: 1.5;
}
.shipping-calc-cta {
    margin-top: 12px;
}
.shipping-calc-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f6cc00;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
}
.shipping-calc-phone:hover {
    background: #e0b900;
    color: #1a1a1a;
}

/* Kabasto (dostavno vozilo / lično preuzimanje) — topla, "dogovor" boja
   umesto zelene "stiže sutra". Ne sme da liči na upozorenje o problemu:
   ovo je usluga pažljivog transporta, ne mana proizvoda. */
.delivery-eta--freight {
    background: #fff8e1;
    border-left-color: #f6cc00;
    color: #5d4037;
    align-items: flex-start;
}
.delivery-eta--freight strong { color: #4e342e; }

/* Na upit (laseri i sl.) */
.delivery-eta--consult {
    background: #e3f2fd;
    border-left-color: #1565c0;
    color: #0d3c61;
    align-items: flex-start;
}
.delivery-eta--consult strong { color: #0d3c61; }

/* Kod kabastih i "na upit" poziv je jedina akcija — ne guraj ga u desni
   ugao kao sitnu napomenu, nego u novi red, i drži ga vidljivim. */
.delivery-eta--freight .delivery-eta-note,
.delivery-eta--consult .delivery-eta-note {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    font-size: 13px;
}
.delivery-eta--freight .delivery-eta-note a,
.delivery-eta--consult .delivery-eta-note a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
.delivery-eta--freight > span:not(.delivery-icon),
.delivery-eta--consult > span:not(.delivery-icon) {
    line-height: 1.45;
}

@media (max-width: 600px) {
    .delivery-eta {
        font-size: 13px;
        padding: 9px 12px;
    }
    .delivery-eta-note { display: none; }
    /* Izuzetak: kod kabastih je u note-u broj telefona — jedini put do
       kupovine. Sakriti ga na mobilnom bi ubilo konverziju. */
    .delivery-eta--freight .delivery-eta-note,
    .delivery-eta--consult .delivery-eta-note {
        display: block;
    }
}


/* Lepljiva traka za kupovinu (vlasnik 19.10.2026): na računaru je bila
   tanka bela traka preko cele širine, slika ispod kontakt dugmeta, cena
   crvena kao akcija i malo „KUPITE" na samom kraju — skoro se nije videla.
   Sada je sadržaj u širini strane, žuta linija gore, status i veliko dugme. */
.sticky-cart {
    display: block;
    padding: 0;
    border-top: 3px solid var(--primary-color, #f6cc00);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
}
.sticky-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.sticky-product-image {
    width: 56px;
    height: 56px;
    margin-right: 0;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    object-fit: contain;
    background: #fff;
    flex: 0 0 auto;
}
.sticky-product-details {
    min-width: 0;
}
.sticky-product-name {
    font-size: 15px;
    font-weight: 700;
    max-width: none;
    margin-bottom: 2px;
}
.sticky-product-price {
    color: #333;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.sticky-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1e7b34;
    font-weight: 600;
    margin-top: 2px;
}
.sticky-tacka {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    flex: 0 0 auto;
}
.sticky-buy-btn,
.sticky-notify-btn {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.sticky-buy-btn {
    box-shadow: 0 3px 0 #c9a600;
}
.sticky-buy-btn i {
    margin-right: 6px;
}
@media (max-width: 768px) {
    .sticky-inner {
        padding: 8px 12px;
        gap: 10px;
    }
    .sticky-product-image {
        width: 44px;
        height: 44px;
    }
    .sticky-product-name {
        font-size: 13px;
    }
    .sticky-product-price {
        font-size: 16px;
    }
    .sticky-status {
        font-size: 11px;
    }
    .sticky-buy-btn,
    .sticky-notify-btn {
        min-height: 46px;
        padding: 0 16px;
        font-size: 14px;
    }
}
@media (max-width: 400px) {
    /* Na uskom ekranu ikonica i „ODMAH" prave mesto nazivu i ceni. */
    .sticky-buy-btn i {
        display: none;
    }
    .sticky-status {
        display: none;
    }
}

/* Račun i SEF ispod načina plaćanja; uvod u „Šta dobijate za cenu" (19.10.2026). */
.payment-firme {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #495057;
    text-align: center;
}
.payment-firme i {
    color: #8a6d00;
    margin-right: 4px;
}
.value-uvod {
    margin: -6px 0 18px;
    font-size: 15px;
    color: #495057;
}

/* CRO i pristupačnost (audit 19.10.2026). */
@media (max-width: 768px) {
    /* product.css (≤768) je dugmetu davao width: 100% i centrirao naziv, pa
       je na telefonu u traci ostajalo samo dugme — bez naziva i cene. */
    .sticky-cart .sticky-buy-btn,
    .sticky-cart .sticky-notify-btn {
        width: auto;
    }
    .sticky-cart .sticky-product-name {
        margin: 0;
        text-align: left !important;
    }
    .sticky-cart .sticky-product-price {
        text-align: left;
    }
}
/* Kontrast ≥ 4,5:1 (bilo 3,13 i 1,55). */
.stock-indicator.in-stock {
    color: #1e7b34;
    border-left-color: #1e7b34;
}
.trust-details-link,
.trust-details-link:visited {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #f6cc00;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
/* Nije na stanju: poziv umesto kupovine, odmah uz cenu. */
.buy-button-poziv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}
.buy-button-poziv:hover {
    color: #333;
    text-decoration: none;
}
.cod-reassurance--nema {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}
.cod-reassurance--nema i {
    color: #6b5500;
}
.authority-statement a {
    color: inherit;
    font-weight: 700;
    white-space: nowrap;
}
