/* XUP Tools — site styles */
:root {
  --bg: #0c0c0c;
  --bg-2: #141414;
  --panel: #191919;
  --line: #2a2a2a;
  --text: #f3f1ee;
  --muted: #a3a09b;
  --accent: #ff6a13;
  --accent-ink: #120700;
  --ok: #4ade80;
  --danger: #ff8a7a;
  --radius: 4px;
  --wrap: 1180px;
  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8.5vw, 104px); line-height: .92; letter-spacing: .01em; margin: 0 0 20px; }
.display span { color: var(--accent); }
.display.small { font-size: clamp(44px, 6vw, 72px); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1; letter-spacing: .01em; margin: 0 0 16px; }
.h3 { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 32px 0 12px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #d6d3ce; max-width: 38em; margin: 0 0 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--radius); border: 1.5px solid transparent; font: 700 15px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff8a45; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: #4a4a4a; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12,12,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 28px; letter-spacing: .08em; line-height: 1; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; fill: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--text); }
.basket-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.basket-link svg { width: 20px; height: 20px; }
.basket-count { background: var(--accent); color: var(--accent-ink); border-radius: 99px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .basket-link { margin-left: auto; }
  .basket-link span { display: none; }
  .brand { font-size: 24px; }
}

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,.035) 0) 0 0 / 100% 64px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255,255,255,.035) 0) 0 0 / 64px 100%,
    var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 32px; padding-top: clamp(48px, 9vw, 110px); padding-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: grid; place-items: center; }
.hero-mark { width: min(100%, 380px); aspect-ratio: 1; fill: transparent; stroke: var(--accent); stroke-width: 28; opacity: .9; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
.trust { list-style: none; margin: 32px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.trust li { padding: 16px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.trust li:first-child { border-left: 0; }
.trust strong { font-size: 15px; letter-spacing: .04em; }
.trust span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-shop { margin-top: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.cat-title { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #555; transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-img { aspect-ratio: 1; background: #202020; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; margin: 0 0 6px; }
.card-tag { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 0 14px; }
.card-price { margin: auto 0 0; font-size: 22px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.card-price span { font-size: 13px; font-weight: 500; color: var(--muted); }

/* About / FAQ */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.about-copy p { margin: 0 0 16px; color: #d6d3ce; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 8px; } }
.faq { max-width: 860px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--accent); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list p { margin: 0 0 18px; color: var(--muted); }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding: 20px 0 8px; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 32px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery-main { background: #202020; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius); background: #202020; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.thumb.is-active { border-color: var(--accent); }
.thumb.is-active img, .thumb:hover img { opacity: 1; }
.buybox { align-self: start; position: sticky; top: 90px; }
@media (max-width: 860px) { .buybox { position: static; } }
.product-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: .95; margin: 0 0 12px; letter-spacing: .01em; }
.product-tag { font-size: 19px; color: #d6d3ce; margin: 0 0 16px; }
.product-price { font-size: 36px; font-weight: 700; margin: 0 0 20px; }
.product-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.buy-form { display: grid; gap: 14px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field select, .field input { font: 500 17px var(--body); color: var(--text); background: var(--bg); border: 1px solid #3a3a3a; border-radius: var(--radius); min-height: 48px; padding: 0 12px; width: 100%; }
.qty-field input { max-width: 120px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .buy-actions { grid-template-columns: 1fr; } }
.added-msg { margin: 0; color: var(--ok); font-weight: 600; }
.mini-trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.mini-trust li::before, .ticks li::before { content: ''; display: inline-block; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); margin-right: 12px; }
.product-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 64px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 0; } }
.detail-main p { color: #d6d3ce; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; text-indent: -26px; color: #d6d3ce; }
.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; padding-right: 12px; }
.plain { padding-left: 18px; color: #d6d3ce; }

/* Checkout */
.checkout { padding: 40px 20px 80px; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); background: #202020; }
.line-name { font-weight: 700; margin: 0; }
.line-name a { text-decoration: none; }
.line-meta { color: var(--muted); font-size: 15px; margin: 2px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #3a3a3a; border-radius: var(--radius); }
.qty button { width: 40px; height: 40px; background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; margin-left: 12px; }
.line-total { font-weight: 700; font-size: 18px; }
@media (max-width: 520px) {
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line-total { grid-column: 2; }
}
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.summary .h3 { margin-top: 0; }
.totals { margin: 0 0 16px; }
.totals div { display: flex; justify-content: space-between; padding: 8px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 22px; }
.totals .grand dt { color: var(--text); font-weight: 700; }
.paypal-slot { background: #fff; border-radius: var(--radius); padding: 14px 12px 4px; margin-top: 12px; min-height: 60px; }
.checkout-msg { margin: 12px 0 0; color: var(--danger); font-weight: 600; }
.checkout-msg.is-busy { color: var(--muted); }
.empty { padding: 40px 0; }
.thanks { padding: 80px 20px 120px; max-width: 820px; }

/* Prose pages */
.prose { max-width: 780px; padding-top: 48px; padding-bottom: 96px; }
.prose h2 { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 36px 0 10px; }
.prose p { color: #d6d3ce; }
.contact-big { font-family: var(--display); font-size: clamp(30px, 6vw, 48px); margin: 20px 0; word-break: break-word; }
.contact-big a { color: var(--accent); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #080808; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid .muted { font-size: 15px; max-width: 30em; }
.footer-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-base { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 13px; color: #7d7a75; }
.footer-base p { margin: 0 0 6px; }

/* Small phones: two-up product grid */
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } .card-body { padding: 12px; } .card-title { font-size: 24px; } .card-tag, .card .eyebrow { display: none; } .card-price { font-size: 18px; flex-direction: column; gap: 0; } }
