/* Studio Stylesheet - Ochre Theme */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #3E3228;
    /* Warm Dark Brown test */
    --background-color: #f7e8c8;
    /* #e3a857; #9aba8c ; d1b575; f0d597
    /* Ochre Yellow */
    --surface-color: #ffffff;
    --text-color: #3E3228;
    /* Warm Dark Brown */
    --text-white: #ffffff;
    --hover-overlay: rgba(62, 50, 40, 0.6);
    /* Brown with opacity */

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Lora', serif;

    /* Spacing */
    --container-width: 1200px;
    /* Reduced from 1200px if needed, but keeping standard */
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--background-color);
    /* Move background here so noise can sit between html and body */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: transparent;
    /* Transparent to show noise behind */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Ensure body establishes a positioning context if needed */
}

/* Noise Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Behind content, on top of html background */
    opacity: 0.4;
    /* Slightly reduced from 0.5 for balance, but keeping it visible */
    mix-blend-mode: overlay;
    /* Better blending with the yellow background */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Navigation */
.navbar {
    padding: 2rem 0;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    /* Apply Serif to entire navbar */
}

.nav-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.logo {
    font-size: 2.2rem;
    /* Reduced from 3.5rem per user request */
    /* Placeholder size for text logo if image fails */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.logo img {
    height: 80px;
    /* Adjust based on actual logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
    /* Center vertically with logo if in row */
}

.nav-links a {
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    /* Slightly bolder for serif */
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    text-decoration: none;
}

/* Hand-drawn circle effect */
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid black;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    /* Irregular shape */
    transform: rotate(-2deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.nav-links a:hover::before {
    opacity: 1;
}

/* Main Content Grid */
.grid-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 4rem;

    /* AANPASSEN: Verander dit getal om de grid omlaag te schuiven */
    margin-top: 150px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Force 5 items in one row for Home Page */
    gap: 1.5rem;
}

/* Grid for individual product pages (responsive, big images) */

/*
.product-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {

    .category-grid,
    .product-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        /* Stack on smaller screens 
    }
}
*/
/* Grid for individual product pages (responsive, big images) */
.product-page-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.product-page-grid .grid-item {
    flex: 0 1 280px;
    width: 100%;
}

@media (max-width: 1024px) {

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-page-grid .grid-item {
        flex: 0 1 200px;
    }
}



.grid-item {
    position: relative;
    aspect-ratio: 4/5;
    /* Square images */
    overflow: hidden;
    cursor: pointer;
}

.grid-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hover-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-text {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    /* Ensure text is centered if it spans full width */
}

/* Hover Effects */
.grid-item:hover .grid-overlay {
    opacity: 1;
}

/* Page Content (for other pages) */
.page-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Contact Form Simple Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
}

.btn-submit {
    background: black;
    color: white;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (min-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Lightbox / Modal Styles */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 232, 200, 0.8);
    /* Reduced opacity (was 0.9) */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    background-color: var(--surface-color);
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    gap: 2rem;
    border-radius: 4px;
    position: relative;
    /* overflow-y: auto; Removed to allow internal scrolling */
    /* For smaller screens */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    align-items: flex-start;
    /* Align items to top */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image {
    width: 50%;
    object-fit: contain;
    /* Changed to contain to show full image */
    max-height: 80vh;
    border-radius: 4px;
}

.lightbox-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top so title isn't clipped */
    color: var(--text-color);
    overflow-y: auto;
    /* Enable vertical scroll for text */
    max-height: 80vh;
    /* Match roughly image height constraint */
    padding-right: 0.5rem;
    /* Space for scrollbar */
}

.lightbox-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--background-color);
    /* Ochre accent */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.lightbox-desc {
    font-family: var(--font-main);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--background-color);
}

@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        padding: 1.5rem;
        width: 95%;
    }

    .lightbox-image {
        width: 100%;
        max-height: 40vh;
        margin-bottom: 1rem;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }
}

/* Lightbox Gallery Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-color);
    transition: background 0.3s ease;
    border-radius: 4px;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
