/* Basisthema voor Knutsel Meiden - speels, licht en uitbreidbaar */
:root {
    --kleur-achtergrond: #fffdf7;
    --kleur-primaire: #ff6fb1;
    --kleur-primaire-donker: #e05295;
    --kleur-secundaire: #6eb5ff;
    --kleur-accent: #ffd166;
    --kleur-tekst: #3a2d2d;
    --kleur-tekst-licht: #725b5b;
    --radius-klein: 6px;
     --radius-groot: 30px;
     /* Inner radius computed from the outer card radius so it scales automatically.
         Preferred value is roughly `--radius-groot - 10px`, clamped to a sensible range. */
     --radius-inner: clamp(6px, calc(var(--radius-groot) - 10px), calc(var(--radius-groot) - 4px));
    --schaduw-klein: 0 2px 6px rgba(0, 0, 0, 0.08);
    --schaduw-medium: 0 4px 14px rgba(0, 0, 0, 0.12);
    --font-titel: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
    --font-tekst: "Nunito", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-tekst);
    background: linear-gradient(135deg, #fffdf7 0%, #ffe7f3 100%);
    color: var(--kleur-tekst);
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    font-family: var(--font-titel);
    line-height: 1.15;
}

p {
    line-height: 1.5;
}

button,
input,
select {
    font-family: inherit;
}

/* Layout */
.header {
    background: radial-gradient(circle at 10% 20%, var(--kleur-primaire) 0%, var(--kleur-secundaire) 100%);
    color: #fff;
    padding: 1rem 1.5rem 2.5rem;
    position: relative;
}

.header__title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    background: #fff;
    color: var(--kleur-primaire-donker);
    padding: .55rem 1rem;
    border-radius: var(--radius-klein);
    font-weight: 600;
    box-shadow: var(--schaduw-klein);
    transition: background .2s, transform .2s;
}

.nav a:hover {
    background: var(--kleur-accent);
    transform: translateY(-2px);
}

.nav a:focus {
    outline: 3px solid var(--kleur-accent);
}

.main {
    width: min(1100px, 92%);
    margin: 0 auto 3rem;
    padding-top: 1.6rem; /* Extra ruimte onder navigatie voor eerste elementen (bv. foto op wie_zijn_wij) */
}

.grid-producten {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Product kaart */
.product {
    background: #fff;
    border-radius: var(--radius-groot);
    padding: 1rem .9rem 1.2rem;
    position: relative;
    box-shadow: var(--schaduw-medium);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    isolation: isolate;
}

.product::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* make the gloss subtle so interactive controls remain visible */
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.12) 40%, rgba(255,255,255,0.0) 100%);
    pointer-events: none;
}

.product__img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    /* make the image corners sit concentric with the larger card radius
       use a smaller inner radius so the card's curvature remains visible */
    border-radius: var(--radius-inner);
    background: #ffe3f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__img-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    /* ensure the img respects the wrapper radius on browsers that support it */
    border-radius: inherit;
}

.product h3 {
    margin: 0;
    font-size: 1.25rem;
}

.product p {
    font-size: .9rem;
}

.product__actie {
    margin-top: auto;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.product input[type=number] {
    width: 70px;
    padding: .4rem .3rem;
    border: 2px solid var(--kleur-secundaire);
    border-radius: var(--radius-klein);
    font-size: .9rem;
}

.product button {
    background: var(--kleur-primaire);
    color: #fff;
    border: none;
    padding: .55rem .9rem;
    border-radius: var(--radius-klein);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--schaduw-klein);
}

.product button:hover {
    background: var(--kleur-primaire-donker);
}

/* Reusable primary button to mirror product 'Voeg toe' */
.btn-primary {
    background: var(--kleur-primaire);
    color: #fff;
    border: none;
    padding: .55rem .9rem;
    border-radius: var(--radius-klein);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--schaduw-klein);
}
.btn-primary:hover {
    background: var(--kleur-primaire-donker);
}
.btn-primary.small {
    padding: .25rem .5rem;
    font-size: .95rem;
    border-radius: 4px;
}

/* Winkelmand overzicht */
.table-cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table-cart th,
.table-cart td {
    padding: .6rem .5rem;
    text-align: left;
}

.table-cart thead {
    background: var(--kleur-primaire);
    color: #fff;
}

.table-cart tbody tr {
    background: #fff;
}

.table-cart tbody tr:not(:last-child) {
    border-bottom: 4px solid #f9ddec;
}

.table-cart input[type=number] {
    width: 80px;
}

.form-bestelling {
    display: grid;
    gap: .9rem;
    max-width: 640px;
}

.form-bestelling label {
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-bestelling input,
.form-bestelling textarea {
    width: 100%;
    padding: .6rem .7rem;
    border: 2px solid var(--kleur-secundaire);
    border-radius: var(--radius-klein);
    background: #fff;
}

.form-bestelling button[type=submit] {
    background: var(--kleur-secundaire);
    color: #fff;
    border: none;
    padding: .9rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-klein);
    cursor: pointer;
}

.form-bestelling button[type=submit]:hover {
    background: #4d9be3;
}

.status {
    margin-top: 1rem;
    font-weight: 600;
}

/* Wie zijn wij */
.team {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team__foto-wrapper {
    width: 280px;
    max-width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    background: #ffe3f0;
    box-shadow: var(--schaduw-medium);
    position: relative;
}

.team__foto-wrapper::after {
    /* content: "Foto komt hier"; */
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--kleur-primaire-donker);
}

/* Footer */
.footer {
    background: #fff;
    padding: 2rem 1.5rem;
    border-top: 6px dashed var(--kleur-primaire);
    text-align: center;
    font-size: .85rem;
}

.footer a {
    color: var(--kleur-primaire-donker);
}

/* Footer social icons */
.footer__social {
    margin-top: .6rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}
.footer__social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--schaduw-klein);
    color: var(--kleur-primaire);
    text-decoration: none;
}
.footer__social .social-link:hover {
    transform: translateY(-3px);
}
.footer__social svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Rating hearts */
.rating-hearts {
    display: flex;
    gap: 2px;
    font-size: 1rem;
    line-height: 1;
    margin: .25rem 0 .4rem;
    user-select: none;
}
.rating-hearts .heart-wrapper {
    position: relative;
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    line-height: 1;
}
.rating-hearts .heart-base { /* outline / empty heart */
    color: #e6cadb;
}
.rating-hearts .heart-fill {
    position: absolute;
    inset: 0;
    color: var(--kleur-primaire);
    overflow: hidden;
    width: 100%;
}
.rating-hearts .heart-fill.half { /* clip to half width */
    width: 50%;
    clip-path: inset(0 50% 0 0);
}

/* Visually hidden utility (for accessible labels) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Brand color modifiers */
.footer__social .social-link--youtube {
    color: #ff0000; /* YouTube red */
}
.footer__social .social-link--facebook {
    color: #1877f2; /* Facebook blue */
}

/* Better keyboard focus visibility */
.footer__social .social-link:focus {
    outline: 3px solid color-mix(in srgb, var(--kleur-primaire) 35%, white);
    outline-offset: 2px;
}

/* Hulpklassen */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.badge {
    background: var(--kleur-accent);
    color: #000;
    padding: .2rem .5rem;
    border-radius: var(--radius-klein);
    font-size: .7rem;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
