/* ============================================================
   EMPORIUM APPAREL RESTRUCTURE (2026-11-30)
   One layout system for: apparel hub, apparel-mens, apparel-womens,
   chrome-series, inferno-series, the-shield.
   Layout only — product data, prices, buy/cart wiring untouched.
   Identity kept: machined duality seam (blue -> white-hot -> red),
   chrome light side, black-stone dark side, gold Shield accents.
   ============================================================ */
:root{
  --emp-gold:#f3c969; --emp-gold-hi:#fff3c4; --emp-ink:#f5efe6; --emp-dim:#c9bda6;
  --emp-blue:#38bdf8; --emp-blue-deep:#2563eb; --emp-lava:#ff5a1f;
  --emp-panel:#14100c; --emp-panel-2:#0b0906; --emp-line:rgba(243,201,105,.22);
  --emp-seam:linear-gradient(90deg,#0284c7 0%,#38bdf8 30%,#ffffff 50%,#f87171 70%,#ff3b0f 100%);
}

/* ---------- sticky mini header ---------- */
body .sub-nav{
  max-width:1200px; margin:.7rem auto 0; padding:.45rem .55rem;
  display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
  position:sticky; top:.55rem; z-index:80;
  background:linear-gradient(180deg,rgba(16,14,11,.92),rgba(8,7,6,.94));
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid var(--emp-line); border-radius:999px;
  box-shadow:0 12px 28px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
body .sub-nav::after{
  content:""; position:absolute; left:6%; right:6%; bottom:-1px; height:2px;
  background:var(--emp-seam); opacity:.85; border-radius:2px;
}
body .sub-back{
  min-height:40px; padding:.45rem 1rem; font-size:.86rem; border-radius:999px;
  color:var(--emp-ink); background:rgba(255,255,255,.05);
  border:1px solid rgba(238,241,244,.28); box-shadow:none;
  display:inline-flex; align-items:center; text-decoration:none; font-weight:700; letter-spacing:.04em;
}
body .sub-back:hover{border-color:var(--emp-gold); color:var(--emp-gold-hi)}
.emp-jump{display:flex; gap:.15rem; margin-left:auto; overflow-x:auto; scrollbar-width:none; max-width:100%}
.emp-jump::-webkit-scrollbar{display:none}
.emp-jump a{
  white-space:nowrap; min-height:40px; display:inline-flex; align-items:center;
  padding:.4rem .8rem; border-radius:999px; text-decoration:none;
  font:600 .8rem "Barlow",system-ui,sans-serif; letter-spacing:.09em; text-transform:uppercase; color:var(--emp-dim);
}
.emp-jump a:hover{color:#fff; background:rgba(255,255,255,.06)}
.emp-jump a.on{color:#1c1206; background:linear-gradient(90deg,#fdf6dd,#f3c969 55%,#ff8a3d); font-weight:700}
@media (max-width:640px){
  body .sub-nav{border-radius:18px; top:.35rem}
  .emp-jump{margin-left:0; width:100%; order:3}
}

/* ---------- page head ---------- */
.shop-head{max-width:1200px; margin:0 auto; padding:0 clamp(1rem,4vw,2rem)}
body .sub-title{
  margin:1.5rem auto .35rem; text-align:center;
  font-size:clamp(2.1rem,6vw,3.4rem); line-height:1.05;
}
body .sub-note{max-width:42rem; margin:0 auto; text-align:center; font-size:1.02rem; line-height:1.6; color:var(--emp-dim)}
.shop-head .sub-title img, .chrome-hero .sub-title img{max-width:min(560px,88vw); height:auto}

/* ---------- line identity chips / shield anchors ---------- */
.emp-story{display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; margin:1.05rem auto 0; padding:0 1rem}
.emp-story span, .emp-story a{
  display:inline-flex; align-items:center; gap:.45rem; min-height:36px;
  padding:.38rem .95rem; border-radius:999px; text-decoration:none;
  border:1px solid rgba(238,241,244,.25); background:rgba(255,255,255,.04);
  font:600 .78rem "Barlow",system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--emp-ink);
}
.emp-story a:hover{border-color:var(--emp-gold); color:var(--emp-gold-hi)}
.emp-story .dot{width:10px; height:10px; border-radius:50%; flex:0 0 auto}
.dot-black{background:#17171c; border:1px solid rgba(255,255,255,.5)}
.dot-white{background:#f4f4f4}
.dot-red{background:#d92323}
.dot-pink{background:#f6a8c1}
.dot-chrome{background:linear-gradient(180deg,#fdfdff,#8f9aa6 55%,#e8edf2)}
.dot-blue{background:#38bdf8}

/* ---------- filters (mens / womens) ---------- */
.emp-filters{display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; margin:1.25rem auto 0; padding:0 1rem; max-width:1200px}
.emp-chip{
  min-height:42px; padding:.5rem 1.05rem; border-radius:999px; cursor:pointer;
  border:1px solid rgba(238,241,244,.28); background:rgba(255,255,255,.04); color:var(--emp-dim);
  font:600 .82rem "Barlow",system-ui,sans-serif; letter-spacing:.09em; text-transform:uppercase;
  transition:filter .15s ease, background .15s ease, color .15s ease;
}
.emp-chip:hover{color:#fff; border-color:rgba(255,255,255,.55)}
.emp-chip.on{background:linear-gradient(90deg,#fdf6dd,#f3c969 55%,#ff8a3d); color:#1c1206; border-color:transparent}
.emp-chip .n{opacity:.65; font-weight:700; margin-left:.3rem}
.emp-count{text-align:center; color:var(--emp-dim); font-size:.85rem; margin:.7rem 0 0; letter-spacing:.06em}

/* ---------- product grid + cards ---------- */
body .grid{
  max-width:1200px; margin:1.7rem auto 0; padding:0 clamp(1rem,4vw,2rem);
  display:grid; grid-template-columns:repeat(auto-fill,minmax(262px,1fr)); gap:1.35rem;
}
body .grid .card{
  background:linear-gradient(180deg,#1a1409,#0b0906) !important;
  border:1px solid var(--emp-line) !important; border-radius:18px; overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body .grid .card:hover{
  transform:translateY(-4px); border-color:rgba(243,201,105,.55) !important;
  box-shadow:0 20px 38px rgba(0,0,0,.55), 0 0 0 1px rgba(243,201,105,.12);
}
body .grid .card[hidden]{display:none}
body .grid .card .shot{
  background:radial-gradient(120% 100% at 50% 0%, #251c11 0%, #0d0a07 72%) !important;
  padding:0 !important; display:block !important; position:relative;
}
body .grid .card .shot img{
  width:100% !important; height:auto !important; aspect-ratio:10/10.5;
  object-fit:cover !important; display:block; filter:none !important;
}
body .grid .card .body{
  background:linear-gradient(180deg,#171208,#0b0906) !important;
  padding:1rem 1.05rem 1.15rem; display:flex; flex-wrap:wrap; flex-direction:row;
  align-content:flex-start; gap:.45rem .55rem; flex:1;
}
body .grid .card .body > *{flex:0 0 100%}
body .grid .card h3{
  font-family:"Anton",sans-serif; font-weight:400; letter-spacing:.06em;
  font-size:1.05rem; line-height:1.25; color:var(--emp-gold-hi); margin:0;
}
body .grid .card .meta{font-size:.88rem; line-height:1.5; color:var(--emp-dim); margin:0}
body .grid .card .price{
  font-family:"Cinzel",serif; font-weight:900; font-size:1.34rem; color:var(--emp-gold);
  margin:.3rem 0 .35rem;
}
body .grid .card .price::after{content:" · SHIPPING INCLUDED"; font-size:.6rem; letter-spacing:.12em; color:#9fb4cc; font-family:"Barlow",sans-serif; font-weight:600}
body .grid .card a.buy-btn{
  flex:1 1 47%; margin-top:auto; min-height:48px; padding:.6rem .5rem;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; border:1px solid rgba(238,245,255,.6);
  font-family:"Anton",sans-serif; font-size:.98rem; letter-spacing:.11em; text-transform:uppercase;
  color:#fff; text-decoration:none; text-shadow:0 1px 5px rgba(0,0,0,.85);
  background:linear-gradient(90deg,#7dd3fc 0%,#2563eb 28%,#0b0f16 50%,#7a2408 74%,#ff5a1f 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(0,0,0,.5);
  transition:filter .15s ease, transform .15s ease;
}
body .grid .card a.buy-btn:hover{filter:brightness(1.14)}
body .grid .card a.buy-btn:active{transform:translateY(1px)}
body .grid .card .add-cart-btn{
  flex:1 1 47%; margin-top:auto; min-height:48px; padding:.6rem .5rem; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; border:1.5px solid #9aa7b4;
  background:linear-gradient(180deg,rgba(238,241,244,.12),rgba(238,241,244,.03));
  color:#eef1f4; font:700 .8rem "Barlow",system-ui,sans-serif; letter-spacing:.1em; text-transform:uppercase;
  transition:filter .15s ease, transform .15s ease;
}
body .grid .card .add-cart-btn:hover{filter:brightness(1.25)}
body .grid .card .add-cart-btn:active{transform:translateY(1px)}

/* size / color pickers inside cards (existing JS wiring, cosmetic only) */
body .card .sizes, body .card .bp-sizes{display:flex; flex-wrap:wrap; gap:.35rem; align-items:center}
body .card .sz, body .card .bp-sz, body .ed-prod .sz{
  min-height:36px; padding:.32rem .55rem; border-radius:8px; cursor:pointer;
  border:1px solid rgba(238,241,244,.32); background:rgba(255,255,255,.05); color:var(--emp-ink);
  font:600 .8rem "Barlow",system-ui,sans-serif;
}
body .card .sz.on, body .card .bp-sz.on, body .ed-prod .sz.on{background:#eef1f4; color:#10151c; border-color:#eef1f4}
body .card .swatches{display:flex; gap:.45rem; align-items:center}
body .card .sw{width:30px; height:30px; border-radius:50%; border:2px solid rgba(255,255,255,.35); background:var(--sw,#888); cursor:pointer; padding:0}
body .card .sw.on{border-color:var(--emp-gold); box-shadow:0 0 0 2px rgba(243,201,105,.45)}
body .card .sw-name{margin:0; font-size:.82rem; color:var(--emp-dim)}

/* ---------- inside-the-emporium rail ---------- */
.tour-rail{max-width:1200px; margin:2.8rem auto 0; padding:0 clamp(1rem,4vw,2rem)}
.tour-rail h2{
  font-family:"Cinzel",serif; font-weight:700; font-size:.95rem; letter-spacing:.34em;
  text-transform:uppercase; color:var(--emp-dim); text-align:center; margin:0 0 1rem;
}
.tour-track{display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; padding:.2rem .2rem 1rem; scrollbar-width:thin}
.tour-fig{flex:0 0 min(430px,84vw); scroll-snap-align:center; margin:0}
.tour-fig img{width:100%; height:250px; object-fit:cover; border-radius:16px; border:1px solid rgba(255,255,255,.16); display:block}

/* ---------- apparel hub tiles ---------- */
.tiles{max-width:1200px; margin:2rem auto 0; padding:0 clamp(1rem,4vw,2rem); display:grid; grid-template-columns:repeat(6,1fr); gap:1.1rem}
.tile{
  grid-column:span 2; position:relative; border-radius:20px; overflow:hidden; min-height:290px;
  display:flex; align-items:flex-end; text-decoration:none; background:#000;
  border:1px solid var(--emp-line);
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tile.wide{grid-column:span 3}
.tile.banner{grid-column:span 6; min-height:190px}
.tile:hover{transform:translateY(-4px); border-color:rgba(243,201,105,.6); box-shadow:0 20px 38px rgba(0,0,0,.55)}
.tile img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease}
.tile:hover img{transform:scale(1.045)}
.tile-txt{position:relative; z-index:2; width:100%; padding:2.8rem 1.25rem 1.15rem; background:linear-gradient(180deg,transparent, rgba(4,4,6,.9) 58%)}
.tile-txt h3{font-family:"Anton",sans-serif; font-weight:400; letter-spacing:.07em; font-size:1.55rem; color:#fff; margin:0}
.tile-txt p{color:#e8dfc9; font-size:.94rem; line-height:1.45; margin:.3rem 0 0; max-width:34rem}
.tile-go{display:inline-block; margin-top:.6rem; font:700 .78rem "Barlow",sans-serif; letter-spacing:.18em; text-transform:uppercase; color:var(--emp-gold)}
@media (max-width:860px){
  .tiles{grid-template-columns:1fr 1fr}
  .tile, .tile.wide{grid-column:span 1; min-height:230px}
  .tile.banner{grid-column:span 2; min-height:170px}
  .tile-txt h3{font-size:1.25rem}
}
@media (max-width:520px){
  .tiles{grid-template-columns:1fr}
  .tile, .tile.wide, .tile.banner{grid-column:span 1; min-height:210px}
}

/* ---------- line hero polish (chrome / inferno keep their own markup) ---------- */
.chrome-hero{max-width:1200px; margin:0 auto; padding:0 clamp(1rem,4vw,2rem); text-align:center}
.chrome-kicker{
  font-family:"Cinzel",serif; letter-spacing:.4em; text-transform:uppercase;
  font-size:.74rem; color:#9fc6ee; margin:1.4rem 0 0;
}
.hero-crest{display:block; width:min(150px,34vw); height:auto; margin:1.2rem auto 0}
.chrome-fig{max-width:1200px; margin:1rem auto 0; padding:0 clamp(1rem,4vw,2rem)}
.chrome-fig img{width:100%; height:auto; display:block; border-radius:16px; border:1px solid rgba(255,255,255,.16)}

/* ---------- shield sections: spacing consistency (cosmetic only) ---------- */
body .ed-head{
  font-family:"Cinzel",serif; font-weight:900; letter-spacing:.14em; text-align:center;
  font-size:clamp(1.5rem,4.5vw,2.3rem); color:var(--emp-gold-hi); margin:2.6rem auto .4rem; max-width:1200px; padding:0 1rem;
}
body .ed-note{text-align:center; color:var(--emp-dim); max-width:42rem; margin:0 auto; padding:0 1.2rem; line-height:1.6}
body section[aria-label="The Shield Service Line"],
body section[aria-label="Shield Editions"],
body section.shield-give, body section.msn{max-width:1200px; margin-left:auto; margin-right:auto; padding-left:clamp(1rem,4vw,2rem); padding-right:clamp(1rem,4vw,2rem)}

/* ---------- footer ---------- */
footer{max-width:1200px; margin:3rem auto 0; padding:1.4rem 1rem 2.2rem}

/* ---------- responsive card grid ---------- */
@media (max-width:640px){
  body .grid{grid-template-columns:repeat(2,1fr); gap:.8rem; margin-top:1.2rem}
  body .grid .card .body{padding:.75rem .8rem .9rem; gap:.35rem}
  body .grid .card h3{font-size:.92rem}
  body .grid .card .meta{font-size:.8rem}
  body .grid .card .price{font-size:1.12rem}
  body .grid .card a.buy-btn, body .grid .card .add-cart-btn{flex:1 1 100%; min-height:46px; font-size:.88rem}
  .tour-fig img{height:200px}
}
@media (prefers-reduced-motion: reduce){
  body .grid .card, .tile, .tile img{transition:none}
}

/* ---------- screenshot-review fixes ---------- */
/* back buttons keep readable ink inside the sticky bar on every page theme */
.sub-nav .bar .back-btn{color:var(--emp-ink) !important}
/* keep the jump nav clear of the fixed cart orb on wide screens */
@media(min-width:861px){ .sub-nav{padding-right:5.8rem !important} }
/* Chrome page legacy CSS forces light-card text colors with !important;
   restore the unified dark card system with light-realm blue accents */
body.emp-chrome .grid .card{background:linear-gradient(180deg,#1a130a,#0c0906) !important}
body.emp-chrome .grid .card .body{background:linear-gradient(180deg,#181209,#0c0906) !important}
body.emp-chrome .grid .card h3{color:#eef4fc !important}
body.emp-chrome .grid .card .meta{color:#b9c9dc !important}
body.emp-chrome .grid .card .price{color:#8fc3f7 !important}
body.emp-chrome .grid .card .price::after{color:#8fa8c4 !important}

/* ---------- structure pass: breadcrumbs + related-lines rail ---------- */
.emp-crumbs{max-width:1200px;margin:.9rem auto 0;padding:0 clamp(1rem,4vw,2rem);display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;color:var(--emp-muted,#b9ac93)}
.emp-crumbs a{color:inherit;text-decoration:none;opacity:.7;transition:opacity .2s ease}
.emp-crumbs a:hover{opacity:1;text-decoration:underline}
.emp-crumbs .sep{opacity:.4}
.emp-crumbs .on{color:var(--emp-gold-hi,#f3c969);font-weight:700}
.rel-rail{max-width:1200px;margin:3.2rem auto 0;padding:0 clamp(1rem,4vw,2rem)}
.rel-title{font-family:"Cinzel",serif;font-weight:900;letter-spacing:.06em;font-size:clamp(1.3rem,3vw,1.8rem);color:var(--emp-gold-hi,#f3c969);margin:0}
.rel-note{color:var(--emp-muted,#b9ac93);margin:.35rem 0 1.1rem;font-size:.92rem}
.rel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.rel-tile{display:block;border-radius:18px;overflow:hidden;border:1px solid rgba(243,201,105,.28);text-decoration:none;background:linear-gradient(180deg,#181209,#0c0906);transition:transform .25s ease,border-color .25s ease}
.rel-tile:hover{transform:translateY(-3px);border-color:rgba(243,201,105,.65)}
.rel-tile img{width:100%;height:170px;object-fit:cover;display:block}
.rel-body{display:block;padding:.85rem .95rem 1rem}
.rel-name{display:block;font-family:"Anton",sans-serif;letter-spacing:.07em;font-size:1rem;color:var(--emp-ink,#f2ead8)}
.rel-line{display:block;color:var(--emp-muted,#b9ac93);font-size:.83rem;line-height:1.45;margin-top:.25rem}
.rel-go{display:block;margin-top:.55rem;font-size:.74rem;font-weight:700;letter-spacing:.14em;color:var(--emp-gold-hi,#f3c969)}
@media(max-width:860px){ .rel-grid{grid-template-columns:repeat(2,1fr)} .rel-tile img{height:130px} }

/* desktop: tighten jump links so all five clear the cart orb */
@media(min-width:861px){
  .emp-jump a{padding:.42rem .6rem !important; font-size:.76rem !important; letter-spacing:.05em}
}
