/* ==========================================================================
   1. "Warm Elegance" Color Palette & General Setup
   ========================================================================== */
:root {
    --primary-warm-taupe: #A68A7F;
    --secondary-soft-cream: #F8F5F2;
    --accent1-dusty-rose: #C57B57;
    --accent2-sage-green: #97a198;
    --text-dark-espresso: #4B3B30;
    --background-ivory: #F2EEE9;
    --border-subtle: #e0dcd7;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-ivory);
    color: var(--text-dark-espresso);
    line-height: 1.7;
    font-weight: 300;
}

.page-wrapper {
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.main-header {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 100;
}
.main-header.static-header {
    position: static;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(242, 238, 233, 0.5);
    backdrop-filter: blur(5px); /* Optioneel: een heel subtiele blur voor luxe effect */
    -webkit-backdrop-filter: blur(5px);

    padding: 0.75rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-radius: 8px; /* Zacht afgeronde hoeken */
}

.main-header.static-header .nav-container {
    background-color: transparent;
    box-shadow: none;
}

.logo-link { display: flex; align-items: center; }
.logo-image { max-height: 50px; width: auto; }
.main-header.static-header .logo-image { max-height: 40px; }

.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav a { text-decoration: none; color: var(--text-dark-espresso); font-size: 1rem; font-weight: 400; padding: 0.5rem 0; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--primary-warm-taupe); }
.main-nav a.active { font-weight: 700; color: var(--text-dark-espresso); border-bottom: 2px solid var(--text-dark-espresso); }

.cart-icon-wrapper { position: relative; color: var(--text-dark-espresso); }
.cart-item-count { position: absolute; top: -8px; right: -8px; background-color: var(--accent1-dusty-rose); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }

/* ==========================================================================
   3. Homepage Stijlen (Hero, Categories, etc.)
   ========================================================================== */
.hero { min-height: 80vh; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: inherit; }
.hero-content { padding-top: 150px; padding-bottom: 5rem; background: linear-gradient(to right, var(--secondary-soft-cream) 60%, #e0d6cc); }
.hero-content .container { margin-left: auto; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; }
.hero-content .subheading { font-family: var(--font-sans); font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; margin: 1rem 0 2rem 0; color: var(--primary-warm-taupe); }
.hero-image-pane { height: 100%; background-image: url('images/01.jpg'); background-size: cover; background-position: center top; }

.cta-button { display: inline-block; background-color: var(--text-dark-espresso); color: var(--background-ivory); padding: 1rem 3rem; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; transition: all 0.3s ease; }
.cta-button:hover { background-color: #614d40; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ==========================================================================
   3b. Homepage: Featured Products Section
   ========================================================================== */
.featured-products {
    background-color: var(--text-dark-espresso);
    padding: 6rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.featured-card {
    background-color: var(--secondary-soft-cream);
    text-decoration: none;
    color: var(--text-dark-espresso);
    border-radius: 4px;
    overflow: hidden; /* Zorgt dat de afbeelding netjes binnen de kaart blijft */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.featured-image-wrapper {
    width: 100%;
    /* Een 4:3 verhouding is vaak mooi voor productfoto's */
    aspect-ratio: 4 / 3; 
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zorgt dat de afbeelding altijd mooi vult */
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image-wrapper img {
    transform: scale(1.05); /* Subtiel zoom-effect bij hover */
}

.featured-content {
    padding: 1.5rem;
    flex-grow: 1; /* Zorgt dat de content de resterende ruimte vult */
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.featured-description {
    font-size: 1rem;
    color: var(--primary-warm-taupe);
}

.promise-light { background-color: var(--secondary-soft-cream); color: var(--text-dark-espresso); padding: 6rem 0; }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.promise-light .pre-heading { letter-spacing: 3px; text-transform: uppercase; font-size: 0.9rem; color: var(--primary-warm-taupe); }
.promise-light h2 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; margin: 0.5rem 0 1.5rem 0; color: var(--text-dark-espresso); font-style: italic; }
.promise-light p { font-size: 1.1rem; max-width: 450px; }
.promise-image-container { border-top-left-radius: 20rem; border-top-right-radius: 20rem; overflow: hidden; }

/* --- Homepage: Image Rotator in Featured Grid --- */

.rotator-card {
    /* Gebruik dezelfde basisstijlen als een normale kaart voor consistentie */
    background-color: var(--secondary-soft-cream);
    border-radius: 4px;
    overflow: hidden;
    display: flex; /* Nodig voor de flex-grow hieronder */
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    
    /* Cruciaal voor de positionering van de afbeeldingen en tekst */
    position: relative; 
    
    /* Zorgt dat de kaart dezelfde hoogte heeft als de andere kaarten */
    aspect-ratio: 3 / 4; 
}

.rotator-image {
    /* Stapel alle afbeeldingen perfect op elkaar */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Verberg de afbeeldingen standaard */
    opacity: 0; 
    
    /* De magie van de cross-fade animatie */
    transition: opacity 0.7s ease-in-out; 
}

/* De actieve afbeelding wordt zichtbaar */
.rotator-image.active {
    opacity: 1;
}

.rotator-content {
    /* Plaats de tekst onderaan, bovenop de afbeeldingen */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.5rem 1.5rem; /* Extra padding bovenaan voor de gradient */
    color: white;
    z-index: 2; /* Zorgt dat de tekst altijd boven de afbeeldingen staat */
    
    /* Een subtiele schaduw/gradient achter de tekst voor betere leesbaarheid */
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.rotator-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.rotator-description {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* ==========================================================================
   4. Product Overzicht & Detail Paginas
   ========================================================================== */
.main-content { padding-top: 4rem; padding-bottom: 6rem; }
.page-title { text-align: center; font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 3rem; font-style: italic; }

/* Product Overzicht (products.html) */
.collection-header { text-align: center; padding-bottom: 3rem; }
.collection-intro { font-size: 1.1rem; max-width: 600px; margin: -2.5rem auto 0 auto; color: var(--primary-warm-taupe); line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.product-card { background-color: var(--secondary-soft-cream); text-decoration: none; color: var(--text-dark-espresso); border-radius: 4px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(75, 59, 48, 0.1); }
.product-image-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image-wrapper img { transform: scale(1.05); }
.product-info { padding: 1rem 1.25rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.product-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.25rem; }
.product-price { font-family: var(--font-sans); color: var(--primary-warm-taupe); font-weight: 400; }

.featured-banner { grid-column: 1 / -1; display: flex; align-items: center; background-color: #e0d6cc; border-radius: 4px; overflow: hidden; margin: 1rem 0; }
.featured-banner .banner-text { padding: 3rem; flex-basis: 50%; text-align: center; }
.featured-banner .banner-text h3 { font-family: var(--font-serif); font-size: 2rem; font-style: italic; margin-bottom: 0.5rem; }
.featured-banner .banner-text p { margin-bottom: 1.5rem; }
.featured-banner .banner-image { flex-basis: 50%; width: 100%; height: 100%; }
.featured-banner .banner-image img { width: 100%; height: 100%; object-fit: cover; }
.cta-button-small { display: inline-block; background-color: var(--text-dark-espresso); color: var(--background-ivory); padding: 0.75rem 1.5rem; text-decoration: none; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; transition: background-color 0.3s ease; }
.cta-button-small:hover { background-color: #614d40; }

/* Product Detail Pagina (knuffels.html, etc.) */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.main-image-container img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.thumbnail { border: 2px solid transparent; border-radius: 4px; cursor: pointer; transition: border-color 0.3s ease; aspect-ratio: 1 / 1; object-fit: cover; }
.thumbnail:hover, .thumbnail.active-thumb { border-color: var(--primary-warm-taupe); }

.product-info-details { padding-top: 1rem; }
.product-title { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.2; margin-bottom: 0.5rem; }
.price { font-size: 1.5rem; color: var(--primary-warm-taupe); margin-bottom: 1.5rem; font-weight: 400; }
.intro-text { font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; }

.product-form { display: flex; flex-direction: column; gap: 0.5rem; }
.product-form .form-group { margin-bottom: 1rem; }
.product-form label { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-warm-taupe); margin-bottom: 0.5rem; display: block; }
.product-form select, .product-form input { padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-sans); font-size: 1rem; background-color: #fff; width: 100%; }

.add-to-cart-button { background-color: var(--text-dark-espresso); color: var(--background-ivory); border: none; padding: 1.25rem; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 4px; transition: all 0.3s ease; }
.add-to-cart-button:hover { background-color: #614d40; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.color-swatches .swatch { border: 2px solid transparent; transition: border-color 0.2s; border-radius: 50%; width: 40px; height: 40px; padding: 0; margin-right: 2px; cursor: pointer; }
.color-swatches .swatch.active { border-color: var(--text-dark-espresso); }
.font-choice { border: 1px solid #ccc; background: #fff; padding: 0.5rem 0.75rem; border-radius: 4px; cursor: pointer; font-size: 1.2rem; }
.font-choice.active { border-color: var(--text-dark-espresso); background-color: var(--secondary-soft-cream); }
.product-preview { margin-top: 1rem; padding: 1.5rem; background-color: var(--secondary-soft-cream); border-radius: 4px; text-align: center; min-height: 60px; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
#preview-text { font-size: 1.5rem; word-break: break-all; }
.variant-selector-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.variant-card { border: 2px solid var(--border-subtle); border-radius: 4px; padding: 0.5rem; text-align: center; cursor: pointer; transition: all 0.2s ease-in-out; }
.variant-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; margin-bottom: 0.5rem; }
.variant-card .variant-name { font-size: 0.9rem; font-weight: 400; }
.variant-card.active { border-color: var(--text-dark-espresso); box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: scale(1.03); }

.product-accordion { border-top: 1px solid #ddd; margin-top: 2rem; }
.product-accordion details { border-bottom: 1px solid #ddd; }
.product-accordion summary { padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.product-accordion summary::after { content: '+'; position: absolute; right: 0.5rem; font-size: 1.5rem; font-weight: 300; transition: transform 0.3s ease; }
.product-accordion details[open] summary::after { transform: rotate(45deg); }
.accordion-content { padding-bottom: 1.5rem; }


/* ==========================================================================
   5. Winkelwagen (Cart) Pagina Stijlen
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-warm-taupe); }
.cart-table td { padding: 1.5rem 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.cart-item-image img { width: 100px; height: 100px; object-fit: cover; border-radius: 4px; margin-right: 1.5rem; }
.cart-item-details h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.5rem; }
.cart-item-details ul { list-style: none; padding: 0; font-size: 0.9rem; color: #666; }
.cart-item-details ul li { margin-bottom: 0.25rem; }
.cart-item-price { font-weight: 700; }
.remove-item-btn { background: none; border: 1px solid #ddd; color: var(--primary-warm-taupe); padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.remove-item-btn:hover { background-color: #fcebeb; color: #c53030; border-color: #c53030; }

.cart-summary { background-color: var(--secondary-soft-cream); padding: 2rem; border-radius: 4px; position: sticky; top: 2rem; }
.cart-summary h3 { font-family: var(--font-serif); margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.total-row { font-weight: 700; font-size: 1.2rem; margin-top: 1.5rem; }
.cart-summary hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2rem 0; }
.checkout-form { display: flex; flex-direction: column; gap: 1rem; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-sans); font-size: 1rem; }
.checkout-form button { width: 100%; margin-top: 1rem; }
.shipping-choices { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.shipping-choice { display: flex; align-items: center; cursor: pointer; font-size: 1rem; }
.shipping-choice input[type="radio"] { margin-right: 0.5rem; width: 1.15em; height: 1.15em; margin-top: -1px; }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark-espresso);
    color: var(--background-ivory);
    padding: 5rem 0 0 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 4rem;
    /* Standaard 1 kolom voor mobiel */
    grid-template-columns: 1fr;
}

/* DE BELANGRIJKSTE WIJZIGING: het proportionele raster voor grotere schermen */
@media (min-width: 768px) {
    .footer-grid {
        /* 2 delen voor de eerste kolom, 1 deel voor de andere twee */
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Extra stijlen voor de nieuwe elementen in de footer */
.logo-and-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-and-title h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background-ivory);
    margin: 0;
}

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--primary-warm-taupe); /* Lichte taupe kleur voor contrast */
}

.footer-about .logo-image {
    max-height: 40px;
    margin: 0;
}

.footer-tagline {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a, .footer-contact a {
    color: var(--background-ivory);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.footer-links a:hover, .footer-contact a:hover { opacity: 1; }

.footer-contact p {
    margin: 0 0 0.25rem 0; /* Strakkere marges voor adresregels */
    opacity: 0.8;
}
.footer-contact a {
    display: block;
}
.footer-contact .phone-number {
    margin-top: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.social-icons a { display: inline-block; width: 24px; height: 24px; }
.social-icons svg {
    fill: var(--background-ivory);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover svg { opacity: 1; transform: scale(1.1); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- STYLE FOR FOOTER SPACER ON HOMEPAGE --- */

.footer-spacer {
    /* Deze spacer gebruikt de lichte achtergrondkleur van de body */
    background-color: var(--background-ivory); 
    
    /* Pas de hoogte aan naar wens, dit is een goede start */
    height: 100px; 
}


/* ==========================================================================
   7. Responsive Overrides
   ========================================================================== */
@media (min-width: 769px) {
    /* Styles for tablet and larger */
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

@media (min-width: 1200px) {
    /* Styles for large desktop */
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    /* Styles for smaller desktop and tablet */
    .hero-grid, .promise-grid, .custom-service-grid { grid-template-columns: 1fr; }
    .hero-content { padding-top: 180px; text-align: center; background: var(--secondary-soft-cream); }
    .hero-image-pane { min-height: 400px; order: -1; }
    .promise-grid, .custom-service-grid { text-align: center; }
    .promise-text p, .custom-service-text p { margin: 0 auto; }
    .promise-image-container { margin: 2rem auto 0 auto; max-width: 400px; }
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* === MOBILE STYLES === */

    /* Algemene Header aanpassing voor mobiel */
    .main-header { position: static; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .main-header.static-header { background-color: #fff; }
    .nav-container { flex-direction: column; gap: 1rem; box-shadow: none; padding: 1.5rem 1rem; }
    .main-header.static-header .nav-container { padding: 1.5rem 1rem; }
    .cart-icon-wrapper { position: absolute; top: 1.5rem; right: 1rem; }
     .logo-image { max-height: 30px !important; }
    /* Homepage specifiek */
    .hero-content { padding-top: 4rem; }
    
    /* Product Detail Pagina (de belangrijkste fix) */
    .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
    .thumbnail-grid { grid-template-columns: repeat(auto-fit, minmax(65px, 1fr)); }
    .variant-selector-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    
    /* Product Overzicht Pagina */
    .featured-banner { flex-direction: column-reverse; }
}