
img.img-fluid {
    max-width: 100%;
    height: auto;
}


.category-card {
    overflow: hidden;
}
.category-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover .overlay,
.category-card:active .overlay,
.category-card:focus-within .overlay {
    opacity: 1;
}

.view-icon {
    font-size: 2rem;
    color: white;
}
.category-circle {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.category-card:hover .overlay {
    opacity: 1;
}

.card-text {
    font-size: 0.9rem;
}


/* Overlay samo na slici */
.product-card .overlay {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    color:#fff;
    font-size: 24px;
    opacity:0;
    transition: opacity 0.2s;
}
.product-card .position-relative:hover .overlay {
    opacity:1;
}


.view-icon {
    font-size: 2rem;
    color: #fff;
}


@media (max-width: 576px) {
    .product-card .mt-2 {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .product-card .product-qty {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    .product-card .add-to-cart-btn {
        width: 100% !important;
    }
}

/* Overlay samo na hover slike */
.position-relative .image-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    color:#fff;
    font-size:1.5rem;
    opacity:0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* ne blokira dugme */
}
.position-relative img:hover + .image-overlay {
    opacity:1;
}

/* Overlay samo na slici */
.main-product.position-relative, 
.related-product-card .position-relative {
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    color:#fff;
    font-size: 24px;
    opacity:0;
    transition: opacity 0.2s;
}

.main-product:hover .image-overlay,
.related-product-card .position-relative:hover .image-overlay {
    opacity:1;
}

/* Zoom efekat na glavnu sliku */
.main-img {
    transition: transform 0.3s ease;
}
.main-product:hover .main-img {
    transform: scale(1.1);
}

.cookie-notice {
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* Stilovi za korpu */
.cart-qty {
    max-width: 80px;
}
table img {
    border-radius: 5px;
}
@media (max-width: 576px){
    .table-responsive table {
        font-size: 14px;
    }
    .cart-qty {
        max-width: 60px;
    }
}



/*Sidebar*/
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar-wrapper {
    width: 250px;
    flex-shrink: 0;
    transition: all 0.3s;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

#page-content-wrapper {
    width: 100%;
    padding: 20px;
    flex-grow: 1;
}

.list-group-item {
    border: none;
    padding: 15px 20px;
}

.list-group-item:hover {
    background-color: #e9ecef;
    cursor: pointer;
}

footer {
    background-color: #f8f9fa;
}



/* Sidebar fiksna širina */
.admin-sidebar {
    width: 250px;         /* fiksna širina */
    min-width: 250px;     /* sprečava skupljanje */
    max-width: 250px;     /* sprečava širenje */
    height: 100vh;        /* zauzima celu visinu ekrana */
    position: fixed;      /* fiksiran dok se skroluje */
    top: 0;
    left: 0;
    overflow-y: auto;     /* skrol ako ima više linkova */
    background-color: #f8f9fa; /* svetla boja */
    border-right: 1px solid #dee2e6; /* border između sidebar i main */
    z-index: 1000;
}

/* Glavni sadržaj pored sidebar-a */
.admin-main {
    margin-left: 250px;   /* pomeramo sadržaj za širinu sidebar-a */
    padding: 20px;
}

/* 🪄 MODERAN IZGLED NASLOVA I CENE */
.product-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}
.product-header:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.product-title {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
}
.product-category {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: #6c757d;
}
.product-category a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
.product-category a:hover {
    text-decoration: underline;
}
.product-price {
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    color: #007bff;
    font-weight: 700;
    margin-top: 0.5rem;
}
.product-price small {
    color: #6c757d;
}

/* Glavna slika */
.main-product img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.main-product img:hover {
    transform: scale(1.02);
}

/* Sekcija “Više informacija” */
.product-detailed-description {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
    .product-header {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .product-title {
        font-size: 1.6rem;
    }
    .product-price {
        font-size: 1.3rem;
    }
}



/* Responsive slike */
img.img-fluid, img.related-img, .swiper-slide img {
    width: 100%;
    height: auto; /* ili max-height:20vh; */
    object-fit: cover;
}

/* Slider */

/* Sakrij swiper strelice */
.recommended-products-slider .swiper-button-next,
.recommended-products-slider .swiper-button-prev {
    display: none !important;
}

/* Mobilni optimizacija margina */
@media (max-width: 576px) {
    .related-product-card, .swiper-slide {
        padding-left: 5px;
        padding-right: 5px;
    }
    .d-flex.gap-2 {
        gap: 5px;
    }
}


.newsletter-hero {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 3px solid #007bff;
}
.newsletter-hero h2 {
  color: #333;
}
.newsletter-hero input {
  max-width: 100%;
  border: 2px solid #007bff33;
  transition: all 0.3s ease;
}
.newsletter-hero input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px #007bff55;
}
