/* =========================================================
   Kerststallen.com
   ========================================================= */

:root {
    --ks-green: #2f6b3c;
    --ks-green-dark: #245530;
    --ks-green-light: #edf4ef;

    --ks-burgundy: #7a263a;
    --ks-burgundy-dark: #5f1d2d;

    --ks-background: #f7f8f6;
    --ks-surface: #ffffff;
    --ks-border: #e1e5df;

    --ks-text: #222722;
    --ks-muted: #687068;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    background-color: var(--ks-green) !important;
    border-color: var(--ks-green) !important;
}

.btn-primary:hover {
    background-color: var(--ks-green-dark) !important;
    border-color: var(--ks-green-dark) !important;
}


/* =========================================================
   HEADER
   ========================================================= */

#header {
    background: #fff;
    border-bottom: 1px solid #e5e8e3;
    box-shadow: 0 2px 12px rgba(30, 45, 32, 0.05);
}

#header > .container {
    padding-top: 14px;
    padding-bottom: 14px;
}


/* =========================================================
   HOOFDNAVIGATIE
   ========================================================= */

#header .navigation nav > ul {
    gap: 2.25rem;
}

#header .navigation li.level-0 {
    border-bottom-color: transparent !important;
    transition: border-color .2s ease;
}

#header .navigation li.level-0 > span > a {
    color: #303630;
    font-weight: 500;
    transition: color .2s ease;
}

#header .navigation li.level-0:hover {
    border-bottom-color: var(--ks-green) !important;
}

#header .navigation li.level-0:hover > span > a,
#header .navigation li.level-0 > span > a:hover,
#header .navigation li.level-0 > span > a[aria-current="page"] {
    color: var(--ks-green);
}

#header .navigation li.level-0 button {
    color: var(--ks-green);
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

#header .navigation li.level-0 > ul {
    border: 1px solid var(--ks-border);
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(30, 45, 32, 0.12);
}

#header .navigation li.level-0 > ul a {
    border-radius: 6px;
    color: #303630;
    transition:
        background-color .15s ease,
        color .15s ease;
}

#header .navigation li.level-0 > ul a:hover {
    background: var(--ks-green-light);
    color: var(--ks-green);
}


/* =========================================================
   HEADER ICONEN
   ========================================================= */

#header #menu-search-icon,
#header #menu-cart-icon,
#header .btn {
    transition:
        color .2s ease,
        background-color .2s ease;
}

#header .btn.bg-transparent:hover {
    color: var(--ks-green);
    background-color: var(--ks-green-light) !important;
    border-radius: 50%;
}


/* Winkelwagen teller */

#header #menu-cart-icon span {
    background: var(--ks-burgundy) !important;
    color: #fff !important;
}


/* =========================================================
   ZOEKPANEEL
   ========================================================= */

#search-content {
    border-top-color: #e5e8e3;
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 1023px) {
    #header > .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.ks-home-hero {
    max-width: 1440px;
    min-height: 480px;
    margin: 40px auto 60px;
    padding: 45px 70px;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 50px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(122, 38, 58, 0.07),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f4f7f2 0%,
            #fbf8f3 100%
        );

    border: 1px solid #e4e8e1;
    border-radius: 22px;
}


/* Tekst */

.ks-home-hero__content {
    position: relative;
    z-index: 2;
}

.ks-home-hero__eyebrow {
    margin-bottom: 14px;

    color: var(--ks-burgundy);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ks-home-hero h1 {
    max-width: 650px;
    margin: 0 0 22px;

    color: var(--ks-green-dark);

    font-size: clamp(40px, 4.5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.ks-home-hero__content > p {
    max-width: 590px;
    margin: 0;

    color: #555e56;

    font-size: 18px;
    line-height: 1.7;
}


/* Knoppen */

.ks-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}

.ks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-weight: 600;
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ks-button:hover {
    transform: translateY(-1px);
}

.ks-button--primary {
    background: var(--ks-green);
    border-color: var(--ks-green);
    color: #fff !important;
}

.ks-button--primary:hover {
    background: var(--ks-green-dark);
    border-color: var(--ks-green-dark);
}

.ks-button--secondary {
    background: #fff;
    border-color: #cbd3ca;
    color: var(--ks-green) !important;
}

.ks-button--secondary:hover {
    background: var(--ks-green-light);
    border-color: var(--ks-green);
}


/* Afbeelding */

.ks-home-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-home-hero__image img {
    display: block;

    width: min(100%, 600px);
    height: auto;

    mix-blend-mode: multiply;
}


/* Tablet */

@media (max-width: 1100px) {

    .ks-home-hero {
        padding: 45px;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .ks-home-hero h1 {
        font-size: 46px;
    }
}


/* Mobiel */

@media (max-width: 767px) {

    .ks-home-hero {
        min-height: 0;
        margin: 20px auto 45px;
        padding: 35px 24px 20px;

        grid-template-columns: 1fr;
        gap: 20px;

        border-radius: 16px;
    }

    .ks-home-hero__eyebrow {
        margin-bottom: 10px;
    }

    .ks-home-hero h1 {
        margin-bottom: 16px;

        font-size: 38px;
        line-height: 1.08;
    }

    .ks-home-hero__content > p {
        font-size: 16px;
        line-height: 1.6;
    }

    .ks-home-hero__actions {
        margin-top: 24px;
    }

    .ks-button {
        width: 100%;
    }

    .ks-home-hero__image {
        margin-top: 5px;
    }

    .ks-home-hero__image img {
        width: min(100%, 480px);
    }
}

/* =========================================================
   HOMEPAGE - CATEGORIEËN
   ========================================================= */

.ks-home-categories {
    max-width: 1440px;
    margin: 0 auto 80px;
}

.ks-section-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    padding: 0 20px;
    text-align: center;
}

.ks-section-eyebrow {
    margin-bottom: 10px;

    color: var(--ks-burgundy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ks-section-heading h2 {
    margin: 0 0 12px;

    color: var(--ks-green-dark);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 700;
}

.ks-section-heading p {
    margin: 0;
    color: var(--ks-muted);
    font-size: 17px;
    line-height: 1.6;
}


/* Grid */

.ks-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* Kaart */

.ks-category-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: 18px;

    color: var(--ks-text) !important;
    text-decoration: none !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.ks-category-card:hover {
    transform: translateY(-4px);
    border-color: #cbd7cd;
    box-shadow: 0 16px 35px rgba(30, 45, 32, .10);
}


/* Afbeeldingsvlak */

.ks-category-card__image {
    height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f5f7f3 0%,
            #fbf8f4 100%
        );
}

.ks-category-card__image img {
    display: block;

    width: 100%;
    height: 100%;
    padding: 28px;

    object-fit: contain;

    transition: transform .35s ease;
}

.ks-category-card:hover .ks-category-card__image img {
    transform: scale(1.035);
}


/* Tekst */

.ks-category-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 26px 28px 28px;
}

.ks-category-card h3 {
    margin: 0 0 10px;

    color: var(--ks-green-dark);

    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.ks-category-card p {
    margin: 0 0 22px;

    color: var(--ks-muted);

    font-size: 15px;
    line-height: 1.6;
}

.ks-category-card__link {
    margin-top: auto;

    color: var(--ks-green);

    font-size: 15px;
    font-weight: 700;
}


/* Tablet */

@media (max-width: 1023px) {

    .ks-category-grid {
        gap: 16px;
    }

    .ks-category-card__image {
        height: 280px;
    }

    .ks-category-card__content {
        padding: 22px;
    }
}


/* Mobiel */

@media (max-width: 767px) {

    .ks-home-categories {
        margin-bottom: 55px;
    }

    .ks-section-heading {
        margin-bottom: 25px;
    }

    .ks-category-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ks-category-card__image {
        height: 290px;
    }

    .ks-category-card__image img {
        padding: 24px;
    }
}

/* Klant heeft geselecteerd product al in collectie */
.customer-collection-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid #cfe0d3;
    border-radius: 0.5rem;
    background: #edf4ef;
    color: #245530;
    font-weight: 600;
}

.customer-collection-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #2f6b3c;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

/* Duitse homepage - alleen desktop */
@media (min-width: 1101px) {
    html[lang="de"] .ks-home-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
        gap: 35px;
    }

    html[lang="de"] .ks-home-hero__image img {
        max-width: 95%;
        margin-left: auto;
    }
}

/* Category introduction */
.category-intro {
    max-width: 1200px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.category-intro p {
    margin: 0 0 1rem;
}

.category-intro h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.category-intro h2:first-of-type {
    margin-top: 2.25rem;
}

.category-intro .category-intro-closing {
    margin-top: 1.5rem;
    font-weight: 700;
}

/* Category introduction - headings in huisstijl */
.category-intro h2 {
    color: var(--ks-green);
}

/* Categorietitel in Kerststallen huisstijl */
.catalog-category-view .page-title {
    color: var(--ks-green);
}

/* Categoriepagina compacter: afbeelding/producten dichter bij categorietitel */
@media (min-width: 1024px) {
    .catalog-category-view .columns {
        margin-top: -40px;
    }
}

/* =========================================================
   Kerststallen.com - juridische CMS-pagina's
   ========================================================= */

.ks-legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    color: #252525;
    font-size: 1rem;
    line-height: 1.75;
}

.ks-legal-page__intro {
    margin: 0 0 2rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #4b5563;
}

.ks-legal-page section {
    margin: 0 0 2.25rem;
}

.ks-legal-page h2 {
    margin: 0 0 0.8rem;
    color: var(--ks-green);
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
}

.ks-legal-page p {
    margin: 0 0 1rem;
}

.ks-legal-page ul {
    margin: 0.75rem 0 1.25rem 1.5rem;
    padding: 0;
    list-style: disc;
}

.ks-legal-page li {
    margin: 0.35rem 0;
    padding-left: 0.25rem;
}

.ks-legal-page__contact {
    margin: 1.25rem 0 2.5rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #d8e4db;
    border-radius: 0.65rem;
    background: #f6f9f7;
}

.ks-legal-page__contact h2 {
    margin-top: 0;
}

.ks-legal-page__contact p:last-child {
    margin-bottom: 0;
}

.ks-legal-page__updated {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .ks-legal-page {
        padding-top: 0.5rem;
        line-height: 1.65;
    }

    .ks-legal-page__intro {
        font-size: 1rem;
    }

    .ks-legal-page h2 {
        font-size: 1.2rem;
    }

    .ks-legal-page__contact {
        padding: 1.25rem;
    }
}

/* Titel juridische pagina */
.ks-legal-page > h1 {
    margin: 0 0 1rem;
    color: var(--ks-green);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 767px) {
    .ks-legal-page > h1 {
        font-size: 1.65rem;
    }
}

/* Juridische pagina - extra ruimte onder breadcrumb */
.ks-legal-page {
    padding-top: 2rem;
}

@media (max-width: 767px) {
    .ks-legal-page {
        padding-top: 1.25rem;
    }
}

/* Juridische CMS-pagina's: Magento standaard paginatitel verbergen */
.cms-algemene-voorwaarden .page-title-wrapper {
    display: none;
}

/* Algemene voorwaarden: standaard Magento H1 verbergen.
   De titel staat in de juridische content zelf. */
.cms-algemene-voorwaarden h1.page-title {
    display: none;
}

/* Algemene voorwaarden - zelfde visuele opbouw als Privacybeleid */
.ks-legal-terms > h1 {
    margin-bottom: 1rem;
}

.ks-legal-terms > p:first-of-type {
    margin-bottom: 1.75rem;
}

.ks-legal-terms .ks-legal-section {
    margin: 0 0 2.5rem;
}

.ks-legal-terms .ks-legal-section h2 {
    margin-bottom: 1rem;
}

.ks-legal-terms .ks-legal-section ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    padding: 0;
}

.ks-legal-terms .ks-legal-section ol li {
    margin: 0.55rem 0;
    padding-left: 0.25rem;
    line-height: 1.7;
}

/* Identiteit ondernemer als informatiekaart */
.ks-legal-terms .ks-legal-section.ks-legal-page__contact {
    margin: 1.5rem 0 2.5rem;
    padding: 1.5rem 1.75rem;
}

@media (max-width: 767px) {
    .ks-legal-terms .ks-legal-section {
        margin-bottom: 2rem;
    }

    .ks-legal-terms .ks-legal-section.ks-legal-page__contact {
        padding: 1.25rem;
    }
}

/* Vertaalde algemene voorwaarden: standaard Magento H1 verbergen */
.cms-terms-and-conditions h1.page-title,
.cms-allgemeine-geschaeftsbedingungen h1.page-title,
.cms-conditions-generales h1.page-title {
    display: none;
}

/* Kerststallen - groene mobiele galerij-indicator */
@media (max-width: 1023px) {
    .snap-pager .snap-marker[aria-current="true"] {
        background-color: #278653;
        border-color: #278653;
    }
}
