* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f2f5;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}



/* Filter Section for index.html */
.filter-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}



.filter-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap; 
    width: auto; 
}

.filter-wrapper label {
    font-size: 16px;
    font-weight: 500;
    margin-right: 10px;
}

.filter-wrapper select, .filter-wrapper input {
    padding: 10px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

/* Product Gallery Section */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Product Card (within product gallery only) */
.product-gallery .product-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width:100%;
    margin: 0 auto;
    font-weight: 400;
    outline: 2px solid #1aa89c;

    /* Flexbox settings to align content to bottom */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure card stretches to the same height */
}

.product-gallery .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.product-gallery .product-card a {
    text-decoration: none;
    color: inherit;
}

/* Image Styling in Product Card */
.product-gallery .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Product Title */
.product-gallery .product-card h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #1aa89c;
    font-weight: 600;
}

/* Product Description and Details in Product Card */
.product-gallery .product-card p {
    font-size: 16px;
    color: #666;
    text-align: left;
    margin: 5px 0;
    line-height: 1.4;
    font-weight: 400;
}

.product-gallery .product-card span {
    margin-top: 15px;
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: #1aa89c;
    text-align: center;

    margin-top: auto; /* Pushes price to the bottom */
}

/* Add to Cart Button in Product Card */
.product-gallery .add-to-cart {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #1aa89c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.product-gallery .add-to-cart:hover {
    background-color: #149B84;
    transform: scale(1.05);
}

/* Product Details Section */
.product-details {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.product-details img.product-image {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    object-fit: cover;
}

.product-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1aa89c;
    font-weight: 700;
}

.product-info .merchant-name {
    font-size: 24px;
    font-weight: 700;
    color: #1aa89c;
    margin-top: 10px;
    margin-bottom: 20px;
}

.product-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 400;
}

.product-info .price {
    font-size: 24px;
    font-weight: 700;
    color: #1aa89c;
    margin-top: 10px;
    margin-bottom: 20px;
}


.product-info {
    flex-grow: 1; /* Makes product info take up the remaining space */
}

/* Button Styling */
.product-button-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.btn-product-details {
    width: 100%; /* Ensures button takes full width of product-info */
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #1aa89c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-product-details:hover {
    background-color: #149B84;
    transform: scale(1.05);
}

/* Select Variation Styling */
.product-info select {
    padding: 10px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    width: 100%;
}

/* Merchant Profile Section */
.merchant-profile {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 900px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e6e6e6;
    font-weight: 400;
}

/* Store Logo Container */
.store-logo-container {
    width: 220px;
    height: 150px;
    margin: 0 auto 2rem;
    background-color: #f2faf9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    outline: 2px solid #1aa89c;
}

.store-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background-color: #fff;
}

.placeholder-logo {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
}

/* Merchant Details Text Styling */
.merchant-profile h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1aa89c;
    margin-bottom: 0.5rem;
}

.merchant-profile p {
    font-size: 18px;
    color: #555;
    margin: 0.3rem 0;
    line-height: 1.7;
    text-align: left;
}

.merchant-profile p strong {
    color: #888;
    font-weight: 600;
}

/* Products Title */
.section-title {
    font-size: 28px;
    color: #1aa89c;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .product-details {
        flex-direction: column;
        padding: 20px;
    }
}

.disclaimer-text {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    background-color: #f9f9f9; /* Light background */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}


/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    /* Adjust Filter Wrapper on Mobile */
    .filter-wrapper {
        flex-direction: column; /* Stack filters vertically */
        gap: 10px; /* Less gap on smaller screens for better spacing */
        align-items: flex-start; /* Align items to the start */
        width: 100%; /* Take full width on mobile */
    }

    /* Make the Filters Full-Width for Better Touch Usability */
    .filter-wrapper select, 
    .filter-wrapper input {
        width: 100%; /* Full width for easier tapping on mobile */
        margin-bottom: 10px; /* Add spacing between each filter */
    }

    .filter-wrapper label {
        width: 100%; /* Make labels full-width */
    }
}

/* Extra Styling for Smaller Mobile Devices (Optional) */
@media (max-width: 480px) {
    .filter-wrapper {
        padding: 10px; /* Less padding for smaller screens */
    }

    .filter-wrapper select, 
    .filter-wrapper input {
        font-size: 14px; /* Slightly smaller font for better readability */
    }

    .filter-wrapper label {
        font-size: 14px; /* Slightly smaller font for labels too */
    }
}
