/* Proizvodi Page Specific Styles */

/* Modern Grid Layout - 3x4 Format */
.explore-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Modern Households Grid Layout */
.households-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    align-items: start;
}

/* Responsive Grid - Konzistentno sa glavnom proizvodi stranicom */
@media (max-width: 1200px) {
    .households-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
        gap: 25px;
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .households-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 30px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .households-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .households-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        padding: 15px;
    }
    
    .single-explore-item {
        min-height: 500px !important;
    }
    
    .single-explore-img {
        height: 220px !important;
    }
}

/* Remove Bootstrap column classes styling */
.col-md-4 {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
}

.single-explore-item {
    background: #ffffff !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid #e5e5e5 !important;
    min-height: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: relative !important;
}

.single-explore-item:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
    border-color: #d0d0d0 !important;
}

.single-explore-img {
    height: 280px !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.single-explore-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.6s ease !important;
    filter: contrast(1.1) saturate(1.2) !important;
}

.single-explore-item:hover .single-explore-img img {
    transform: scale(1.1) rotate(1deg) !important;
    filter: contrast(1.2) saturate(1.4) brightness(1.1) !important;
}

.product-card {
    background: transparent !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-top: 20px !important;
    position: relative !important;
}

/* Override any potential background from parent elements */
.single-explore-txt,
.single-explore-txt.bg-theme-1,
.single-explore-txt.bg-theme-1 .product-card,
.single-explore-item .single-explore-txt {
    background: transparent !important;
}

/* Remove any potential gray backgrounds from list items too */
.product-card li {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
}

/* Force all backgrounds in this area to be transparent or white */
.households-grid .single-explore-item,
.households-grid .single-explore-txt,
.households-grid .product-card,
.explore-person {
    background: transparent !important;
}

/* Override the gray blog section background */
.blog,
section.blog,
#blog {
    background: white !important;
}

.product-card::before {
    display: none !important;
}

.product-card li {
    background: transparent !important;
    padding: 18px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin-bottom: 15px !important;
}

.product-card li:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.product-card li:nth-child(even) {
    border-left-color: #28a745 !important;
}

.product-card li:nth-child(3n) {
    border-left-color: #ffc107 !important;
}

.close-btn.open-btn {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3) !important;
}

.close-btn.open-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,123,255,0.4) !important;
    color: white !important;
}

/* Responsive breakpoints */
@media (max-width: 992px) {
    .single-explore-item {
        height: 600px !important;
        min-height: 600px !important;
        max-height: 600px !important;
    }
}

@media (max-width: 768px) {
    .single-explore-item {
        height: auto !important;
        min-height: 500px !important;
        max-height: none !important;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    list-style: none;
    display: flex;
    gap: 10px;
}

.pagination-link {
    text-decoration: none;
    padding: 12px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    color: #333;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}