/* ===== HERO ===== */

:root {
    --bg-main: #f6f7fb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --text: #111827;
    --soft: #f3f4f6;
    --hover: #f9fafb;
    --accent: #f59e0b;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
}

.hero-subtext {
    color: #6b7280;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px;
   
  
}
.section-header > a {
  text-decoration: none;
   color: black;
}
/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* ===== CLICKABLE LINK ===== */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== IMAGE ===== */
.card-image-wrapper {
    background: #f9fafb;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; 
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== BADGE ===== */
.badge-custom {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff3bf;
    color: #d97706;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
}

/* ===== CONTENT ===== */
.card-body-custom {
    padding: 16px;
}

.category-text {
    font-size: 12px;
    color: var(--muted);
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0;
}

.product-price {
    padding-top: 5px;
    font-weight: 700;
    font-size: 1.5rem;
}



/* ===== BUTTON ===== */
.add-btn {
    background: var(--soft);
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
}

.add-btn:hover {
    background: #e5e7eb;
}

/* ===== CATEGORY ===== */
.category-banner {
    display: block;
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* IMAGE */
.category-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* OVERLAY */
.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* TEXT CENTER */
.category-banner span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 2;
}

/* HOVER EFFECT */
.category-banner:hover img {
    transform: scale(1.1);
}

.category-banner:hover .category-overlay {
    background: rgba(0,0,0,0.35);
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {

    /* CONTAINER */
    .main-container {
        padding: 0 12px;
    }

    /* HERO */
    .hero-section {
        margin-top: 10px;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
        padding: 10px 0px;
    }

    .hero-subtext {
        font-size: 1.125rem;
        margin-top: 10px;
    }

    /* HERO BUTTONS */
    .hero-buttons {
        flex-direction: column;
        
    }
    .hero-buttons > a {
        margin-top: 18px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* HERO IMAGE */
    .hero-image {
        margin-top: 20px;
    }

    .hero-image img {
        border-radius: 12px;
        height: 380px;
        object-fit: cover;
    }

    /* SECTION HEADER */
    .section-header {
        padding: 10px 0;
        margin-top: 20px;
    }

    .section-header h5 {
        font-size: 1.5rem;
    }

    .section-header a {
        font-size: 1.3rem;
    }

    /* PRODUCT CARD */
    .product-card {
        border-radius: 12px;
    }

    .card-image-wrapper {
        height: 250px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1rem;
    }

    /* BUTTON */
    .add-btn {
        font-size: 14px;
        padding: 8px;
    }

    /* CATEGORY */
    .category-banner img {
        height: 160px;
    }

    .category-banner span {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1.5rem;

    }

}
