/* BLAME — dark, premium storefront layer */
:root {
  color-scheme: dark;
  --blame-orange: #ff6a1a;
  --blame-orange-bright: #ff7a2f;
  --blame-ink: #050505;
  --blame-panel: #101010;
  --blame-muted: #929292;
  --blame-line: rgba(255,255,255,.09);
}

html { scroll-behavior: smooth; }
body {
  background: var(--blame-ink);
  color: #f5f5f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
::selection { background: rgba(255,106,26,.35); color: white; }

/* Full-screen branded loader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #050505;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 76px;
  height: 76px;
  color: var(--blame-orange);
  filter: drop-shadow(0 0 14px rgba(255,106,26,.55));
  animation: loader-pulse 1.5s cubic-bezier(.45,0,.55,1) both;
}
.loader-mark svg { display: block; width: 100%; height: 100%; }
@keyframes loader-pulse {
  0% { transform: scale(.8); filter: drop-shadow(0 0 3px rgba(255,106,26,.2)); }
  55% { transform: scale(1.1); filter: drop-shadow(0 0 23px rgba(255,106,26,.82)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255,106,26,.5)); }
}

.blame-logo { color: var(--blame-orange); text-shadow: 0 0 18px rgba(255,106,26,.38); }
.glass {
  background: rgba(15,15,15,.72);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glow-orange { box-shadow: 0 0 24px rgba(255,106,26,.18); }
.btn-glow { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(255,106,26,.38); }
.catalog-cta:hover { animation: cta-pulse 1.1s ease-in-out infinite; }
@keyframes cta-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,106,26,.25); }
  50% { box-shadow: 0 0 0 9px rgba(255,106,26,0); }
}

.product-card {
  background: linear-gradient(145deg, rgba(20,20,20,.96), rgba(10,10,10,.96));
  border: 1px solid rgba(255,255,255,.075);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,106,26,.62);
  box-shadow: 0 14px 42px rgba(0,0,0,.4), 0 0 24px rgba(255,106,26,.08);
}
.product-image { transition: transform .55s cubic-bezier(.2,.75,.25,1); }
.product-card:hover .product-image { transform: scale(1.045); }

/* Added by the IntersectionObserver in main.js */
.animate-fade-in-up { animation: fade-in-up .72s cubic-bezier(.2,.7,.25,1) both; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translate3d(0,22px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

/* Slim orange scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--blame-orange) #111; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #a84412; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blame-orange); }

input, select, textarea { color-scheme: dark; }
:focus-visible { outline: 2px solid var(--blame-orange); outline-offset: 3px; }

/* Age confirmation overlay (a UI prompt, not legal age verification). */
.age-gate-open { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.age-card { width: min(100%, 490px); padding: clamp(24px, 6vw, 42px); border: 1px solid rgba(255,106,26,.28); background: radial-gradient(ellipse at 50% 0%, rgba(255,106,26,.12), transparent 55%), #0b0b0b; box-shadow: 0 25px 100px rgba(0,0,0,.7), 0 0 50px rgba(255,106,26,.08); text-align: center; }
.age-emblem { display: inline-flex; align-items: flex-start; color: var(--blame-orange); font-size: 58px; font-weight: 800; letter-spacing: -.09em; line-height: 1; text-shadow: 0 0 28px rgba(255,106,26,.3); }
.age-emblem span { margin: 3px 0 0 3px; font-size: 18px; letter-spacing: 0; }
.age-eyebrow { margin-top: 22px; color: var(--blame-orange); font-size: 10px; letter-spacing: .28em; }
.age-card h2 { margin-top: 12px; font-size: clamp(22px, 5vw, 30px); font-weight: 600; }
.age-copy { margin-top: 14px; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.8; }
.age-actions { display: grid; gap: 10px; margin-top: 26px; }
.age-actions button, .age-actions a { display: block; padding: 14px 16px; border: 1px solid rgba(255,106,26,.5); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.age-actions button { background: var(--blame-orange); color: #080808; cursor: pointer; }
.age-actions button:hover { background: #ff8745; box-shadow: 0 0 25px rgba(255,106,26,.25); }
.age-actions a { color: rgba(255,255,255,.5); }
.age-actions a:hover { border-color: rgba(255,255,255,.4); color: white; }
.age-footnote { margin-top: 16px; color: rgba(255,255,255,.28); font-size: 10px; }

/* Cart page */
.cart-row { display: grid; grid-template-columns: 72px minmax(100px,1fr) auto auto auto; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 82px; object-fit: cover; background: #171717; }
.cart-name { font-size: 14px; font-weight: 600; }
.cart-each { margin-top: 6px; color: var(--blame-muted); font-size: 11px; }
.cart-quantity { display: flex; align-items: center; gap: 12px; }
.cart-quantity button { width: 30px; height: 30px; border: 1px solid var(--blame-line); color: white; cursor: pointer; transition: .2s ease; }
.cart-quantity button:hover { border-color: var(--blame-orange); color: var(--blame-orange); }
.cart-quantity span { min-width: 16px; text-align: center; font-size: 12px; }
.cart-line-total { min-width: 95px; text-align: right; font-size: 13px; }
.cart-remove { color: #999; font-size: 11px; cursor: pointer; }
.cart-remove:hover { color: #ff7777; }
@media (max-width: 620px) {
  .cart-row { grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; padding: 14px 12px; }
  .cart-thumb { width: 56px; height: 66px; }
  .cart-details { grid-column: 2 / 4; }
  .cart-quantity { grid-column: 1 / 2; gap: 6px; }
  .cart-quantity button { width: 26px; height: 26px; }
  .cart-line-total { grid-column: 2 / 3; text-align: left; }
  .cart-remove { grid-column: 3 / 4; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
