/* css/products-page.css */

/* --- 1. Hero Section --- */
.product-hero {
    height: 60vh;
    min-height: 400px;
    background-color: #000;
}

.product-hero .overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
}

.letter-spacing-3 { letter-spacing: 3px; }
.letter-spacing-1 { letter-spacing: 1px; }

/* --- 2. Filter Buttons --- */
.filter-section {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 10px 25px;
    font-weight: 700;
    color: #555;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 5px 15px rgba(233, 33, 38, 0.3);
}

/* --- 3. Product Cards --- */
.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s ease;
}

.shadow-hover:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
    border-color: transparent;
}

/* Image Zoom Effect */
.card-img-top img {
    transition: transform 0.6s ease;
    height: 400px;
    object-fit: contain;
}

.product-card:hover .card-img-top img {
    transform: scale(1.1);
}

/* Hover Overlay */
.hover-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-card:hover .hover-overlay {
    opacity: 1;
}

/* Overlay Button Animation */
.hover-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s; /* Slight delay */
}

.product-card:hover .hover-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Badges */
.product-card .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 8px 12px;
}

/* --- 4. Card Content & Specs --- */
.product-card .card-body {
    position: relative;
    z-index: 2;
    background: #fff;
}

/* Star Ratings */
.rating {
    color: #ffc107;
}

/* Small Specs Text */
.x-small { 
    font-size: 11px; 
    margin-top: 5px; 
    text-transform: uppercase;
    color: #333;
}

/* Grid Layout for Specs */
.specs-grid .text-center {
    flex: 1;
    border-right: 1px solid #eee;
    padding: 5px 0;
}

.specs-grid .text-center:last-child {
    border-right: none;
}

.specs-grid i {
    font-size: 18px;
    opacity: 0.8;
}

/* --- 5. Animations & Utilities --- */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* --- 6. Responsive Adjustments --- */
@media (max-width: 991px) {
    .product-hero {
        height: 50vh;
    }
    .display-2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        min-height: 350px;
    }
    .display-2 {
        font-size: 2.2rem;
    }
    .lead {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    /* Scrollable Filters on Mobile */
    .filter-section .d-flex {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start !important; /* Align left on scroll */
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    /* Hide scrollbar */
    .filter-section .d-flex::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
}