/* New Arrivals Section CSS - Extracted from home.css */
/* This file contains ONLY New Arrivals section styles */

/* --- SECTIONS COMMON --- */
body.home-page .products-section { 
    padding: 60px 0; 
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

body.home-page .section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 40px; 
    padding: 0 2%; 
}

/* --- PRODUCT GRID --- */
body.home-page .product-grid { 
    display: grid; 
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
    gap: 30px; 
}

@media (max-width: 1300px) {
    body.home-page .product-grid { 
        grid-template-columns: repeat(4, minmax(0, 1fr)); 
    }
}

@media (max-width: 1024px) {
    body.home-page .product-grid { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
}

@media (max-width: 900px) {
    body.home-page .product-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
}

@media (max-width: 768px) {
    body.home-page .product-grid { 
        grid-template-columns: 1fr; 
    }
}

/* == NEW ARRIVALS STYLE (BLUE THEME) == */
body.home-page .product-card { 
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 14px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.05); 
    transition: 0.3s; 
    margin: 6% 1%; 
}

body.home-page .product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 18px 38px rgba(0,0,0,0.12); 
}

/* SHARED INNER STYLES FOR PRODUCT CARDS (New Arrivals) */
body.home-page .img-box { 
    position: relative; 
    overflow: hidden; 
    height: 320px; 
}

body.home-page .img-box img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.4s ease, transform 0.5s; 
}

body.home-page .img-box img.hover { 
    opacity: 0; 
}

body.home-page .product-card:hover .img-box img.hover { 
    opacity: 1; 
    transform: scale(1.08); 
}

body.home-page .product-card:hover .img-box img.primary { 
    opacity: 0; 
    transform: scale(1.02); 
}

body.home-page .card-actions { 
    position: absolute; 
    right: 10px; 
    top: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    transform: translateX(50px); 
    transition: 0.3s; 
    z-index: 2; 
}

/* Out of Stock Badge */
body.home-page .product-card.out-of-stock .img-box img {
    opacity: 0.5;
    filter: grayscale(100%);
}

body.home-page .out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.home-page .product-card .details .add-btn.disabled {
    background: #94a3b8;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.7;
}

body.home-page .product-card:hover .card-actions { 
    transform: translateX(0); 
}

body.home-page .card-actions button { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    border: none; 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    transition: 0.2s; 
}

body.home-page .card-actions button:hover { 
    background: var(--primary-brown); 
    color: #fff; 
}

body.home-page .badge-save, 
body.home-page .badge-sale { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    padding: 4px 8px; 
    font-size: 10px; 
    color: #fff; 
    font-weight: bold; 
    z-index: 2; 
    border-radius: 3px; 
}

body.home-page .badge-save { 
    background: #000; 
}

body.home-page .badge-sale { 
    background: #e53935; 
}

body.home-page .details { 
    padding: 15px; 
    text-align: center; 
}

body.home-page .price { 
    color: var(--primary-brown); 
    font-weight: 700; 
    margin: 5px 0 15px; 
}

/*body.home-page .add-btn { 
    width: 100%; 
    padding: 10px; 
    background: var(--dark-brown); 
    color: #fff; 
    border: none; 
    text-transform: uppercase; 
    font-size: 12px; 
    font-weight: 600; 
    letter-spacing: 1px; 
    transition: 0.3s; 
}*/

body.home-page .add-btn:hover { 
    background: var(--primary-brown); 
}

body.home-page .stars { 
    color: var(--gold); 
    font-size: 12px; 
    margin-bottom: 5px; 
}

