/* ============================================================
   Roma Collectibles — UI Redesign
   Light mode · Primary #1e3a8a · Imperial blue & marble theme
   ============================================================ */

:root {
  --primary: #1e3a8a;
  --primary-dark: #172c6b;
  --primary-light: #2b4bb3;
  --primary-50: #eef2fc;
  --primary-100: #dce5f9;
  --gold: #c8a24a;
  --gold-soft: #f3e9d2;
  --bg: #ffffff;
  --surface: #f6f8fd;
  --surface-2: #eef2fa;
  --border: #e3e8f4;
  --border-dark: #c6cfdf;
  --border-focus: #2b4bb3;
  --surface-elevated: #ffffff;
  --text-secondary: #5b6b8c;
  --danger-soft: #fdecec;
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --text: #0f172a;
  --muted: #5b6b8c;
  --success: #15803d;
  --danger: #b91c1c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 8px 28px rgba(30, 58, 138, .10);
  --shadow-lg: 0 22px 60px rgba(30, 58, 138, .16);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-ltr: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Local font: Space Grotesk (variable, latin) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-400.woff2") format("woff2");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  font-weight: 700; color: var(--text); line-height: 1.15; margin: 12px 0 10px;
}
.section-sub { color: var(--muted); max-width: 560px; }
.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; border: 1.5px solid transparent;
  transition: all .22s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(30,58,138,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,58,138,.34); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-50); }
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary); color: #cdd9f6;
  font-size: .8rem; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar span.dot { color: var(--gold); margin-inline: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px;justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
	width: 64px;
    height: 64px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
}
.logo-text { line-height: 1.15; }
.logo-text b { font-family: var(--font-display); font-size: 1.18rem; color: var(--primary); display: block; letter-spacing: .02em; }
.logo-text small { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 15px; border-radius: 8px; font-weight: 500; font-size: .94rem;
  color: var(--text); transition: all .18s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-50); }
.main-nav a.active { color: var(--primary); font-weight: 700; position: relative; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2.5px; border-radius: 2px; background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff;
  display: grid; place-items: center; color: var(--primary);
  transition: all .18s;
}
.icon-btn:hover { background: var(--primary-50); border-color: var(--primary-100); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px;
  border-radius: 10px; background: var(--gold); color: #1a1405;
  font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  padding-inline: 5px; border: 2px solid #fff;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--primary-50) 0%, #fff 55%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,58,138,.07) 1px, transparent 1px);
  background-size: 26px 26px; pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center; padding: 84px 0 96px; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px; font-size: .8rem; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.08; font-weight: 700; color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: var(--gold-soft); z-index: -1; border-radius: 3px;
}
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 480px; margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; }
.hero-stats b { font-family: var(--font-display); font-size: 1.65rem; color: var(--primary); display: block; }
.hero-stats span { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-frame {
  border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-float {
  position: absolute; left: -34px; bottom: 34px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
}
.hero-card-float .thumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.hero-card-float .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-float b { font-size: .88rem; display: block; }
.hero-card-float span { font-size: .78rem; color: var(--gold); font-weight: 700; }
.hero-tag {
  position: absolute; top: 26px; right: -18px;
  background: var(--primary); color: #fff; border-radius: 100px;
  padding: 9px 18px; font-size: .8rem; font-weight: 600;
  box-shadow: 0 10px 24px rgba(30,58,138,.35);
}
.hero-tag b { color: var(--gold); }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--border); background: #fff; }
.trust-strip .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 26px 0;
}
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item svg { flex-shrink: 0; color: var(--primary); }
.trust-item b { font-size: .92rem; display: block; }
.trust-item span { font-size: .78rem; color: var(--muted); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  padding: 34px 26px; transition: all .25s ease; text-align: center;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-100); background: #fff; }
.cat-icon {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 16px;
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 22px rgba(30,58,138,.28);
}
.cat-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.cat-card p { font-size: .85rem; color: var(--muted); }
.cat-card .count {
  display: inline-block; margin-top: 14px; font-size: .75rem; font-weight: 700;
  color: var(--primary); background: var(--primary-50); padding: 4px 13px; border-radius: 100px;
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.product-media {
  position: relative; aspect-ratio: 1/1; background: var(--surface);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media.ph {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.product-media.ph .ph-numeral {
  font-family: var(--font-display); font-size: 4.4rem; font-weight: 700;
  color: rgba(200,162,74,.9); line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.product-media.ph .ph-col { color: rgba(255,255,255,.22); position: absolute; bottom: -14px; right: 6px; }
.badge {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
}
.badge-new { background: var(--primary); color: #fff; }
.badge-sale { background: var(--gold); color: #1a1405; }
.badge-hot { background: #fff; color: var(--primary); border: 1px solid var(--primary-100); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
a.product-cat { text-decoration: none; transition: color .15s; }
a.product-cat:hover { color: var(--primary); }
.product-name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; margin: 5px 0 4px; overflow-wrap: anywhere; }
.product-name a:hover { color: var(--primary); }
.product-meta { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .8rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--primary); overflow-wrap: anywhere; }
.price ins { text-decoration: none; }
.price s { color: var(--muted); font-weight: 500; font-size: .85rem; margin-right: 7px; }
.add-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-50); color: var(--primary); border: none;
  font-weight: 700; font-size: .82rem; padding: 9px 15px; border-radius: 9px;
  transition: all .18s;
}
.add-btn:hover { background: var(--primary); color: #fff; }
.add-btn.icon-only { padding: 9px 10px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1/1; background: var(--surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .frame-tag {
  position: absolute; bottom: 18px; left: 18px; background: rgba(255,255,255,.94);
  border-radius: 11px; padding: 10px 17px; font-size: .82rem; font-weight: 700; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.check-list { margin-top: 24px; display: grid; gap: 15px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center; margin-top: 2px;
}
.check-list b { display: block; font-size: .97rem; }
.check-list span { font-size: .86rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; position: relative; transition: all .25s;
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-card .quote-mark {
  font-family: var(--font-display); font-size: 4rem; line-height: .6;
  color: var(--primary-100); display: block; 
}
.testi-card p { font-size: .94rem; color: var(--text); margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}
.testi-author b { font-size: .9rem; display: block; }
.testi-author span { font-size: .76rem; color: var(--muted); }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 300px at 80% -20%, rgba(200,162,74,.22), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 22px; padding: 62px 58px; color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: "SPQR"; position: absolute; right: -16px; bottom: -38px;
  font-family: var(--font-display); font-size: 9rem; font-weight: 700;
  color: rgba(255,255,255,.05); letter-spacing: .05em; pointer-events: none;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta-band p { color: #c3d0f2; font-size: .97rem; }
.newsletter-form { display: flex; gap: 10px; position: relative; z-index: 1; }
.newsletter-form input {
  flex: 1; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 13px 18px; color: #fff; font-size: .92rem;
  outline: none; font-family: inherit;
}
.newsletter-form input::placeholder { color: #9fb2e4; }
.newsletter-form input:focus { border-color: var(--gold); background: rgba(255,255,255,.16); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #b9c6e8;}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px;
  padding: 64px 0 48px;
}
.site-footer h4 {
  color: #fff; font-family: var(--font-display); font-size: 1.05rem;
  margin-bottom: 18px; position: relative; padding-bottom: 12px;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold); }
.site-footer p, .site-footer a { font-size: .88rem; }
.footer-about p { margin: 16px 0 20px; max-width: 300px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { transition: all .18s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "›"; color: var(--gold); font-weight: 700; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: .88rem; align-items: flex-start; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 9px; margin-top: 4px; }
.socials a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #cdd9f6; transition: all .18s;
}
.socials a:hover { background: var(--gold); color: #1a1405; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem;
}
.footer-bottom b { color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 260px at 85% -40%, rgba(200,162,74,.18), transparent 60%),
    linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 62px 0;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: #c3d0f2; margin-top: 8px; }
.crumbs { display: flex; gap: 9px; font-size: .82rem; color: #9fb2e4; }
.crumbs a:hover { color: #fff; }
.crumbs span.sep { color: var(--gold); }
/* Breadcrumb bar on light backgrounds (blog posts) */
.crumb-bar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 13px 0;
}
.crumb-bar .crumbs { color: var(--muted); }
.crumb-bar .crumbs a { color: var(--primary); text-decoration: none; }
.crumb-bar .crumbs a:hover { color: var(--gold); }
.crumb-bar .crumbs span:last-child { color: var(--text); font-weight: 600; }

/* Blog pagination */
.navigation.pagination {
	margin-top: 36px;
	display: flex;
	justify-content: center;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 9px;
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
	transition: border-color 150ms, background 150ms, color 150ms;
}
a.page-numbers:hover {
	border-color: var(--primary);
	color: var(--primary);
	background: var(--primary-50);
}
.page-numbers.current {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	font-weight: 700;
}
.page-numbers.dots { border: none; background: none; }

/* Screen-reader utility (WP core markup) */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
}
/* Breadcrumb bar on light backgrounds (blog posts) */
.crumb-bar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 13px 0;
}
.crumb-bar .crumbs { color: var(--muted); }
.crumb-bar .crumbs a { color: var(--primary); text-decoration: none; }
.crumb-bar .crumbs a:hover { color: var(--gold); }
.crumb-bar .crumbs span:last-child { color: var(--text); font-weight: 600; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 38px; align-items: start; }
.filter-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.filter-card h3 {
  font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.filter-list li { margin-bottom: 4px; }
.filter-list button {
  width: 100%; text-align: left; background: none; border: none;
  padding: 8px 12px; border-radius: 8px; font-size: .9rem; color: var(--muted);
  display: flex; justify-content: space-between; transition: all .15s;
}
.filter-list button:hover { background: var(--primary-50); color: var(--primary); }
.filter-list button.active { background: var(--primary); color: #fff; font-weight: 600; }
.filter-list button .n { font-size: .76rem; opacity: .75; }
.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: .86rem; font-family: inherit; outline: none;
}
.price-range input:focus { border-color: var(--primary); }

.shop-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 18px; margin-bottom: 26px;
}
.shop-toolbar .result-n { font-size: .88rem; color: var(--muted); margin-right: auto; }
.shop-toolbar select, .search-input {
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px;
  font-size: .88rem; font-family: inherit; outline: none; background: #fff; color: var(--text);
}
.shop-toolbar select:focus, .search-input:focus { border-color: var(--primary); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap .search-input { padding-left: 38px; width: 230px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-state b { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); display: block; margin-bottom: 8px; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-gallery { position: sticky; top: 110px; }
.pd-main-img {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface);  box-shadow: var(--shadow-md);
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .product-cat { font-size: .78rem; }
.pd-info h1 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.7vw, 1.7rem); line-height: 1.15; margin: 8px 0 12px; }
.pd-rating { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.pd-price .now { font-size: 2rem; font-weight: 800; color: var(--primary); }
.pd-price .was { color: var(--muted); text-decoration: line-through; }
.pd-price .save { background: var(--gold-soft); color: #8a6b1d; font-size: .75rem; font-weight: 800; padding: 4px 11px; border-radius: 100px; }
.pd-desc { color: var(--muted); margin: 16px 0 24px; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--success); margin-bottom: 22px; }
.pd-stock i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(21,128,61,.14); }
.pd-buy { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-box button { width: 42px; height: 46px; border: none; background: var(--surface); font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.qty-box button:hover { background: var(--primary-50); }
.qty-box input { width: 52px; height: 46px; border: none; text-align: center; font-size: .98rem; font-weight: 700; font-family: inherit; outline: none; }
.pd-meta-table { margin-top: 34px; border-top: 1px solid var(--border); }
.pd-meta-table .row { display: flex; gap: 20px; padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.pd-meta-table .row b { width: 130px; flex-shrink: 0; color: var(--text); }
.pd-meta-table .row span { color: var(--muted); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 36px; align-items: start; }
.cart-table { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-row {
  display: grid; grid-template-columns: 92px 1fr auto auto auto;
  gap: 18px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 92px; height: 92px; border-radius: 11px; overflow: hidden; background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb.ph { display: grid; place-items: center; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: var(--gold); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.cart-item-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.cart-item-cat { font-size: .76rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.cart-qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-qty button { width: 32px; height: 34px; border: none; background: var(--surface); color: var(--primary); font-weight: 700; }
.cart-qty span { width: 38px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.cart-line-price { font-weight: 800; color: var(--primary); min-width: 76px; text-align: right; }
.remove-btn { border: none; background: none; color: var(--muted); font-size: 1.2rem; padding: 6px; border-radius: 8px; }
.remove-btn:hover { color: var(--danger); background: #fef2f2; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 110px; }
.cart-summary h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); padding: 8px 0; }
.sum-row.total { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 16px; font-size: 1.12rem; font-weight: 800; color: var(--text); }
.sum-row.total .val { color: var(--primary); }
.promo-row { display: flex; gap: 9px; margin: 18px 0; }
.promo-row input { flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 11px 14px; font-size: .88rem; font-family: inherit; outline: none; }
.promo-row input:focus { border-color: var(--primary); }
.secure-note { display: flex; gap: 9px; align-items: center; justify-content: center; margin-top: 16px; font-size: .78rem; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .ph-numeral { font-family: var(--font-display); font-size: 3.6rem; color: rgba(200,162,74,.9); }
.post-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--primary); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 100px; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.post-body h3 { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.post-body h3 a:hover { color: var(--primary); }
.post-body p { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.read-more { margin-top: auto; font-size: .86rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 7px; }
.read-more:hover { gap: 11px; }
.read-more { transition: gap .2s; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card { background: linear-gradient(155deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 20px; padding: 40px 36px; position: relative; overflow: hidden; }
.contact-info-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; border: 34px solid rgba(200,162,74,.16); }
.contact-info-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; }
.contact-info-card > p { color: #c3d0f2; font-size: .9rem; margin-bottom: 30px; }
.c-info-item { display: flex; gap: 15px; margin-bottom: 24px; align-items: flex-start; }
.c-info-item .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.c-info-item b { display: block; font-size: .92rem; }
.c-info-item span { font-size: .85rem; color: #c3d0f2; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .84rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 15px; font-size: .92rem; font-family: inherit; outline: none;
  background: var(--surface); transition: all .18s; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-success { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); border-radius: var(--radius-sm); padding: 13px 17px; font-size: .9rem; font-weight: 600; margin-top: 16px; }
.form-success.show { display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 90px);
  background: var(--primary); color: #fff; padding: 13px 24px; border-radius: 100px;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  z-index: 500; transition: transform .3s cubic-bezier(.2,.9,.3,1.2); display: flex; gap: 10px; align-items: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { color: var(--gold); }

/* ---------- WordPress menu integration (nav menus output li > a) ---------- */
.main-nav { align-items: center; }
.main-nav li { list-style: none; }
.mobile-nav-panel ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,.45); backdrop-filter: blur(3px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
  background: #fff; padding: 26px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 6px;
  animation: slideIn .28s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mobile-nav-panel a { padding: 13px 15px; border-radius: 10px; font-weight: 600; }
.mobile-nav-panel a:hover, .mobile-nav-panel a.active { background: var(--primary-50); color: var(--primary); }
.mobile-nav-close { align-self: flex-end; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: all .7s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 0 70px; }
  .hero-visual { max-width: 520px; }
  .split, .pd-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .pd-gallery { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 46px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .product-grid, .cat-grid, .testi-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid.cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
/* Hide search + account icons on phones — keeps the header from overflowing */
@media (max-width: 720px) {
  #search-trigger,
  .account-menu-wrap { display: none; }
}
  .trust-strip .container { grid-template-columns: 1fr 1fr; gap: 16px; }
  .section { padding: 60px 0; }
  .cart-row { grid-template-columns: 70px 1fr auto; }
  .cart-thumb { width: 70px; height: 70px; }
  .cart-line-price { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .filters-col { grid-template-columns: 1fr; }
  .search-wrap .search-input { width: 100%; }
  .hero-card-float { left: 10px; }
  .hero-tag { right: 8px; }
}
@media (max-width: 480px) {
  .product-grid, .cat-grid, .blog-grid, .testi-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Search modal ---------- */
.search-modal {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: none;
}
.search-modal.open { display: block; }
.search-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	backdrop-filter: blur(3px);
}
.search-modal-panel {
	position: relative;
	width: min(760px, 92vw);
	max-height: 82vh;
	overflow-y: auto;
	margin: 9vh auto 0;
	background: var(--bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 22px 24px;
}
.search-modal-close {
	position: absolute;
	top: 14px;
	left: 14px;
}
.search-modal-title {
	margin: 0 0 14px;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text);
	padding-left: 34px;
}
.search-modal-form {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid var(--border-dark);
	border-radius: var(--radius-sm);
	padding: 6px 12px;
	background: var(--surface);
}
.search-modal-form:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-50);
}
.search-modal-form svg { color: var(--muted); flex-shrink: 0; }
.search-modal-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 15px;
	color: var(--text);
	padding: 8px 0;
}
.search-hint {
	margin: 16px 2px 10px;
	font-size: 12px;
	color: var(--muted);
}
/* Scoped to the ID — body.search-results would otherwise turn the whole
   page into a 170px grid on search URLs */
#search-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
}
#search-results .product-card { margin: 0; }
#search-results .search-empty,
#search-results .search-loading {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--muted);
	padding: 26px 0;
	font-size: 13px;
}
#search-results .search-loading {
	display: flex;
	justify-content: center;
	padding: 30px 0;
}
#search-results .search-loading::before {
	content: "";
	width: 28px;
	height: 28px;
	border: 3px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: roma-spin .7s linear infinite;
}
@keyframes roma-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Account dropdown ---------- */
.account-menu-wrap { position: relative; display: inline-flex; }
.account-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 190px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: 6px;
	display: none;
	flex-direction: column;
	z-index: 600;
}
.account-dropdown.open { display: flex; }
.account-dropdown a {
	padding: 9px 13px;
	border-radius: 7px;
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
	transition: background var(--t-fast), color var(--t-fast);
}
.account-dropdown a:hover {
	background: var(--surface);
	color: var(--primary);
}

/* ---------- Article content (imported guides) ---------- */
.post-content { font-size: 15px; line-height: 2; color: var(--text); }
.post-content p { margin: 0 0 18px; }
.post-content h2 {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--primary);
	margin: 34px 0 14px;
	padding-right: 14px;
	border-right: 3px solid var(--gold);
	line-height: 1.6;
}
.post-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }
.post-content a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-content a:hover { color: var(--primary-dark); }
.post-content ul, .post-content ol { padding-right: 22px; margin: 0 0 18px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--text); }
.post-content code {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 1px 7px;
	font-size: .85em;
	color: var(--danger);
}
/* AI summary callout */
.post-content .post-ai-summary {
	background: var(--surface);
	padding: 16px 20px;
	border-right: 4px solid var(--gold);
	border-radius: 10px;
	font-size: 14.5px;
	line-height: 2;
	margin: 0 0 26px;
}
/* Aside tip boxes */
.post-content aside {
	background: var(--gold-soft);
	padding: 18px 22px;
	border-radius: var(--radius-sm);
	margin: 20px 0;
}
.post-content aside ul { margin-bottom: 0; }
/* Blockquote */
.post-content blockquote {
	border-right: 4px solid var(--gold);
	background: var(--surface);
	margin: 20px 0;
	padding: 10px 20px;
	border-radius: 10px;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
/* Tables — museum plaque style */
.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	margin: 18px 0 26px;
	box-shadow: var(--shadow-sm);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.post-content thead tr { background: var(--primary); color: #fff; }
.post-content th {
	padding: 11px 14px;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}
.post-content td {
	padding: 10px 14px;
	border-top: 1px solid var(--border);
	text-align: right;
}
.post-content tbody tr:nth-child(even) { background: var(--surface); }

/* ================= BLOG: enriched layout ================= */
.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 36px;
	align-items: start;
}
.post-single { min-width: 0; }

/* Header */
.post-header { margin-bottom: 24px; }
.post-header h1 {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 800;
	line-height: 1.55;
	margin: 12px 0 10px;
	color: var(--text);
}
.post-lede {
	font-size: 1.02rem;
	color: var(--muted);
	line-height: 1.95;
	margin: 0 0 16px;
}
.post-meta-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 12.5px;
	color: var(--muted);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--border);
}
.post-meta-line > span { display: inline-flex; align-items: center; gap: 6px; }
.post-avatar { border-radius: 50%; }
.post-reading::before { content: "⏱"; font-size: 12px; }

/* Featured cover */
.post-cover {
	margin: 26px 0 30px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
	background: var(--surface);
}
.post-cover img { width: 100%; display: block; }
.post-cover figcaption {
	padding: 10px 18px;
	font-size: 12px;
	color: var(--muted);
	background: var(--bg);
	border-top: 1px solid var(--border);
}
.post-cover-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 21 / 9;
	background: linear-gradient(150deg, var(--primary), var(--primary-dark));
}
.post-cover-ph span {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--gold);
	letter-spacing: .06em;
	opacity: .9;
}

/* Tags row */
.post-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.post-tags-row a {
	font-size: 12px;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 5px 13px;
	text-decoration: none;
	transition: all 150ms;
}
.post-tags-row a:hover { color: var(--primary); border-color: var(--primary); }

/* Share row */
.post-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
	padding: 14px 18px;
	background: var(--surface);
	border-radius: var(--radius-sm);
}
.post-share b { font-size: 13px; color: var(--text); margin-left: 4px; }
.post-share a, .post-share .copy-link {
	font-size: 12.5px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
	transition: all 150ms;
	font-family: inherit;
}
.post-share a:hover, .post-share .copy-link:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* Prev / next */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 26px;
}
.post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 18px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: border-color 150ms, box-shadow 150ms;
}
.post-nav-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.post-nav-item span { font-size: 11px; color: var(--muted); }
.post-nav-item b { font-size: 13px; color: var(--text); line-height: 1.6; }
.post-nav-item.next { text-align: left; }

/* Author box */
.author-box {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 26px;
	padding: 20px 22px;
	background: var(--gold-soft);
	border-radius: var(--radius-sm);
}
.author-avatar { border-radius: 50%; border: 2px solid var(--gold); }
.author-box b { font-size: 14px; color: var(--text); display: block; margin-bottom: 4px; }
.author-box p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* TOC */
.post-toc {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin: 0 0 26px;
}
.post-toc b { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.post-toc ol { margin: 0; padding-right: 18px; columns: 2; column-gap: 28px; }
.post-toc li { margin-bottom: 5px; font-size: 13px; }
.post-toc a { color: var(--muted); text-decoration: none; }
.post-toc a:hover { color: var(--primary); }
.post-content h2[id] { scroll-margin-top: 90px; }

/* Sidebar */
.blog-sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-box {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 18px 20px;
}
.sidebar-box h4 {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--text);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}
.sb-search { display: flex; gap: 6px; }
.sb-search input {
	flex: 1; min-width: 0;
	border: 1px solid var(--border-dark);
	border-radius: 8px;
	padding: 8px 12px;
	font: inherit; font-size: 13px;
	background: var(--surface);
	outline: none;
}
.sb-search input:focus { border-color: var(--primary); }
.sb-search button {
	border: none; border-radius: 8px;
	background: var(--primary); color: #fff;
	width: 38px; display: flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.sb-recent, .sb-cats { list-style: none; margin: 0; padding: 0; }
.sb-recent li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.sb-recent li:last-child { border-bottom: 0; }
.sb-recent a {
	display: block;
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
	line-height: 1.7;
	margin-bottom: 3px;
}
.sb-recent a:hover { color: var(--primary); }
.sb-date { font-size: 11px; color: var(--muted); }
.sb-cats li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.sb-cats a { color: var(--text); text-decoration: none; }
.sb-cats a:hover { color: var(--primary); }
.sb-cats span { color: var(--muted); font-size: 12px; }
.sb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-tags a {
	font-size: 11.5px;
	color: var(--muted);
	background: var(--surface);
	border-radius: 999px;
	padding: 4px 11px;
	text-decoration: none;
}
.sb-tags a:hover { color: var(--primary); background: var(--primary-50); }
.sb-cta { background: var(--gold-soft); border-color: transparent; }
.sb-cta p { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.8; }

/* Related grid variant */
.blog-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive */
@media (max-width: 1024px) {
	.post-layout { grid-template-columns: 1fr; }
	.blog-sidebar { position: static; }
	.blog-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-item.next { text-align: right; }
	.blog-grid.cols-3 { grid-template-columns: 1fr; }
	.post-toc ol { columns: 1; }
	.post-cover-ph { aspect-ratio: 16 / 9; }
}
