:root {
  --bg: #0b0b0a;
  --panel: #121211;
  --fg: #f2efe9;
  --muted: #78756e;
  --line: rgba(242, 239, 233, 0.08);
  --line-strong: rgba(242, 239, 233, 0.22);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 10, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-mark {
  text-decoration: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.header-actions {
  display: flex;
  gap: 24px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.15s;
}

.text-btn:hover {
  color: var(--fg);
}

/* Main */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.statement {
  padding: 64px 0 88px;
}

.statement h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Product Grid */
.catalog {
  padding-bottom: 120px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 80px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.prod-visual {
  aspect-ratio: 4 / 4.2;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 16px;
}

.prod-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.prod-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  padding-bottom: 12px;
}

.prod-title {
  font-weight: 400;
  color: var(--fg);
}

.prod-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.prod-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.size-pills {
  display: flex;
  gap: 2px;
}

.size-pill {
  min-width: 28px;
  height: 26px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.size-pill:hover, .size-pill.active {
  color: var(--fg);
}

.size-pill.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.add-link-btn {
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

/* Minimal Axioms List */
.axioms {
  padding: 80px 0 120px;
  border-top: 1px solid var(--line);
}

.axiom-line {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.axiom-line span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
}

/* Drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-backdrop, .policy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.2s;
}

.cart-drawer.open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  padding: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.close-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.sub-sm {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cart-upsell {
  margin: 0 28px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.cart-footer {
  padding: 28px;
  border-top: 1px solid var(--line);
}

.payment-method-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-opt {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.pay-opt input {
  display: none;
}

.pay-opt.active {
  border-color: var(--fg);
  color: var(--fg);
}

.tot-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tot-row.final-row {
  color: var(--fg);
  font-size: 12px;
  padding-top: 8px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.full-width {
  width: 100%;
}

.invoice-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.inv-head {
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.qr-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 10px;
  background: #f2efe9;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrap svg {
  width: 100%;
  height: 100%;
}

.qr-placeholder {
  margin: 6px 0;
  color: var(--muted);
  word-break: break-all;
}

.wallet-btn {
  display: inline-block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* Modal */
.pdp-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdp-modal .policy-backdrop {
  opacity: 1;
}

.pdp-card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  width: min(820px, 100%);
  padding: 40px;
}

.pdp-close {
  position: absolute;
  top: 20px;
  right: 24px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.pdp-main-img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.pdp-main-img-wrap img.mockup-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-main-img-wrap img.svg-art {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.pdp-thumb-row {
  display: flex;
  gap: 8px;
}

.pdp-thumb {
  flex: 1;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.pdp-thumb.active {
  border-color: var(--fg);
  color: var(--fg);
}

.pdp-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.pdp-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.pdp-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.fit-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}

.pack-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.pack-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
}

.pack-btn.active {
  border-color: var(--fg);
  color: var(--fg);
}

@media (max-width: 760px) {
  .product-grid, .pdp-grid {
    grid-template-columns: 1fr;
  }
}
