.ruig-shop,
.ruig-shop *,
.ruig-page,
.ruig-page * {
    box-sizing: border-box;
}

.ruig-shop {
    --ruig-ink: #171a17;
    --ruig-soft-ink: #4f574f;
    --ruig-muted: #768075;
    --ruig-line: #d8ddd4;
    --ruig-paper: #f7f7f2;
    --ruig-panel: #ffffff;
    --ruig-panel-2: #eef1ea;
    --ruig-accent: #315c4d;
    --ruig-accent-2: #a77c3d;
    --ruig-danger: #9b3d2e;
    --ruig-shadow: 0 18px 45px rgba(23, 26, 23, 0.09);
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px clamp(12px, 2.4vw, 34px) 54px;
    color: var(--ruig-ink);
    background: var(--ruig-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ruig-shop h1,
.ruig-shop h2,
.ruig-shop h3,
.ruig-shop p,
.ruig-shop dl,
.ruig-shop fieldset {
    margin: 0;
}

.ruig-shop button,
.ruig-shop input,
.ruig-shop select,
.ruig-shop textarea {
    font: inherit;
}

.ruig-shop__mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    margin-bottom: 18px;
}

.ruig-shop__eyebrow {
    color: var(--ruig-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ruig-shop h1 {
    max-width: 880px;
    margin-top: 4px;
    font-size: clamp(32px, 4.8vw, 64px);
    line-height: 0.98;
    letter-spacing: 0;
}

.ruig-shop__intro {
    max-width: 680px;
    margin-top: 12px;
    color: var(--ruig-soft-ink);
    font-size: 16px;
    line-height: 1.55;
}

.ruig-shop__stats {
    min-width: 164px;
    border: 1px solid var(--ruig-line);
    background: var(--ruig-panel);
    padding: 16px;
    text-align: right;
    box-shadow: 0 10px 30px rgba(23, 26, 23, 0.06);
}

.ruig-shop__stats strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.ruig-shop__stats span {
    display: block;
    margin-top: 4px;
    color: var(--ruig-muted);
    font-size: 13px;
}

.ruig-shop__notice,
.ruig-product__notice {
    margin-bottom: 14px;
    border: 1px solid #dcc27e;
    background: #fff9e9;
    color: #5d4714;
    padding: 12px 14px;
}

.ruig-shop__filter-toggle {
    display: none;
    width: 100%;
    min-height: 48px;
    margin: 0 0 10px;
    border: 1px solid var(--ruig-accent);
    background: var(--ruig-accent);
    color: #fff;
    font-weight: 800;
}

.ruig-shop__filters {
    display: grid;
    grid-template-columns: minmax(210px, 1.7fr) repeat(7, minmax(118px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    position: sticky;
    top: 28px;
    z-index: 4;
    margin: 0 0 22px;
    padding: 12px;
    border: 1px solid var(--ruig-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--ruig-shadow);
    backdrop-filter: blur(10px);
}

.ruig-filter,
.ruig-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ruig-filter span,
.ruig-field span,
.ruig-choice legend {
    color: var(--ruig-soft-ink);
    font-size: 12px;
    font-weight: 800;
}

.ruig-filter--wide {
    min-width: 210px;
}

.ruig-filter--check {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    border: 1px solid var(--ruig-line);
    background: #fff;
    padding: 0 10px;
}

.ruig-filter--check input,
.ruig-check input,
.ruig-choice input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--ruig-accent);
}

.ruig-shop input,
.ruig-shop select,
.ruig-shop textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--ruig-line);
    border-radius: 0;
    background: #fff;
    color: var(--ruig-ink);
    padding: 9px 10px;
    outline: none;
}

.ruig-shop textarea {
    min-height: 70px;
    resize: vertical;
}

.ruig-shop input:focus,
.ruig-shop select:focus,
.ruig-shop textarea:focus {
    border-color: var(--ruig-accent);
    box-shadow: 0 0 0 3px rgba(49, 92, 77, 0.15);
}

.ruig-shop__reset,
.ruig-cuts__head button,
.ruig-cut-row button {
    min-height: 44px;
    border: 1px solid var(--ruig-line);
    background: var(--ruig-panel-2);
    color: var(--ruig-ink);
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
}

.ruig-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
    gap: 18px;
}

.ruig-product {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    border: 1px solid var(--ruig-line);
    background: var(--ruig-panel);
    box-shadow: 0 14px 34px rgba(23, 26, 23, 0.08);
}

.ruig-product[hidden] {
    display: none;
}

.ruig-product__media {
    background: #e7ece4;
}

.ruig-product__media > img,
.ruig-product__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ruig-product__placeholder {
    display: grid;
    place-items: center;
    color: var(--ruig-muted);
}

.ruig-product__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 4px;
}

.ruig-product__thumbs button {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

.ruig-product__thumbs button.is-active {
    border-color: var(--ruig-accent);
}

.ruig-product__thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ruig-product__body {
    display: grid;
    gap: 13px;
    padding: 15px;
}

.ruig-product__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ruig-product h2 {
    font-size: 21px;
    line-height: 1.18;
    letter-spacing: 0;
}

.ruig-product__code {
    margin-top: 4px;
    color: var(--ruig-muted);
    font-size: 12px;
    font-weight: 700;
}

.ruig-product__price {
    display: grid;
    gap: 2px;
    text-align: right;
    white-space: nowrap;
}

.ruig-product__price del {
    color: var(--ruig-muted);
    font-size: 13px;
}

.ruig-product__price strong {
    color: var(--ruig-accent);
    font-size: 20px;
}

.ruig-product__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.ruig-product__specs div {
    min-width: 0;
    border: 1px solid var(--ruig-line);
    background: #fafbf8;
    padding: 8px 9px;
}

.ruig-product__specs dt {
    color: var(--ruig-muted);
    font-size: 11px;
    font-weight: 800;
}

.ruig-product__specs dd {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 900;
}

.ruig-product__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ruig-product__tags span {
    border: 1px solid #dce1d8;
    background: #f3f5ef;
    color: var(--ruig-soft-ink);
    padding: 4px 7px;
    font-size: 12px;
}

.ruig-product__desc {
    color: var(--ruig-soft-ink);
    font-size: 14px;
    line-height: 1.5;
}

.ruig-product__details {
    border-top: 1px solid var(--ruig-line);
    padding-top: 12px;
}

.ruig-product__details summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ruig-accent);
    background: var(--ruig-accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.ruig-product__details summary::-webkit-details-marker {
    display: none;
}

.ruig-product__order {
    display: grid;
    gap: 12px;
    padding-top: 12px;
}

.ruig-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    color: var(--ruig-ink);
    font-weight: 750;
}

.ruig-choice {
    display: grid;
    gap: 8px;
    border: 1px solid var(--ruig-line);
    padding: 10px;
}

.ruig-option-card {
    display: flex;
    align-items: stretch;
    gap: 8px;
    cursor: pointer;
}

.ruig-option-card > span {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 9px;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--ruig-line);
    background: #fff;
    padding: 8px;
}

.ruig-option-card--plain > span {
    display: block;
    min-height: 42px;
    padding: 11px 10px;
}

.ruig-option-card img,
.ruig-option-gallery img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #f7f5ef;
}

.ruig-option-card strong,
.ruig-option-card small {
    display: block;
}

.ruig-option-card small {
    color: var(--ruig-muted);
    font-size: 12px;
}

.ruig-option-card input:checked + span {
    border-color: var(--ruig-accent);
    box-shadow: inset 0 0 0 1px var(--ruig-accent);
}

.ruig-option-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ruig-option-gallery figure {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 8px;
    align-items: center;
    margin: 0;
    border: 1px solid var(--ruig-line);
    background: #fff;
    padding: 8px;
}

.ruig-option-gallery figcaption {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: var(--ruig-ink);
    font-size: 12px;
    line-height: 1.25;
}

.ruig-option-gallery figcaption span {
    color: var(--ruig-muted);
    font-weight: 650;
}

.ruig-cuts {
    display: grid;
    gap: 8px;
    border: 1px solid var(--ruig-line);
    background: #fbfcf8;
    padding: 10px;
}

.ruig-cuts[hidden] {
    display: none;
}

.ruig-cuts__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ruig-cuts__head span {
    font-weight: 900;
}

.ruig-cut-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.ruig-cut-row button {
    width: 44px;
    padding: 0;
}

.ruig-cuts__hint {
    color: var(--ruig-muted);
    font-size: 12px;
}

.ruig-pricebox {
    display: grid;
    gap: 6px;
    border: 1px solid var(--ruig-line);
    background: var(--ruig-panel-2);
    padding: 12px;
}

.ruig-pricebox div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ruig-pricebox span {
    color: var(--ruig-soft-ink);
    font-weight: 800;
}

.ruig-pricebox strong {
    color: var(--ruig-accent);
    font-size: 22px;
}

.ruig-pricebox p {
    color: var(--ruig-soft-ink);
    font-size: 13px;
    line-height: 1.4;
}

.ruig-pricebox p.is-warning {
    color: var(--ruig-danger);
}

.ruig-product__submit {
    min-height: 48px;
    border: 1px solid var(--ruig-ink);
    background: var(--ruig-ink);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.ruig-shop__empty {
    margin-top: 18px;
    border: 1px dashed var(--ruig-line);
    background: #fff;
    padding: 18px;
    color: var(--ruig-muted);
}

.ruig-page {
    --ruig-page-max: 1120px;
    color: var(--ruig-ink);
    background: var(--ruig-paper);
    font-family: inherit;
    margin: 0 auto;
    max-width: var(--ruig-page-max);
    padding: 38px 18px 56px;
}

.ruig-page__hero {
    display: grid;
    gap: 20px;
    min-height: 420px;
    align-content: center;
    border-bottom: 1px solid var(--ruig-line);
    padding: 36px 0 46px;
}

.ruig-page__hero p,
.ruig-page__head p {
    color: var(--ruig-soft-ink);
    font-size: 14px;
    font-weight: 850;
    margin: 0;
    text-transform: uppercase;
}

.ruig-page h1 {
    color: var(--ruig-ink);
    font-size: clamp(38px, 7vw, 86px);
    line-height: .94;
    margin: 0;
    max-width: 930px;
}

.ruig-page h2 {
    color: var(--ruig-ink);
    font-size: 22px;
    margin: 0 0 8px;
}

.ruig-page p,
.ruig-page li {
    color: var(--ruig-soft-ink);
    font-size: 17px;
    line-height: 1.65;
}

.ruig-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ruig-page__actions a,
.ruig-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--ruig-ink);
    background: var(--ruig-ink);
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 900;
}

.ruig-page__actions a + a {
    background: transparent;
    color: var(--ruig-ink);
}

.ruig-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 26px;
}

.ruig-page__grid article,
.ruig-page__content {
    border: 1px solid var(--ruig-line);
    background: #fff;
    padding: 22px;
}

.ruig-page__head {
    display: grid;
    gap: 12px;
    border-bottom: 1px solid var(--ruig-line);
    padding: 18px 0 24px;
}

.ruig-page__content {
    margin-top: 22px;
}

.ruig-page__content ul {
    margin: 0 0 18px 20px;
    padding: 0;
}

.ruig-page__faq {
    display: grid;
    gap: 10px;
}

.ruig-page__faq details {
    border: 1px solid var(--ruig-line);
    padding: 14px 16px;
}

.ruig-page__faq summary {
    color: var(--ruig-ink);
    cursor: pointer;
    font-weight: 900;
}

@media (max-width: 1220px) {
    .ruig-shop__filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        position: static;
    }

    .ruig-filter--wide,
    .ruig-shop__reset {
        grid-column: span 2;
    }
}

@media (max-width: 780px) {
    .ruig-shop {
        padding: 18px 10px 38px;
    }

    .ruig-shop__mast {
        grid-template-columns: 1fr;
    }

    .ruig-shop__stats {
        text-align: left;
    }

    .ruig-shop__filter-toggle {
        display: block;
    }

    .ruig-shop__filters {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ruig-shop__filters.is-open {
        display: grid;
    }

    .ruig-filter--wide,
    .ruig-shop__reset {
        grid-column: 1 / -1;
    }

    .ruig-shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ruig-page__grid {
        grid-template-columns: 1fr;
    }

    .ruig-product__heading {
        display: grid;
    }

    .ruig-product__price {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .ruig-shop h1 {
        font-size: 34px;
    }

    .ruig-shop__intro {
        font-size: 14px;
    }

    .ruig-shop__filters,
    .ruig-shop__grid {
        grid-template-columns: 1fr;
    }

    .ruig-product__specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ruig-product__specs div {
        padding: 7px 6px;
    }

    .ruig-product__specs dd {
        font-size: 13px;
    }

    .ruig-cut-row {
        grid-template-columns: 1fr 1fr 44px;
    }

    .ruig-option-gallery {
        grid-template-columns: 1fr;
    }
}

/* RUIG v0.4 design pass: warme interieurselectie, mobiel eerst, producten als unieke objecten. */
.ruig-shop,
.ruig-page {
    --ruig-ink: #211d19;
    --ruig-soft-ink: #5f5850;
    --ruig-muted: #81786e;
    --ruig-line: #ded6cc;
    --ruig-paper: #fbfaf6;
    --ruig-panel: #fffdf9;
    --ruig-panel-2: #f2eee7;
    --ruig-accent: #5d7a63;
    --ruig-accent-2: #9a6747;
    --ruig-shadow: 0 18px 40px rgba(33, 29, 25, 0.08);
}

.ruig-shop {
    max-width: 1240px;
    padding-top: 18px;
}

.ruig-shop__mast {
    align-items: center;
    min-height: 310px;
    margin-bottom: 20px;
    border: 1px solid var(--ruig-line);
    border-radius: 8px;
    background: var(--ruig-panel);
    padding: 34px;
    box-shadow: 0 16px 38px rgba(33, 29, 25, 0.06);
}

.ruig-shop h1 {
    font-size: 56px;
    line-height: 1;
}

.ruig-shop__intro {
    font-size: 17px;
}

.ruig-shop__quick-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ruig-shop__quick-points span,
.ruig-product__badges span,
.ruig-page__lead span,
.ruig-page__categories a {
    border: 1px solid var(--ruig-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ruig-soft-ink);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 750;
}

.ruig-shop__stats {
    border-radius: 8px;
}

.ruig-shop__filters {
    border-radius: 8px;
}

.ruig-shop input,
.ruig-shop select,
.ruig-shop textarea,
.ruig-shop__reset,
.ruig-cuts__head button,
.ruig-cut-row button,
.ruig-product__details summary,
.ruig-product__submit {
    border-radius: 6px;
}

.ruig-shop__grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.ruig-product {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(33, 29, 25, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.ruig-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(33, 29, 25, 0.11);
}

.ruig-product__media {
    position: relative;
    background: #f1ede5;
}

.ruig-product__media > img,
.ruig-product__placeholder {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 10px;
}

.ruig-product__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.ruig-product__badges span {
    background: rgba(255, 253, 249, 0.92);
    color: var(--ruig-ink);
    padding: 5px 8px;
    font-size: 12px;
}

.ruig-product__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: #fffdf9;
}

.ruig-product__thumbs img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f4f0e9;
}

.ruig-product__body {
    gap: 12px;
    padding: 16px;
}

.ruig-product h2 {
    font-size: 19px;
}

.ruig-product__assurance {
    border-left: 3px solid var(--ruig-accent);
    background: #f4f5ef;
    color: var(--ruig-soft-ink);
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.45;
}

.ruig-product__origin {
    color: var(--ruig-soft-ink);
    font-size: 13px;
    line-height: 1.45;
}

.ruig-product__origin::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 1px;
    margin-right: 7px;
    vertical-align: middle;
    background: var(--ruig-accent-2);
}

.ruig-page {
    max-width: 1240px;
    padding-top: 22px;
}

.ruig-page__hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 34px;
    align-items: center;
    min-height: 560px;
    border: 1px solid var(--ruig-line);
    border-radius: 8px;
    background: #fffdf9;
    padding: 38px;
    box-shadow: 0 16px 38px rgba(33, 29, 25, 0.06);
}

.ruig-page h1 {
    font-size: 64px;
    line-height: 0.98;
}

.ruig-page__lead {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 720px;
}

.ruig-page__hero-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.ruig-page__hero-product {
    position: relative;
    min-height: 210px;
    margin: 0;
    border: 1px solid var(--ruig-line);
    border-radius: 8px;
    overflow: hidden;
    background: #f1ede5;
}

.ruig-page__hero-product:first-child {
    grid-row: span 2;
}

.ruig-page__hero-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.ruig-page__hero-product figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-radius: 6px;
    background: rgba(255, 253, 249, 0.92);
    padding: 8px 10px;
    font-size: 13px;
}

.ruig-page__promise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.ruig-page__promise article {
    border: 1px solid var(--ruig-line);
    border-radius: 8px;
    background: #fffdf9;
    padding: 22px;
}

.ruig-page__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ruig-page__categories a {
    text-decoration: none;
    color: var(--ruig-ink);
}

@media (max-width: 900px) {
    .ruig-shop__mast,
    .ruig-page__hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 22px;
    }

    .ruig-shop h1,
    .ruig-page h1 {
        font-size: 42px;
    }

    .ruig-page__promise {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ruig-shop {
        padding-left: 0;
        padding-right: 0;
    }

    .ruig-shop__mast,
    .ruig-page__hero {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .ruig-shop h1,
    .ruig-page h1 {
        font-size: 34px;
    }

    .ruig-shop__quick-points span,
    .ruig-page__lead span {
        width: 100%;
    }

    .ruig-page__hero-products {
        grid-template-columns: 1fr;
    }

    .ruig-page__hero-product:first-child {
        grid-row: auto;
    }
}
