/* =============================================================================
   base.css — Design tokens, CSS reset, base elements
   ============================================================================= */

/* ─── §0  Design tokens ──────────────────────────────────────────────────── */
:root {
    --clr-black:   #0a0a0a;
    --clr-red:     #ff2b1b;
    --clr-red-dk:  #cc1a0d;
    --clr-white:   #ffffff;
    --clr-gray:    #f4f4f4;
    --clr-border:  #e5e5e5;
    --clr-text:    #1a1a1a;
    --clr-muted:   #888888;
    --max-w:       1920px;
    --page-pad:    clamp(16px, 2.5vw, 40px);
    --header-h:    64px;
}

/* ─── §1  CSS reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--clr-text); background: #fff; -webkit-font-smoothing: antialiased; }
img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */
.mi-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.mi-reveal.is-visible { opacity: 1; transform: none; }

/* ─── Quantity stepper (shared between loop + single) ────────────────────── */
.quantity { display: flex; align-items: center; }
.mi-qty-btn { background: var(--clr-gray); border: 1px solid var(--clr-border); width: 42px; height: 46px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .13s; flex-shrink: 0; }
.mi-qty-btn:hover { background: var(--clr-border); }
.quantity input.qty { border: 1px solid var(--clr-border); border-left: 0; border-right: 0; text-align: center; height: 46px; width: 60px; font-size: 15px; font-weight: 700; font-family: inherit; -moz-appearance: textfield; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ─── WooCommerce notices ────────────────────────────────────────────────── */
.woocommerce-message, .woocommerce-info { border-top-color: var(--clr-black); }
.woocommerce-message .button, .woocommerce-info .button { background: var(--clr-black); color: #fff; }
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--clr-red); }

/* ─── Page wrappers ──────────────────────────────────────────────────────── */
.mpt-single-wrap { max-width: var(--max-w); margin: 0 auto; padding: 28px var(--page-pad) 64px; }
.mpt-page-wrap   { max-width: var(--max-w); margin: 0 auto; padding: 36px var(--page-pad); }
