/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.8;
}

/* General Page Container */
.page-container {
    width: 90%;
    max-width: 1200px; /* Centered content width */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Product grid container (AGRESSIVE FIX APPLIED HERE) */
.product-grid-container {
    width: 100%; 
    margin: 0 auto;
 background-color: #F3EBE2;
    /* CRITICAL FIX: Ensure grid display is not overridden */
    display: grid !important; 
    
    /* Desktop Default: 3 columns */
    grid-template-columns: repeat(3, 1fr) !important; 
    
    gap: 20px; 
    align-items: stretch;
}

/* Header styles */
header {
    background-color: #FFFFFF;
    color: #800909;
    padding: 1.5rem 0;
    text-align: center;
    
}

header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.header-container {
    color: #ffffff;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    width: 50%;
    max-height: 500px;
    margin: 0 auto;
}

.header-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 250px;
}

.header-image.left {
    left: 100px;
}

.header-image.right {
    right: 100px;
}

/* Navigation styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

nav ul li {
    display: inline;
    margin: 0 1.5rem;
}

nav ul li a {
    color: #800909;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #9C0303;
}

/* Section styles */
section h2 {
    text-align: center;
    color: #9C0303;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

section p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* About section */
section#about .aboutp {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: center;
	background-color: #800909;
}

/* Product styles */
.product {
    background-color: #F3EBE2;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;

    display: flex;
    flex-direction: column; /* stack content vertically */
    height: 100%; /* make all products equal height */
}

.product img {
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s;
}

.product img:hover {
    transform: scale(1.05);
}

.product h3 {
    color: #800909;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.product p {
    flex-grow: 1; /* stretch text area so button/price aligns at bottom */
}

/* Testimonial styles */
.testimonials-content {
    display: flex;
    flex-direction: column; /* Stack the testimonial blocks */
    gap: 20px; /* Space between each testimonial block */
}

.testimonial {
    margin: 0; 
    padding: 2rem;
    border-radius: 10px;
    background-color: #800909;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.testimonial p {
    font-size: 1.5rem;
    line-height: 1.6;
}

.testimonial p:last-child {
    font-style: italic;
    margin-top: 1rem;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #800909;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 2rem auto; 
    color: #fafcfa;
}

form label {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fafcfa;
}

form input,
form textarea {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem;
}

form button {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    background-color: #C4B19B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #000000;
}

/* Contact info styles */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #800909;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    text-align: center;
}

/* Footer styles */
footer {
    background-color: #800909;
    color: #800909;
    text-align: center;
    padding: 2rem 0;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive layouts for Products (Adjusted) */

/* Tablets/Mid-screens: 2 columns */
@media (max-width: 900px) {
    .product-grid-container {
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

/* Mobile: Stack vertically (1 column) */
@media (max-width: 550px) {
    .product-grid-container {
        grid-template-columns: 1fr !important; /* Stack vertically on small mobile screens */
    }

    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }
}