/* Modern Product Page Styles */
:root {
    --primary: #f6cc00;
    --primary-dark: #e6b900;
    --secondary: #2a2a2a;
    --text: #333333;
    --text-light: #757575;
    --border: #e0e0e0;
    --success: #4CAF50;
    --background: #f8f8f8;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 6px;
}

/* General Styles */
.page-wrapper {
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumbs */
.breadcrumbs-container {
    padding: 15px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child):after {
    content: '›';
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--text);
    font-weight: 500;
}

/* Product Main Section */
.product-main {
    padding: 30px 0;
    background-color: var(--white);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.product-brand {
    margin-bottom: 20px;
}

.product-header {
    margin-bottom: 30px;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--secondary);
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.product-code {
    font-size: 14px;
    color: var(--text-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    display: flex;
    color: #bbbbbb;
}

.star {
    font-size: 16px;
}

.star.filled {
    color: var(--primary);
}

.rating-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Product Content Layout */
.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    min-width: 300px;
}

.gallery-main {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info {
    flex: 1;
    min-width: 300px;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.price-old {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-saving {
    padding: 4px 8px;
    background-color: #f44336;
    color: white;
    font-weight: 700;
    border-radius: 4px;
    font-size: 14px;
}

.product-availability {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-availability.available {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.product-purchase {
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-control {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.quantity-control input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 16px;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.purchase-options {
    margin-bottom: 20px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 10px;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: var(--radius);
    background-color: #f5f5f5;
    text-align: center;
}

.badge i {
    font-size: 24px;
    margin-bottom: 8px;
}

.badge span {
    font-size: 13px;
    font-weight: 500;
}

/* Short Description */
.product-short-description {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Product Details Tabs */
.product-details {
    margin-bottom: 40px;
}

.tabs-container {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: #f5f5f5;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background-color: var(--white);
    border-bottom-color: var(--primary);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table table {
    width: 100%;
}

.specifications-table th, 
.specifications-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specifications-table th {
    background-color: #f5f5f5;
    width: 40%;
    font-weight: 600;
}

/* Reviews */
.reviews-container {
    margin-bottom: 30px;
}

.reviews-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.rating-average {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    font-size: 18px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-light);
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
}

.review-rating {
    margin-bottom: 10px;
}

.review-comment {
    font-size: 14px;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
}

.write-review {
    text-align: center;
}

.btn-secondary {
    padding: 12px 25px;
    background-color: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.review-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    margin: 0 2px;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: var(--primary);
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-prompt {
    text-align: center;
}

/* Related Products */
.related-products {
    margin-bottom: 80px; /* Extra margin for sticky cart */
    padding: 40px 0;
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary);
}

.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #ddd;
}

.products-slider::-webkit-scrollbar {
    height: 6px;
}

.products-slider::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.products-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.product-card {
    flex: 0 0 250px;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #f44336;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.product-image {
    display: block;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
}

.product-name {
    font-size: 15px;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: var(--text);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-price .price-current {
    font-size: 18px;
}

.product-price .price-old {
    font-size: 14px;
}

.btn-view {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#zoomed-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background-color: white;
}

/* Sticky Add to Cart */
.sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cart.visible {
    transform: translateY(0);
}

.sticky-product-info {
    overflow: hidden;
}

.sticky-product-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
    font-size: 14px;
    margin-bottom: 3px;
}

.sticky-product-price {
    font-weight: 700;
    color: var(--secondary);
}

.sticky-add-btn {
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icons */
[class^="icon-"] {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-check:before {
    content: "✓";
}

.icon-cart:before {
    content: "🛒";
}

.icon-delivery:before {
    content: "🚚";
}

.icon-store:before {
    content: "🏪";
}

.icon-warranty:before {
    content: "📃";
}

.icon-return:before {
    content: "↩️";
}

.icon-secure:before {
    content: "🔒";
}

/* Make the design responsive */
@media (max-width: 768px) {
    .product-title {
        font-size: 20px;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
    }
    
    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 12px;
        font-size: 14px;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    .product-card {
        flex: 0 0 200px;
    }
    
    .product-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .product-content {
        flex-direction: column;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .thumb {
        width: 50px;
        height: 50px;
    }
    
    .product-badges {
        flex-direction: column;
    }
    
    .badge {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .badge i {
        margin-bottom: 0;
    }
    
    .rating-value {
        font-size: 28px;
    }
    
    .product-card {
        flex: 0 0 170px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .sticky-product-name {
        max-width: 60vw;
        font-size: 13px;
    }
    
    .sticky-add-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .sticky-add-btn span {
        display: none;
    }
}


/* Stilovi za benefite proizvoda */
.product-benefits {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--primary-light);
    border-radius: var(--radius);
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.benefit-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* Responsive stilovi za benefite */
@media (max-width: 576px) {
        .product-benefits {
        display: none;
    }
}


/* Stilovi za nedostupne proizvode */
.value-item.unavailable .value-icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.value-item.unavailable .value-text {
    color: #f44336;
}


/* Poboljšani stilovi za slične proizvode */
.product-card {
    flex: 0 0 280px;
    min-width: 280px;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 400px; /* Fiksna visina za kartice */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 20px;
    background-color: #f9f9f9;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 16px;
    margin: 0 0 12px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 45px;
    font-weight: 600;
}

.product-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    margin-bottom: 15px;
    margin-top: auto;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-view {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view:hover {
    background-color: var(--primary-dark);
}

/* Poboljšani stilovi za skrolovanje */
.recommended-products-container {
    position: relative;
    padding: 0 15px;
    margin: 0 -15px 20px;
}

.recommended-products-wrapper {
    overflow: hidden;
    padding: 10px 0;
}

.recommended-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    scrollbar-width: none;
}

.recommended-products-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 250px;
        min-width: 250px;
        height: 380px;
    }
    
    .product-image {
        height: 200px;
    }
}


/* Poboljšani stilovi za slike preporučenih proizvoda */
.product-card {
    flex: 0 0 280px;
    min-width: 280px;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 400px; /* Fiksna visina za kartice */
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

/* Alternativni način prikaza slike - koristi ako prvi metod ne radi dobro */
.product-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Poboljšani stil za dugme Vidi detalje */
.btn-view {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    margin-top: auto;
}


/* Stil za karticu proizvoda sa preklapajućim linkom */
.product-card {
    flex: 0 0 280px;
    min-width: 280px;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Preklapajući link koji pokriva celu karticu */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Osigurajte da popust bedž bude iznad linka */
.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15; /* Mora biti veći od linka */
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    pointer-events: none; /* Ne blokira klikove */
}

/* Stilovi za dugme koji će biti vidljivi ispod linka */
.btn-view {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    pointer-events: none; /* Sprečava da dugme uhvati klik */
}




/* Poboljšan izgled kartica proizvoda */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    margin: 0 0 12px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
}

.product-price {
    margin-bottom: 15px;
    margin-top: auto;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.price-old {
    font-size: 14px;
    color: #777;
    text-decoration: line-through;
}

/* Žuto dugme */
.btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 0;
    background-color: #f6cc00;
    color: #333;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    transition: background-color 0.3s;
}

.product-card:hover .btn-view {
    background-color: #e6b900;
}

.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    z-index: 2;
}

/* Grid sa 4 proizvoda po redu */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Tačno 4 kolone */
    gap: 25px;
    margin-bottom: 30px;
}

/* Responsivne izmene za manje ekrane */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 proizvoda po redu na tabletima */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 proizvoda po redu na malim tabletima */
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr; /* 1 proizvod po redu na mobilnim telefonima */
    }
}




.container {
    max-width: 1300px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}





