/* =========================================================================
   Magnum Traders — site styles (light + dark)
   Sections used by the page builder live here too, so the builder canvas
   looks exactly like the live site.
   ========================================================================= */
:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --surface-2: #f4efe7;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e8e2d9;
  --accent: #b0642a;
  --accent-hover: #96521f;
  --accent-soft: #f6e8da;
  --gold: #d9a441;
  --dark: #1c1917;
  --dark-2: #292524;
  --on-dark: #f5f1ea;
  --wa: #1fae55;
  --wa-hover: #17914a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 28px rgba(28, 25, 23, .07);
  --shadow-lg: 0 24px 60px rgba(28, 25, 23, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --wrap: min(1240px, 92vw);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #12100e;
  --surface: #1b1916;
  --surface-2: #24211d;
  --ink: #f5f1ea;
  --ink-2: #d9d2c7;
  --muted: #a39a8e;
  --line: #322d27;
  --accent: #e0894a;
  --accent-hover: #ec9c60;
  --accent-soft: #2e2219;
  --dark: #0b0a09;
  --dark-2: #1b1916;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, .h1 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1, .h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: 1.22rem; font-family: var(--font); font-weight: 650; letter-spacing: 0; }
h1 em, h2 em, .h1 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
.container { width: var(--wrap); margin-inline: auto; }
.container.narrow { width: min(820px, 92vw); }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hide-md { }
@media (max-width: 900px) { .hide-md { display: none !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem/1.1 var(--font); cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: #1c1917; }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: #1c1917; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 174, 85, .28); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn .ic { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- header ---------- */
.mg-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.mg-skip:focus { left: 8px; }
.mg-topbar { background: var(--dark); color: #d6d0c6; font-size: .84rem; }
.mg-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.mg-top-left { display: flex; gap: 22px; flex-wrap: wrap; }
.mg-top-left a, .mg-top-left span { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.mg-top-left a:hover { color: #fff; }
.mg-social { display: inline-flex; gap: 6px; }
.mg-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.mg-social a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 640px) { .mg-topbar { display: none; } }

.mg-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.mg-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.mg-nav { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.mg-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.mg-logo img { height: 72px; width: auto; }
@media (max-width: 640px) { .mg-nav { min-height: 76px; } .mg-logo img { height: 58px; } }
/* Logo width set in Settings → General → Logo width (px) */
.mg-logo[style*="--logo-w"] img { width: var(--logo-w); height: auto; max-width: none; }
@media (max-width: 640px) { .mg-logo[style*="--logo-w"] img { width: min(var(--logo-w), 150px); } }
.mg-word { display: none; }
.mg-logo img + .mg-word { display: none; }
.mg-logo:not(:has(img)) .mg-word { display: flex; flex-direction: column; line-height: 1.1; }
.mg-word strong { font: 700 1.2rem var(--serif); }
.mg-word small { font-size: .74rem; color: var(--muted); }
/* Dark header: no white box — the light-lettering version of the logo instead */
.mg-logo img[src*="magnum-logo-header"] { aspect-ratio: 322 / 200; }
[data-theme="dark"] .mg-logo img[src*="magnum-logo-header"] { content: url("/uploads/2026/10/magnum-logo-header-dark.png"); }
.mg-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mg-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 550; font-size: .95rem; transition: background .2s, color .2s; }
.mg-link:hover, .mg-link.is-active { color: var(--ink); background: var(--surface-2); }
.mg-link.is-active { color: var(--accent); }
.mg-has-dd { position: relative; }
.mg-has-dd .ic { transition: transform .2s; }
.mg-dd { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.mg-dd::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.mg-has-dd:hover .mg-dd, .mg-has-dd:focus-within .mg-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mg-has-dd:hover > .mg-link .ic { transform: rotate(180deg); }
.mg-dd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; }
.mg-dd-group { display: flex; flex-direction: column; gap: 4px; }
.mg-dd-group a { color: var(--muted); font-size: .9rem; padding: 3px 0; }
.mg-dd-group a:hover { color: var(--accent); }
.mg-dd-group .mg-dd-head { color: var(--ink); font-weight: 650; font-size: .95rem; }
.mg-dd-group .mg-dd-more { color: var(--accent); font-weight: 600; font-size: .85rem; }
.mg-dd-all { display: flex; align-items: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.mg-actions { display: flex; align-items: center; gap: 8px; }
.mg-icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.mg-icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.mg-theme .i-moon { display: none; }
[data-theme="dark"] .mg-theme .i-sun { display: none; }
[data-theme="dark"] .mg-theme .i-moon { display: block; }
.mg-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.mg-burger span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.mg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mg-menu { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 4vw 22px; display: flex; flex-direction: column; }
.mg-menu[hidden] { display: none; }
.mg-mlink { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mg-mlink.is-active { color: var(--accent); }
.mg-msub { padding: 9px 4px 9px 18px; color: var(--muted); font-size: .94rem; border-bottom: 1px dashed var(--line); }
.mg-menu .btn { margin-top: 16px; }
@media (max-width: 1020px) {
  .mg-links, .mg-cta { display: none; }
  .mg-burger { display: inline-flex; }
  .mg-actions { margin-left: auto; }
}
@media (min-width: 1021px) { .mg-menu { display: none !important; } }

/* ---------- hero slider ---------- */
.hero-slider { position: relative; min-height: clamp(480px, 78vh, 760px); overflow: hidden; background: var(--dark); isolation: isolate; }
.hs-slide { position: absolute; inset: 0; display: flex; align-items: center; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 6s ease; visibility: hidden; }
.hs-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 8, .82) 0%, rgba(12, 10, 8, .55) 45%, rgba(12, 10, 8, .1) 100%); }
.hs-slide.is-on { opacity: 1; transform: scale(1); visibility: visible; z-index: 1; }
.hs-copy { position: relative; color: #f5f1ea; padding: 80px 0 110px; }
.hs-copy h1, .hs-copy .h1 { color: #fff; max-width: 15ch; }
.hs-copy h1 em, .hs-copy .h1 em { color: #f0b37a; }
.hs-copy .lead { color: rgba(245, 241, 234, .86); max-width: 50ch; }
.hs-copy .eyebrow { color: #f0b37a; }
.hs-slide.is-on .hs-copy > * { animation: hsIn .9s both; }
.hs-slide.is-on .hs-copy > *:nth-child(2) { animation-delay: .08s; }
.hs-slide.is-on .hs-copy > *:nth-child(3) { animation-delay: .16s; }
.hs-slide.is-on .hs-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes hsIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hs-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .2s, width .3s; }
.hs-dots button.on { background: #fff; width: 54px; }
.hs-arrows { margin-left: auto; display: flex; gap: 8px; }
.hs-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .18); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s; }
.hs-arrows button:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 700px) { .hs-slide::before { background: linear-gradient(180deg, rgba(12, 10, 8, .5) 0%, rgba(12, 10, 8, .78) 100%); } .hs-copy { padding: 56px 0 110px; } }
@media (prefers-reduced-motion: reduce) { .hs-slide { transition: opacity .3s; transform: none; } .hs-slide.is-on .hs-copy > * { animation: none; } }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(46px, 7vw, 86px) 0 clamp(36px, 5vw, 60px); background: radial-gradient(1000px 360px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero.has-img { position: relative; background: var(--dark) var(--hero-img) center / cover; border: 0; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 8, .86), rgba(12, 10, 8, .5)); }
.page-hero.has-img .container { position: relative; }
.page-hero.has-img h1, .page-hero.has-img .crumbs span:last-child { color: #fff; }
.page-hero.has-img .lead, .page-hero.has-img .crumbs, .page-hero.has-img .crumbs a { color: rgba(245, 241, 234, .82); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span:last-child { color: var(--ink); }
.preview-bar { background: var(--gold); color: #1c1917; text-align: center; padding: 10px; font-weight: 600; font-size: .9rem; }
.preview-bar a { color: #1c1917; text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-tight { padding: clamp(30px, 4vw, 48px) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--dark); color: #d6d0c6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); }
.section-head .lead { margin-inline: auto; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.section-head-row h2 { margin: 0; }
.section-head-row > a { font-weight: 600; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.split-top { align-items: start; }
.split-media img { width: 100%; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0642a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.trust-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 18px; border-right: 1px solid var(--line); color: var(--accent); }
.trust-item:last-child { border-right: 0; }
.trust-item span { display: flex; flex-direction: column; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.trust-item strong { color: var(--ink); font-size: .98rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .trust-item { padding: 18px 10px; gap: 10px; } }
.stats-band { background: var(--dark); color: #d6d0c6; padding: clamp(40px, 6vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font: 600 clamp(2rem, 4vw, 3rem)/1 var(--serif); color: #fff; margin-bottom: 8px; }
.stat strong em { font-style: normal; color: #f0b37a; }
.stat span { font-size: .9rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.feature-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .feature-grid, .feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr !important; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.section-dark .feature { background: var(--dark-2); border-color: rgba(255, 255, 255, .08); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 8px); background: radial-gradient(600px 300px at 100% 0%, rgba(240, 179, 122, .35), transparent 70%), linear-gradient(135deg, #2a211a, #1c1917); color: #e9e2d8; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .btn-row { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; counter-reset: s; }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: zoom-in; transition: transform .4s ease, filter .3s; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(12, 10, 8, .62); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); pointer-events: none; }
.gallery.masonry { display: block; columns: 3 280px; column-gap: 16px; }
.gallery.masonry figure { break-inside: avoid; margin-bottom: 16px; }
.gallery.masonry img { aspect-ratio: auto; border-radius: 0; }
@media (max-width: 560px) { .gallery.masonry { columns: 2 140px; column-gap: 10px; } .gallery.masonry figure { margin-bottom: 10px; } .gallery figcaption { font-size: .72rem; left: 8px; bottom: 8px; padding: 4px 9px; } }
.text-block { max-width: 760px; margin: 0 auto; }
.spacer { height: 60px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
/* page-builder columns */
.mg-row { display: flex; gap: 24px; }
.mg-row.gap-0 { gap: 0; } .mg-row.gap-sm { gap: 12px; } .mg-row.gap-lg { gap: 48px; }
.mg-row.v-top { align-items: flex-start; } .mg-row.v-center { align-items: center; } .mg-row.v-bottom { align-items: flex-end; }
.mg-col { flex: 1 1 0%; min-width: 0; }
@media (max-width: 760px) { .mg-row:not(.no-stack) { flex-direction: column; } .mg-row:not(.no-stack) > .mg-col { flex: 1 1 auto !important; } }
.grid { display: grid; gap: 22px; }
.grid.cols-1 { grid-template-columns: 1fr; } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .grid.cols-5 { grid-template-columns: repeat(5, 1fr); } .grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .grid[class*="cols-"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid[class*="cols-"] { grid-template-columns: 1fr; } }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -1; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12, 10, 8, .82)); z-index: -1; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: flex; flex-direction: column; }
.cat-card strong { font: 600 1.45rem/1.2 var(--serif); }
.cat-card small { color: rgba(255, 255, 255, .75); font-size: .86rem; }
.cat-card em { font-style: normal; font-weight: 600; font-size: .88rem; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: #f0b37a; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.cat-card:hover em, .cat-card:focus-visible em { opacity: 1; transform: none; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cat-card em { opacity: 1; transform: none; } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .product-grid, .product-grid[class*="cols-"] { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.pc-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.pc-cat { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-cat:hover { color: var(--accent); }
.pc-title { font: 600 1rem/1.35 var(--font); margin: 0; }
.pc-title a { color: var(--ink); }
.pc-title a:hover { color: var(--accent); }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price ins { text-decoration: none; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.price del { color: var(--muted); font-size: .88rem; }
.price-request { color: var(--accent); font-weight: 600; font-size: .9rem; }
.pc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.pc-actions .btn-wa { flex: 1; }
@media (max-width: 560px) {
  .pc-body { padding: 12px; }
  .pc-actions { flex-direction: column; }
  .pc-actions .btn { width: 100%; padding: 9px 10px; }
  .pc-title { font-size: .92rem; }
}

/* shop page */
.shop-body { padding: 34px 0 80px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters-sub { margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 550; font-size: .9rem; transition: border-color .2s, background .2s, color .2s; }
.chip small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.active small { color: inherit; opacity: .7; }
.chip-sm { padding: 6px 13px; font-size: .84rem; }
.shop-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 24px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.search-box input { flex: 1; border: 0; background: transparent; padding: 12px 0; font: inherit; color: var(--ink); outline: none; }
.shop-count { color: var(--muted); font-size: .9rem; }
.sort-box { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sort-box select, .enquiry-form select { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: var(--surface); }
.pager .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state .ic { margin: 0 auto 12px; }
.cat-about { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; }
.cat-about summary { cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--ink); }
.prose-intro p { margin: 0 0 .6em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prose-intro p + p, .prose-intro ul { display: none; }
@media (max-width: 700px) {
  .prose-intro p { -webkit-line-clamp: 3; }
  .shop-body .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(50% - 50vw); padding: 2px calc(50vw - 50%) 6px; scrollbar-width: none; }
  .shop-body .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .shop-tools { gap: 10px; }
  .shop-count { display: none; }
}

/* product page */
.product-page { padding: 30px 0 70px; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.pg { position: sticky; top: 100px; }
.pg-main { aspect-ratio: 1; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.pg-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pg-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pg-thumb { flex: none; width: 78px; height: 78px; border-radius: 12px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; }
.pg-thumb.on { border-color: var(--accent); }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .pg { position: static; } }
.product-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 8px 0 14px; }
.product-price { font-size: 1.4rem; margin-bottom: 18px; }
.product-price ins { font-size: 1.7rem; }
.buy-box { margin: 24px 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.buy-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.buy-note .ic { color: var(--wa); flex: none; margin-top: 3px; }
.product-facts { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.product-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.product-facts span { color: var(--muted); }
.product-facts strong, .product-facts a { color: var(--ink); font-weight: 600; }
.trust-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; color: var(--ink-2); font-size: .94rem; }
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list .ic { color: var(--accent); }
.share-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.share-row span { color: var(--muted); }
.share-row button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.product-desc { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 820px; }
.sticky-buy { display: none; }
@media (max-width: 760px) {
  .sticky-buy { display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .is-product .mg-wa-float { display: none; }
  .is-product .mg-footer { padding-bottom: 80px; }
}
.pc-photos { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(12, 10, 8, .62); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }

/* full-screen photo slider (product photos and page galleries) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 6, .95); display: flex; flex-direction: column; color: #f5f1ea; animation: lbIn .2s ease; touch-action: pan-y; }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .9rem; }
.lb-count { font-weight: 600; letter-spacing: .04em; }
.lb-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loading { opacity: .35; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn[hidden] { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-caption { text-align: center; padding: 12px 18px 4px; font-size: .92rem; color: rgba(245, 241, 234, .82); min-height: 1.4em; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 10px 18px 18px; overflow-x: auto; }
.lb-thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .55; cursor: pointer; background: #222; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.on { border-color: #f0b37a; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; width: 42px; height: 42px; } .lb-prev { left: 12px; } .lb-next { right: 12px; } .lb-caption { padding: 12px 64px 4px; } .lb-thumbs button { width: 46px; height: 46px; } }
.pg-main { position: relative; }
.pg-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(12, 10, 8, .62); color: #fff; font: 600 .8rem var(--font); cursor: pointer; backdrop-filter: blur(6px); }

/* ---------- contact ---------- */
.contact-cards { display: grid; gap: 14px; margin-top: 22px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.cc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card strong { color: var(--ink); font-weight: 600; }
.contact-card strong a { color: var(--ink); }
.contact-card strong a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; min-height: 320px; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-theme="dark"] .map-embed iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.enquiry-form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 36px); border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.enquiry-form h3 { font: 600 1.5rem var(--serif); margin: 0; }
.enquiry-form > p { margin: -8px 0 0; font-size: .92rem; }
.enquiry-form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.enquiry-form input, .enquiry-form textarea { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.enquiry-form input:focus, .enquiry-form textarea:focus, .enquiry-form select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.ef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ef-row { grid-template-columns: 1fr; } }

/* ---------- prose & blog ---------- */
.page-body { padding: 48px 0 80px; }
.prose { color: var(--ink-2); max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.prose h3 { margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; max-height: 520px; object-fit: cover; margin: 0; cursor: zoom-in; }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.post-cta { margin: 2.5em 0 0; padding: 24px 26px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.post-cta p { margin: 0 0 14px; color: var(--ink); }
.post-cta a.btn { text-decoration: none; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px; }
.post-card time, .post-meta { color: var(--muted); font-size: .85rem; }
.post-card h3 a { color: var(--ink); }
.post-cover { border-radius: var(--radius); margin: 30px 0 0; width: 100%; }

/* ---------- footer ---------- */
.mg-footer { background: var(--dark); color: #b8b0a4; padding: 72px 0 0; margin-top: 0; font-size: .94rem; }
.mg-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.mg-fbrand p { margin: 18px 0 20px; max-width: 40ch; }
.mg-logo-footer img { background: #fff; padding: 6px 10px; border-radius: 10px; height: 52px; }
.mg-footer h4 { color: #fff; font: 650 .82rem var(--font); letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 18px; }
.mg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mg-footer a { color: #d6d0c6; }
.mg-footer a:hover { color: #f0b37a; }
.mg-fcontact li { display: flex; gap: 10px; align-items: flex-start; }
.mg-fcontact .ic { color: #f0b37a; flex: none; margin-top: 3px; }
.mg-social-lg a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .14); }
.mg-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
@media (max-width: 900px) { .mg-footer-grid { grid-template-columns: 1fr 1fr; } .mg-fbrand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .mg-footer-grid { grid-template-columns: 1fr; } }
.mg-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(31, 174, 85, .4); transition: transform .2s; }
.mg-wa-float:hover { transform: scale(1.07); color: #fff; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
