/* ============================================================
   HOMEPAGE PRODUCT SHOWCASE STYLES
   Used on: index.php
   Two rows of 4 products each: "Recent Products" and
   "Most Selling Products". Reuses .product-card /
   .products-grid markup from shop-page.css so cards look
   identical to the shop page, but with a 4-column grid.
   ============================================================ */

.home-products-section {
    padding: 70px 0;
    background: #fff;
}

.home-products-section + .home-products-section {
    padding-top: 0;
}

.home-products-section .ts-section-title {
    margin-bottom: 40px;
}

/* 4-column grid (shop-page.css's .products-grid defaults to 3) */
.home-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ── AJAX Add-to-Cart feedback (shared with shop.php) ── */
.cart-btn.added {
    background: #D4AF37 !important;
    transform: scale(1.15);
}

.cart-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a3a20;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
