/* Dealux static site styles (layered on top of the original dealux.css theme). */
:root { --gold: var(--color-gold-500, #d4a853); --gold-hi: var(--color-gold-300, #f6d267); --bg: var(--color-surface, #141318); --panel: #1c1b22; --line: #2b2a33; --text: #ece9e2; --muted: #9a968d; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; margin: 0; }
a { color: inherit; text-decoration: none; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: .4em 0; font-weight: 700; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 1rem; display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; }
h3 { font-size: 1rem; margin: .3rem 0; font-weight: 600; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.hidden { display: none !important; }
.eyebrow { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20, 19, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.logo { font-weight: 800; letter-spacing: .2em; color: var(--gold); }
.main-nav { display: flex; gap: 1rem; font-size: .95rem; }
.main-nav a:hover, .see-all:hover { color: var(--gold-hi); }
.header-search { flex: 1; }

input[type=search], select { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .85rem; font: inherit; }
input[type=search]:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.btn-gold { background: linear-gradient(90deg, var(--color-gold-600, #b8862b), var(--gold)); color: #17130a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.see-all { font-size: .9rem; color: var(--gold); font-weight: 500; }

.hero { padding: 4rem 0 2rem; text-align: center; }
.hero-search { display: flex; gap: .5rem; max-width: 620px; margin: 1.5rem auto 0; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; transition: border-color .15s; }
a.card:hover { border-color: var(--gold); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: .4rem; background: #222; }
.dept-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.dept-card { font-weight: 600; text-align: center; padding: 1.2rem; }

.product-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding-top: 1.5rem; }
.sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; font-size: .92rem; }
.sidebar summary { cursor: pointer; list-style: none; }
.side-link { display: block; padding: .3rem .5rem; border-radius: 6px; color: var(--muted); }
.side-link:hover, .side-link.active { color: var(--gold-hi); background: rgba(212, 168, 83, .08); }
.side-link.sub { padding-left: 1.3rem; font-size: .88rem; }
.side-heading { color: var(--gold); font-weight: 600; }
.side-link .muted { font-size: .75rem; float: right; }
.dept-card .muted { display: block; font-size: .78rem; font-weight: 400; }
.filter-bar { display: flex; gap: .6rem; margin: 1rem 0; }
.filter-bar select { max-width: 240px; }
.product-card h3 { text-transform: none; }
.product-thumb { display: none; aspect-ratio: 1; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: .4rem; }
.product-thumb.has-img { display: block; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-hero { max-width: 420px; margin: 1rem 0; }
[data-load-more] { margin: 1.5rem auto; display: block; }

.brand-list { list-style: none; padding: 0; columns: 3 260px; column-gap: 2rem; }
.brand-list li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.brand-list li a:hover { color: var(--gold-hi); }
.brand-list li .muted { font-size: .78rem; text-align: right; }

.post, .product-detail { max-width: 760px; margin: 2rem auto; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.post-layout .post { margin: 2rem 0; max-width: none; }
.post-sidebar { position: sticky; top: 88px; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.promo-card p { margin: .2rem 0; font-size: .9rem; }
.promo-card .muted b { color: var(--text); }
.promo-code { font-family: ui-monospace, monospace; border: 1px dashed var(--gold); border-radius: 8px; padding: .35rem .6rem; text-align: center; color: var(--gold-hi); }
.promo-card .btn { text-align: center; margin-top: .3rem; }
.promo-note { font-size: .75rem !important; color: var(--muted); }
.post-sidebar { max-height: calc(100vh - 100px); overflow-y: auto; }
.post-body { font-size: 1.05rem; line-height: 1.75; overflow-wrap: anywhere; }
.post-body img, .post-body video { max-width: 100%; height: auto; border-radius: 10px; }
.post-body a { color: var(--gold-hi); text-decoration: underline; }
.post-body h2, .post-body h3 { display: block; margin: 1.8rem 0 .6rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body blockquote { border-left: 3px solid var(--gold); margin: 1rem 0; padding-left: 1rem; color: var(--muted); }
.post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: .4rem .6rem; }
.post .cover { width: 100%; border-radius: 14px; margin: 1rem 0; }
.post .lead { font-size: 1.1rem; }
.tags span { display: inline-block; font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; margin: 0 .3rem .3rem 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0; font-size: .85rem; }

@media (max-width: 820px) {
  .header-row { flex-wrap: wrap; height: auto; padding: .7rem 1.25rem; gap: .6rem; }
  .header-search { order: 5; flex-basis: 100%; }
  .shop-layout, .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; margin-top: 0; }
  .sidebar { position: static; max-height: 260px; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
  .filter-bar { flex-direction: column; }
  .filter-bar select { max-width: none; }
}
