/* ====== SALE SECTION ====== */
#sale-section {
    text-align: center;
}

.master-column-wrapper #sale-section .sale-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0rem;
    color: #ffa500;
    font-weight: 600;
    margin: 0;
    margin-top: 50px;
}

    .master-column-wrapper #sale-section .sale-header h2::before,
    .master-column-wrapper #sale-section .sale-header h2::after {
        content: "";
        flex: 1;
        height: 1px !important;
        background-color: #aaa;
        border-top: 1px solid #aaa;
        width: 30% !important;
        margin: 0 1.5rem;
        display: block; /* This fixes the inline element issue */
    }

/* ====== CATEGORY CARDS SECTION ====== */
#hp-category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem 4rem;
    background-color: #fff;
}

    #hp-category-cards a {
        text-decoration: none;
        color: inherit;
    }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    border-style: solid;
    border-color: #dfdfdf;
    overflow: hidden;
    background-color: #ffffff;
    transition: all .3s ease;
    border-width: thin;
}



/* ====== CARD IMAGE ====== */
.card-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

    .card-image-container img.card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.category-card:hover .card-image {
    transform: scale(1.05);
}

/* ====== CARD DETAILS ====== */
.category-details {
    padding: 1rem;
    text-align: center;
}

    .category-details h3 {
        font-size: 1.1rem;
        font-weight: 300;
        margin-bottom: 0.5rem;
        color: #007ba4;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .category-details p {
        font-size: 11px;
        color: #777;
        line-height: 1.4;
    }

/* ====== MEDIA QUERIES ====== */
@media (min-width: 1024px) {
    #sale-section .sale-header h2 {
        font-size: 1.75rem;
    }

    .card-image-container {
        height: 200px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @media (prefers-reduced-motion: no-preference) {
        .master-wrapper-page img {
            max-width: 100%;
            height: auto;
        }
    }
}

@media (max-width: 768px) {

 

    #hp-category-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .category-details h3 {
        font-size: 1rem;
    }

    .category-details p {
        font-size: 0.9rem;
    }
}
