/* ===================================
   GLOBAL RESET
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f6f6f6;
    color: #222;
    padding-bottom: 60px;
}



/* ===================================
   HERO SECTION
=================================== */

.shop-hero {
    width: 100%;
    height: 420px;
    background-image: url('/images/afa-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.shop-hero-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
}

.shop-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.shop-hero-content p {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 400;
}

/* Mobile hero */
@media (max-width: 600px) {
    .shop-hero {
        height: 280px;
    }

    .shop-hero-content h1 {
        font-size: 28px;
    }

    .shop-hero-content p {
        font-size: 14px;
    }
}



/* ===================================
   CATEGORY SECTION
=================================== */

.category-section {
    width: 100%;
    padding: 70px 0;
    background: #fff;
}

.category-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #000;
}

.category-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 15px;
}



/* GRID — 4 per row desktop */
.category-grid {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}



/* ===================================
   CATEGORY CARD
=================================== */

.category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #eee;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}



/* IMAGE TOP */
.category-img-box {
    width: 100%;
    height: 170px;
}

.category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* CONTENT BOX */
.category-info {
    padding: 18px 15px 22px;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}



/* BOTTOM ROW (badge + button) */
.cat-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}



/* BADGES */
.cat-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* In Stock */
.in-stock {
    background: #d8ffe3;
    color: #089635;
    border: 1px solid #a3efbc;
}

/* Out of Stock */
.out-of-stock {
    background: #ffe1e1;
    color: #c93535;
    border: 1px solid #f2b4b4;
}



/* BUTTON */
.cat-btn {
    padding: 6px 14px;
    background: gold;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #000;
    transition: 0.2s ease;
    white-space: nowrap;
}

.cat-btn:hover {
    background: #ffdb52;
}



/* INACTIVE CARD */
.category-inactive {
    opacity: 0.6;
    cursor: not-allowed;
}



/* ===================================
   RESPONSIVE
=================================== */

/* Tablets */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .category-img-box {
        height: 150px;
    }
}

/* Mobile 2 per row */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 94%;
        margin: auto;
        gap: 18px;
    }

    .category-card {
        border-radius: 14px;
    }

    .category-img-box {
        height: 130px;
    }
}

/* Extra tiny screens */
@media (max-width: 400px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-img-box {
        height: 120px;
    }

    .category-info h3 {
        font-size: 14px;
    }

    .cat-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}
