/* ==========================================================================
   SHOP LAYER — catalogue-only styles. Relies on the tokens and components in
   style.css (which is an untouched copy of the main site's stylesheet).
   ========================================================================== */
[hidden]{ display:none !important; }
.no-js .js-only{ display:none !important; }
.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
a:focus-visible, button:focus-visible, input:focus-visible{ outline:1px solid var(--gold-bright); outline-offset:3px; }
.nojs{ padding:30px 0; color:var(--ivory-dim); }

/* ---------- hero ---------- */
/* The main-site hero background layer is positioned, the content is not, so the photo/tint paints OVER the
   heading. Lift the content above it (fixed here in the shop layer only; style.css stays a pristine copy). */
.page-hero > .wrap{ position:relative; z-index:2; }

/* ---------- compact hero for category pages ---------- */
.page-hero.compact{ padding:150px 0 46px; }
.page-hero.compact .page-hero-bg .tint{
  background:
    radial-gradient(ellipse 55% 90% at 12% 0%, var(--navy-glow), transparent 65%),
    radial-gradient(ellipse 45% 80% at 92% 100%, var(--crimson-glow), transparent 65%),
    linear-gradient(180deg, rgba(3,3,4,.35), var(--black) 96%);
}
.crumbs{ font-size:.76rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ivory-faint); margin-bottom:20px; }
.crumbs a{ transition:color .3s var(--ease); } .crumbs a:hover{ color:var(--ivory); }
.crumbs i{ font-style:normal; margin:0 12px; opacity:.5; }
.hero-facts{ display:flex; flex-wrap:wrap; margin-top:28px; font-size:.82rem; color:var(--ivory-faint); }
.hero-facts span + span{ margin-left:18px; padding-left:18px; border-left:1px solid var(--hairline); }
.hero-facts b{ font-weight:400; color:var(--ivory-dim); }

/* ---------- search field (hero + toolbar) ---------- */
.search{ position:relative; }
.search svg{ position:absolute; left:15px; top:50%; transform:translateY(-50%); width:16px; height:16px; stroke:var(--ivory-faint); fill:none; stroke-width:1.4; pointer-events:none; }
.search input{
  width:100%; background:var(--black); border:1px solid var(--panel-line); border-radius:10px;
  padding:13px 16px 13px 44px; color:var(--ivory); font:inherit; font-size:.92rem;
  transition:border-color .3s var(--ease), background .3s var(--ease);
}
.search input::placeholder{ color:var(--ivory-faint); }
.search input:focus{ outline:none; border-color:var(--gold); background:rgba(255,255,255,.02); }
.hero-search{ margin-top:36px; max-width:520px; }
.hero-search input{ padding:17px 18px 17px 48px; font-size:1rem; }
.hero-search svg{ left:18px; }

/* ---------- category tiles (home) ---------- */
.cat-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--hairline);
  border:1px solid var(--panel-line); border-radius:14px; overflow:hidden;
}
.cat-tile{ background:var(--black); display:flex; flex-direction:column; transition:background .4s var(--ease); }
.cat-tile:hover{ background:var(--panel); }
.cat-tile .art{
  aspect-ratio:16/10; display:grid; place-items:center; overflow:hidden;
  background:radial-gradient(ellipse 60% 70% at 50% 45%, var(--navy-glow), transparent 75%);
  border-bottom:1px solid var(--hairline);
}
.cat-tile .art img{ width:54%; height:auto; transition:transform .7s var(--ease); }
.cat-tile:hover .art img{ transform:scale(1.06); }
.cat-tile .txt{ padding:28px 32px 32px; display:flex; flex-direction:column; flex:1; gap:10px; }
.cat-tile h3{ font-size:1.5rem; font-weight:200; }
.cat-tile p{ font-size:.9rem; }
.cat-tile .foot{ margin-top:auto; padding-top:20px; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.cat-tile .count{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ivory-faint); }
.cat-tile:hover .link-arrow::after{ transform:translateX(6px); }
@media(max-width:1000px){ .cat-grid{ grid-template-columns:1fr 1fr; } .cat-grid > :last-child:nth-child(odd){ grid-column:span 2; } }
@media(max-width:620px){ .cat-grid{ grid-template-columns:1fr; } .cat-grid > :last-child:nth-child(odd){ grid-column:auto; } .cat-tile .txt{ padding:24px 24px 28px; } }

/* ---------- sticky filter toolbar (category pages) ---------- */
.toolbar{
  position:sticky; top:67px; z-index:400;
  background:rgba(8,9,11,.84); backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-top:1px solid var(--panel-line); border-bottom:1px solid var(--panel-line);
}
.toolbar-in{ display:flex; align-items:center; gap:22px; padding-top:14px; padding-bottom:14px; }
.toolbar .search{ flex:0 0 260px; }
.chips{ display:flex; gap:8px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; padding:2px 0; }
.chips::-webkit-scrollbar{ display:none; }
.chip{
  flex:none; padding:9px 13px; background:transparent; border:1px solid var(--hairline); border-radius:999px;
  color:var(--ivory-dim); font:inherit; font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; cursor:pointer;
  transition:border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.chip:hover{ border-color:var(--ivory-faint); color:var(--ivory); }
.chip[aria-pressed="true"]{ border-color:var(--gold); color:var(--gold-bright); background:rgba(200,164,92,.08); }
.chip .n{ opacity:.55; margin-left:6px; }
@media(max-width:800px){
  .toolbar{ position:static; }
  .toolbar-in{ flex-direction:column; align-items:stretch; gap:12px; }
  .toolbar .search{ flex:none; }
}

/* ---------- product groups + cards ---------- */
.list-section{ position:relative; z-index:2; padding:44px 0 60px; }
.group + .group{ margin-top:72px; }
.group-head{ display:flex; align-items:baseline; gap:18px; margin-bottom:26px; padding-bottom:16px; border-bottom:1px solid var(--hairline); }
.group-head h3{ font-size:1.6rem; font-weight:200; }
.group-head .n{ font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ivory-faint); }
.list-status{ margin-bottom:30px; font-size:.84rem; color:var(--ivory-faint); }
.list-status:empty{ display:none; }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(224px,1fr)); gap:16px; }

/* Card: the model name is the hero, so no two cards look alike even before real photos exist. */
.card{
  position:relative; display:flex; flex-direction:column; overflow:hidden; min-height:208px;
  background:radial-gradient(ellipse 90% 75% at 85% 105%, var(--navy-glow), transparent 70%), rgba(255,255,255,.02);
  border:1px solid var(--panel-line); border-radius:14px;
  transition:border-color .4s var(--ease), background-color .4s var(--ease);
}
.card:hover{ border-color:rgba(200,164,92,.42); }
.card .wm{ position:absolute; right:-3%; bottom:46px; width:44%; height:auto; opacity:.12; pointer-events:none; transition:opacity .6s var(--ease), transform .8s var(--ease); }
.card:hover .wm{ opacity:.24; transform:scale(1.06) translateX(-2%); }
.card-body{ position:relative; display:flex; flex-direction:column; gap:10px; flex:1; padding:20px 20px 16px; }
.card-top{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px 10px; min-height:22px; }
.kind{ font-size:.64rem; letter-spacing:.17em; text-transform:uppercase; color:var(--ivory-faint); }
.tag{ padding:4px 10px; border-radius:999px; border:1px solid rgba(200,164,92,.45); font-size:.6rem; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-bright); white-space:nowrap; }
.name{ font-family:var(--f-display); font-weight:200; color:var(--ivory); line-height:1.12; letter-spacing:.005em; overflow-wrap:anywhere; margin:6px 0 2px; }
.name.s-l{ font-size:2.05rem; } .name.s-m{ font-size:1.55rem; } .name.s-s{ font-size:1.25rem; line-height:1.25; } .name.s-xs{ font-size:1.05rem; line-height:1.3; }
.meta{ display:flex; flex-wrap:wrap; font-size:.8rem; color:var(--ivory-faint); }
.meta span + span{ margin-left:10px; padding-left:10px; border-left:1px solid var(--hairline); }
.status{
  margin-top:auto; padding-top:14px; border-top:1px solid var(--hairline);
  display:flex; align-items:center; gap:9px; font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ivory-dim);
}
.status .dot{ width:7px; height:7px; border-radius:50%; background:var(--gold-bright); box-shadow:0 0 10px 1px rgba(224,192,132,.65); }
.status.out .dot{ background:transparent; box-shadow:none; border:1px solid var(--ivory-faint); }
.card.is-out{ opacity:.62; }
.card.has-photo{ min-height:0; }
.card .photo{ aspect-ratio:4/3; overflow:hidden; background:var(--panel); border-bottom:1px solid var(--hairline); }
.card .photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .7s var(--ease); }
.card:hover .photo img{ transform:scale(1.04); }
.card.has-photo .name{ font-size:1.3rem; }
.card.is-out .photo img{ filter:grayscale(1); }
@media(max-width:560px){
  .grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .card{ min-height:176px; }
  .card-body{ padding:16px 14px 13px; }
  .name.s-l{ font-size:1.4rem; } .name.s-m{ font-size:1.15rem; } .name.s-s{ font-size:1rem; } .name.s-xs{ font-size:.9rem; }
  .kind{ font-size:.58rem; letter-spacing:.13em; }
  .tag{ padding:3px 8px; font-size:.55rem; }
}

/* ---------- home search results (compact rows that link into the category) ---------- */
.results{ border:1px solid var(--panel-line); border-radius:12px; overflow:hidden; }
.result{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 22px; background:var(--black); border-bottom:1px solid var(--hairline); transition:background .3s var(--ease); }
.result:last-child{ border-bottom:0; }
.result:hover{ background:var(--panel); }
.result .r-name{ color:var(--ivory); font-size:1rem; }
.result .r-meta{ color:var(--ivory-faint); font-size:.82rem; margin-top:3px; }
.result .r-stock{ flex:none; display:flex; align-items:center; gap:9px; font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ivory-dim); }
.result .r-stock i{ width:7px; height:7px; border-radius:50%; background:var(--gold-bright); box-shadow:0 0 10px 1px rgba(224,192,132,.65); }
.result .r-stock.out i{ background:transparent; box-shadow:none; border:1px solid var(--ivory-faint); }
@media(max-width:560px){ .result{ padding:14px 16px; } .result .r-stock span{ display:none; } }

.empty{ padding:70px 0; max-width:520px; }
.empty h3{ font-size:1.6rem; font-weight:200; margin-bottom:14px; }
.empty a{ color:var(--gold-bright); border-bottom:1px solid rgba(224,192,132,.4); }

.more-links{ display:flex; flex-wrap:wrap; gap:10px; }
.more-links a{
  padding:11px 20px; border:1px solid var(--hairline); border-radius:999px; font-size:.74rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ivory-dim);
  transition:border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.more-links a:hover{ border-color:var(--gold); color:var(--gold-bright); background:rgba(200,164,92,.06); }
.more-links a .n{ opacity:.5; margin-left:6px; }

/* ---------- availability disclaimer (last element on every page) ---------- */
.stock-notice{
  position:relative; z-index:2; text-align:center;
  border-top:1px solid rgba(200,164,92,.4);
  background:linear-gradient(180deg, rgba(200,164,92,.13), rgba(200,164,92,.05));
  padding:28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.stock-notice p{ max-width:880px; margin:0 auto; padding:0 24px; color:var(--ivory); font-size:1.02rem; line-height:1.75; font-weight:400; }
.stock-notice a{ color:var(--gold-bright); white-space:nowrap; border-bottom:1px solid rgba(224,192,132,.45); transition:border-color .3s var(--ease); }
.stock-notice a:hover{ border-color:var(--gold-bright); }
@media(max-width:560px){ .stock-notice p{ font-size:.96rem; } }
