/* ================= HOME PAGE WRAPPER ================= */
.home-page {
    background: #ffffff;
    min-height: 100vh;
    padding: 20px 10px;
}

/* ===== HOME HEADER (TITLE + CATEGORY BUTTON) ===== */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* CATEGORY BUTTON */
.categories-btn {
    background-color: #2874f0;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #2874f0;
    transition: all 0.2s ease;
}

.categories-btn:hover {
    background-color: #1f5ed6;
}

/* TITLE */
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
}

/* ================= PRODUCTS GRID ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    position: relative; /* ✅ REQUIRED for wishlist button */
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* PRODUCT IMAGE */
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* PRODUCT NAME */
.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

/* ================= PRICE BOX ================= */
.price-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* FINAL PRICE */
.final-price {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* ORIGINAL PRICE (STRIKETHROUGH) */
.original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

/* ================= STOCK STATUS ================= */
.out-of-stock {
    color: #d32f2f;
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0;
}

/* ================= VIEW DETAILS BUTTON ================= */
.details-btn {
    display: inline-block;
    margin-top: 8px;
    color: #0066c0;
    text-decoration: none;
    font-weight: 600;
}

.details-btn:hover {
    text-decoration: underline;
}

/* ================= NO RESULTS ================= */
.no-results {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-top: 50px;
}

/* ================= WISHLIST BUTTON ================= */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    border-color: #e53935;
    background: #ffecec;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .home-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 22px;
    }
}
