/* -------------------------------------------------------------------------- */
/* PRODUCT SECTION & CARDS (Premium Redesign) */
/* -------------------------------------------------------------------------- */

.product-section {
    padding: 40px 25px; 
    background: #eef1f4; 
}

.product-section h2 {
    margin-bottom: 35px;
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #1a1a1a;
    text-align: center;
    letter-spacing: 0.05em; 
}

.product-container {
    display: grid;
    /* Responsive grid: minimum card width is 260px */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px; 
    padding-bottom: 10px;
}

.product-card {
    background: #ffffff; /* Clean white card */
    padding: 20px; 
    border-radius: 16px; 
    /* Soft, floating shadow to lift the card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);     
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease; 
    height: 350px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05); 
}

/* Hover effect for premium touch */
.product-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
}

.product-image-wrapper {
    height: 200px; /* Provides space for a larger product image */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* Inner shadow for depth */
    overflow: hidden; /* Important for containing image zoom */
}

.product-card img {
    width: 90%; 
    max-height: 100%; 
    object-fit: contain; 
    background: transparent; 
    border-radius: 0; 
    margin-bottom: 0; 
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover img {
    transform: scale(1.05); /* Zoom on hover */
}

.product-card h3 {
    font-size: 1.25rem; 
    font-weight: 700; 
    margin: 5px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #1a1a1a;
    letter-spacing: -0.01em; 
}

.product-card p.product-price {
    font-weight: 800; 
    color: #c46237; /* Copper/Bronze for price emphasis */
    margin: 5px 0 5px 0; /* Reduced vertical space around price */ 
    text-align: left;
    font-size: 1.4rem; 
    letter-spacing: 0.02em;
}


/* Product Action Buttons */
.product-card .product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-top: auto; /* Pushes buttons to the bottom */
    flex-direction: row; 
    gap: 10px; 
}

.product-card .add-to-cart-btn,
.product-card .buy-now-btn {
    font-weight: 600;
    padding: 8px 12px; 
    font-size: 0.85em; 
    border: none;
    border-radius: 6px; 
    cursor: pointer;
    text-decoration: none;
    color: white;
    text-align: center;
    flex-grow: 1; 
    transition: background-color 0.3s ease, transform 0.1s, box-shadow 0.3s ease;
}

.product-card .add-to-cart-btn {
    background-color: #1c4558; /* Deep Navy/Teal - Primary Action */
    box-shadow: 0 4px 10px rgba(28, 69, 88, 0.3);
}

.product-card .buy-now-btn {
    background-color: #c46237; /* Rich Copper/Bronze - Accent Action */
    box-shadow: 0 4px 10px rgba(196, 98, 55, 0.4);
}

.product-card .add-to-cart-btn:hover {
    background-color: #153545;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(28, 69, 88, 0.5);
}

.product-card .buy-now-btn:hover {
    background-color: #b05931;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(196, 98, 55, 0.6);
}


/* -------------------------------------------------------------------------- */
/* MOBILE STYLES for Products */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .product-section {
        padding: 20px 10px;
    }
    .product-section h2 {
        font-size: 1.8rem;
    }

    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
        gap: 15px;
    }

    .product-card {
        height: 250px; 
        padding: 12px;
    }
    
    .product-image-wrapper {
        height: 100px;
        margin-bottom: 10px;
    }

    .product-card h3 {
        font-size: 0.95rem;
        margin: 2px 0;
    }

    .product-card p.product-price {
        font-size: 1.05rem;
        margin: 2px 0 8px 0;
    }

    .product-card .product-actions {
        margin-top: 5px;
        gap: 6px;
    }
    
    .product-card .add-to-cart-btn,
    .product-card .buy-now-btn {
        padding: 5px 6px; 
        font-size: 0.7em; 
        border-radius: 5px;
    }
}
