/* h4tekinc-web storefront: warm black + logo gold, each product carries its own accent (--accent). */
:root {
  --ink: #0d0a07;
  --panel: #17120c;
  --panel-2: #211910;
  --line: #3a2d1c;
  --text: #f6efe3;
  --muted: #b8a88f;
  --gold: #d4a954;
  --gold-bright: #f3cd7d;
  --gold-deep: #9a7230;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --accent: var(--gold-bright);
  --radius: 14px;
  --shadow: 0 10px 30px rgb(0 0 0 / 45%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 80% -10%, #2a1d0d 0%, var(--ink) 55%) fixed, var(--ink);
  color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold-bright); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .2em 0 .3em; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .82rem; }
.pill { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 999px; background: var(--gold); color: #1a1206; font-weight: 700; font-size: .8rem; text-align: center; }

.env-banner { background: repeating-linear-gradient(135deg, #3b2a05 0 12px, #4a3506 12px 24px); color: var(--gold-bright); text-align: center; font-size: .85rem; padding: .45rem 1rem; border-bottom: 1px solid var(--gold-deep); }
.env-banner strong { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem); background: rgb(13 10 7 / 88%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 1.2rem; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--gold-bright); }

main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 4rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); padding: .7rem 1.1rem; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1206; border-color: var(--gold-deep); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-small { padding: .35rem .65rem; font-size: .85rem; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 3rem 0 2rem; }
.hero-img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; margin: 0; }
.lede { color: var(--muted); font-size: 1.15rem; }
.hero-perks { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.perk { border: 1px solid var(--gold-deep); color: var(--gold-bright); padding: .35rem .75rem; border-radius: 999px; font-size: .88rem; }

.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin: 1rem 0 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: .4rem .85rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.chip[aria-selected="true"], .chip.on { background: var(--gold); color: #1a1206; border-color: var(--gold); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.card a.cover { display: block; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 35%, transparent), var(--panel-2) 70%); }
.card a.cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card .tag { color: var(--muted); font-size: .86rem; margin: 0; }
.badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { background: rgb(13 10 7 / 80%); color: var(--accent); border: 1px solid var(--accent); padding: .1rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.price .now { font-size: 1.2rem; font-weight: 800; color: var(--gold-bright); }
.price .was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.price .per { color: var(--muted); font-size: .85rem; }
.card .actions { display: flex; gap: .5rem; margin-top: .5rem; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 2.5rem 0; }
.gallery .main { border-radius: 20px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); border: 1px solid var(--line); }
.thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; width: 76px; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.product h1 { margin-top: 0; }
.product .tagline { color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.notes div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.notes h4 { margin: 0 0 .3rem; color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.notes p { margin: 0; font-size: .9rem; }
.buy { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .8rem; margin-top: 1.2rem; }
.buy label { font-weight: 600; font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { background: var(--panel-2); color: var(--text); border: 0; width: 2.2rem; height: 2.2rem; font-size: 1.1rem; cursor: pointer; }
.qty input, .qty output { width: 2.6rem; text-align: center; background: transparent; color: var(--text); border: 0; font: inherit; }
select, input[type="text"], input:not([type]) { background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; font: inherit; width: 100%; }
.accords { display: flex; flex-wrap: wrap; gap: .4rem; }
.accords label { cursor: pointer; }
.accords input { position: absolute; opacity: 0; pointer-events: none; }
.accords span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; font-size: .85rem; font-weight: 500; }
.accords input:checked + span { background: var(--accent); color: #1a1206; border-color: var(--accent); font-weight: 700; }
.accords input:focus-visible + span { outline: 2px solid var(--gold-bright); }
.contains { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); }

.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.cart-lines { display: grid; gap: .7rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .6rem; }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.line h3 { margin: 0; font-size: 1rem; }
.line .opt { color: var(--muted); font-size: .85rem; margin: .1rem 0 0; }
.line .right { display: grid; justify-items: end; gap: .35rem; }
.line.free { border-style: dashed; border-color: var(--ok); }
.line.free .amt { color: var(--ok); }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; padding: 0; }
.summary { position: sticky; top: 5.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .9rem; }
.summary h2 { margin: 0; font-size: 1.2rem; }
.code-form .row { display: flex; gap: .5rem; margin-top: .35rem; }
.code-msg { min-height: 1.2em; margin: .35rem 0 0; font-size: .88rem; }
.code-msg.ok { color: var(--ok); }
.code-msg.err { color: var(--err); }
.shipping { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin: 0; display: grid; gap: .35rem; }
.shipping legend { padding: 0 .3rem; font-weight: 600; font-size: .9rem; }
.shipping label { display: flex; justify-content: space-between; gap: .6rem; font-size: .92rem; cursor: pointer; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; margin: 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { color: var(--text); font-size: 1.15rem; font-weight: 800; padding-top: .4rem; border-top: 1px solid var(--line); }
.totals .save { color: var(--ok); }
.notice { border: 1px solid var(--gold-deep); background: #2a1e0b; color: var(--gold-bright); padding: .7rem 1rem; border-radius: 12px; margin: 0 0 1rem; }
.notice.err { border-color: var(--err); color: var(--err); background: #2a0f14; }

.success { max-width: 760px; margin: 0 auto; padding: 3rem 0; }
.success .status { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-weight: 800; font-size: .85rem; background: var(--ok); color: #062b1f; }
.success .status.processing, .success .status.open { background: var(--warn); color: #2b1d02; }
.success table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.success td { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.success td:last-child { text-align: right; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem clamp(1rem, 4vw, 3rem); text-align: center; }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; color: var(--gold); font-weight: 600; font-size: .9rem; }

@media (max-width: 860px) {
  .hero, .product, .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .notes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; margin: 0; box-shadow: var(--shadow); }
/* og-style landscape images (text left, product right): keep the product in frame when cropped square */
.card a.cover img[src$=".jpg"], .gallery .main[src$=".jpg"], .thumbs img[src$=".jpg"], .line img[src$=".jpg"] { object-position: 86% 50%; }
