/* --- OSNOVNI STILOVI STRANICE --- */
.product-single {
    padding: 80px 0;
    background-color: #ffffff;
}

.product-grid-single {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dve kolone: Slika i Detalji */
    gap: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- LEVA STRANA: GALERIJA (Sticky efekat) --- */
.product-gallery {
    position: sticky;
    top: 120px; /* Prati skrol dok kupac čita opis */
    text-align: center;
}

.main-image {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 20px;
    display: block;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    height: 450px;
    object-fit: contain; /* Čuva proporcije Brita bokala */
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.main-image:hover img {
    transform: scale(1.03);
}

/* Red sa malim sličicama (Thumbnail-ovi) */
.thumbnail-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.thumb-box {
    width: 70px;
    height: 70px;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: white;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-box:hover, .thumb-box.active {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* --- DESNA STRANA: INFO O PROIZVODU --- */
.breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.product-info-single h1 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.price-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #007bff;
}

.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.description-text {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-bottom: 40px;
}

.description-text h3 {
    margin-bottom: 10px;
    color: #333;
}

.description-text p {
    color: #666;
    line-height: 1.8;
}

/* FORMA ZA KUPOVINU */
.cart-form {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.qty-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qty-selector input {
    width: 75px;
    height: 55px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-add-to-cart {
    flex-grow: 1;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}

/* TRUST BADGES */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.badge {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge i {
    color: #2ecc71;
    font-size: 18px;
}

/* --- RESPONSIVE (Mobilni uređaji) --- */
@media (max-width: 992px) {
    .product-grid-single {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .product-gallery {
        position: static; /* Isključujemo sticky na mobilnom */
    }

    .product-info-single h1 {
        font-size: 2.2rem;
    }

    .main-image img {
        height: 300px;
    }
}