*, *::before, *::after { box-sizing: border-box; }

/* style.css */
body { background-color: #fff; font-family: system-ui, -apple-system, sans-serif; color: #333; line-height: 1.3; }
.header { display:flex; align-items:center; justify-content:space-between; padding: 4px 12px; }
.category-icons { display: flex; justify-content: space-around; align-items: center; margin-bottom: 15px; flex-wrap: nowrap; padding: 0 5px; }
.category-icons a { text-decoration: none; color: #444; text-align: center; flex: 1; font-size: 0.55rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; }
.category-icons svg { display: block; margin: 0 auto 4px auto; width: 24px; height: 24px; }
.header-slogan { display: flex; flex-direction: column; justify-content: center; margin-left: 10px; text-align: right; line-height: 1.1; }
.header-slogan span:first-child { font-size: 0.75rem; font-weight: 700; color: #333; }
.section-title { text-align: center; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 1.5rem 0 0.8rem 0; color: #555; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.card { border: 1px solid #f0f0f0; border-radius: 4px; overflow: hidden; height: 100%; transition: 0.2s; }


.card img { 
    width: 100%; 
    max-width: 250px; 
    height: auto; 
    aspect-ratio: 250 / 185; 
    object-fit: contain; 
    padding: 0; 
    display: block; 
    margin: 0 auto; 
    background-color: #f9f9f9; 
}
.cat-title { font-size: 0.7rem; font-weight: 700; text-transform: capitalize; text-align: center; line-height: 1.1; margin: 0; color: #333; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.col-4, .col-md-3, .col-lg-2 {
    padding: 0 5px;
    box-sizing: border-box;
}

/* Extra small devices: mobile phones (<576px) */
@media (max-width: 575.98px) {
    .col-4, .col-md-3, .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .card img {
        height: auto;
        max-height: 100px;
    }
}

/* Small devices (≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    .col-md-3, .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-3 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .col-lg-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
    .col-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .col-md-3 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
    .col-lg-2 {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}
.card-body {
    padding: 10px;
    display: flex;
    flex-direction: column; /* This allows the brand-row to sit under the title */
    flex-grow: 1;
}



/* --- 3. SECTIONAL GRID (1 per row mobile, 3 per row desktop) --- */
.sectional-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Mobile Default */
.sectional-grid .col-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 15px;
}

/* Desktop Switch */
@media (min-width: 992px) {
    .sectional-grid .col-item {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding: 10px;
    }
}

/* --- 4. COLLECTION & CATEGORY GRID (2 per row mobile, 4 per row desktop) --- */
.collection-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Mobile Default */
.collection-grid .col-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 8px;
}

/* Desktop Switch */
@media (min-width: 992px) {
    .collection-grid .col-item {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* --- 5. IMAGE HANDLING --- */
.sectional-grid .ca img {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 250;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.collection-grid .card img {
    width: 100%;
    height: auto;
    aspect-ratio: 330 / 206;
    object-fit: cover;
    display: block;
}

/* --- 6. TYPOGRAPHY --- */
.product-title {
    width: 100%;            /* Take up full width to allow centering */
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;     /* This centers the title text */
    color: #333;
    margin-bottom: 10px;    /* Space between title and brand/price row */
    text-decoration: none;
    display: block;
}

.brand-price-row { 
    display: flex;             /* Turns on the flexbox engine */
    justify-content: space-between; /* Pushes brand to left, price to right */
    align-items: flex-end;      /* Aligns them to the bottom of the row */
    margin-top: auto;         /* Pushes the whole row to the bottom of the card */
    width: 100%;
}


/* Styling for the Manufacturer/Brand label */
.brand-text {
    display: block;
    font-size: 0.65rem;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}




.price-text { 
    color: #b12704 !important;      /* Amazon-style Red/Brown color */
    font-weight: 800 !important;    /* Extra Bold */
    font-size: 0.95rem !important;
    letter-spacing: -0.2px;
}