/* Product Page Styles */

:root {
    --primary-color: #d94f04;
    --light-bg: #fff8e1;
    --text-color: #2c2f33;
    --border-color: #e0d4b8;
    --card-shadow: 0 8px 25px rgba(0,0,0,0.15);
    --card-hover-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

body {
    background: 
        linear-gradient(135deg, rgba(255, 248, 225, 0.9) 0%, rgba(245, 240, 232, 0.9) 100%),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
}

/* Product Section Styling */
#products {
    padding: 4rem 0 !important;
}

#products h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 3rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

#products h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ffb107);
    border-radius: 2px;
}

.product-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 650px; /* Increased from 600px to accommodate larger images */
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
}

.product-card > * {
    position: relative;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.product-img {
    width: 90%; /* Reduced from 100% to center better */
    height: 280px; /* Increased from 220px */
    object-fit: cover;
    border-radius: 15px;
    margin: 1.5rem auto 1rem auto; /* Center horizontally */
    display: block; /* Ensure block display for centering */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Styling for img tags in product cards */
.product-card img {
    width: 90% !important; /* Reduced from 100% to center better */
    height: 280px !important; /* Increased from 220px */
    object-fit: cover;
    border-radius: 15px;
    margin: 1.5rem auto 1rem auto !important; /* Center horizontally */
    display: block !important; /* Ensure block display for centering */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.product-card:hover .product-img,
.product-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.product-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 1.5rem 0.5rem 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.product-card .price {
    height: 0;
    margin: 0;
    padding: 0;
}

.product-card p:not(.price) {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    font-weight: 500;
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), #e55a0a);
    border: none;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(217, 79, 4, 0.3);
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    align-self: center;
    width: auto;
    min-width: 120px;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom:active {
    background: linear-gradient(135deg, #b34303, var(--primary-color)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 79, 4, 0.4);
    color: white !important;
    text-decoration: none !important;
    border: none;
}

/* Specific Product Card Backgrounds */
.product-card-cinnamon {
    background-image: url('../images/cinnmon.jpeg');
}

.product-card-cardamom {
    background-image: url('../images/Cardamom.jpeg');
}

.product-card-cloves {
    background-image: url('../images/Cloves.jpeg');
}

.product-card-pepper {
    background-image: url('../images/black.jpeg');
}

.product-card-nutmeg {
    background-image: url('../images/nutmeg.jpeg');
}

.product-card-turmeric {
    background-image: url('../images/Turmeric.jpeg');
}

.product-card-curry-leaves {
    background-image: url('../images/curryleaves.jpeg');
}
.product-card-ginger {
    background-image: url('../images/ginger.jpg');
}

/* Responsive Design */
@media (max-width: 768px) {
    #products h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem !important;
    }
    
    .product-card {
        height: 470px; /* Increased from 420px */
        margin-bottom: 2rem;
    }
    
    .product-img,
    .product-card img {
        width: 90% !important; /* Center images on mobile */
        height: 220px !important; /* Increased from 180px */
        margin: 1rem auto 0.5rem auto !important; /* Center horizontally */
        display: block !important;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin: 0 1rem 0.5rem 1rem;
    }
    
    .product-card p:not(.price) {
        font-size: 0.9rem;
        margin: 0 1rem 1rem 1rem;
    }
    
    .btn-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin: 0 1rem 1rem 1rem;
    }
}

@media (max-width: 576px) {
    #products {
        padding: 3rem 0 !important;
    }
    
    #products h1 {
        font-size: 1.8rem;
    }
    
    .product-card {
        height: 420px; /* Increased from 380px */
    }
    
    .product-img,
    .product-card img {
        width: 90% !important; /* Center images on small screens */
        height: 190px !important; /* Increased from 160px */
        margin: 1rem auto 0.5rem auto !important; /* Center horizontally */
        display: block !important;
    }
} 