/* ============================================================
   MENIMAL — editorial fashion theme
   ============================================================ */
:root {
    --m-bg: #faf9f7;
    --m-surface: #ffffff;
    --m-ink: #141414;
    --m-muted: #6f6a63;
    --m-line: #e8e4de;
    --m-accent: #141414;
    --m-sale: #b3402a;
    --m-font-head: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
    --m-font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --m-max: 1440px;
    --m-gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* v1.19.2: hard guard against horizontal overflow — keeps the layout
   viewport at device width so the page can never render zoomed-out/squeezed
   on mobile. `clip` (not `hidden`) so position:sticky keeps working. */
html, body { overflow-x: clip; }
body {
    margin: 0;
    background: var(--m-bg);
    color: var(--m-ink);
    font-family: var(--m-font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--m-font-head); letter-spacing: -0.02em; margin: 0 0 0.5em; line-height: 1.1; }

.m-wrap { max-width: var(--m-max); margin: 0 auto; padding: 0 var(--m-gutter); }
.m-section { padding: 72px 0; }
/* v1.17.0: smooth anchor scroll for the Man/Woman tiles (sticky header offset) */
html { scroll-behavior: smooth; }
/* v1.18.0: Man/Woman category sections stay hidden until their tile is tapped */
#m-man, #m-woman { display: none; scroll-margin-top: 120px; }
#m-man.m-open, #m-woman.m-open { display: block; }
.m-section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.m-section-sub { color: var(--m-muted); margin-bottom: 32px; font-size: 15px; }

.m-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px;
    background: var(--m-ink); color: #fff;
    font-family: var(--m-font-head); font-weight: 600; font-size: 13px;
    letter-spacing: 0.12em; text-transform: uppercase;
    border: 1px solid var(--m-ink); cursor: pointer;
    transition: background 0.25s, color 0.25s;
}
.m-btn:hover { background: transparent; color: var(--m-ink); }
.m-btn-outline { background: transparent; color: var(--m-ink); }
.m-btn-outline:hover { background: var(--m-ink); color: #fff; }
.m-btn-full { width: 100%; }

/* ---------- Announcement bar ---------- */
.m-announce {
    background: var(--m-ink); color: #fff;
    text-align: center; font-size: 12px; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 10px 16px;
    font-family: var(--m-font-head); font-weight: 500;
}

/* ---------- Header ---------- */
.m-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--m-line);
}
/* ---------- Header (v1.16.0: flexbox — structurally single-row) ---------- */
.m-header-top { display: flex; align-items: center; height: 72px; position: relative; }
.m-header-top .m-burger { display: none; }
/* Desktop: logo left, menu truly centered, icons right (v1.19.3: swapped per user) */
.m-header-top .m-header-icons { order: 3; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.m-nav {
    order: 2; flex: 0 0 auto;
    display: flex; align-items: center; gap: 36px;
    list-style: none; margin: 0; padding: 0;
}
.m-nav li { list-style: none; margin: 0; padding: 0; display: flex; }
.m-nav a {
    font-family: var(--m-font-head); font-size: 13px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; position: relative; white-space: nowrap;
}
.m-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--m-ink); transition: width 0.25s;
}
.m-nav a:hover::after { width: 100%; }
.m-nav-close { display: none; }
.m-logo { font-family: var(--m-font-head); font-weight: 800; font-size: 22px; letter-spacing: 0.08em; }
.m-header-top .m-logo { order: 1; flex: 1 1 0; min-width: 0; text-align: left; }
.m-header-top .m-logo img { max-height: 44px; width: auto; max-width: 200px; }
.m-header-icons { display: flex; align-items: center; gap: 20px; }
.m-icon-btn { background: none; border: 0; cursor: pointer; padding: 4px; position: relative; display: flex; }
.m-icon-btn svg { width: 22px; height: 22px; stroke: var(--m-ink); fill: none; stroke-width: 1.6; }
.menimal-cart-count {
    position: absolute; top: -6px; right: -8px;
    background: var(--m-ink); color: #fff; font-size: 10px;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--m-font-head); font-weight: 700;
}
.m-burger { display: none; }

/* ---------- Hero ---------- */
.m-hero { position: relative; height: min(88vh, 860px); min-height: 480px; overflow: hidden; background: #e5e1da; }
.m-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.m-hero-slide.active { opacity: 1; }
.m-hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.m-hero-content {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 64px; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 55%);
}
.m-hero-kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.m-hero-title { font-size: clamp(40px, 7vw, 96px); font-weight: 800; text-transform: uppercase; margin: 0 0 16px; }
.m-hero-sub { font-size: 17px; max-width: 520px; margin: 0 0 28px; opacity: 0.92; }
.m-hero-cta .m-btn { background: #fff; color: var(--m-ink); border-color: #fff; }
.m-hero-cta .m-btn:hover { background: transparent; color: #fff; }
.m-hero-dots { position: absolute; bottom: 28px; right: 48px; display: flex; gap: 10px; z-index: 2; }
.m-hero-dots button { width: 34px; height: 3px; border: 0; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; }
.m-hero-dots button.active { background: #fff; }

/* ---------- Product cards ---------- */
.m-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.m-carousel::-webkit-scrollbar { display: none; }
.m-card { scroll-snap-align: start; }
.m-card-media { position: relative; display: block; overflow: hidden; background: #ece9e3; aspect-ratio: 4/5; }
.m-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.m-card:hover .m-card-img { transform: scale(1.05); }
.m-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.m-badge {
    background: var(--m-sale); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px;
}
.m-badge-new { background: var(--m-ink); }
.m-badge-soldout { background: #8a8a8a; }
.m-wishlist-btn {
    position: absolute; top: 10px; right: 10px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s;
}
.m-card:hover .m-wishlist-btn { opacity: 1; transform: translateY(0); }
.m-wishlist-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--m-ink); stroke-width: 1.8; }
.m-wishlist-btn.active svg { fill: var(--m-sale); stroke: var(--m-sale); }
.m-card-swatches { display: flex; gap: 6px; margin: 6px 0 2px; }
.m-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.18); display: inline-block;
}
.m-card-quick {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(20,20,20,0.88); color: #fff; text-align: center;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 12px; transform: translateY(100%); transition: transform 0.3s;
    font-family: var(--m-font-head); font-weight: 600;
}
.m-card:hover .m-card-quick { transform: translateY(0); }
.m-card-info { padding: 14px 2px; }
.m-card-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; font-family: var(--m-font-body); letter-spacing: 0; }
.m-card-price { font-size: 14px; color: var(--m-ink); }
.m-card-price del { color: var(--m-muted); margin-right: 8px; }
.m-card-price ins { text-decoration: none; color: var(--m-sale); font-weight: 600; }

/* ---------- Category tiles ---------- */
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.m-tile { display: block; text-decoration: none; color: inherit; }
.m-tile-media { display: block; overflow: hidden; aspect-ratio: 3/4; background: #e5e1da; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; display: block; }
.m-tile:hover img { transform: scale(1.06); }
.m-tile-label { display: block; margin-top: 12px; font-family: var(--m-font-head); font-weight: 700; font-size: 15px; }

/* ---------- Man / Woman split (v1.14.0) ---------- */
.m-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.m-gender-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4/5; background: #e5e1da; text-decoration: none; }
.m-gender-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; display: block; }
.m-gender-tile:hover img { transform: scale(1.05); }
.m-gender-label {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    background: #fff; color: var(--m-ink); font-family: var(--m-font-head); font-weight: 700;
    font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 44px; white-space: nowrap;
}
@media (max-width: 720px) { .m-gender { gap: 12px; } .m-gender-label { padding: 12px 28px; font-size: 13px; } }
/* v1.18.0: active Man/Woman tile */
.m-gender-tile.m-active .m-gender-label { background: var(--m-ink); color: #fff; }

/* ---------- Flash sale (v1.19.0) ---------- */
.m-flash { background: #161513; color: #fff; }
.m-flash-top { text-align: center; margin-bottom: 34px; }
.m-flash-kicker { display: inline-block; font-family: var(--m-font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: #ffb020; margin-bottom: 12px; }
.m-flash-title { font-family: var(--m-font-head); font-size: clamp(28px, 5vw, 54px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 22px; color: #fff; }
.m-flash-timer { display: flex; justify-content: center; gap: 10px; }
.m-ft { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; min-width: 74px; padding: 10px 6px; }
.m-ft b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-ft i { font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.m-flash .m-carousel { padding-bottom: 4px; }
@media (max-width: 720px) { .m-ft { min-width: 62px; } .m-ft b { font-size: 20px; } }

/* ---------- Editorial banner ---------- */
.m-editorial { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.m-editorial-media { background: #e5e1da; min-height: 320px; }
.m-editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.m-editorial-body { background: var(--m-ink); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 64px; }
.m-editorial-body h2 { font-size: clamp(28px, 3.5vw, 48px); text-transform: uppercase; margin-bottom: 16px; }
.m-editorial-body p { opacity: 0.85; margin-bottom: 32px; max-width: 440px; }
.m-editorial-body .m-btn { background: #fff; color: var(--m-ink); border-color: #fff; align-self: flex-start; }
.m-editorial-body .m-btn:hover { background: transparent; color: #fff; }

/* ---------- Values ---------- */
.m-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.m-value { padding: 32px 24px; border: 1px solid var(--m-line); background: var(--m-surface); }
.m-value h3 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.m-value p { color: var(--m-muted); font-size: 14px; margin: 0; }

/* ---------- Newsletter ---------- */
.m-news { background: var(--m-surface); border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); text-align: center; }
.m-news h2 { font-size: clamp(24px, 3vw, 36px); text-transform: uppercase; }
.m-news p { color: var(--m-muted); }
.m-news-form { display: flex; max-width: 460px; margin: 28px auto 0; }
.m-news-form input { flex: 1; padding: 14px 18px; border: 1px solid var(--m-line); border-right: 0; font-size: 14px; font-family: var(--m-font-body); }
.m-news-form button { padding: 14px 28px; }

/* ---------- Footer ---------- */
.m-footer { background: var(--m-ink); color: #fff; padding: 64px 0 32px; }
.m-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.m-footer h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; opacity: 0.7; }
.m-footer ul { list-style: none; margin: 0; padding: 0; }
.m-footer ul li { margin-bottom: 10px; }
.m-footer ul a { font-size: 14px; opacity: 0.85; }
.m-footer ul a:hover { opacity: 1; text-decoration: underline; }
.m-footer-brand p { opacity: 0.7; font-size: 14px; max-width: 300px; }
.m-footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; opacity: 0.6; }

/* ---------- Single product ---------- */
.m-pd { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 40px 0 72px; }
/* ---------- PDP slider (v1.16.0) ---------- */
.m-pd-gallery { position: sticky; top: 96px; align-self: start; overflow: hidden; background: #ece9e3; }
.m-pd-track { display: flex; transition: transform 0.45s cubic-bezier(0.2,0.6,0.2,1); }
.m-pd-slide { flex: 0 0 100%; min-width: 0; }
.m-pd-slide .woocommerce-product-gallery__image { background: #ece9e3; }
.m-pd-slide img { width: 100%; display: block; }
.m-pd-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92);
    cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.m-pd-prev { left: 12px; }
.m-pd-next { right: 12px; }
.m-pd-arrow svg { width: 20px; height: 20px; stroke: var(--m-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-pd-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.m-pd-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,0.25); cursor: pointer; }
.m-pd-dots button.active { background: var(--m-ink); }
.m-pd-info { padding-top: 8px; }
.m-pd-cat { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--m-muted); margin-bottom: 10px; }
.m-pd-title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.m-pd-price { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.m-pd-price del { color: var(--m-muted); font-weight: 400; margin-right: 10px; }
.m-pd-price ins { text-decoration: none; color: var(--m-sale); }
.m-pd-short { color: var(--m-muted); margin-bottom: 28px; }
.m-attr-label { font-family: var(--m-font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 22px 0 12px; display: flex; justify-content: space-between; }
.m-attr-label a { font-weight: 500; text-transform: none; letter-spacing: 0; text-decoration: underline; font-size: 12px; }
.m-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.m-swatch {
    min-width: 52px; padding: 12px 16px; border: 1px solid var(--m-line);
    background: #fff; cursor: pointer; text-align: center;
    font-family: var(--m-font-head); font-weight: 600; font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
}
.m-swatch:hover { border-color: var(--m-ink); }
.m-swatch.selected { border-color: var(--m-ink); background: var(--m-ink); color: #fff; }
.m-swatch.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.m-pd-actions { display: flex; gap: 12px; margin: 32px 0 16px; }
.m-pd-actions .m-btn { flex: 1; }
.m-buy-now { background: var(--m-sale); border-color: var(--m-sale); }
.m-buy-now:hover { background: transparent; color: var(--m-sale); }
.m-pd-meta { border-top: 1px solid var(--m-line); margin-top: 32px; }
.m-accordion { border-bottom: 1px solid var(--m-line); }
.m-accordion-head { width: 100%; background: none; border: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-family: var(--m-font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.m-accordion-body { display: none; padding: 0 0 20px; color: var(--m-muted); font-size: 14px; }
.m-accordion.open .m-accordion-body { display: block; }
.m-related { padding: 40px 0 72px; }

/* ---------- Reviews (v1.7.0) ---------- */
.m-reviews-section { padding: 60px 0; border-top: 1px solid var(--m-line); margin-top: 40px; }
.m-reviews-section #reviews h2 { font-family: var(--m-font-head); text-transform: uppercase; font-size: 22px; margin-bottom: 24px; }
.m-reviews-section .commentlist { list-style: none; padding: 0; margin: 0 0 32px; }
.m-reviews-section .commentlist li { border: 1px solid var(--m-line); padding: 20px; margin-bottom: 16px; background: #fff; }
.m-reviews-section .comment-text .meta { font-size: 13px; color: var(--m-muted); margin-bottom: 8px; }
.m-reviews-section .star-rating { color: #e8a33d; }
.m-reviews-section #review_form_wrapper { border: 1px solid var(--m-line); padding: 28px; background: var(--m-bg); }
.m-reviews-section #respond h3 { font-family: var(--m-font-head); text-transform: uppercase; font-size: 18px; margin-bottom: 16px; }
.m-reviews-section #respond label { font-family: var(--m-font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.m-reviews-section #respond input[type="text"], .m-reviews-section #respond input[type="email"], .m-reviews-section #respond textarea {
    border: 1px solid var(--m-line); padding: 12px 14px; width: 100%; font-size: 15px; font-family: var(--m-font-body); margin-bottom: 14px;
}
.m-reviews-section #respond #submit {
    background: var(--m-ink); color: #fff; border: 0; padding: 14px 32px; cursor: pointer;
    font-family: var(--m-font-head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px;
}

/* ---------- Promo banner (v1.7.0) ---------- */
.m-promo { padding: 56px 0; }
.m-promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
@media (max-width: 700px) { .m-promo-inner { flex-direction: column; text-align: center; } }
.m-promo h2 { font-family: var(--m-font-head); font-size: 32px; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 8px; }
.m-promo p { margin: 0; opacity: 0.85; }
.m-btn-light { background: #fff; color: #1a1a1a; }
.m-btn-light:hover { opacity: 0.9; }

/* ---------- Order tracking (v1.6.0) ---------- */
.m-track-form { max-width: 640px; margin-bottom: 32px; }
.m-track-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .m-track-row { grid-template-columns: 1fr; } }
.m-track-form label { font-family: var(--m-font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.m-track-form input { border: 1px solid var(--m-line); padding: 12px 14px; font-size: 15px; width: 100%; font-family: var(--m-font-body); }
.m-track-result { max-width: 640px; }
.m-track-card { border: 1px solid var(--m-line); padding: 28px; background: #fff; }
.m-track-card h3 { font-family: var(--m-font-head); text-transform: uppercase; margin: 0 0 8px; }
.m-track-status { display: inline-block; background: var(--m-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; margin-bottom: 12px; }
.m-track-items { margin: 12px 0; padding-left: 20px; }
.m-track-courier { color: #2a7a3f; font-weight: 600; }
.m-track-error { color: #b3402a; }

/* ---------- Quick View (v1.6.0) ---------- */
.m-qv-box { max-width: 860px; }
.m-qv { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .m-qv { grid-template-columns: 1fr; } }
.m-qv-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #ece9e3; }
.m-qv-info h3 { font-family: var(--m-font-head); font-size: 24px; text-transform: uppercase; margin: 0 0 10px; }
.m-qv-price { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.m-qv-desc { color: var(--m-muted); font-size: 14px; margin-bottom: 20px; }
.m-qv-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.m-qv .m-btn { width: 100%; margin-bottom: 12px; }
.m-qv .m-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.m-qv-full { font-size: 14px; text-decoration: underline; }
.m-card-qvbtn {
    position: absolute; bottom: 44px; left: 0; right: 0;
    background: rgba(255,255,255,0.95); border: 0; padding: 10px;
    font-family: var(--m-font-head); font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
    opacity: 0; transition: opacity 0.25s;
}
.m-card:hover .m-card-qvbtn { opacity: 1; }
.m-card-qvbtn:hover { background: var(--m-ink); color: #fff; }

/* ---------- Gallery lightbox (v1.6.0) ---------- */
.m-lightbox {
    position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.m-lightbox.show { opacity: 1; pointer-events: auto; }
.m-lightbox-img { max-width: 90vw; max-height: 90vh; }
.m-lightbox-img img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.m-lightbox-close {
    position: absolute; top: 20px; right: 28px; background: none; border: 0;
    color: #fff; font-size: 40px; cursor: pointer; line-height: 1;
}
.m-lightbox-prev, .m-lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #fff; font-size: 56px; cursor: pointer; padding: 20px; line-height: 1;
}
.m-lightbox-prev { left: 10px; } .m-lightbox-next { right: 10px; }

/* ---------- Search overlay (v1.5.0) ---------- */
.m-search-overlay {
    position: fixed; inset: 0; z-index: 300; background: rgba(250,249,247,0.98);
    opacity: 0; pointer-events: none; transition: opacity 0.25s; overflow-y: auto;
}
.m-search-overlay.show { opacity: 1; pointer-events: auto; }
.m-search-box { max-width: 900px; margin: 0 auto; padding: 80px 24px 60px; position: relative; }
.m-search-close { position: absolute; top: 24px; right: 24px; }
.m-search-close svg { width: 28px; height: 28px; }
#mSearchInput {
    width: 100%; border: 0; border-bottom: 2px solid var(--m-ink);
    background: transparent; font-family: var(--m-font-head); font-size: 32px;
    padding: 12px 4px; outline: none; text-transform: uppercase; letter-spacing: 0.02em;
}
#mSearchInput::placeholder { color: var(--m-muted); }
.m-search-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 768px) { .m-search-results { grid-template-columns: repeat(2, 1fr); } #mSearchInput { font-size: 22px; } }
.m-search-empty { grid-column: 1 / -1; text-align: center; color: var(--m-muted); padding: 40px 0; }

/* ---------- Checkout styling (v1.5.0) ---------- */
.woocommerce-checkout .m-wrap { max-width: 1100px; }
.woocommerce-checkout h3 { font-family: var(--m-font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 18px; margin: 30px 0 16px; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .woocommerce-checkout .col2-set { grid-template-columns: 1fr; } }
#order_review { border: 1px solid var(--m-line); padding: 24px; background: #fff; }
#order_review table.shop_table { border: 0; }
#order_review table.shop_table td, #order_review table.shop_table th { border: 0; border-bottom: 1px solid var(--m-line); padding: 12px 0; }
.woocommerce-checkout #payment { background: var(--m-bg); border: 1px solid var(--m-line); }
.woocommerce-checkout #payment .payment_methods { padding: 20px; }
.woocommerce-checkout #place_order {
    background: var(--m-ink); color: #fff; font-family: var(--m-font-head);
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 18px 40px; border: 0; cursor: pointer; width: 100%; font-size: 15px;
}
.woocommerce-checkout #place_order:hover { opacity: 0.85; }

/* ---------- Mobile menu (v1.14.0 rewrite: definitive slide-in) ---------- */
@media (max-width: 900px) {
    .m-nav {
        position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw;
        background: #fff; z-index: 250; flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 76px 28px 28px; gap: 0; transform: translateX(-105%); visibility: hidden;
        transition: transform 0.32s ease, visibility 0.32s; border-top: 0; border-right: 1px solid var(--m-line);
        display: flex;
    }
    .m-nav.open { transform: translateX(0); visibility: visible; }
    .m-nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--m-line); width: 100%; }
    .m-nav a::after { display: none; }
    .m-nav-close {
        display: block;
        position: absolute; top: 16px; right: 16px; background: none; border: 0; cursor: pointer;
        font-size: 30px; line-height: 1; color: var(--m-ink); padding: 4px 8px;
    }
    .m-nav-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
    .m-nav-veil.show { opacity: 1; pointer-events: auto; }
    /* v1.19.1 mobile header: fixed EQUAL side columns (burger | logo | icons).
       Equal columns = logo truly centered; columns sized to fit their content
       exactly (icons = 3x26px buttons + 2x10px gaps = 98px, breathing room to 104px)
       so nothing can overflow or touch. (v1.18.3's absolute+max-width math was
       wrong — the logo could overlap the icons by ~27px. Owned.) */
    .m-header-top { height: 64px; flex-wrap: nowrap; position: static; }
    .m-header-top .m-burger { display: flex; order: 1; flex: 0 0 104px; min-width: 0; justify-content: flex-start; align-items: center; }
    .m-header-top .m-logo {
        order: 2; flex: 1 1 auto; min-width: 0;
        position: static; transform: none; max-width: none;
        font-size: 18px; letter-spacing: 0.05em; text-align: center;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .m-header-top .m-header-icons { order: 3; flex: 0 0 104px; min-width: 0; margin-left: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
    .m-header-top .m-icon-btn { padding: 3px; }
    .m-header-top .m-icon-btn svg { width: 20px; height: 20px; }
    .m-icon-btn svg { width: 20px; height: 20px; }
}

/* ---------- Wishlist page (v1.4.0) ---------- */
.m-page-title { font-family: var(--m-font-head); font-size: 32px; text-transform: uppercase; letter-spacing: 0.04em; margin: 40px 0 28px; }
.m-wishlist-grid { margin-bottom: 60px; }
.m-wishlist-loading, .m-wishlist-empty { grid-column: 1 / -1; text-align: center; color: var(--m-muted); padding: 60px 0; }

/* ---------- My Account (v1.4.0) ---------- */
.woocommerce-account .m-wrap { max-width: 1100px; }
.woocommerce-account h2, .woocommerce-account h3 { font-family: var(--m-font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 30px; border: 1px solid var(--m-line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--m-line); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 14px 20px; font-family: var(--m-font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-ink); }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--m-ink); color: #fff; }
.woocommerce-MyAccount-content { font-size: 15px; line-height: 1.7; }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; font-size: 14px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 1px solid var(--m-line); padding: 12px 14px; text-align: left; }
.woocommerce table.shop_table th { font-family: var(--m-font-head); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; background: var(--m-bg); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select { border: 1px solid var(--m-line); padding: 12px 14px; font-size: 15px; width: 100%; font-family: var(--m-font-body); }
.woocommerce form .form-row label { font-family: var(--m-font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.woocommerce #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .woocommerce #customer_login { grid-template-columns: 1fr; } }
.woocommerce .u-columns h2, .woocommerce #customer_login h2 { font-size: 20px; margin-bottom: 20px; }

/* ---------- Modal (v1.3) ---------- */
.m-modal {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.m-modal.show { opacity: 1; pointer-events: auto; }
.m-modal-box {
    background: #fff; max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto;
    padding: 36px; position: relative;
}
.m-modal-box h3 { text-transform: uppercase; font-size: 20px; margin-bottom: 8px; }
.m-modal-close {
    position: absolute; top: 12px; right: 16px; background: none; border: 0;
    font-size: 28px; cursor: pointer; line-height: 1; color: var(--m-muted);
}
.m-size-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.m-size-table th, .m-size-table td { border: 1px solid var(--m-line); padding: 10px 14px; text-align: center; }
.m-size-table th { background: var(--m-bg); font-family: var(--m-font-head); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; }
.m-modal-note { color: var(--m-muted); font-size: 13px; }

/* ---------- Cart drawer upsell (v1.3) ---------- */
.m-ship-progress { padding: 14px 24px 4px; font-size: 13px; }
.m-ship-bar { height: 5px; background: var(--m-line); margin-top: 8px; overflow: hidden; }
.m-ship-bar span { display: block; height: 100%; background: var(--m-ink); transition: width 0.4s; }
.m-upsell { padding: 8px 24px 16px; border-top: 1px solid var(--m-line); margin-top: 8px; }
.m-upsell h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 14px 0 10px; }
.m-upsell-row { display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.m-upsell-row::-webkit-scrollbar { display: none; }
.m-upsell-item { font-size: 12px; }
.m-upsell-item img { width: 120px; aspect-ratio: 4/5; object-fit: cover; background: #ece9e3; margin-bottom: 6px; }
.m-upsell-item .m-price { font-weight: 600; }
.m-upsell-add {
    margin-top: 6px; width: 100%; padding: 8px; font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; font-family: var(--m-font-head); font-weight: 700;
    background: transparent; border: 1px solid var(--m-ink); cursor: pointer;
}
.m-upsell-add:hover { background: var(--m-ink); color: #fff; }

/* ---------- Cart drawer ---------- */
.m-drawer-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 200; }
.m-drawer-veil.show { opacity: 1; pointer-events: auto; }
.m-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
    background: #fff; z-index: 201; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.2,0.6,0.2,1);
    display: flex; flex-direction: column;
}
.m-drawer.show { transform: translateX(0); }
.m-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--m-line); }
.m-drawer-head h3 { margin: 0; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.m-drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.m-drawer-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--m-line); }
.m-drawer-item img { width: 84px; aspect-ratio: 4/5; object-fit: cover; background: #ece9e3; }
.m-drawer-item h4 { font-size: 14px; margin: 0 0 4px; font-family: var(--m-font-body); font-weight: 600; letter-spacing: 0; }
.m-drawer-item .m-var { font-size: 12px; color: var(--m-muted); }
.m-drawer-item .m-price { font-size: 14px; font-weight: 600; }
.m-drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--m-line); }
.m-drawer-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 16px; font-family: var(--m-font-head); }
.m-drawer-empty { text-align: center; padding: 60px 20px; color: var(--m-muted); }

/* ---------- Checkout (minimal) ---------- */
.m-checkout { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.m-checkout h1 { text-align: center; text-transform: uppercase; font-size: clamp(26px, 4vw, 40px); margin-bottom: 36px; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; display: block; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
    width: 100%; padding: 13px 15px; border: 1px solid var(--m-line); font-size: 14px; font-family: var(--m-font-body); background: #fff; border-radius: 0;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--m-ink); outline: none; }
#order_review { background: #fff; border: 1px solid var(--m-line); padding: 28px; }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; border-bottom: 1px solid var(--m-line); text-align: left; }
#place_order { width: 100%; }

/* ---------- Order received ---------- */
.m-thankyou { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.m-thankyou h1 { font-size: clamp(28px, 5vw, 48px); text-transform: uppercase; }
.m-thankyou .m-order-no { display: inline-block; border: 1px solid var(--m-line); background: #fff; padding: 12px 28px; margin: 24px 0; font-family: var(--m-font-head); font-weight: 700; letter-spacing: 0.1em; }

/* ---------- Shop / archive ---------- */
.m-shop-head { padding: 48px 0 8px; display: flex; justify-content: space-between; align-items: flex-end; }
.m-shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 32px 0 72px; }
.woocommerce-result-count, .woocommerce-ordering { font-size: 13px; color: var(--m-muted); }

/* ---------- PLP v1.2 ---------- */
.m-crumb { padding: 28px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m-muted); }
.m-crumb a:hover { color: var(--m-ink); text-decoration: underline; }
.m-crumb span { margin: 0 8px; }
.m-plp-head { padding: 12px 0 4px; }
.m-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.m-pill {
    border: 1px solid var(--m-line); background: #fff; border-radius: 999px;
    padding: 9px 20px; font-size: 13px; font-weight: 600;
    font-family: var(--m-font-head); letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.m-pill:hover { background: var(--m-ink); color: #fff; border-color: var(--m-ink); }
.m-filters {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line);
    padding: 14px 0; margin: 18px 0 6px;
}
.m-filter { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.m-filter > span { font-family: var(--m-font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.m-filter select, .m-filter-sort select {
    border: 1px solid var(--m-line); background: #fff; padding: 9px 12px;
    font-size: 13px; font-family: var(--m-font-body); border-radius: 0; cursor: pointer;
}
.m-filter-sort { margin-left: auto; }
.m-filter-clear { font-size: 12px; text-decoration: underline; color: var(--m-muted); }
.m-filter-clear:hover { color: var(--m-sale); }
.m-count { font-size: 13px; color: var(--m-muted); margin: 14px 0 0; }
.m-no-results { padding: 60px 0; text-align: center; color: var(--m-muted); }


/* ---------- Pagination (v1.19.3: centered, horizontal) ---------- */
.woocommerce-pagination { text-align: center; margin: 40px 0 0; }
.woocommerce-pagination ul.page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination ul.page-numbers li { list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination ul.page-numbers a, .woocommerce-pagination ul.page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--m-line); background: #fff; font-family: var(--m-font-head); font-size: 13px; font-weight: 600; }
.woocommerce-pagination ul.page-numbers span.current { background: var(--m-ink); color: #fff; border-color: var(--m-ink); }
.woocommerce-pagination ul.page-numbers a:hover { border-color: var(--m-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .m-tiles { grid-template-columns: repeat(2, 1fr); }
    .m-shop-grid { grid-template-columns: repeat(3, 1fr); }
    .m-pd { grid-template-columns: 1fr; gap: 32px; }
    .m-pd-gallery { position: static; }
    .m-footer-grid { grid-template-columns: 1fr 1fr; }
    .m-values { grid-template-columns: 1fr; }
    .m-editorial { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .m-hero-content { padding: 32px 24px; }
    .m-tiles { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .m-shop-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
    .m-pd-actions { flex-direction: column; }
    .m-footer-grid { grid-template-columns: 1fr; }
    .m-section { padding: 48px 0; }
}

/* ---------- Cart page (v1.9.0) ---------- */
.m-cart-page { max-width: 1100px; }
.m-cart-body .woocommerce-notices-wrapper { margin-bottom: 18px; }
.m-cart-body table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.m-cart-body table.shop_table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #8a857c; padding: 12px 10px; border-bottom: 2px solid #1a1a1a; }
.m-cart-body table.shop_table td { padding: 14px 10px; border-bottom: 1px solid #e8e4de; vertical-align: middle; }
.m-cart-body .product-thumbnail img { width: 84px; height: auto; display: block; }
.m-cart-body .product-name a { color: #1a1a1a; font-weight: 600; text-decoration: none; }
.m-cart-body .product-remove a { color: #b3402a; font-size: 20px; text-decoration: none; }
.m-cart-body .quantity input.qty { width: 64px; padding: 8px; border: 1px solid #d8d4cc; }
.m-cart-body .coupon { display: flex; gap: 10px; margin: 16px 0; }
.m-cart-body .coupon input.input-text { padding: 10px 12px; border: 1px solid #d8d4cc; flex: 1; max-width: 240px; }
.m-cart-body .cart_totals { background: #faf9f7; border: 1px solid #e8e4de; padding: 24px; max-width: 420px; margin-left: auto; }
.m-cart-body .cart_totals h2 { font-size: 18px; margin: 0 0 14px; }
.m-cart-body .cart_totals table { width: 100%; border-collapse: collapse; }
.m-cart-body .cart_totals th, .m-cart-body .cart_totals td { padding: 8px 0; border-bottom: 1px solid #e8e4de; font-size: 14px; }
.m-cart-body .wc-proceed-to-checkout { margin-top: 16px; }
.m-cart-body .wc-proceed-to-checkout .checkout-button { display: block; text-align: center; background: #1a1a1a; color: #fff; padding: 14px; text-decoration: none; font-weight: 600; letter-spacing: 1px; }
.m-cart-body .cart-empty.woocommerce-info, .m-cart-body .woocommerce-info { background: #faf9f7; border: 1px solid #e8e4de; padding: 18px; }
@media (max-width: 700px) {
    .m-cart-body table.shop_table thead { display: none; }
    .m-cart-body table.shop_table tr { display: block; border-bottom: 2px solid #1a1a1a; margin-bottom: 14px; }
    .m-cart-body table.shop_table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
    .m-cart-body .cart_totals { margin-left: 0; max-width: none; }
}

/* ---------- Newsletter message (v1.9.0) ---------- */
.m-news-msg { margin-top: 12px; font-size: 14px; color: #b3402a; }
.m-news-msg.ok { color: #3f6b4f; font-weight: 600; }

/* ---------- Mobile payment gateway (v1.10.0) ---------- */
.menimal-pay-box { background: #faf9f7; border: 1px solid #e8e4de; padding: 18px; margin: 6px 0 4px; }
.menimal-pay-desc { margin-bottom: 10px; }
.menimal-pay-amount { font-size: 15px; margin: 0 0 10px; }
.menimal-pay-numbers { list-style: none; margin: 0 0 14px; padding: 0; }
.menimal-pay-numbers li { padding: 8px 0; border-bottom: 1px dashed #e8e4de; font-size: 14px; }
.menimal-pay-numbers li:last-child { border-bottom: none; }
.menimal-pay-provider { display: inline-block; min-width: 70px; font-weight: 600; }
.menimal-pay-type { color: #8a857c; font-size: 12px; margin-left: 8px; }
.menimal-pay-box .form-row { margin-bottom: 12px; }
.menimal-pay-box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.menimal-pay-box .required { color: #b3402a; }
.menimal-pay-box .input-text, .menimal-pay-box .input-select { width: 100%; padding: 10px 12px; border: 1px solid #d8d4cc; font-size: 14px; background: #fff; }

/* ---------- Centered headings (v1.12.0) ---------- */
.m-section-title, .m-section-sub, .m-page-title, .m-pd-title { text-align: center; }
.m-card-info { text-align: center; }
.m-card-swatches { justify-content: center; }

/* ---------- Variation stock status (v1.12.0) ---------- */
.m-var-stock { font-size: 14px; margin: 14px 0 0; min-height: 20px; text-align: center; }
.m-var-stock.in { color: #1e7e34; }
.m-var-stock.out { color: #c0392b; font-weight: 600; }
.m-swatch.oos { opacity: 0.35; text-decoration: line-through; }
.single_add_to_cart_button:disabled { opacity: 0.5; cursor: not-allowed; }
