/*
Theme Name: SUPERVARG Foundation
Version: 0.2.0
Text Domain: supervarg
Requires at least: 7.1
Requires PHP: 8.4
*/
/* Adapted from the preserved SV-004 reference; commerce data is rendered by PHP. */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #121416;
  --surface: #202326;
  --text: #ffffff;
  --muted: #b9bdc2;
  --accent: #ff6500;
  --accent-hot: #ff9600;
  --line: #34383c;
  --green: #a0cfac;
  --red: #f0aaa1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: radial-gradient(ellipse at 95% 8%, #ff55000b, transparent 35%), var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.commerce-main { padding-block: 40px 64px; min-height: 65vh; }
.commerce-main h1 { font-size: clamp(36px, 4vw, 76px); overflow-wrap: anywhere; }
.product-body h3, .price, .product-meta { overflow-wrap: anywhere; min-width: 0; }
.product-action { display: block; text-align: center; }
.catalogue-more { margin-top: 28px; }
.breadcrumb { margin-bottom: 32px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 5px; }
.studio-object { font-size: clamp(80px, 28cqw, 200px); font-weight: 950; letter-spacing: -.12em; padding-right: .12em; color: #ff6500; transform: skew(-8deg); text-shadow: 2px 2px #ffa329, 6px 8px #652600, 0 0 45px #ff650050; }
.studio-art { border: 1px solid #ff650055; }
.detail-body .detail-description { white-space: pre-line; }
.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 24px 0; }
.woocommerce-pagination a, .woocommerce-pagination .current { display: block; padding: 10px 18px; border: 1px solid var(--accent); }
.muted { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, summary, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; box-shadow: 0 0 0 3px #08090a, 0 0 24px #ff650045; }
button:disabled { cursor: wait; opacity: .7; }
[hidden] { display: none !important; }
a, button, summary { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.wrap { width: min(3040px, calc(100% - 96px)); margin-inline: auto; }
.demo-strip { background: #111315; color: var(--muted); font-size: 11px; padding-block: 6px; border-bottom: 1px solid #ff650026; }
.demo-strip span { color: var(--accent); font-weight: 700; letter-spacing: .08em; margin-right: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 92px; border-bottom: 1px solid #ff650047; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
/* Stable replacement slot: future approved logo fits here without header changes. */
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; padding: 5px; position: relative; isolation: isolate; filter: drop-shadow(0 0 9px #ff650070); }
.brand-mark:before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%); z-index: -1; }
.brand-mark span { color: #120900; font-size: 20px; font-weight: 900; letter-spacing: -3px; padding-right: 3px; }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: contain; }
.wordmark { font-size: 30px; font-weight: 900; letter-spacing: -.065em; white-space: nowrap; }
.wordmark > span { color: var(--accent); text-shadow: 0 0 24px #ff650055; }
nav { display: flex; gap: 32px; align-self: stretch; }
nav a { display: grid; place-items: center; min-height: 44px; padding: 12px 4px; font-size: 12px; letter-spacing: .1em; font-weight: 650; border-bottom: 2px solid transparent; }
nav a[aria-current="location"] { border-color: var(--accent); color: var(--accent); text-shadow: 0 0 18px #ff650066; }
nav a:hover, .footer-links a:hover { color: var(--accent); }
a:active, button:active { color: var(--accent); }
.cart { font-size: 13px; text-align: right; }
.cart > span { color: var(--accent); margin-left: 6px; }
.cart small { display: block; color: var(--muted); font-size: 11px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding-block: 48px 40px; align-items: center; position: relative; isolation: isolate; }
.hero:before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 73% 60%, #ff540012, transparent 65%); }
.hero-copy { min-width: 0; position: relative; z-index: 1; padding-block: 20px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 750; margin: 0 0 14px; }
h1 { font-size: clamp(48px, 4.8vw, 112px); line-height: .98; font-weight: 900; letter-spacing: -.065em; margin: 0 0 24px; }
h1 span { color: var(--accent); text-shadow: 0 0 44px #ff65002b; }
.hero-copy > p:not(.eyebrow) { color: #c6c9cd; max-width: 48ch; font-size: clamp(16px, 1vw, 20px); margin: 0 0 28px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 50px; padding: 13px 22px; background: #160f09; border: 1px solid var(--accent); color: var(--text); font-size: 14px; font-weight: 750; box-shadow: inset 0 0 18px #ff650010, 0 0 24px #ff650018; }
.primary-link:hover { background: #2a1508; box-shadow: inset 0 0 22px #ff650025, 0 0 26px #ff650045; }
.primary-link:active { color: var(--text); background: #40200b; }
.hero-art { min-height: clamp(340px, 20vw, 560px); align-self: stretch; position: relative; overflow: hidden; display: grid; place-items: center; isolation: isolate; background: radial-gradient(ellipse at 54% 75%, #ff4d0038, transparent 58%), linear-gradient(125deg, #08090a 8%, #15181b 48%, #08090a 92%); border-bottom: 1px solid #ff650066; }
.hero-art:before { content: ""; position: absolute; width: 65%; height: 76%; border: 1px solid #ff650087; border-left: 3px solid var(--accent); transform: skew(-16deg) rotate(-12deg); background: linear-gradient(135deg, #ff650008, transparent 60%); box-shadow: -12px 0 60px #ff65001e, inset 0 -14px 60px #ff650011; }
.hero-art:after { content: ""; position: absolute; width: 75%; height: 1px; bottom: 16%; background: linear-gradient(90deg, transparent, var(--accent-hot), var(--accent), transparent); box-shadow: 0 0 24px 3px #ff650071; transform: rotate(-12deg); }
.hero-monogram { position: relative; font-size: clamp(170px, 17vw, 380px); line-height: 1; font-weight: 950; letter-spacing: -.15em; padding-right: .15em; color: var(--accent); transform: skew(-8deg); text-shadow: 1px 1px 0 #ffad2e, 5px 7px 0 #7a2800, 0 0 50px #ff650045; }
.hero-edition, .hero-caption { position: absolute; font-size: 10px; letter-spacing: .15em; color: #c7c9cc; z-index: 1; }
.hero-edition { top: 18px; left: 22px; }
.hero-caption { bottom: 18px; right: 22px; }
.embers { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 2px 4px at 19% 61%, #ff8a00 40%, transparent 70%), radial-gradient(ellipse 2px 3px at 77% 26%, #ff6500 40%, transparent 70%), radial-gradient(ellipse 2px 4px at 82% 72%, #ff9b16 40%, transparent 70%), radial-gradient(ellipse 1px 3px at 32% 86%, #ff6500 40%, transparent 70%), radial-gradient(ellipse 1px 2px at 63% 12%, #ff8500 40%, transparent 70%); filter: drop-shadow(0 0 4px #ff6500); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h2 { font-size: clamp(30px, 2vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading > p { color: var(--muted); font-size: 12px; margin: 0; }
.section-heading > p span { color: var(--accent); margin-inline: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; background: linear-gradient(150deg, #1b1e21, var(--panel) 55%); display: flex; flex-direction: column; border: 1px solid #393b3e; border-top-color: #ff650069; box-shadow: 0 12px 32px #00000040; }
.product-card:focus-within { border-color: var(--accent); box-shadow: 0 0 28px #ff65001c; }
.product-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 75% 48%, #ff650025, transparent 60%), radial-gradient(ellipse at 25% 15%, #373b40, transparent 65%), linear-gradient(145deg, #171a1d, #070809 70%); container-type: inline-size; border-bottom: 1px solid #ff650055; }
.product-media:before { content: ""; position: absolute; bottom: 10%; width: 78%; height: 1px; background: linear-gradient(90deg, transparent, #ff6500aa, transparent); box-shadow: 0 0 22px 3px #ff650032; transform: rotate(-8deg); }
.product-media:after { content: ""; position: absolute; bottom: 7%; width: 58%; height: 8%; border-radius: 50%; background: #000; filter: blur(12px); opacity: .8; }
.media-signature { position: absolute; top: 18px; left: 20px; color: #aeb4bc; font-size: 10px; letter-spacing: .16em; }
.product-body { padding: clamp(22px, 1.5vw, 36px); display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: clamp(24px, 1.65vw, 36px); font-weight: 750; letter-spacing: -.035em; margin: 0 0 6px; }
.price { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.price small { margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.product-meta { margin: 0 0 16px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.availability { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.availability-dot { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; background: var(--muted); }
.availability-text { font-weight: 650; }
.availability.is-available .availability-dot { background: var(--green); }
.availability.is-available .availability-text { color: var(--green); }
.availability.is-unavailable .availability-dot { background: var(--red); }
.availability.is-unavailable .availability-text { color: var(--red); }
.availability.is-unknown .availability-text { color: var(--muted); }
.product-action, .retry { min-height: 44px; padding: 12px 16px; border: 1px solid var(--accent); background: #160f09; color: var(--text); font-size: 14px; font-weight: 700; }
.product-action { width: 100%; margin-top: auto; box-shadow: inset 0 0 16px #ff65000d; }
.product-action:hover { border-color: var(--accent-hot); background: #2b170b; box-shadow: 0 0 22px #ff650038, inset 0 0 20px #ff650018; }
.information { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding-block: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.delivery > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; font-size: 14px; }
.delivery .muted { display: inline; font-size: 12px; }
.faq h2 { font-size: 24px; margin-bottom: 10px; }
.faq-list details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 48px; padding-block: 13px; font-size: 14px; }
summary:hover { color: var(--accent); }
details p { color: var(--muted); font-size: 13px; margin: 0 0 14px; max-width: 65ch; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 24px; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-note { text-align: right; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 10; padding: 12px; background: var(--accent); color: #111; }
.skip-link:focus { top: 12px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-media, .detail-body { min-width: 0; }
.detail-body h2 { font-size: clamp(32px, 3vw, 54px); margin-bottom: 16px; overflow-wrap: anywhere; }
.detail-body .price { font-size: 40px; }
.detail-description { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 18px 0; }
.detail-body .retry { width: 100%; }
@media(min-width:1800px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero-copy { padding-left: 24px; }
  .product-grid { gap: 32px; }
  .product-media { aspect-ratio: 16 / 10; }
  .product-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-content: start; }
  .product-body h3 { grid-column: 1; }
  .product-body .price { grid-column: 2; grid-row: 1 / 3; text-align: right; }
  .product-body .price small { display: block; margin: 4px 0 0; }
  .product-body .product-meta { grid-column: 1; }
  .product-body .availability, .product-body .retry, .product-body .product-action { grid-column: 1 / -1; }
  .product-body .product-action { align-self: end; }
}
@media(max-width:950px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; }
  nav { order: 3; width: 100%; justify-content: space-between; }
  .hero { gap: 18px; padding-block: 28px; }
  h1 { font-size: clamp(38px, 5.7vw, 54px); }
  .hero-art { min-height: 300px; }
  .hero-monogram { font-size: clamp(130px, 20vw, 190px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .information { gap: 32px; }
  footer { flex-wrap: wrap; gap: 16px 24px; }
}
@media(max-width:800px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { width: min(100%, 480px); margin-inline: auto; }
  .information { grid-template-columns: 1fr; gap: 24px; }
}
@media(max-width:600px) {
  .wrap { width: calc(100% - 32px); }
  .demo-strip { font-size: 10px; }
  .demo-strip span { margin-right: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-mark span { font-size: 18px; }
  .wordmark { font-size: 23px; }
  .site-header { padding-top: 10px; gap: 4px 12px; }
  .cart { font-size: 12px; }
  .cart small { font-size: 10px; }
  nav { gap: 16px; width: 100%; }
  nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 24px; }
  h1 { font-size: clamp(38px, 10vw, 54px); line-height: 1.03; }
  .hero-copy { padding-block: 0; }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; margin-bottom: 16px; }
  .hero-art { min-height: 200px; }
  .hero-monogram { font-size: 150px; }
  .hero-edition { top: 12px; left: 12px; font-size: 8px; }
  .hero-caption { bottom: 12px; right: 12px; font-size: 9px; }
  .section-heading { display: block; margin-bottom: 16px; }
  .section-heading > p { margin-top: 8px; }
  h2 { font-size: 27px; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-body { padding: 18px; }
  .product-card h3 { font-size: 23px; }
  .information { margin-top: 28px; padding-block: 28px; }
  .footer-links { gap: 16px; }
  .footer-note { width: 100%; text-align: left; }
  .detail-layout { gap: 20px; }
  .detail-body .price { font-size: 32px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .studio-object, .hero-monogram, .hero-art:before, .hero-art:after, .product-media:before { transform: none; }
}
