/* --- Global Styles & Typography --- */
:root {
    --color-primary: #5a7d7c; /* A deep, natural green/teal for crafts */
    --color-secondary: #fdfaf6; /* A soft, warm off-white for background */
    --color-text: #333333;
    --color-light-text: #666666;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrollbar from banner */
}

/* --- Main Header --- */
.main-header {
    background-color: var(--color-primary);
    color: white;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 4px 10px var(--color-shadow);
    margin-bottom: 40px; /* Space below header */
}

.main-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* --- Scrolling Image Banner --- */
.image-banner-scroll {
    width: 100vw; /* Full viewport width */
    overflow: hidden; /* Hide anything outside */
    margin-bottom: 60px; /* Space below banner */
    padding: 20px 0; /* Vertical padding */
    background-color: #f7f7f7;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.scrolling-wrapper {
    display: flex;
    animation: scroll-left 15s linear infinite; /* Animation for scrolling */
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.scrolling-wrapper img {
    height: 350px; /* Fixed height for all banner images */
    width: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between images */
    object-fit: cover; /* Cover the area, crop if necessary */
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--color-shadow);
    flex-shrink: 0; /* Prevent images from shrinking */
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half the width of duplicated content */
}


/* --- Product Gallery --- */
.product-gallery {
    max-width: 1200px;
    margin: 0 auto 80px; /* Center with bottom margin */
    padding: 0 20px;
    text-align: center;
}

.product-gallery h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 40px;
    position: relative;
    display: inline-block; /* Helps with border positioning */
}

.product-gallery h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between product items */
    margin-bottom: 40px; /* Space between rows */
    background-color: #fff; /* White background for row for visual separation */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--color-border);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-item a {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure link covers entire item */
}

.product-item img {
    width: 100%;
    height: 250px; /* Fixed height for product images */
    object-fit: cover; /* Crop to fit */
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.product-item a:hover img {
    transform: scale(1.03); /* Subtle zoom on hover */
}

.product-item span {
    padding: 15px 10px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-primary);
    display: block; /* Make span take full width */
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-text);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    border-top: 5px solid var(--color-primary);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .main-header h1 {
        font-size: 3em;
    }
    .product-gallery {
        padding: 0 15px;
    }
    .product-row {
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 40px 15px;
        margin-bottom: 30px;
    }
    .main-header h1 {
        font-size: 2.5em;
    }
    .image-banner-scroll {
        padding: 15px 0;
        margin-bottom: 40px;
    }
    .scrolling-wrapper img {
        height: 280px;
        margin-right: 15px;
    }
    .product-gallery h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .product-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
        margin-bottom: 30px;
    }
    .product-item img {
        height: 200px;
    }
    .product-item span {
        font-size: 1em;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    .image-banner-scroll {
        padding: 10px 0;
    }
    .scrolling-wrapper img {
        height: 200px;
        margin-right: 10px;
    }
    .product-gallery h2 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    .product-row {
        grid-template-columns: 1fr; /* Stack products on very small screens */
        gap: 10px;
        padding: 10px;
        margin-bottom: 25px;
    }
    .product-item img {
        height: 180px;
    }
    .product-item span {
        font-size: 0.9em;
    }
}