/* 1. FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

/* 2. MYPURITY PALETTE */
:root {
    --mrc-ink: #1a1a1a;
    --mrc-pine: #000000;
    --mrc-paper: #faf9f7;
    --mrc-ivory: #ffffff;
    --mrc-cream: #ffffff;
    --mrc-line: #e5e5e5;
    --mrc-muted: #6b6b6b;
    --mrc-gold: #00c0c0;
    --mrc-gold-ink: #00a0a0;
    --mrc-rust: #007e00;
    --mrc-rust-hover: #006400;
    --mrc-radius: 8px;
    --mrc-radius-sm: 6px;
    --mrc-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
    --mrc-shell: 1280px;
    --mrc-shell-pad: clamp(16px, 2.5vw, 32px);
}

/* 3. BASE TYPOGRAPHY */
body {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    color: var(--mrc-ink);
    background: var(--mrc-paper);
    margin: 0;
    line-height: 1.5;
}

.mrc-luxury-theme { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.mrc-display { font-family: "Playfair Display", Georgia, serif; letter-spacing: 0; }

/* 4. BUTTONS (override Tailwind) */
button[type="submit"],
.mrc-button {
    background: var(--mrc-rust) !important;
    border: 1px solid var(--mrc-rust) !important;
    border-radius: var(--mrc-radius) !important;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    min-height: 44px;
    padding: 0 20px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}
button[type="submit"]:hover,
.mrc-button:hover { background: var(--mrc-rust-hover) !important; }
button[type="submit"]:disabled,
.mrc-button[disabled] { cursor: wait; opacity: 0.65; }
.mrc-button-secondary {
    background: transparent !important;
    border-color: var(--mrc-rust) !important;
    color: var(--mrc-rust) !important;
}
.mrc-button-secondary:hover { background: #f0f9f0 !important; }

/* 5. FORMS (override Tailwind) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select,
.mrc-input,
.mrc-select,
.mrc-textarea {
    background: #ffffff !important;
    border: 1px solid var(--mrc-line) !important;
    border-radius: var(--mrc-radius-sm) !important;
    box-sizing: border-box;
    color: var(--mrc-ink) !important;
    min-height: 44px;
    padding: 8px 12px !important;
    width: 100%;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}
textarea, .mrc-textarea { min-height: 96px; resize: vertical; }
.mrc-field { display: grid; gap: 6px; }
.mrc-field label { font-weight: 700; font-size: 13px; color: var(--mrc-ink); }
.mrc-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .mrc-grid { grid-template-columns: 1fr; } }

/* 6. CHECKOUT PAGE (keep the sticky behavior) */
.mrc-checkout-page .mrc-checkout-summary {
    position: static;          /* no floating, scrolls with the page */
    align-self: start !important;
    height: fit-content !important;
}
.mrc-checkout-title {
    color: var(--mrc-ink);
    font-size: clamp(56px, 7vw, 94px);
    font-weight: 600;
    line-height: .9;
    margin: 0;
}
.mrc-checkout-lead {
    color: var(--mrc-muted);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 620px;
}
.mrc-checkout-page .mrc-address-fields,
.mrc-checkout-page .mrc-policy-acceptance,
.mrc-checkout-page #payment-element {
    background: #ffffff !important;
    border: 1px solid var(--mrc-line) !important;
    border-radius: var(--mrc-radius) !important;
}

/* 7. PRODUCT PAGE (sticky Buy Box) */
@media (min-width: 900px) {
    .mrc-buy-box {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

/* 8. FOOTER + PRE-FOOTER */
.mrc-pre-footer {
    background: #fff;
    border-top: 1px solid var(--mrc-line);
    border-bottom: 1px solid var(--mrc-line);
    padding: 40px 32px;
    margin-top: 80px;
}
.mrc-pre-footer-inner {
    max-width: var(--mrc-shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    text-align: center;
}
.mrc-pre-footer h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.mrc-pre-footer p { color: var(--mrc-muted); font-size: 14px; margin: 0; }
.mrc-site-footer {
    background: var(--mrc-pine);
    color: var(--mrc-ivory);
    padding: 60px 32px 40px;
}
.mrc-footer-inner {
    max-width: var(--mrc-shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.mrc-site-footer a { color: var(--mrc-ivory); text-decoration: none; }
.mrc-site-footer a:hover { color: var(--mrc-gold); }
.mrc-footer-title { color: var(--mrc-gold); margin-bottom: 16px; }
.mrc-footer-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }


/* 8b. CHECKOUT — PHASE 1 (type, spacing, form controls, summary card)
   Desktop-friendly refinements only: no mobile rules here, per the standing
   decision that the responsive pass lives in mercato-mobile.css. */
.mrc-checkout-page .mrc-checkout-shell {
    max-width: var(--mrc-shell);
    margin: 0 auto;
    gap: 48px;
}
.mrc-checkout-page .mrc-checkout-main { min-width: 0; }
.mrc-checkout-page .mrc-checkout-title {
    font-size: clamp(34px, 3.4vw, 46px);
    line-height: 1.06;
    letter-spacing: -.01em;
}
.mrc-checkout-page .mrc-checkout-lead {
    font-size: 16px;
    line-height: 1.65;
    max-width: 58ch;
    margin-top: 12px;
}

/* Section blocks read as separate steps, like the old shop's numbered form */
.mrc-checkout-page .mrc-checkout-step {
    border-top: 1px solid var(--mrc-line);
    padding-top: 28px;
    margin-top: 32px;
}
.mrc-checkout-page .mrc-checkout-step:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 28px;
}
.mrc-checkout-step-head { margin-bottom: 20px; }
.mrc-checkout-step-index {
    width: 28px; height: 28px;
    border-radius: 999px;
    background: var(--mrc-ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.mrc-checkout-step-title { font-size: 22px; letter-spacing: -.01em; }

/* Form controls: bigger targets, calmer borders */
.mrc-checkout-page .mrc-field { gap: 8px; }
.mrc-checkout-page .mrc-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--mrc-ink);
}
.mrc-checkout-page input[type="text"],
.mrc-checkout-page input[type="email"],
.mrc-checkout-page input[type="tel"],
.mrc-checkout-page input[type="number"],
.mrc-checkout-page select,
.mrc-checkout-page textarea {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--mrc-ink);
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mrc-checkout-page textarea { min-height: 104px; }
.mrc-checkout-page input[type="text"]:focus,
.mrc-checkout-page input[type="email"]:focus,
.mrc-checkout-page input[type="tel"]:focus,
.mrc-checkout-page input[type="number"]:focus,
.mrc-checkout-page select:focus,
.mrc-checkout-page textarea:focus {
    outline: none;
    border-color: var(--mrc-ink);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .07);
}
.mrc-checkout-page input::placeholder,
.mrc-checkout-page textarea::placeholder { color: #9a9a9a; }
.mrc-checkout-page .mrc-grid { gap: 20px 16px; }

/* Order summary as a card */
.mrc-checkout-page .mrc-checkout-summary {
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 12px;
    padding: 26px;
}
.mrc-checkout-summary-title { font-size: 20px; margin: 0 0 18px; letter-spacing: -.01em; }
.mrc-checkout-page .mrc-checkout-item { padding: 16px 0; border-bottom: 1px solid var(--mrc-line); }
.mrc-checkout-page .mrc-checkout-items > :first-child { padding-top: 0; }
.mrc-checkout-page .mrc-checkout-item-title { font-size: 15px; line-height: 1.4; }
.mrc-checkout-page .mrc-checkout-totals { margin-top: 16px; font-size: 15px; }
.mrc-checkout-page .mrc-checkout-totals > :last-child { font-size: 18px; font-weight: 700; }
.mrc-checkout-page .mrc-checkout-actions { margin-top: 22px; }
.mrc-checkout-page .mrc-checkout-actions .mrc-button,
.mrc-checkout-page .mrc-checkout-actions button {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    letter-spacing: .01em;
}

/* Payment options read as selectable cards rather than a bare list */
.mrc-checkout-page #payment-element,
.mrc-checkout-page .mrc-payment-options {
    padding: 18px;
    border-radius: 12px;
}


/* Collapsible sections (discount code, future extras): native <details> so it
   works without JavaScript and stays keyboard accessible. */
.mrc-disclosure {
    margin: 18px 0;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 8px;
    overflow: hidden;
}
.mrc-disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mrc-ink);
    cursor: pointer;
    list-style: none;
}
.mrc-disclosure-summary::-webkit-details-marker { display: none; }
.mrc-disclosure-summary::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
    color: var(--mrc-muted);
}
.mrc-disclosure[open] .mrc-disclosure-summary { border-bottom: 1px solid var(--mrc-line); }
.mrc-disclosure[open] .mrc-disclosure-summary::after { content: "\2013"; }
.mrc-disclosure-summary:hover { color: var(--mrc-rust); }
.mrc-disclosure-body { padding: 18px; display: grid; gap: 14px; }
.mrc-disclosure-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.mrc-disclosure-message { margin: 0; font-size: 14px; }
.mrc-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* Checkout progress: three steps, the current one highlighted. Mirrors the
   journey of the old shop without changing the underlying flow. */
.mrc-steps {
    max-width: var(--mrc-shell);
    margin: 8px auto 0;
    padding: 0 var(--mrc-shell-pad);
}
.mrc-steps-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--mrc-line);
}
.mrc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mrc-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 0 28px;
    position: relative;
}
.mrc-step + .mrc-step::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--mrc-line);
}
.mrc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--mrc-line);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--mrc-muted);
}
.mrc-step--done .mrc-step-num {
    background: var(--mrc-rust);
    border-color: var(--mrc-rust);
    color: #fff;
}
.mrc-step--current { color: var(--mrc-ink); }
.mrc-step--current .mrc-step-num {
    background: var(--mrc-ink);
    border-color: var(--mrc-ink);
    color: #fff;
}


/* Payment options as selectable cards inside the summary */
.mrc-pay-options {
    border: 0;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 10px;
}
.mrc-pay-legend {
    padding: 0;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mrc-ink);
}
.mrc-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--mrc-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mrc-pay-option:hover { border-color: #bfbfbf; }
.mrc-pay-option input { accent-color: var(--mrc-rust); }
.mrc-pay-option:has(input:checked) {
    border-color: var(--mrc-ink);
    box-shadow: inset 0 0 0 1px var(--mrc-ink);
}
.mrc-pay-name { font-size: 15px; font-weight: 600; }
.mrc-pay-chosen {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--mrc-muted);
}
.mrc-pay-chosen strong { color: var(--mrc-ink); }
.mrc-pay-option { flex-wrap: wrap; }
.mrc-pay-note {
    flex: 0 0 100%;
    margin-top: 8px;
    padding-left: 28px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mrc-muted);
}
.mrc-card-name-field { margin-top: 14px; }
.mrc-checkout-page .mrc-policy-acceptance { margin-top: 18px; }
.mrc-checkout-page .mrc-checkout-actions { margin-top: 18px; display: grid; gap: 10px; }
.mrc-checkout-page .mrc-checkout-actions .mrc-button { width: 100%; }

/* Live Stripe Payment Element in the order summary */
.mrc-pay-live {
    margin-top: 22px;
    border: 1px solid var(--mrc-line);
    border-radius: var(--mrc-radius);
    background: #fff;
    overflow: hidden;
}
.mrc-pay-live .mrc-pay-legend {
    display: block;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mrc-line);
    background: var(--mrc-paper);
}
.mrc-pay-live-body { padding: 16px; }
.mrc-pay-live-body #mrc-payment-slot { min-height: 48px; }
.mrc-pay-loading {
    margin: 0 0 12px;
    color: var(--mrc-muted);
    font-size: 14px;
}
.mrc-pay-loading[hidden] { display: none; }
.mrc-payment-message {
    margin: 0;
    color: #721c24;
    font-size: 14px;
    line-height: 1.5;
}
.mrc-payment-message:empty { display: none; }
.mrc-place-order { width: 100%; gap: 8px; }
.mrc-lock-icon { flex: 0 0 auto; }


/* Policy popups: native <dialog> modal, title + scrollable body + close button */
.mrc-policy-link,
.mrc-policy-acceptance button.mrc-policy-link {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.mrc-modal {
    border: 0;
    border-radius: 12px;
    padding: 0;
    width: calc(100% - 32px);
    max-width: 640px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    color: var(--mrc-ink);
    background: #fff;
}
.mrc-modal::backdrop { background: rgba(0, 0, 0, .45); }
.mrc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--mrc-line);
}
.mrc-modal-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.mrc-modal-x {
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    padding: 0 4px;
    color: var(--mrc-muted);
    cursor: pointer;
}
.mrc-modal-x:hover { color: var(--mrc-ink); }
.mrc-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow: auto;
    font-size: 15px;
    line-height: 1.65;
}
.mrc-modal-body > :first-child { margin-top: 0; }
.mrc-modal-foot {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--mrc-line);
}


/* Content pages (About, Contact, legal). Typography only: the shell comes from
   the same header/footer partials as the rest of the storefront. */
.mrc-content-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px var(--mrc-shell-pad) 0;
    box-sizing: border-box;
}
.mrc-content-title {
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 12px;
}
.mrc-content-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--mrc-muted);
    margin: 0 0 28px;
}
.mrc-content-empty { color: var(--mrc-muted); }
.mrc-content--legal .mrc-prose { max-width: none; }
.mrc-contact { margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid var(--mrc-line); }
.mrc-contact-title { font-size: 24px; margin: 0 0 18px; letter-spacing: -.01em; }
.mrc-contact-form { display: grid; gap: 18px; max-width: 640px; }
.mrc-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mrc-contact-form input[type="text"],
.mrc-contact-form input[type="email"],
.mrc-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}
.mrc-contact-form textarea { min-height: 150px; }
.mrc-contact-ok { padding: 16px 18px; border-radius: 8px; background: #eef7ee; border: 1px solid #cde5cd; color: #1c5c1c; }
.mrc-contact-errors { margin: 0 0 18px; padding: 14px 18px 14px 36px; border-radius: 8px; background: #fdecec; border: 1px solid #f5c2c2; color: #8a1f1f; }
.mrc-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mrc-content-index {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--mrc-line);
}
.mrc-content-index li { border-bottom: 1px solid var(--mrc-line); }
.mrc-content-index a {
    display: block;
    padding: 14px 2px;
    color: var(--mrc-ink);
    text-decoration: none;
    font-weight: 600;
}
.mrc-content-index a:hover { color: var(--mrc-rust); }

/* Contact page: FAQ and form side by side. Blocks are named so the mobile pass
   can restack them without touching this desktop layout. */
.mrc-content--contact {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 36px 44px;
    align-items: start;
}
.mrc-content--contact > .mrc-content-title,
.mrc-content--contact > .mrc-content-lead,
.mrc-content--contact > .mrc-prose,
.mrc-content--contact > .mrc-content-index { grid-column: 1 / -1; }
.mrc-content--contact > .mrc-faq { grid-column: 1; }
.mrc-content--contact > .mrc-contact {
    grid-column: 2;
    margin: 0;
    padding: 0;
    border-top: 0;
}
/* accordion rhythm: the shared disclosure carries a margin for standalone use */
.mrc-faq .mrc-disclosure { margin: 0; }

.mrc-faq { display: grid; gap: 10px; margin: 0 0 28px; }
.mrc-faq .mrc-disclosure-body { padding-top: 4px; }
.mrc-prose {
    font-size: 16px;
    line-height: 1.75;
    color: var(--mrc-ink);
    max-width: 88ch;          /* readable measure, but not a narrow column */
}
.mrc-prose > :first-child { margin-top: 0; }
.mrc-prose p { margin: 0 0 18px; }
.mrc-prose h2 { font-size: 24px; line-height: 1.25; margin: 36px 0 12px; letter-spacing: -.01em; }
.mrc-prose h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 10px; }
.mrc-prose ul, .mrc-prose ol { margin: 0 0 18px; padding-left: 22px; }
.mrc-prose li { margin-bottom: 8px; }
.mrc-prose a { color: inherit; text-decoration: underline; }
.mrc-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.mrc-prose blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--mrc-line);
    color: var(--mrc-muted);
}
.mrc-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.mrc-prose th, .mrc-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mrc-line); }

/* Inline warning for the checkout: replaces the easy-to-miss native bubble */
.mrc-form-warning {
    display: grid;
    gap: 4px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid #f0c36d;
    border-left: 4px solid #d99b00;
    border-radius: 8px;
    background: #fff8e6;
    color: #6b4a00;
    font-size: 14px;
    line-height: 1.5;
}
.mrc-form-warning strong { font-size: 15px; }

/* 9. MOBILE */
@media (max-width: 980px) {
    .mrc-site-nav { display: none; }
    .mrc-menu-toggle { display: inline-flex; }
    .mrc-checkout-page .mrc-checkout-shell { grid-template-columns: 1fr; }
    .mrc-checkout-page .mrc-checkout-summary { position: static; }
    .mrc-footer-inner { grid-template-columns: 1fr 1fr; }
    .mrc-pre-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
    .mrc-site-header-inner { padding-inline: 16px; }
    .mrc-checkout-page .mrc-checkout-title { font-size: clamp(48px, 14vw, 64px); }
    .mrc-checkout-step-head { grid-template-columns: 1fr; }
    .mrc-checkout-item { grid-template-columns: 64px minmax(0, 1fr); }
    .mrc-grid { grid-template-columns: 1fr; }
    .mrc-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
/* ============================================
   PRODUCT PAGE
   ============================================ */

.mrc-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px;
}
@media (min-width: 900px) {
    .mrc-product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .mrc-buy-box {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}
.mrc-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}
.mrc-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.mrc-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #faf9f7;
}
.mrc-thumb.is-active {
    border-color: #007e00;
}
.mrc-buy-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
}
.mrc-price {
    font-size: 32px;
    font-weight: 700;
    color: #007e00;
    margin: 0 0 8px;
}
.mrc-stock-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.mrc-stock-badge.in-stock { background: #d4edda; color: #155724; }
.mrc-stock-badge.backorder { background: #fff3cd; color: #856404; }
.mrc-stock-badge.out-of-stock { background: #f8d7da; color: #721c24; }
.mrc-qty-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.mrc-qty-row input {
    width: 80px;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-align: center;
}
.mrc-add-to-cart {
    display: block;
    width: 100%;
    padding: 16px;
    background: #007e00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.mrc-add-to-cart:hover { background: #006400; }
.mrc-add-to-cart:disabled { background: #ccc; cursor: not-allowed; }
.mrc-trust-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #6b6b6b;
    flex-wrap: wrap;
}
.mrc-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}
.mrc-accordion {
    border-top: 1px solid #e5e5e5;
    margin-top: 32px;
}
.mrc-accordion details {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
}
.mrc-accordion summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
}
.mrc-accordion summary::-webkit-details-marker { display: none; }
.mrc-accordion summary:after {
    content: "+";
    float: right;
    font-size: 20px;
    color: #007e00;
}
.mrc-accordion details[open] summary:after { content: "−"; }
.mrc-accordion .mrc-accordion-body {
    padding-top: 16px;
    color: #33251f;
    line-height: 1.7;
}
.mrc-related {
    max-width: 1280px;
    margin: 80px auto 0;
    padding: 0 32px;
}
.mrc-related h2 {
    font-size: 28px;
    margin-bottom: 24px;
}
.mrc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.mrc-related-card {
    text-decoration: none;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
.mrc-related-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: contain;
    background: #faf9f7;
}
.mrc-related-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 12px;
}
.mrc-related-card p {
    font-size: 16px;
    font-weight: 700;
    color: #007e00;
    margin: 0 12px 12px;
}
.mrc-cart-bar {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}
.mrc-cart-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.mrc-btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #007e00;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}
.mrc-btn-primary:hover { background: #006400; }

/* Fix: prevent the image from overflowing the grid column */
#mrc-gallery {
    min-width: 0;
}
.mrc-main-image-link {
    display: block;
    min-width: 0;
    max-width: 100%;
}
.mrc-buy-box {
    min-width: 0;
}

/* ============================================
   CHECKOUT: EMPTY CART
   ============================================ */
.mrc-checkout-empty main { display: block !important; }

.mrc-empty-subtitle {
    margin: 8px 0 20px;
    color: var(--mrc-muted);
    font-size: clamp(18px, 1.6vw, 22px);
}
.mrc-empty-products {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--mrc-line);
}
.mrc-empty-products-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
}

/* Ribbon: one row, scrolls sideways when there are many products */
.mrc-empty-product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 12px;
}
.mrc-empty-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: var(--mrc-radius);
    overflow: hidden;
    scroll-snap-align: start;
}
.mrc-empty-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: var(--mrc-paper);
}
.mrc-empty-product-media img { width: 100%; height: 100%; object-fit: contain; }
.mrc-empty-product-placeholder { color: var(--mrc-muted); font-size: 14px; }
.mrc-empty-product-card > div { flex: 1; padding: 12px 12px 0; }
.mrc-empty-product-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.mrc-empty-product-meta { margin: 0; font-size: 16px; font-weight: 700; color: var(--mrc-rust); }
.mrc-empty-product-card > a:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 12px;
    border: 1px solid var(--mrc-rust);
    border-radius: var(--mrc-radius);
    color: var(--mrc-rust);
    font-weight: 700;
    text-decoration: none;
}
.mrc-empty-product-card > a:last-child:hover { background: #f0f9f0; }


/* ============================================
   PRODUCT LIST PAGE
   ============================================ */
.mrc-products-main { max-width: 1280px; margin: 0 auto; padding: 40px 32px; }
.mrc-products-title { font-size: 48px; font-weight: 600; margin: 0 0 8px; }
.mrc-products-count { color: var(--mrc-muted); margin: 0 0 32px; }
.mrc-products-empty { text-align: center; padding: 80px 0; color: var(--mrc-muted); }

body.mrc-products-page.has-cart-bar { padding-bottom: 90px; }

/* Fixed bottom cart bar (product page keeps the static version) */
.mrc-products-page .mrc-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.mrc-products-page .mrc-cart-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.mrc-cart-bar-info { font-size: 14px; }

/* Product grid */
.mrc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.mrc-product-card {
    display: flex;
    flex-direction: column;
    color: var(--mrc-ink);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}
.mrc-product-card-media {
    aspect-ratio: 1 / 1;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mrc-product-card-media img {
    width: 100%;
    height: 100%;
    background: transparent;
    object-fit: contain;
}
.mrc-product-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
    gap: 8px;
}
.mrc-product-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}
.mrc-product-card-title a { color: inherit; text-decoration: none; }
.mrc-product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.mrc-product-card-footer form { margin: 0; }
.mrc-product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #007e00;
    margin: 0;
}
.mrc-product-card-unavailable { font-size: 12px; color: #999; }
.mrc-product-card-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #007e00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.mrc-product-card-btn:hover { background: #006400; }

/* Keep the compact size despite the global button[type=submit] rule */
button.mrc-product-card-btn {
    min-height: 0 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px;
}

@media (max-width: 560px) {
    .mrc-products-main { padding: 24px 16px; }
    .mrc-products-title { font-size: 34px; }
}


/* ============================================
   CHECKOUT PAGE (Vanilla mode)
   ============================================ */

/* Respect the hidden attribute even when a class sets display */
.mrc-checkout-page [hidden] { display: none !important; }

/* Layout: form left, summary right */
.mrc-checkout-page main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
    max-width: var(--mrc-shell);
    margin: 0 auto;
    padding: 40px var(--mrc-shell-pad);
    box-sizing: border-box;
}
.mrc-checkout-page .mrc-checkout-main,
.mrc-checkout-page .mrc-checkout-summary {
    min-width: 0;
    box-sizing: border-box;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 12px;
    box-shadow: var(--mrc-shadow);
}
.mrc-checkout-main h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1;
    margin: 4px 0 8px;
}
.mrc-checkout-summary-title { margin: 4px 0 16px; font-size: 22px; font-weight: 600; }

.mrc-checkout-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.mrc-checkout-meta span {
    padding: 4px 12px;
    border: 1px solid var(--mrc-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--mrc-muted);
}

/* Forms */
.mrc-checkout-main form,
.mrc-checkout-summary form { display: grid; gap: 20px; }
.mrc-checkout-page .mrc-grid > [class*="wide"] { grid-column: 1 / -1; }
.mrc-help { color: var(--mrc-muted); font-size: 13px; }

.mrc-checkout-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mrc-checkout-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mrc-rust);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.mrc-checkout-step-title { margin: 0; font-size: 20px; font-weight: 600; }

.mrc-checkout-page .mrc-address-fields { display: grid; gap: 16px; padding: 16px; }
.mrc-checkout-page .mrc-policy-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    font-size: 14px;
}
.mrc-policy-acceptance input { width: auto; min-height: 0; margin-top: 3px; }
.mrc-checkout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Stripe */
.mrc-checkout-page #payment-element { padding: 16px; margin: 12px 0; }
#payment-message { margin-top: 12px; color: #721c24; font-size: 14px; }

/* Order summary */
.mrc-checkout-items { display: grid; gap: 16px; }
.mrc-checkout-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mrc-line);
}
.mrc-checkout-item-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    aspect-ratio: 1 / 1;
    background: var(--mrc-paper);
    border-radius: 6px;
    overflow: hidden;
    color: var(--mrc-muted);
    font-size: 12px;
    text-decoration: none;
}
.mrc-checkout-item-media img { width: 100%; height: 100%; object-fit: contain; }
.mrc-checkout-item-body { min-width: 0; }
.mrc-checkout-item-top { display: flex; justify-content: space-between; gap: 12px; }
.mrc-checkout-item-title { margin: 0; font-size: 14px; font-weight: 600; }
.mrc-checkout-item-meta,
.mrc-line-stock { margin: 2px 0 0; font-size: 12px; color: var(--mrc-muted); }
.mrc-checkout-item-price { font-weight: 700; white-space: nowrap; }
.mrc-checkout-item-controls { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; }
.mrc-checkout-qty { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.mrc-checkout-qty input { width: 72px; min-height: 36px; }
.mrc-checkout-remove {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px;
}

.mrc-checkout-totals {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--mrc-line);
}
.mrc-checkout-total-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mrc-checkout-total-row.is-grand {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--mrc-line);
    font-size: 18px;
}

.mrc-policy-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 13px; }
.mrc-policy-links a,
.mrc-policy-links .mrc-policy-link { background: none; border: 0; color: var(--mrc-muted); cursor: pointer; font: inherit; padding: 0; text-decoration: none; }
.mrc-policy-links a:hover,
.mrc-policy-links .mrc-policy-link:hover { color: var(--mrc-rust); text-decoration: underline; }

@media (max-width: 980px) {
    .mrc-checkout-page main { grid-template-columns: 1fr; padding: 24px var(--mrc-shell-pad); }
}
@media (max-width: 560px) {
    .mrc-checkout-page .mrc-checkout-main,
    .mrc-checkout-page .mrc-checkout-summary { padding: 18px; }
}
/* ============================================
   NEW HEADER & SEARCH
   ============================================ */
.mrc-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.mrc-site-header {
    background: #fff;
    border-bottom: 1px solid var(--mrc-line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.mrc-header-main {
    padding: 16px 0;
    border-bottom: 1px solid var(--mrc-line);
}
.mrc-header-main .mrc-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.mrc-logo { max-height: 48px; width: auto; }
.mrc-search-form {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    position: relative;
}
.mrc-search-form input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 20px;
    border: 1px solid var(--mrc-line);
    border-radius: 24px !important;
    background: var(--mrc-paper);
    font-size: 15px;
}
.mrc-search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--mrc-rust) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mrc-search-form button svg { width: 18px; height: 18px; color: #fff; }
.mrc-header-actions {
    display: flex;
    gap: 24px;
}
.mrc-header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--mrc-ink);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}
.mrc-header-icon svg { width: 22px; height: 22px; }
.mrc-main-nav a {
    color: var(--mrc-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}
.mrc-main-nav a:hover { border-bottom-color: var(--mrc-rust); color: var(--mrc-rust); }

/* ============================================
   NEW CATALOG LAYOUT (Sidebar + Grid)
   ============================================ */
.mrc-catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 32px;
    align-items: start;
}
.mrc-catalog-sidebar {
    position: sticky;
    top: 120px;
}
.mrc-catalog-main { min-width: 0; }

/* Category Header (SEO) */
.mrc-category-header {
    position: relative;
    border-radius: var(--mrc-radius);
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--mrc-line);
    display: flex;
    align-items: flex-end;
    min-height: 200px;
}
.mrc-category-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.mrc-category-header-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 32px;
    width: 100%;
    color: #fff;
}
.mrc-category-header h1 { margin: 0 0 8px; font-size: 36px; font-family: "Playfair Display", serif; }
.mrc-category-header p { margin: 0; font-size: 15px; max-width: 600px; line-height: 1.5; opacity: 0.9; }

@media (max-width: 980px) {
    .mrc-catalog-layout { grid-template-columns: 1fr; padding: 0 16px; }
    .mrc-catalog-sidebar { position: static; }
}
/* ============================================
   HEADER & TWO-PANE MEGA MENU
   ============================================ */
.mrc-site-header { z-index: 9999; }
.mrc-header-nav-bar { position: relative; border-top: 1px solid var(--mrc-line); }
.mrc-main-nav { display: flex; gap: 32px; height: 56px; align-items: center; }
.mrc-mega-wrap { position: static; height: 100%; display: flex; align-items: center; }
.mrc-mega-trigger {
    display: flex; align-items: center; gap: 6px; height: 100%; padding: 0;
    background: none; border: 0; border-bottom: 3px solid transparent;
    color: var(--mrc-ink); font: inherit; font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
}
.mrc-mega-trigger:hover, .mrc-mega-trigger[aria-expanded="true"] {
    color: var(--mrc-rust); border-bottom-color: var(--mrc-rust);
}
.mrc-mega-trigger svg { width: 16px; height: 16px; }
.mrc-mega-panel {
    position: absolute; top: 100%; left: 0; width: 100%; background: #fff;
    border-bottom: 1px solid var(--mrc-line); box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    z-index: 999; max-height: 70vh; overflow: hidden;
}
.mrc-mega-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: stretch; min-height: 0; max-height: 70vh;
}
.mrc-mega-rail {
    flex: 0 0 300px; width: 300px; min-width: 0;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--mrc-line); padding: 20px; background: var(--mrc-paper);
    overflow-y: auto; overflow-x: hidden;
}
.mrc-mega-rail-list { list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
.mrc-mega-rail-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 10px; border-radius: 4px; color: var(--mrc-ink);
    text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3;
}
.mrc-mega-rail-item:hover, .mrc-mega-rail-item.is-active {
    background: #fff; color: var(--mrc-rust); box-shadow: inset 3px 0 0 var(--mrc-rust);
}
.mrc-mega-rail-item.is-active { position: sticky; top: 0; z-index: 2; }
.mrc-mega-rail-item small { color: var(--mrc-muted); font-weight: 400; font-size: 12px; flex-shrink: 0; }
.mrc-mega-rail-item span { min-width: 0; overflow-wrap: anywhere; }
.mrc-mega-all {
    display: block; width: 100%; margin-top: 10px; padding: 12px 10px 4px;
    background: none; border: 0; border-top: 1px solid var(--mrc-line); border-radius: 0;
    color: var(--mrc-ink); font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: left;
}
.mrc-mega-all:hover { color: var(--mrc-rust); }
.mrc-mega-content {
    flex: 1 1 auto; min-width: 0;
    padding: 28px 32px; max-height: 70vh; overflow-y: auto;
}
.mrc-mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.mrc-mega-head h3 { margin: 0; font-family: "Playfair Display", serif; font-size: 24px; }
.mrc-mega-viewall { font-size: 13px; font-weight: 600; color: var(--mrc-rust); text-decoration: none; }
.mrc-mega-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; align-items: start; }
.mrc-mega-group { break-inside: avoid; margin-bottom: 18px; }
.mrc-mega-child {
    display: flex; justify-content: space-between; gap: 12px; padding: 4px 0;
    border-bottom: 1px solid var(--mrc-line); color: var(--mrc-ink);
    text-decoration: none; font-weight: 700; font-size: 14px;
}
.mrc-mega-child small { color: var(--mrc-muted); font-weight: 400; }
.mrc-mega-popular {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    margin: 0 0 20px; padding: 0 0 14px; border-bottom: 1px solid var(--mrc-line);
}
.mrc-mega-popular-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--mrc-muted); font-weight: 700; margin-right: 4px;
}
.mrc-mega-popular a { font-size: 13px; font-weight: 600; color: var(--mrc-rust); text-decoration: none; white-space: nowrap; }
.mrc-mega-popular a:hover { text-decoration: underline; }
.mrc-mega-subtree { min-width: 0; }
.mrc-mega-empty, .mrc-mega-loading { margin: 0 0 16px; color: var(--mrc-muted); font-size: 14px; }
.mrc-mega-fallback {
    margin: 0 0 18px; padding: 18px; border: 1px solid var(--mrc-line);
    border-radius: 6px; background: var(--mrc-paper);
}
.mrc-mega-fallback p { margin: 0 0 12px; color: var(--mrc-muted); font-size: 14px; }
.mrc-mega-button {
    display: inline-block; padding: 10px 16px; background: var(--mrc-rust);
    color: #fff; border-radius: 4px; text-decoration: none;
    font-weight: 600; font-size: 14px;
}
.mrc-mega-button:hover { color: #fff; opacity: 0.9; }
.mrc-mobile-toggle {
    display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
    padding: 0; border: 1px solid var(--mrc-line); border-radius: 6px;
    background: #fff; color: var(--mrc-ink); cursor: pointer;
}
.mrc-mobile-toggle svg { width: 22px; height: 22px; }
.mrc-mobile-menu { display: none; }
.mrc-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--mrc-line); }
.mrc-mobile-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--mrc-ink); }
.mrc-mobile-nav { display: flex; flex-direction: column; padding: 8px 20px 24px; }
.mrc-mobile-nav a {
    display: flex; justify-content: space-between; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--mrc-line); color: var(--mrc-ink);
    text-decoration: none; font-size: 15px; font-weight: 600;
}
.mrc-mobile-nav a small { color: var(--mrc-muted); font-weight: 400; }
.mrc-mobile-primary { color: var(--mrc-rust) !important; }
html.mrc-menu-open { overflow: hidden; }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
    .mrc-mega-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .mrc-header-main .mrc-shell { flex-wrap: wrap; }
    .mrc-search-form { order: 3; max-width: 100%; margin-top: 16px; }
    .mrc-main-nav { overflow-x: auto; white-space: nowrap; gap: 20px; }
    .mrc-mega-wrap { display: none; }
    .mrc-mega-panel { display: none !important; }
    .mrc-mobile-toggle { display: flex; }
    .mrc-mobile-menu:not([hidden]) {
        display: flex; flex-direction: column; position: fixed; inset: 0;
        z-index: 10000; background: #fff; overflow: auto;
    }
    .mrc-header-actions { gap: 16px; }
    .mrc-header-icon svg { width: 24px; height: 24px; }
    .mrc-logo { max-height: 40px; }
}
@media (min-width: 981px) {
    .mrc-mobile-menu { display: none !important; }
}
/* ============================================
   HOMEPAGE LAYOUT
   ============================================ */
.mrc-home-main {
    padding-bottom: 60px;
}

/* Hero Section */
.mrc-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    background: var(--mrc-paper);
    border-bottom: 1px solid var(--mrc-line);
    margin-bottom: 60px;
}
.mrc-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 10%;
    background: #f4f4f4;
}
.mrc-hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.1;
    color: var(--mrc-ink);
}
.mrc-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--mrc-muted);
    margin: 0 0 32px;
    max-width: 480px;
}
.mrc-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.mrc-home-section {
    margin-bottom: 80px;
}
.mrc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mrc-line);
}
.mrc-section-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: var(--mrc-ink);
}
.mrc-link {
    color: var(--mrc-rust);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.mrc-link:hover {
    text-decoration: underline;
}

/* Category Grid */
.mrc-home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mrc-home-category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    display: block;
    background: #ddd;
}
.mrc-home-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mrc-home-category-card:hover img {
    transform: scale(1.05);
}
.mrc-home-category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 24px 20px 16px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
    .mrc-hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .mrc-hero-image {
        height: 300px;
    }
    .mrc-home-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .mrc-home-category-grid {
        grid-template-columns: 1fr;
    }
    .mrc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* ============================================
   BREADCRUMBS (BULLETPROOF)
   ============================================ */
body .mrc-breadcrumbs {
    max-width: 1280px !important;
    margin: 24px auto 0 !important;
    padding: 0 32px !important;
    font-size: 13px !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important; /* Let the separator handle spacing */
}

body .mrc-breadcrumbs a {
    color: #6b6b6b !important; /* Force gray */
    text-decoration: none !important; /* Force no underline */
    transition: color 0.2s ease !important;
}

body .mrc-breadcrumbs a:hover {
    color: #1a1a1a !important; /* Darker gray on hover */
    text-decoration: underline !important; /* Underline ONLY on hover */
}

body .mrc-breadcrumbs .mrc-breadcrumb-separator {
    color: #ccc !important;
    margin: 0 8px !important;
    font-size: 13px !important;
}

body .mrc-breadcrumbs .mrc-breadcrumb-current {
    color: #1a1a1a !important; /* Current page is dark */
    font-weight: 500 !important;
}

/* Mobile fix */
@media (max-width: 980px) {
    body .mrc-breadcrumbs {
        padding: 0 16px !important;
        margin: 16px auto 0 !important;
    }
}

/* Make category tiles a bit smaller and more compact */
.mrc-home-category-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns instead of 3 */
    gap: 16px;
}
.mrc-home-category-card {
    aspect-ratio: 1 / 1; /* Square instead of 4:3 */
}
@media (max-width: 980px) {
    .mrc-home-category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PAGINATION
   ============================================ */
.mrc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--mrc-line);
}

.mrc-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 6px;
    color: var(--mrc-ink) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mrc-pagination a:hover {
    background: var(--mrc-rust);
    border-color: var(--mrc-rust);
    color: #fff !important;
}

.mrc-pagination span {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--mrc-muted);
    font-size: 14px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 560px) {
    .mrc-pagination a {
        padding: 6px 12px;
        font-size: 13px;
    }
    .mrc-pagination span {
        font-size: 13px;
        padding: 0 8px;
    }
}

/* ============================================
   PRODUCT GRID & HOVER EFFECTS (DESKTOP)
   ============================================ */
.mrc-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mrc-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.mrc-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mrc-product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: block;
    overflow: hidden;
}

.mrc-product-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: opacity 0.1s ease;
}

.mrc-img-secondary {
    opacity: 0;
    z-index: 2;
}

.mrc-product-card:hover .mrc-img-secondary {
    opacity: 1;
}

.mrc-product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    border-top: 1px solid var(--mrc-line);
}

.mrc-product-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 12px;
    flex-grow: 1;
    color: var(--mrc-ink);
}

.mrc-product-card-title a {
    text-decoration: none;
    color: inherit;
}

.mrc-product-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mrc-product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--mrc-ink);
    margin: 0;
}

.mrc-card-btn-wrapper {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(5px);
}

.mrc-product-card:hover .mrc-card-btn-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mrc-product-card-btn {
    width: 100%;
    padding: 8px 12px;
    background: var(--mrc-rust);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mrc-product-card-btn:hover {
    background: var(--mrc-rust-hover);
}

.mrc-product-card-unavailable {
    font-size: 12px;
    color: #999;
}

/* ============================================
   RELATED PRODUCTS SLIDER
   ============================================ */
.mrc-related-wrapper {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--mrc-line);
}

.mrc-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* The Track */
.mrc-related-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    
    /* IMPORTANT: Removed 'scroll-behavior: smooth' so dragging is instant */
    
    padding-bottom: 20px; 
    cursor: grab;
    user-select: none;
    
    /* Hide scrollbar */
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.mrc-related-slider::-webkit-scrollbar {
    display: none; 
}

.mrc-related-slider.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snapping while dragging */
}

/* Force exactly 4 cards to show at a time */
.mrc-related-slider .mrc-product-card {
    flex: 0 0 calc(25% - 18px); 
    scroll-snap-align: start;
}

/* Stop image flip while dragging */
.mrc-related-slider.is-dragging .mrc-product-card:hover .mrc-img-secondary {
    opacity: 0; 
}

/* Prevent native drag on images */
.mrc-related-slider img {
    -webkit-user-drag: none; 
    user-select: none;       
}

/* Slider Arrows */
.mrc-slider-arrow {
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.mrc-slider-arrow:hover {
    background: var(--mrc-rust);
    color: #fff;
    border-color: var(--mrc-rust);
}

.mrc-slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   PHOTOSWIPE LIGHTBOX FIX
   ============================================ */
.pswp {
    z-index: 999999 !important; /* Force it above the sticky header */
}
.pswp__bg {
    opacity: 0.9 !important; /* Make the background a bit darker for better contrast */
}
/* Force 5 cards to show on the checkout empty-cart slider */
.mrc-checkout-slider .mrc-product-card {
    flex: 0 0 calc(20% - 19.2px); /* 20% width minus gap adjustments */
}

/* Ensure the empty products container doesn't clip the slider arrows */
.mrc-empty-products {
    padding-top: 28px;
    border-top: 1px solid var(--mrc-line);
    margin-top: 40px;
}
/* ============================================
   CATEGORY INDEX (/cat/)
   Desktop styling only: no media queries. The card grid uses auto-fill so it
   reflows without a mobile breakpoint (mobile remains a separate pass).
   ============================================ */
.mrc-cat-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px var(--mrc-shell-pad) 0;
    box-sizing: border-box;
}
.mrc-cat-hero { display: grid; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.mrc-cat-kicker { color: var(--mrc-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.mrc-cat-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0; }
.mrc-cat-lead { color: var(--mrc-muted); font-size: 17px; margin: 0; }
.mrc-cat-meta { color: var(--mrc-muted); font-size: 13px; margin: 0; }
.mrc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.mrc-cat-card { background: var(--mrc-cream); border: 1px solid var(--mrc-line); border-radius: var(--mrc-radius); overflow: hidden; display: flex; flex-direction: column; }
.mrc-cat-card-media { display: block; aspect-ratio: 4 / 3; background: #f0efed; overflow: hidden; }
.mrc-cat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mrc-cat-card:hover .mrc-cat-card-media img { transform: scale(1.04); }
.mrc-cat-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: "Playfair Display", Georgia, serif; font-size: 72px; color: var(--mrc-rust); background: linear-gradient(135deg, #f4f8f2, #e6efe3); }
.mrc-cat-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mrc-cat-card-title { font-size: 20px; font-weight: 650; margin: 0; }
.mrc-cat-card-title a { color: inherit; text-decoration: none; }
.mrc-cat-card-title a:hover { color: var(--mrc-rust); }
.mrc-cat-card-count { color: var(--mrc-muted); font-size: 13px; margin: 0; }
.mrc-cat-card-text { color: var(--mrc-muted); font-size: 14px; margin: 0; }
.mrc-cat-card-sub { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.mrc-cat-card-sub a { color: var(--mrc-muted); text-decoration: none; }
.mrc-cat-card-sub a:hover { color: var(--mrc-rust); text-decoration: underline; }
.mrc-cat-card-more { color: #999; }
.mrc-cat-all { margin: 48px 0 0; text-align: center; }

/* ============================================
   ACCOUNT (/account/)
   Auto-fit grids instead of breakpoints: the page still reflows on a narrow
   screen without adding mobile CSS to this file (mobile is a separate pass).
   ============================================ */
.mrc-account-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px var(--mrc-shell-pad) 0;
    box-sizing: border-box;
}
.mrc-account-hero { display: grid; gap: 10px; max-width: 760px; margin-bottom: 32px; }
.mrc-account-kicker { color: var(--mrc-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.mrc-account-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0; }
.mrc-account-subtitle { color: var(--mrc-muted); font-size: 16px; margin: 0; }
.mrc-account-message,
.mrc-account-error {
    border-radius: var(--mrc-radius-sm);
    font-size: 14px;
    margin: 0 0 24px;
    padding: 14px 16px;
}
.mrc-account-message { background: #eef7ec; border: 1px solid #c9e3c4; color: #1d4d18; }
.mrc-account-error { background: #fdf0ee; border: 1px solid #e8c4bd; color: #7d2f24; }
.mrc-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; align-items: start; }
.mrc-account-card { background: var(--mrc-cream); border: 1px solid var(--mrc-line); border-radius: var(--mrc-radius); padding: 30px 32px 34px; }
.mrc-account-card--wide { grid-column: 1 / -1; }
.mrc-account-card--danger { border-color: #e8cec8; }
.mrc-account-card h2 { font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.mrc-account-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mrc-account-card-head h2 { margin-bottom: 0; }
.mrc-account-note { color: var(--mrc-muted); font-size: 14px; margin: 0 0 16px; }
.mrc-account-subhead { font-size: 15px; font-weight: 700; margin: 10px 0 0; }
.mrc-account-form { display: grid; gap: 14px; margin: 0; }
.mrc-account-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.mrc-account-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.mrc-account-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.mrc-account-check input { width: auto; }
.mrc-account-inline-form { margin: 0; }
.mrc-account-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.mrc-account-table { border-collapse: collapse; font-size: 14px; width: 100%; }
.mrc-account-table th,
.mrc-account-table td { border-bottom: 1px solid var(--mrc-line); padding: 12px 10px; text-align: left; vertical-align: top; }
.mrc-account-table th { color: var(--mrc-muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mrc-account-actions a { color: var(--mrc-rust); text-decoration: none; }
.mrc-account-actions a:hover { text-decoration: underline; }
.mrc-account-pager { display: flex; gap: 12px; margin: 0; }
.mrc-account-details summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* ============================================
   ORDER DOCUMENTS (receipt, status, access recovery)
   Same shop shell, but these routes are not PW page renders: they are included
   from Mercato's route handlers, so they carry their own head and chrome.
   ============================================ */
.mrc-order-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px var(--mrc-shell-pad) 0;
    box-sizing: border-box;
}
.mrc-order-shell--narrow { max-width: 760px; }
.mrc-order-hero { display: grid; gap: 10px; margin-bottom: 32px; }
.mrc-order-kicker { color: var(--mrc-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.mrc-order-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0; }
.mrc-order-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mrc-order-pills span { border: 1px solid var(--mrc-line); border-radius: 999px; color: var(--mrc-muted); font-size: 12px; font-weight: 600; padding: 7px 14px; }
.mrc-order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.mrc-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.mrc-order-card { background: var(--mrc-cream); border: 1px solid var(--mrc-line); border-radius: var(--mrc-radius); padding: 26px 28px 30px; margin-bottom: 20px; }
.mrc-order-card h2 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.mrc-order-card p { margin: 0 0 10px; }
.mrc-order-card--table { overflow-x: auto; }
.mrc-order-muted { color: var(--mrc-muted); font-size: 14px; }
.mrc-order-table { border-collapse: collapse; font-size: 14px; width: 100%; }
.mrc-order-table th,
.mrc-order-table td { border-bottom: 1px solid var(--mrc-line); padding: 12px 10px; text-align: left; vertical-align: top; }
.mrc-order-table th { color: var(--mrc-muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mrc-order-table tfoot td { background: #fbfaf7; }
.mrc-order-total td { font-size: 15px; }
.mrc-order-tax td { color: var(--mrc-muted); font-size: 13px; }
.mrc-order-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 16px; }
.mrc-order-dl dt { color: var(--mrc-muted); }
.mrc-order-dl dd { font-weight: 650; margin: 0; }
.mrc-order-links,
.mrc-order-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.mrc-order-links a,
.mrc-order-downloads a { color: var(--mrc-rust); text-decoration: none; }
.mrc-order-links a:hover,
.mrc-order-downloads a:hover { text-decoration: underline; }
.mrc-order-help { color: var(--mrc-muted); font-size: 14px; margin: 0 0 10px; }
.mrc-order-help a { color: var(--mrc-rust); }
.mrc-order-credential { display: grid; gap: 6px; margin: 0 0 16px; }
.mrc-order-credential .mrc-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.mrc-order-form { display: grid; gap: 12px; margin: 0 0 16px; }

/* Order documents: secondary actions must look like buttons, not bare links. */
.mrc-order-actions .mrc-button-secondary {
    border: 1px solid var(--mrc-rust) !important;
    border-radius: var(--mrc-radius);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    font-weight: 700;
    text-decoration: none;
}
.mrc-order-subhead {
    color: var(--mrc-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    margin: 18px 0 6px;
    text-transform: uppercase;
}
.mrc-order-card p { line-height: 1.6; }
.mrc-order-recommendations { margin-top: 4px; }
.mrc-order-rec-head { align-items: end; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; }
.mrc-order-rec-head h2 { margin: 0; }
.mrc-order-rec-head > a { color: var(--mrc-rust); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mrc-order-rec-head > a:hover { text-decoration: underline; }
.mrc-order-rec-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mrc-order-rec-item { background: #fff; border: 1px solid var(--mrc-line); border-radius: var(--mrc-radius); color: inherit; display: flex; flex-direction: column; gap: 8px; padding: 10px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.mrc-order-rec-item:hover { box-shadow: 0 10px 28px rgba(27,46,41,.10); transform: translateY(-2px); }
.mrc-order-rec-item img { aspect-ratio: 1; background: #fff; object-fit: contain; width: 100%; }
.mrc-order-rec-title { font-size: 13px; line-height: 1.35; }
.mrc-order-rec-price { font-size: 14px; font-weight: 800; margin-top: auto; }
@media (max-width: 860px) { .mrc-order-rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mrc-order-rec-head { align-items: start; flex-direction: column; gap: 6px; } }

/* All-products / search-results catalogue header. */
.mrc-catalog-header { margin: 0 0 24px; }
.mrc-catalog-header h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
    margin: 0 0 8px;
}
.mrc-catalog-header p { color: var(--mrc-muted); margin: 0; }
.mrc-catalog-header a { color: var(--mrc-rust); }

/* Shared fixed bottom cart bar (home, catalog, category, product, content). */
.mrc-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 24px;
    background: #fff;
    border: 0;
    border-top: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}
.mrc-cart-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
}
body.has-cart-bar { padding-bottom: 90px; }

/* Rich category grid on a category page. */
.mrc-cat-section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 20px;
}

/* Rotating banner spot (Banners section; assigned per page). */
.mrc-banner-spot { margin: 0 0 56px; }
.mrc-banner-slide {
    display: none;
    background: var(--mrc-paper);
    border: 1px solid var(--mrc-line);
    border-radius: 10px;
    overflow: hidden;
}
.mrc-banner-slide.is-active { display: flex; flex-wrap: wrap; animation: mrcBannerFade 0.35s ease; }
.mrc-banner-copy {
    flex: 1 1 340px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.mrc-banner-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mrc-rust);
    margin-bottom: 10px;
}
.mrc-banner-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.1;
    margin: 0 0 8px;
}
.mrc-banner-text {
    color: var(--mrc-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    max-width: 52ch;
}
.mrc-banner-cta { margin-top: 14px; }
.mrc-banner-media { flex: 1 1 320px; min-height: 180px; display: flex; gap: 4px; }
.mrc-banner-media img { flex: 1 1 0; width: 0; min-width: 0; height: 100%; object-fit: cover; display: block; }
.mrc-banner-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.mrc-banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #b9b2a6;
    background: transparent;
    cursor: pointer;
}
.mrc-banner-dot.is-active { background: var(--mrc-rust); border-color: var(--mrc-rust); }
@keyframes mrcBannerFade { from { opacity: 0.35; } to { opacity: 1; } }

/* Category header placeholder (until a category image is uploaded). */
.mrc-category-header-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 32px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 96px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.12);
    background: #e9e4da;
}

/* Front-end edit-page shortcut for editors (left of Mijn account). */
.mrc-edit-page { color: var(--mrc-rust); }
.mrc-edit-page:hover { color: var(--mrc-ink); }

/* Floating question button on product/category pages */
.mrc-question-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 9000;
    display: flex; align-items: center; gap: 6px;
}
.mrc-question-fab-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; background: var(--mrc-rust); color: #fff;
    border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.mrc-question-fab-link:hover { color: #fff; opacity: 0.92; }
.mrc-question-fab-link svg { width: 18px; height: 18px; }
.mrc-question-fab-close {
    width: 26px; height: 26px; padding: 0; border: 1px solid var(--mrc-line);
    border-radius: 50%; background: #fff; color: var(--mrc-ink);
    font-size: 16px; line-height: 1; cursor: pointer;
}
body.has-cart-bar .mrc-question-fab { bottom: 96px; }
@media (max-width: 640px) {
    .mrc-question-fab { right: 16px; bottom: 16px; }
    body.has-cart-bar .mrc-question-fab { bottom: 88px; }
    .mrc-question-fab-link { padding: 10px 14px; font-size: 13px; }
}

.mrc-contact { scroll-margin-top: 90px; }

/* Contact form modal (product/category question button) */
.mrc-contact-modal {
    width: min(680px, calc(100vw - 32px));
    max-height: min(90vh, 820px);
    padding: 0;
    border: 1px solid var(--mrc-line);
    border-radius: var(--mrc-radius);
    background: var(--mrc-ivory);
    color: var(--mrc-ink);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}
.mrc-contact-modal::backdrop { background: rgba(26, 26, 26, 0.55); }
.mrc-contact-modal-inner {
    position: relative;
    padding: 28px;
    max-height: min(90vh, 820px);
    overflow-y: auto;
}
.mrc-contact-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; padding: 0;
    border: 1px solid var(--mrc-line); border-radius: 50%;
    background: #fff; color: var(--mrc-ink);
    font-size: 20px; line-height: 1; cursor: pointer;
}
.mrc-contact-modal .mrc-contact-title { margin: 0 40px 18px 0; }
.mrc-contact-modal .mrc-contact-form { margin-top: 16px; }
@media (max-width: 640px) {
    .mrc-contact-modal-inner { padding: 20px; }
}

/* Filter price range + brand datalist */
.mrc-filter-price { grid-column: 1 / -1; }
.mrc-price-values { display: flex; justify-content: space-between; font-size: 12px; color: var(--mrc-muted); margin: 2px 0 4px; }
.mrc-price-slider { position: relative; height: 28px; margin: 4px 0 2px; }
.mrc-price-slider input[type="range"] {
    position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; padding: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.mrc-price-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--mrc-line); }
.mrc-price-slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--mrc-line); }
.mrc-price-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px;
    border-radius: 50%; background: var(--mrc-rust); border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.mrc-price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
    background: var(--mrc-rust); border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.mrc-filter-brand input { width: 100%; }

/* Recently viewed */
.mrc-recent--sidebar {
    margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--mrc-line);
}
.mrc-recent-sidebar-list { list-style: none; margin: 0; padding: 0; }
.mrc-recent-sidebar-list li + li { border-top: 1px solid var(--mrc-line); }
.mrc-recent-sidebar-list a {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    color: var(--mrc-ink); text-decoration: none;
}
.mrc-recent-sidebar-list a:hover strong { color: var(--mrc-rust); }
.mrc-recent-sidebar-list img {
    width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain;
    border: 1px solid var(--mrc-line); border-radius: 4px; background: var(--mrc-ivory);
}
.mrc-recent-sidebar-list span { min-width: 0; }
.mrc-recent-sidebar-list strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.mrc-recent-sidebar-list small { display: block; margin-top: 2px; color: var(--mrc-muted); font-size: 12px; }
.mrc-recent--row { margin: 44px auto; }
.mrc-recent--row .mrc-section-header { margin-bottom: 16px; }
.mrc-recent-slider {
    display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.mrc-recent-slider .mrc-product-card { flex: 0 0 220px; scroll-snap-align: start; }
@media (max-width: 640px) {
    .mrc-recent-slider .mrc-product-card { flex-basis: 180px; }
}

/* Recently viewed horizontal rows: arrows + visible scrollbar */
.mrc-recent--row .mrc-slider-container { position: relative; }
.mrc-recent-slider {
    scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.mrc-recent-slider::-webkit-scrollbar { display: none; height: 0; }
.mrc-recent--row .mrc-slider-arrow[disabled] { opacity: 0.35; cursor: default; }
body.mrc-home-page .mrc-recent--row { margin-top: 24px; }

.mrc-recent-slider.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Checkout: scroll target and accepted-policy card on the payment step */
#mrc-payment { scroll-margin-top: 90px; }
.mrc-policy-accepted {
    border: 1px solid var(--mrc-line); border-radius: var(--mrc-radius-sm);
    background: var(--mrc-ivory); padding: 12px 14px; margin: 12px 0;
}
.mrc-policy-accepted p { margin: 0 0 6px; }
.mrc-policy-accepted p:last-of-type { margin-bottom: 0; }

/* ============================================
   COOKIE CONSENT — compact mobile sheet
   The consent module ships a large bottom panel. On a phone it covered most
   of the viewport, including the product and checkout actions. Keep the same
   choices, but make it a compact sheet with a single row of actions.
   ============================================ */
@media (max-width: 640px) {
    .pwcm-banner {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
        max-width: none !important;
        max-height: 46vh !important;
        overflow-y: auto !important;
        padding: 14px !important;
        border-radius: 12px !important;
        display: block !important;
    }
    .pwcm-banner-content {
        flex: none !important;
        min-width: 0 !important;
    }
    .pwcm-banner .pwcm-title {
        font-size: 15px !important;
        line-height: 1.25 !important;
        margin: 0 0 4px !important;
    }
    .pwcm-banner .pwcm-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .pwcm-banner .pwcm-links {
        font-size: 11px !important;
        margin-top: 4px !important;
    }
    .pwcm-banner .pwcm-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }
    .pwcm-banner .pwcm-actions .pwcm-btn {
        font-size: 12px !important;
        min-height: 40px !important;
        padding: 8px 10px !important;
        width: 100% !important;
    }
    .pwcm-banner .pwcm-btn-ghost {
        grid-column: 1 / -1 !important;
        min-height: 32px !important;
    }
}

/* Checkout progress: three long Dutch labels do not fit on one phone row. */
@media (max-width: 640px) {
    .mrc-steps-list {
        justify-content: flex-start;
        padding: 14px 0;
    }
    .mrc-step {
        flex: 1 1 0;
        gap: 6px;
        min-width: 0;
        padding: 0 4px;
        font-size: 11px;
        line-height: 1.2;
    }
    .mrc-step + .mrc-step::before { display: none; }
    .mrc-step-num {
        flex: 0 0 22px;
        height: 22px;
        width: 22px;
    }
}

/* ============================================
   MOBILE CATALOG FILTERS — off-canvas drawer
   Desktop keeps the sticky sidebar; phones get one clear "Filters" button and
   the products start immediately instead of below a full filter form.
   ============================================ */
.mrc-filter-toggle,
.mrc-filter-overlay,
.mrc-filter-close { display: none; }

@media (max-width: 980px) {
    .mrc-filter-toggle {
        align-items: center;
        background: var(--mrc-ink);
        border: 0;
        border-radius: 999px;
        color: #fff;
        display: inline-flex;
        font-size: 12px;
        font-weight: 800;
        gap: 7px;
        letter-spacing: .08em;
        min-height: 42px;
        padding: 0 18px;
        text-transform: uppercase;
    }
    .mrc-catalog-sidebar {
        background: var(--mrc-cream);
        bottom: 0;
        box-shadow: 18px 0 50px rgba(27, 46, 41, .18);
        left: 0;
        max-width: 360px;
        overflow-y: auto;
        padding: 22px 20px calc(28px + env(safe-area-inset-bottom));
        position: fixed;
        top: 0;
        transform: translateX(-102%);
        transition: transform .22s ease;
        width: min(88vw, 360px);
        z-index: 10001;
    }
    .mrc-catalog-sidebar.is-open { transform: translateX(0); }
    .mrc-filter-overlay {
        background: rgba(17, 30, 27, .48);
        bottom: 0;
        display: block;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 10000;
    }
    .mrc-filter-overlay[hidden] { display: none; }
    .mrc-filter-mobile-head {
        align-items: center;
        display: flex;
        justify-content: space-between;
        margin-bottom: 14px;
    }
    .mrc-filter-mobile-head .mrc-sidebar-heading { margin: 0; }
    .mrc-filter-close {
        align-items: center;
        background: transparent;
        border: 1px solid var(--mrc-line);
        border-radius: 999px;
        color: var(--mrc-ink);
        display: inline-flex;
        font-size: 22px;
        height: 38px;
        justify-content: center;
        line-height: 1;
        width: 38px;
    }
    body.mrc-filters-open { overflow: hidden; }
}

/* ============================================
   MOBILE PRODUCT BUY BAR
   The gallery and thumbnails can push the normal buy box below the fold.
   This bar appears only after that button scrolls out of view; once the cart
   bar is visible it stays out of the way.
   ============================================ */
.mrc-mobile-buy { display: none; }

@media (max-width: 899px) {
    .mrc-mobile-buy {
        align-items: center;
        background: #fff;
        border-top: 1px solid var(--mrc-line);
        bottom: 0;
        box-shadow: 0 -8px 30px rgba(27, 46, 41, .14);
        display: flex;
        gap: 12px;
        left: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 1000;
    }
    .mrc-mobile-buy[hidden] { display: none; }
    body.has-cart-bar .mrc-mobile-buy { display: none !important; }
    .mrc-mobile-buy-info {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .mrc-mobile-buy-title {
        color: var(--mrc-muted);
        font-size: 11px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mrc-mobile-buy-price {
        color: var(--mrc-ink);
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
    }
    .mrc-mobile-buy form { flex: 0 0 auto; margin: 0; }
    .mrc-mobile-buy .mrc-add-to-cart {
        border: 0;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .06em;
        min-height: 44px;
        padding: 0 18px;
        text-transform: uppercase;
        width: auto;
    }
    body.has-cart-bar { padding-bottom: 90px; }
}

/* Keep horizontal product sliders inside the viewport. Without min-width:0 a
   flex track can force the layout viewport wider than the phone, which also
   breaks the positioning of fixed bars. */
.mrc-related-wrapper,
.mrc-slider-container,
.mrc-related-slider { min-width: 0; max-width: 100%; }
html, body { overflow-x: clip; }

/* Keep the floating question button clear of the mobile buy bar. */
@media (max-width: 899px) {
    body.mrc-buybar-visible .mrc-question-fab { bottom: 88px; }
}

/* Keep the cookie-settings FAB above the mobile buy bar too. */
@media (max-width: 899px) {
    body.mrc-buybar-visible .pwcm-fab { bottom: 88px !important; }
}

/* ============================================
   MOBILE HEADER, PRODUCT GRID AND TILES
   ============================================ */
@media (max-width: 980px) {
    .mrc-header-main { padding: 8px 0; }
    .mrc-header-main .mrc-shell { gap: 8px 12px; }
    .mrc-logo { max-height: 32px; }
    .mrc-mobile-toggle { height: 38px; width: 38px; }
    .mrc-mobile-toggle svg { height: 20px; width: 20px; }
    .mrc-header-actions { gap: 14px; margin-left: auto; }
    .mrc-header-icon { position: relative; }
    .mrc-header-icon svg { height: 22px; width: 22px; }
    .mrc-header-label,
    .mrc-header-icon > span:not(.mrc-cart-bubble) { display: none; }
    .mrc-cart-bubble {
        align-items: center;
        background: var(--mrc-rust);
        border-radius: 999px;
        color: #fff;
        display: inline-flex;
        font-size: 10px;
        font-weight: 800;
        height: 17px;
        justify-content: center;
        line-height: 1;
        min-width: 17px;
        padding: 0 4px;
        position: absolute;
        right: -8px;
        top: -6px;
    }
    .mrc-search-form {
        flex: 1 0 100%;
        margin-top: 8px;
        max-width: 100%;
    }
    .mrc-search-form input {
        font-size: 16px;
        height: 42px;
        padding-left: 16px;
    }
    .mrc-search-form button {
        height: 32px;
        min-height: 32px !important;
        width: 32px;
    }
    .mrc-header-nav-bar { display: none; }

    .mrc-product-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mrc-product-card-media img { padding: 8px; }
    .mrc-product-card-body { padding: 10px 10px 12px; }
    .mrc-product-card-title {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
    .mrc-product-card-price { font-size: 15px; }
    .mrc-card-btn-wrapper {
        opacity: 1;
        transform: none;
        visibility: visible;
    }
    .mrc-product-card-btn {
        font-size: 11px;
        min-height: 36px;
        padding: 7px 8px;
    }
}

/* The question pill duplicates the contact links in the mobile menu and
   overlaps product tiles. Keep it desktop/tablet only. */
@media (max-width: 640px) {
    .mrc-question-fab { display: none !important; }
}

/* Responsive footer: four columns on desktop, two on tablet, one on phones.
   The brand column spans the full row so the three link columns can stack. */
.mrc-footer-columns {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1280px;
}
@media (max-width: 980px) {
    .mrc-footer-columns {
        gap: 30px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mrc-footer-columns > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .mrc-footer-columns { gap: 24px; grid-template-columns: 1fr; }
    .mrc-footer-columns > div:first-child { grid-column: auto; }
}

/* Category cards: long Dutch branch names must wrap inside the tile. */
.mrc-cat-card,
.mrc-cat-card-body { min-width: 0; }
.mrc-cat-card-title { overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .mrc-cat-grid { gap: 18px; grid-template-columns: 1fr; }
    .mrc-cat-card-title { font-size: 18px; }
}

/* Keep promotional media inside its card on phones. */
@media (max-width: 640px) {
    .mrc-banner-media img {
        background: #fff;
        object-fit: contain;
    }
    .mrc-category-header img {
        background: var(--mrc-paper);
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .mrc-cat-card-media { aspect-ratio: 4 / 3; }
    .mrc-cat-card-media img {
        background: #fff;
        object-fit: contain;
        padding: 14px;
    }
    .mrc-cat-card-body { padding: 14px 16px 18px; }
    .mrc-cat-card-title { font-size: 16px; line-height: 1.3; }
}

.mrc-order-tracking { margin: 12px 0 0; }
.mrc-order-tracking ul { display: grid; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.mrc-order-tracking li { overflow-wrap: anywhere; }
.mrc-order-tracking li small { color: var(--mrc-muted); display: inline-block; margin-left: 8px; }

/* Prefooter: three short trust points, one line on phones with dividers. */
.mrc-pre-footer {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    margin-top: 80px;
    padding: 40px 32px;
}
.mrc-pre-footer-inner {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1280px;
    text-align: center;
}
.mrc-pre-footer h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.mrc-pre-footer p { color: var(--mrc-muted); font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 640px) {
    .mrc-pre-footer {
        margin-top: 40px;
        padding: 18px 10px;
    }
    .mrc-pre-footer-inner {
        gap: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .mrc-pre-footer-col {
        border-left: 1px solid #e5e5e5;
        padding: 0 8px;
    }
    .mrc-pre-footer-col:first-child { border-left: 0; padding-left: 0; }
    .mrc-pre-footer-col:last-child { padding-right: 0; }
    .mrc-pre-footer h3 {
        font-size: 10px;
        line-height: 1.25;
        margin-bottom: 4px;
    }
    .mrc-pre-footer p {
        font-size: 10px;
        line-height: 1.35;
    }
}

/* Contact page: desktop FAQ + form side by side; phones stack the form under
   the FAQ and use a more compact form rhythm. */
@media (max-width: 900px) {
    .mrc-content--contact {
        display: flex;
        flex-direction: column;
        gap: 26px;
    }
    .mrc-content--contact > * { grid-column: auto; }
    .mrc-content--contact > .mrc-contact {
        border-top: 1px solid var(--mrc-line);
        margin: 0;
        padding-top: 24px;
    }
    .mrc-contact-form { gap: 12px; max-width: none; }
    .mrc-contact-row { gap: 12px; grid-template-columns: 1fr; }
    .mrc-contact-form input[type="text"],
    .mrc-contact-form input[type="email"],
    .mrc-contact-form textarea {
        min-height: 40px;
        padding: 8px 10px;
    }
    .mrc-contact-form textarea { min-height: 120px; }
    .mrc-contact-title { font-size: 20px; margin-bottom: 14px; }
}

/* Footer: less air, and the address is deliberately two lines. */
.mrc-footer-brand-info {
    color: #c9c9c9;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 12px;
}
.mrc-footer-brand-info p { margin: 0; }
@media (max-width: 560px) {
    .mrc-footer-columns { gap: 18px; }
    .mrc-footer-columns h3 { margin-bottom: 10px !important; }
    .mrc-footer-columns ul { gap: 6px !important; }
    .mrc-footer-columns p,
    .mrc-footer-columns a { line-height: 1.45; }
    .mrc-footer-brand-info { font-size: 13px; margin-top: 10px; }
}

/* Compact two-up category tiles on phones with a clear "Categorie" badge. */
.mrc-cat-card { position: relative; }
.mrc-cat-card-badge {
    background: #0a7d0a;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    padding: 5px 8px;
    position: absolute;
    right: 8px;
    text-transform: uppercase;
    top: 8px;
    z-index: 3;
}
@media (max-width: 640px) {
    .mrc-cat-grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mrc-cat-card-media { aspect-ratio: 1 / 1; }
    .mrc-cat-card-media img { padding: 10px; }
    .mrc-cat-card-body { gap: 4px; padding: 8px 9px 10px; }
    .mrc-cat-card-title { font-size: 13px; line-height: 1.25; margin: 0; }
    .mrc-cat-card-count { font-size: 11px; }
    .mrc-cat-card-text,
    .mrc-cat-card-sub { display: none; }
}

/* Mobile horizontal sliders: the desktop 4/5-up percentages made cards tiny. */
@media (max-width: 980px) {
    .mrc-related-slider .mrc-product-card {
        flex: 0 0 74%;
        min-width: 170px;
    }
    .mrc-checkout-slider .mrc-product-card {
        flex: 0 0 72%;
        min-width: 170px;
    }
    .mrc-recent-slider .mrc-product-card {
        flex: 0 0 62%;
        min-width: 165px;
    }
}

/* Separate the utility links from the long category list in the mobile menu. */
.mrc-mobile-utilities {
    background: var(--mrc-paper);
    border-radius: 10px;
    margin-top: 14px;
    padding: 2px 12px;
}
.mrc-mobile-utilities a { border-bottom: 1px solid var(--mrc-line); }
.mrc-mobile-utilities a:last-child { border-bottom: 0; }

@media (max-width: 640px) {
    .mrc-cat-card-title { overflow-wrap: break-word; word-break: normal; }
}

@media (max-width: 640px) {
    .mrc-checkout-page .mrc-field { gap: 4px; }
    .mrc-checkout-page .mrc-grid { gap: 10px; }
    .mrc-checkout-page .mrc-checkout-step-head { margin-bottom: 12px; }
    .mrc-checkout-page .mrc-pay-option { padding: 10px 12px; }
    .mrc-checkout-page .mrc-policy-acceptance { margin-top: 12px; }
}

/* The parent-brand line is folklore, not legal copy. */
.mrc-footer-parent {
    color: #9a9a9a !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 0 0 7px !important;
}

/* Mobile sliders: arrows hover over the track, one full card + a peek. */
@media (max-width: 980px) {
    .mrc-slider-container {
        display: block;
        position: relative;
    }
    .mrc-slider-arrow {
        background: rgba(255, 255, 255, .94);
        height: 36px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        z-index: 20;
    }
    .mrc-arrow-prev { left: 3px; }
    .mrc-arrow-next { right: 3px; }
    .mrc-related-slider,
    .mrc-checkout-slider,
    .mrc-recent-slider { width: 100%; }
    .mrc-related-slider .mrc-product-card {
        flex: 0 0 94%;
        min-width: 0;
    }
    .mrc-checkout-slider .mrc-product-card,
    .mrc-recent-slider .mrc-product-card {
        flex: 0 0 90%;
        min-width: 0;
    }
}

/* Cookie settings become a small lip at the bottom edge. */
.pwcm-fab {
    border-radius: 10px 10px 0 0 !important;
    bottom: 0 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .12) !important;
    height: 22px !important;
    min-height: 0 !important;
    padding: 0 !important;
    right: 14px !important;
    width: 54px !important;
}
.pwcm-fab svg { height: 13px; width: 13px; }

/* Bring the question button back now that the cookie button is only a lip. */
@media (max-width: 640px) {
    .mrc-question-fab {
        bottom: 34px !important;
        display: flex !important;
        right: 14px !important;
    }
    .mrc-question-fab-link {
        font-size: 12px;
        gap: 6px;
        padding: 9px 13px;
    }
    .mrc-question-fab-close { height: 24px; width: 24px; }
    body.mrc-buybar-visible .mrc-question-fab { display: none !important; }
}

/* One full slider card plus a small peek of the next, with hover arrows. */
@media (max-width: 980px) {
    .mrc-related-slider .mrc-product-card,
    .mrc-checkout-slider .mrc-product-card,
    .mrc-recent-slider .mrc-product-card { flex-basis: 88%; }
}

/* Keep the question control compact on phones: icon + close, not a wide pill. */
@media (max-width: 640px) {
    .mrc-question-fab-link {
        border-radius: 999px;
        height: 44px;
        justify-content: center;
        padding: 0;
        width: 44px;
    }
    .mrc-question-fab-link span { display: none; }
    .mrc-question-fab-link svg { height: 20px; width: 20px; }
}

/* Cookie settings: a quiet tab on the bottom-left edge. */
.pwcm-fab {
    background: transparent !important;
    border-left: 1px solid var(--mrc-line) !important;
    border-radius: 10px 10px 0 0 !important;
    border-right: 1px solid var(--mrc-line) !important;
    border-top: 1px solid var(--mrc-line) !important;
    bottom: 0 !important;
    box-shadow: none !important;
    color: var(--mrc-muted) !important;
    height: 22px !important;
    left: 14px !important;
    min-height: 0 !important;
    opacity: .75;
    padding: 0 !important;
    right: auto !important;
    width: 44px !important;
}
.pwcm-fab:hover { background: var(--mrc-paper) !important; opacity: 1; }
.pwcm-fab svg { height: 13px; width: 13px; }

/* Tighter vertical rhythm; sections get a divider only when they follow one. */
.mrc-home-section { margin-bottom: 48px; }
.mrc-home-section + .mrc-home-section {
    border-top: 1px solid var(--mrc-line);
    padding-top: 32px;
}
.mrc-hero-section { margin-bottom: 48px; }
.mrc-section-header { margin-bottom: 24px; padding-bottom: 14px; }
.mrc-related-wrapper {
    margin-bottom: 40px;
    margin-top: 40px;
    padding-top: 28px;
}
.mrc-catalog-layout { margin: 32px auto; }
.mrc-category-header { margin-bottom: 24px; }
.mrc-content-shell { padding-top: 36px; }
.mrc-pre-footer { margin-top: 56px; }
@media (max-width: 640px) {
    .mrc-home-section { margin-bottom: 32px; }
    .mrc-home-section + .mrc-home-section { padding-top: 24px; }
    .mrc-hero-section { margin-bottom: 32px; }
    .mrc-section-header { margin-bottom: 20px; }
    .mrc-related-wrapper { margin: 32px 0; padding-top: 24px; }
    .mrc-catalog-layout { margin: 22px auto; }
    .mrc-content-shell { padding-top: 28px; }
    .mrc-pre-footer { margin-top: 32px; }
    footer[style] { padding: 40px 20px 30px !important; }
}

/* Desktop category index: less display-sized type and a tighter card rhythm. */
.mrc-cat-hero { gap: 8px; margin-bottom: 28px; }
.mrc-cat-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.mrc-cat-title { font-size: clamp(32px, 3.4vw, 44px); }
.mrc-cat-section-title { font-size: 24px; margin-bottom: 16px; }
@media (min-width: 641px) {
    .mrc-cat-grid { gap: 20px; }
    .mrc-cat-card-media { aspect-ratio: 16 / 10; }
    .mrc-cat-card-body { gap: 5px; padding: 14px 16px 16px; }
    .mrc-cat-card-title { font-size: 18px; font-weight: 600; line-height: 1.2; }
    .mrc-cat-card-count { font-size: 12px; }
    .mrc-cat-card-text { font-size: 13px; line-height: 1.4; }
    .mrc-cat-card-sub { font-size: 12px; gap: 4px 10px; }
    .mrc-contact-form input[type="text"],
    .mrc-contact-form input[type="email"],
    .mrc-contact-form textarea { min-height: 42px; padding: 9px 12px; }
}

/* A touch more legible than the first ghost tab. */
.pwcm-fab {
    color: var(--mrc-ink) !important;
    height: 26px !important;
    opacity: .9;
    width: 52px !important;
}
.pwcm-fab svg { height: 15px; width: 15px; }

/* The question widget must sit above product imagery and sliders. */
.mrc-question-fab { z-index: 2147483000 !important; }

/* Checkout address: street + number + addition on one desktop row; on phones
   the number and addition stay together. */
.mrc-checkout-page .mrc-address-grid {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 2fr) 84px minmax(0, 1.1fr) !important;
}
.mrc-address-street { grid-column: 1; grid-row: 1; }
.mrc-address-number { grid-column: 2; grid-row: 1; }
.mrc-address-addition { grid-column: 3; grid-row: 1; }
.mrc-address-city { grid-column: 1; grid-row: 2; }
.mrc-address-zip { grid-column: 2; grid-row: 2; }
.mrc-address-country { grid-column: 3; grid-row: 2; }
.mrc-address-region { grid-column: 1 / -1; grid-row: 3; }
@media (max-width: 640px) {
    .mrc-checkout-page .mrc-address-grid {
        gap: 8px !important;
        grid-template-columns: 1fr 1fr !important;
    }
    .mrc-address-street { grid-column: 1 / -1; grid-row: 1; }
    .mrc-address-number { grid-column: 1; grid-row: 2; }
    .mrc-address-addition { grid-column: 2; grid-row: 2; }
    .mrc-address-zip { grid-column: 1; grid-row: 3; }
    .mrc-address-city { grid-column: 2; grid-row: 3; }
    .mrc-address-country { grid-column: 1 / -1; grid-row: 4; }
    .mrc-address-region { grid-column: 1 / -1; grid-row: 5; }
}

/* <picture> is a transparent wrapper so existing image layout rules keep working. */
.mrc-picture { display: contents; }

/* Required-field markers and submit-time validation state. */
.mrc-required::after {
    color: #b91c1c;
    content: " *";
    font-weight: 700;
}
.mrc-field.is-invalid input,
.mrc-field.is-invalid select,
.mrc-field.is-invalid textarea,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, .10) !important;
}
.mrc-policy-acceptance.is-invalid {
    outline: 2px solid #b91c1c;
    outline-offset: 3px;
}

/* Returns request form */
.mrc-returns { margin-top: 28px; }
.mrc-returns-intro { color: var(--mrc-muted); margin: 0 0 18px; max-width: 640px; }
.mrc-contact-form select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}
.mrc-return-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mrc-ink);
}
.mrc-return-consent input { margin-top: 3px; flex: 0 0 auto; }
.mrc-return-consent a { color: var(--mrc-green-ink); text-decoration: underline; }
.mrc-required-star { color: #b91c1c; font-weight: 700; }
.mrc-optional { color: var(--mrc-muted); font-weight: 400; font-size: .92em; }
@media (max-width: 640px) {
    .mrc-returns { margin-top: 22px; }
    .mrc-contact-form select { padding: 9px 12px; font-size: 14px; }
}

/* Two-step returns page: forms sit below the policy, inside disclosures. */
.mrc-returns { margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid var(--mrc-line); }
.mrc-returns-disclosure { border-bottom: 1px solid var(--mrc-line); }
.mrc-returns-disclosure .mrc-disclosure-summary { padding: 16px 0; font-size: 17px; }
.mrc-returns-panel { max-width: 720px; padding: 0 0 24px; }
.mrc-returns-panel > p { color: var(--mrc-muted); margin: 0 0 4px; }
.mrc-returns-panel .mrc-contact-form { margin-top: 16px; }
.mrc-file-input {
    width: 100%;
    padding: 10px;
    border: 1px dashed #c9c4be;
    border-radius: 8px;
    background: #faf8f5;
    font-size: 14px;
}
.mrc-photo-email { margin-top: 8px; font-size: 13px; color: var(--mrc-muted); }
@media (max-width: 640px) {
    .mrc-returns { margin-top: 30px; padding-top: 22px; }
    .mrc-returns-disclosure .mrc-disclosure-summary { font-size: 15px; padding: 14px 0; }
}

/* Category intro below the image header, with internal links visible. */
.mrc-category-intro {
    max-width: 820px;
    margin: 0 0 28px;
    color: var(--mrc-muted);
    font-size: 15px;
    line-height: 1.65;
}
.mrc-category-intro p { margin: 0 0 12px; }
.mrc-category-intro a { color: var(--mrc-green-ink); text-decoration: underline; }

/* Live search suggestions */
.mrc-search-wrap { flex: 1 1 600px; max-width: 600px; position: relative; }
.mrc-search-wrap .mrc-search-form { width: 100%; max-width: none; }
.mrc-search-results {
    position: absolute;
    z-index: 10050;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(27, 46, 41, .16);
    max-height: min(68vh, 520px);
    overflow: auto;
    padding: 6px;
}
.mrc-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    color: var(--mrc-ink);
    text-decoration: none;
}
.mrc-search-result:hover,
.mrc-search-result.is-active { background: var(--mrc-paper); }
.mrc-search-result img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 6px;
}
.mrc-search-result-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mrc-search-result-copy strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.mrc-search-result-copy small { color: var(--mrc-muted); font-size: 12px; }
.mrc-search-result mark { background: #fff0b3; color: inherit; padding: 0 1px; border-radius: 2px; }
.mrc-search-all {
    display: block;
    margin: 4px 8px 6px;
    padding: 10px 8px 4px;
    border-top: 1px solid var(--mrc-line);
    color: var(--mrc-green-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.mrc-search-all:hover { text-decoration: underline; }
.mrc-search-empty { margin: 0; padding: 14px 12px; color: var(--mrc-muted); font-size: 14px; }
@media (max-width: 980px) {
    .mrc-search-wrap { flex: 1 0 100%; max-width: 100%; order: 3; margin-top: 8px; }
    .mrc-search-wrap .mrc-search-form { margin-top: 0; }
    .mrc-search-results { max-height: 60vh; }
}

/* Search result scrollbar is intentionally invisible; the list still scrolls. */
.mrc-search-results { scrollbar-width: none; -ms-overflow-style: none; }
.mrc-search-results::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Desktop hover preview, inspired by the LePoster/FiboSearch pattern. */
.mrc-search-preview {
    position: absolute;
    z-index: 10060;
    top: calc(100% + 8px);
    left: calc(100% + 12px);
    width: 300px;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(27, 46, 41, .18);
    overflow: hidden;
}
.mrc-search-preview-media {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--mrc-line);
}
.mrc-search-preview-media img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}
.mrc-search-preview-body { padding: 14px 16px 16px; }
.mrc-search-preview-body strong { display: block; font-size: 16px; line-height: 1.35; }
.mrc-search-preview-price { display: block; margin-top: 4px; font-weight: 700; }
.mrc-search-preview-body p { margin: 10px 0 12px; color: var(--mrc-muted); font-size: 13px; line-height: 1.5; }
.mrc-search-preview-link { color: var(--mrc-green-ink); font-size: 13px; font-weight: 700; text-decoration: underline; }
.mrc-search-preview mark { background: #fff0b3; color: inherit; }
@media (max-width: 1200px) {
    .mrc-search-preview { display: none !important; }
}

.mrc-search-suggestion {
    margin: 0;
    padding: 0 12px 12px;
    color: var(--mrc-muted);
    font-size: 13px;
}
.mrc-search-suggestion button {
    padding: 0;
    border: 0;
    background: none !important;
    color: var(--mrc-green-ink) !important;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    min-height: 0 !important;
}

.mrc-search-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}
.mrc-search-preview-price { font-weight: 700; white-space: nowrap; }
.mrc-search-availability {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
}
.mrc-search-availability.is-in { color: var(--mrc-green-ink); }
.mrc-search-availability.is-delay { color: #a16207; }
.mrc-search-availability.is-out { color: #a13d3d; }
.mrc-search-preview-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.mrc-search-preview-actions form { margin: 0; width: 100%; }
.mrc-search-buy {
    display: block;
    width: 100%;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--mrc-green-ink) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.mrc-search-buy:hover { opacity: .9; }
.mrc-search-unavailable { color: var(--mrc-muted); font-size: 13px; font-weight: 600; }

/* Helpful 404 page */
.mrc-404-help {
    margin: 36px 0 8px;
    padding: 28px;
    border: 1px solid var(--mrc-line);
    border-radius: 10px;
    background: var(--mrc-paper);
}
.mrc-404-help h2 {
    margin: 0 0 8px;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 400;
    color: var(--mrc-ink);
}
.mrc-404-lead { margin: 0 0 20px; color: var(--mrc-muted); font-size: 15px; }
.mrc-404-suggestions { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.mrc-404-suggestions li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--mrc-line);
    border-radius: 6px;
}
.mrc-404-suggestions li span {
    color: var(--mrc-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mrc-404-suggestions li a { color: var(--mrc-green-ink); font-weight: 700; text-decoration: underline; }
.mrc-404-search { margin: 0 0 24px; }
.mrc-404-search-label { display: block; margin-bottom: 7px; color: var(--mrc-muted); font-size: 13px; font-weight: 600; }
.mrc-404-search-row { display: flex; gap: 8px; }
.mrc-404-search-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--mrc-line);
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
}
.mrc-404-search-row button {
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--mrc-green-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.mrc-404-categories { margin: 0 0 24px; }
.mrc-404-kicker { margin: 0 0 9px; color: var(--mrc-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mrc-404-category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mrc-404-category-list a {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid var(--mrc-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mrc-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.mrc-404-category-list a:hover { border-color: var(--mrc-green-ink); color: var(--mrc-green-ink); }
.mrc-404-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
    .mrc-404-help { padding: 20px; }
    .mrc-404-help h2 { font-size: 22px; }
    .mrc-404-search-row { flex-direction: column; }
    .mrc-404-search-row button { min-height: 44px; }
}
