/* =====================================================
   DEDICATED CARPETS PAGE CSS
   ===================================================== */

/* Utilities */
.fs-sm {
    font-size: 0.85rem;
}
.text-purple {
    color: var(--purple-primary) !important;
}
.cursor-pointer {
    cursor: pointer;
}
.z-index-2 {
    z-index: 2;
}
.object-fit-cover {
    object-fit: cover;
}
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle Intro Animation */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.carpets-breadcrumb .breadcrumb-item a:hover {
    color: var(--purple-primary) !important;
}

/* Hero Section */
.carpets-hero {
    position: relative;
    min-height: 420px;
    background-image: url("/images/slider-banner-7d-carpet.png"); /* Fallback/Base */
    background-size: cover;
    background-position: center 60%;
    display: flex;
    align-items: center;
    padding: 60px 0;
}
.carpets-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 11, 51, 0.897) , rgba(51, 7, 77, 0.116));
}
.carpets-hero-content {
    position: relative;
    z-index: 2;
}

/* Typography Overrides */
.carpets-hero h1,
.carpets-intro h2,
.carpet-info h2 {
    font-family: var(--font-heading);
}

/* Benefit Cards */
.benefit-card {
    padding: 24px 16px;
    border-radius: 12px;
    background: var(--off-white);
    transition: transform 0.3s ease;
    height: 100%;
}
.benefit-card:hover {
    transform: translateY(-5px);
}

/* Care Section */
.care-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    background-color: var(--white) !important;
    border-color: var(--purple-light) !important;
}

/* Sort Select Cleanup */
#carpetSort:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive Fixes */
@media (max-width: 767.98px) {
    .carpets-hero {
        min-height: 320px;
        padding: 40px 0;
    }
    .carpets-hero h1 {
        font-size: 2.2rem;
    }
    .carpets-hero p {
        font-size: 0.95rem;
    }
    .info-img-wrapper img {
        height: 300px !important;
    }
}

@media (max-width: 575.98px) {
    .carpets-hero h1 {
        font-size: 1.8rem;
    }
}
