.product-index-container {
    margin: 0 auto;
    padding: 20px 1rem;
    font-family: 'FuturaPT', sans-serif;
    width: 100%;
}

.sorting-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 1rem;
    font-size: 14px;
    color: #555;
}

#productSort-container .select-dropdown {
    min-width: fit-content;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(289px, 1fr));
    margin-bottom: 14px;
}

.product-card {
    position: relative;
    border: 2px solid white;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}


.product-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    padding: 22px;
    overflow: hidden;
    background: #f9f9f9;
}

.image-indicators {
    position: absolute;
    top: 1px;
    left: 14px;
    right: 14px;
    height: 100%;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.image-indicator-line {
    flex: 1;
    height: 100%;
    padding: 0 2px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.indicator-border {
    width: 100%;
    height: 4px;
    border-top: 4px solid rgba(220, 220, 220, 0.3);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.image-indicator-line:hover .indicator-border {
    border-top: 4px solid rgba(180, 180, 180, 0.7);
}

.image-indicator-line.active .indicator-border {
    border-top: 4px solid rgba(200, 200, 200, 0.5);
}

.image-indicator-line.active:hover .indicator-border {
    border-top: 4px solid rgba(160, 160, 160, 0.8);
}

.product-card:hover .indicator-border {
    border-top: 4px solid rgba(210, 210, 210, 0.4);
}

.product-card:hover .image-indicator-line.active .indicator-border {
    border-top: 4px solid rgba(190, 190, 190, 0.6);
}

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

.product-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.41);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 15px 20px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

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

.overlay-content {
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s;
    width: 100%;
}

.product-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-name {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.overlay-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.41s ease;
}

.product-card:hover .overlay-name::after {
    width: 100%;
}

.overlay-status {
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 8px;
    color: #f0f0f0;
    text-transform: capitalize;
}

.overlay-price {
    font-size: 16px;
    font-weight: 300;
}

.currency-symbol {
    margin-right: 2px;
}

.price-amount {
    font-weight: normal;
}

.product-info-mobile {
    display: none;
    padding: 15px 10px;
    text-align: center;
}

.mobile-name {
    font-size: 14px;
    font-weight: normal;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.mobile-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #333;
    transition: width 0.3s ease;
}

.product-card:hover .mobile-name::after {
    width: 100%;
}

.mobile-status {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.mobile-price {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Mobile styles for screens smaller than 768px */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make indicator borders more touch-friendly */
    .indicator-border {
        height: 8px;
        border-top: 4px solid rgba(220, 220, 220, 0.4);
        cursor: pointer;
    }
    
    .image-indicator-line.active .indicator-border {
        border-top: 4px solid rgba(200, 200, 200, 0.6);
    }
    
    /* Remove all hover effects */
    .product-overlay {
        display: none !important;
    }
    
    .product-card:hover {
        transform: none !important;
    }
    
    .product-card:hover .product-overlay {
        opacity: 0 !important;
    }
    
    .product-card:hover .product-image {
        transform: none !important;
    }
    
    .product-card:hover .overlay-content {
        transform: none !important;
    }
    
    .product-card:hover .overlay-name::after {
        width: 0 !important;
    }
    
    .product-card:hover .mobile-name::after {
        width: 0 !important;
    }
    
    /* Show mobile product info */
    .product-info-mobile {
        display: block !important;
    }
            
    .mobile-name {
        font-size: 12px;
    }
    
    .mobile-status {
        font-size: 10px;
    }
    
    .mobile-price {
        font-size: 11px;
    }
}

/* Infinite scroll styles */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bottom spacing to prevent premature infinite scroll triggers */
.infinite-scroll-spacer {
    height: 89px; 
    width: 100%;
}
