
:root{
  --paper:#f4e6c9;
  --ink:#1e1b16;
  --deep:#0f2a24;
  --deep2:#1e2f2a;
  --rust:#a24b2f;
  --gold:#d8b15a;
  --card:#ffffff;
  --border: rgba(30,27,22,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.18);
  --max: 1100px;
}

*{box-sizing:border-box}
body{ margin:0; font-family: Georgia, serif; background:var(--paper); color:var(--ink); }
.container{ max-width:var(--max); margin:0 auto; padding:0 18px; }

.header{ background:var(--deep); position:sticky; top:0; z-index:10; border-bottom:1px solid rgba(255,255,255,.08); }
.header-inner{ display:flex; align-items:center; justify-content:center; padding:14px 0; }
.nav{ display:flex; gap:18px; justify-content:center; text-align:center; flex-wrap:wrap; }
.nav a{ color:var(--paper); text-decoration:none; font-weight:800; letter-spacing:.3px; padding:10px 10px; border-radius:12px; }
.nav a:hover{ background:rgba(244,230,201,.08); }
.back{ color:var(--paper); text-decoration:none; font-weight:800; margin-right:auto; }
.header-inner .back + .nav{ margin-left:auto; }

.site{ min-height:70vh; }

.hero{
  background: radial-gradient(60% 60% at 50% 10%, rgba(216,177,90,.25), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, rgba(15,42,36,.96), rgba(30,47,42,.9));
  color:var(--paper);
  text-align:center;
  padding:48px 0 58px;
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute; inset:-60px;
  background-image:url("../assets/vintage-texture.png");
  background-size:cover;
  opacity:.12;
  mix-blend-mode:multiply;
  transform:rotate(-2deg);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:14px; }
.hero-logo{ width:min(360px, 88vw); height:auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.slider{ min-height:54px; display:flex; align-items:center; justify-content:center; }
.slide{ display:none; font-size:2.1rem; font-weight:900; letter-spacing:.5px; text-shadow:0 10px 28px rgba(0,0,0,.35); }
.slide.active{ display:block; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.hero-stats{ display:grid; grid-template-columns:repeat(3,minmax(90px,1fr)); gap:10px; width:min(520px, 92vw); margin-top:10px; }
.stat{ background:rgba(244,230,201,.08); border:1px solid rgba(244,230,201,.12); border-radius:16px; padding:12px 10px; }
.stat span{ font-size:1.35rem; font-weight:900; display:block; }
.stat small{ opacity:.85; }

.section{ padding:54px 0; }
.section.dark{ background:var(--deep2); color:var(--paper); }
.section-head{ display:flex; align-items:end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
h1,h2{ margin:0 0 12px; }
h1{ font-size:2.2rem; }
h2{ font-size:1.7rem; }

.card-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin-top:14px; }
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px 16px 14px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(216,177,90,.10), rgba(0,0,0,0) 40%);
  pointer-events:none;
}
.meta{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; position:relative; z-index:1; }
.badge{ font-size:.75rem; font-weight:900; padding:6px 10px; border-radius:999px; background:rgba(162,75,47,.12); border:1px solid rgba(162,75,47,.22); color:var(--ink); }
.badge.ok{ background:rgba(46,160,67,.12); border-color:rgba(46,160,67,.24); }
.title{ font-size:1.05rem; font-weight:900; margin:0 0 6px; position:relative; z-index:1; }
.small{ font-size:.92rem; opacity:.9; position:relative; z-index:1; }
.price{ font-size:1.15rem; font-weight:950; margin-top:10px; position:relative; z-index:1; }
.card-actions{ display:flex; gap:10px; margin-top:12px; position:relative; z-index:1; }

.btn{
  background:var(--rust);
  color:#fff;
  padding:11px 14px;
  border:none;
  border-radius:14px;
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{ filter:brightness(1.06); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn-ghost{
  background:rgba(244,230,201,.10);
  color:var(--paper);
  border:1px solid rgba(244,230,201,.18);
}
.section:not(.dark) .btn-ghost{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--border);
}

.link{ color:inherit; font-weight:900; text-decoration:none; opacity:.9; }
.link:hover{ opacity:1; text-decoration:underline; }

.tiles{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-top:16px; }
.tile{
  display:block;
  background:linear-gradient(180deg, rgba(216,177,90,.15), rgba(0,0,0,0)), rgba(244,230,201,.08);
  border:1px solid rgba(244,230,201,.18);
  border-radius:18px;
  padding:18px 16px;
  text-decoration:none;
}
.tile span{ font-size:1.1rem; font-weight:950; display:block; }
.tile small{ opacity:.9; }
.tile:hover{ transform:translateY(-1px); filter:brightness(1.06); }

.filters{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto auto;
  gap:10px;
  align-items:center;
  margin:14px 0 10px;
}
@media (max-width: 980px){
  .filters{ grid-template-columns: 1fr 1fr; }
  .check{ justify-content:flex-start; }
}
.input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
}
.check{ display:flex; gap:10px; align-items:center; justify-content:center; font-weight:900; }
.pill{
  background:rgba(162,75,47,.12);
  border:1px solid rgba(162,75,47,.22);
  padding:8px 12px;
  border-radius:999px;
  font-weight:950;
  display:inline-flex;
  align-items:center;
}
.inventory-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.inventory-meta{ display:flex; align-items:center; justify-content:space-between; margin:10px 0 0; }

.cart{ display:flex; flex-direction:column; gap:12px; margin-top:18px; }
.cart-item{ background:#fff; border:1px solid var(--border); border-radius:18px; padding:14px; box-shadow: var(--shadow); display:flex; justify-content:space-between; gap:14px; }
.cart-item .left{ flex:1; }
.cart-item .right{ display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.total{ display:flex; justify-content:space-between; align-items:center; padding:14px 0; font-size:1.05rem; }
.cart-summary{ margin-top:18px; border-top:1px solid rgba(30,27,22,.12); padding-top:14px; display:flex; flex-direction:column; gap:10px; }

.footer{ background:var(--deep); color:var(--paper); padding:20px 0; }
.footer-inner{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.fine{ font-size:.9rem; opacity:.9; }
.muted{ opacity:.85; }


/* ===== v3 layout overrides ===== */
.header-inner.header-center{ justify-content:center; }
.header-inner.header-center .nav{ margin:0 auto; }

.hero{ padding:34px 0 44px; }
.hero-logo{
  width: min(220px, 70vw);
  background: transparent !important;
  border-radius: 0;
}
.slider{ min-height:44px; }
.slide{ font-size:1.9rem; }

.section{ padding:42px 0; }
.tiles-tight{ margin-top:12px; }
.tiles-tight .tile{ padding:16px 14px; }

.card-grid{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card{ padding:18px 18px 16px; }
.title{ font-size:1.08rem; line-height:1.25; }
.small{ line-height:1.25; }
.card-actions{ gap:10px; flex-wrap:wrap; }
.card-actions .btn{ flex:1; min-width:120px; }

.panel{
  background:#fff;
  border:1px solid rgba(30,27,22,.18);
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.panel-actions{ display:flex; gap:10px; }


/* ===== v4 readability + logo transparency ===== */
.tile, .tile * { color: var(--paper) !important; }
.section.dark .tile{
  background: linear-gradient(180deg, rgba(216,177,90,.20), rgba(0,0,0,0)), rgba(244,230,201,.06);
  border: 1px solid rgba(244,230,201,.22);
}
.section.dark .tile:hover{ filter:brightness(1.10); }
.tile-strong{
  background: linear-gradient(180deg, rgba(216,177,90,.28), rgba(0,0,0,0)), rgba(162,75,47,.18) !important;
  border-color: rgba(216,177,90,.45) !important;
}
.tile-disabled{
  opacity:.55;
  pointer-events:none;
}
.subhead{
  margin-top:18px;
  font-weight:950;
  letter-spacing:.3px;
  opacity:.9;
}
.tiles-sport{ margin-top:10px; }
