
:root{
  --bg:#f5f3ee;
  --surface:#ffffff;
  --surface-2:#ece9e2;
  --ink:#181818;
  --muted:#68645d;
  --line:#d9d4ca;
  --dark:#171717;
  --dark-2:#252525;
  --accent:#c4372f;
  --accent-dark:#9f2924;
  --good:#176b3a;
  --shadow:0 12px 34px rgba(0,0,0,.08);
  --radius:18px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
}
a{color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
img{max-width:100%}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  min-height:78px;
  padding:12px clamp(18px,4vw,64px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  color:white;
  background:rgba(23,23,23,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand-mark{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:2px solid white;
  border-radius:12px;
  font-weight:900;
  letter-spacing:-1px;
}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}
.brand-copy strong{font-size:1.02rem}
.brand-copy small{margin-top:5px;color:#c8c8c8;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}

.site-nav{display:flex;align-items:center;gap:6px}
.site-nav a{
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  color:#eee;
  font-weight:650;
}
.site-nav a:hover,.site-nav a.active{background:#333;color:#fff}
.mobile-nav-button{
  display:none;
  border:0;
  border-radius:9px;
  padding:8px 11px;
  color:white;
  background:#313131;
  font-size:1.35rem;
}

main{min-height:65vh}

.page-shell{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:46px 0 74px;
}
.page-loading{
  min-height:56vh;
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  color:var(--muted);
}
.spinner{
  width:34px;height:34px;border-radius:50%;
  border:4px solid #ddd;border-top-color:var(--accent);
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.hero{
  color:white;
  background:
    radial-gradient(circle at 82% 25%,rgba(196,55,47,.28),transparent 29%),
    linear-gradient(135deg,#171717 0%,#242424 64%,#151515 100%);
  overflow:hidden;
}
.hero-inner{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:86px 0 78px;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
  gap:58px;
  align-items:center;
}
.eyebrow{
  display:inline-flex;
  margin-bottom:16px;
  color:#bdbdbd;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.hero h1{
  max-width:760px;
  margin:0;
  font-size:clamp(2.6rem,6vw,5.4rem);
  line-height:.94;
  letter-spacing:-.055em;
}
.hero h1 span{color:#e05a51}
.hero p{
  max-width:650px;
  margin:26px 0 30px;
  color:#d4d4d4;
  font-size:1.08rem;
  line-height:1.7;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:11px;
  text-decoration:none;
  font-weight:800;
}
.btn-primary{color:white;background:var(--accent)}
.btn-primary:hover{background:var(--accent-dark)}
.btn-secondary{color:white;border-color:#555;background:#292929}
.btn-secondary:hover{background:#343434}
.btn-light{color:var(--ink);background:white;border-color:#ddd}

.hero-card{
  position:relative;
  padding:26px;
  border-radius:22px;
  background:linear-gradient(145deg,#2b2b2b,#1c1c1c);
  border:1px solid #3b3b3b;
  box-shadow:0 28px 70px rgba(0,0,0,.34);
}
.hero-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hero-stat{
  padding:20px 16px;
  min-height:114px;
  border-radius:14px;
  background:#222;
  border:1px solid #373737;
}
.hero-stat strong{display:block;font-size:1.65rem}
.hero-stat span{display:block;margin-top:8px;color:#aaa;font-size:.82rem;line-height:1.35}
.hero-card-note{margin:16px 2px 0;color:#aaa;font-size:.82rem;line-height:1.5}

.section{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:68px 0;
}
.section.compact{padding-top:44px;padding-bottom:44px}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:26px;
}
.section-heading h2,.page-title h1{
  margin:0;
  font-size:clamp(1.8rem,3.5vw,2.8rem);
  letter-spacing:-.035em;
}
.section-heading p,.page-title p{
  max-width:650px;
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.65;
}
.text-link{font-weight:800;text-decoration:none}
.text-link:hover{text-decoration:underline}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}
.category-card{
  min-height:184px;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:end;
  border-radius:var(--radius);
  text-decoration:none;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 4px 18px rgba(0,0,0,.035);
  transition:transform .18s ease,box-shadow .18s ease;
}
.category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.category-icon{font-size:2rem;margin-bottom:auto}
.category-card strong{font-size:1.2rem}
.category-card span{margin-top:6px;color:var(--muted);font-size:.9rem}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.product-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 4px 18px rgba(0,0,0,.035);
}
.product-image-link{
  display:block;
  aspect-ratio:1/1;
  background:linear-gradient(145deg,#f6f5f2,#e5e1d8);
  overflow:hidden;
}
.product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
  transition:transform .2s ease;
}
.product-card:hover .product-image{transform:scale(1.025)}
.product-placeholder{
  width:100%;height:100%;
  display:grid;place-items:center;
  color:#9a958c;font-weight:850;letter-spacing:.08em
}
.product-body{
  flex:1;
  padding:16px;
  display:flex;
  flex-direction:column;
}
.product-kicker{
  color:var(--muted);
  font-size:.73rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.product-title{
  margin:7px 0 7px;
  font-size:1rem;
  line-height:1.35;
}
.product-title a{text-decoration:none}
.product-title a:hover{text-decoration:underline}
.product-meta{
  min-height:38px;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.45;
}
.product-bottom{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}
.price{font-size:1.15rem;font-weight:900}
.stock{
  color:var(--good);
  font-size:.78rem;
  font-weight:800;
}
.stock.out{color:#8b3631}

.notice{
  padding:15px 17px;
  border:1px solid #dcc9aa;
  border-radius:12px;
  color:#674d1f;
  background:#fff8e9;
  line-height:1.55;
}

.shop-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:28px;
}
.filters{
  position:sticky;
  top:100px;
  align-self:start;
  padding:20px;
  border-radius:16px;
  background:var(--surface);
  border:1px solid var(--line);
}
.filter-group{margin-bottom:18px}
.filter-group:last-child{margin-bottom:0}
.filter-label{
  display:block;
  margin-bottom:8px;
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.filter-input,.filter-select{
  width:100%;
  min-height:44px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--ink);
  background:white;
}
.filter-input:focus,.filter-select:focus{outline:2px solid rgba(196,55,47,.2);border-color:var(--accent)}
.shop-topbar{
  margin-bottom:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.results-count{color:var(--muted);font-size:.9rem}
.clear-button{
  border:0;
  padding:8px 10px;
  background:transparent;
  color:var(--accent);
  font-weight:800;
}
.empty-state,.error-state{
  padding:42px 24px;
  text-align:center;
  border:1px dashed var(--line);
  border-radius:16px;
  background:var(--surface);
}
.error-state{color:#7a2b26;border-color:#e1bbb8;background:#fff4f3}

.page-title{margin-bottom:30px}

.product-detail{
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);
  gap:46px;
  align-items:start;
}
.detail-image-box{
  min-height:420px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
}
.detail-image-box img{
  width:100%;
  max-height:580px;
  object-fit:contain;
  padding:22px;
}
.detail-info h1{
  margin:8px 0 12px;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.detail-platform{
  color:var(--muted);
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.detail-price{
  margin:24px 0 8px;
  font-size:2rem;
  font-weight:900;
}
.detail-stock{font-weight:800;color:var(--good)}
.detail-stock.out{color:#8b3631}
.detail-specs{
  margin:28px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
.detail-spec{
  padding:15px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.detail-spec span{display:block;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800}
.detail-spec strong{display:block;margin-top:5px}
.checkout-placeholder{
  margin-top:22px;
  padding:18px;
  border-radius:14px;
  color:#555;
  background:var(--surface-2);
  border:1px solid var(--line);
  line-height:1.5;
}

.content-card{
  padding:28px;
  border-radius:18px;
  background:var(--surface);
  border:1px solid var(--line);
}
.content-card h2{margin-top:0}
.content-card p,.content-card li{color:#555;line-height:1.7}
.two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.site-footer{
  padding:42px clamp(18px,4vw,64px) 28px;
  color:#d0d0d0;
  background:var(--dark);
  border-top:1px solid #2d2d2d;
}
.site-footer p{max-width:520px;color:#929292}
.footer-links{display:flex;flex-wrap:wrap;gap:10px 22px;margin:25px 0}
.footer-links a{color:#eee;text-decoration:none;font-weight:700}
.footer-links a:hover{text-decoration:underline}
.footer-bottom{
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#777;
  border-top:1px solid #2d2d2d;
  font-size:.8rem;
}

@media (max-width:980px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-grid{grid-template-columns:1fr 1fr}
  .hero-inner{grid-template-columns:1fr;gap:36px}
  .hero-card{max-width:560px}
  .shop-layout{grid-template-columns:1fr}
  .filters{position:static;display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .filter-group{margin:0}
}
@media (max-width:720px){
  .site-header{min-height:68px}
  .brand-mark{width:42px;height:42px}
  .brand-copy small{display:none}
  .mobile-nav-button{display:block}
  .site-nav{
    display:none;
    position:absolute;
    left:18px;right:18px;top:68px;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    border-radius:12px;
    background:#242424;
    border:1px solid #3a3a3a;
    box-shadow:var(--shadow);
  }
  .site-nav.open{display:flex}
  .hero-inner{padding:62px 0}
  .hero h1{font-size:clamp(2.55rem,13vw,4.2rem)}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-heading{align-items:start;flex-direction:column}
  .product-detail{grid-template-columns:1fr}
  .detail-image-box{min-height:320px}
  .two-column{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
}
@media (max-width:490px){
  .page-shell,.section,.hero-inner{width:min(100% - 24px,1180px)}
  .site-header{padding-left:12px;padding-right:12px}
  .brand-copy strong{font-size:.92rem}
  .category-grid{grid-template-columns:1fr 1fr}
  .category-card{min-height:145px;padding:18px}
  .product-grid{gap:10px}
  .product-body{padding:12px}
  .product-title{font-size:.92rem}
  .product-meta{font-size:.76rem}
  .product-bottom{display:block}
  .stock{display:block;margin-top:5px}
  .filters{grid-template-columns:1fr}
}
