/* ═══════════════════════════════════════════════════════
   SENTINEL FORTUNE LLC — DIGITAL SHOP
   Shares the "palace noir" palette and type system of the
   institutional site (index.html) so the Shop reads as part
   of the same site, not a bolted-on subsystem. Standalone
   file — does not modify, import, or depend on the root
   styles.css (unused legacy file) or index.html's inline CSS.
   ═══════════════════════════════════════════════════════ */

:root{
  --ink:#04060f;
  --deep:#060a18;
  --layer:#0a1128;
  --card:#0d1530;
  --gold:#c8a84b;
  --gold2:#e8c86a;
  --gold3:#f5d980;
  --gold-dim:rgba(200,168,75,.12);
  --gold-line:rgba(200,168,75,.25);
  --white:#ede8e0;
  --muted:#7a7570;
  --muted2:#565248;
  --danger:#e0736a;
  --ok:#7ac98a;
  --dim:rgba(237,232,224,.06);
  --ff1:"Cormorant Garamond",Georgia,serif;
  --ff2:"Cinzel",Georgia,serif;
  --ff3:"Jost",system-ui,sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --radius:8px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{
  background:var(--ink);
  color:var(--white);
  font-family:var(--ff3);
  font-weight:300;
  line-height:1.65;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{cursor:pointer;font-family:var(--ff3)}
ul{list-style:none}

.wrap{max-width:1080px;margin:0 auto;padding:0 24px;width:100%}
main{flex:1}

/* ══ HEADER ══ */
.shop-hdr{position:sticky;top:0;z-index:100;background:rgba(4,6,15,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--gold-line)}
.shop-hdr-inner{display:flex;align-items:center;gap:20px;height:64px;max-width:1080px;margin:0 auto;padding:0 24px}
.shop-logo{font-family:var(--ff2);font-size:13px;letter-spacing:.12em;color:var(--gold);white-space:nowrap}
.shop-logo small{display:block;font-size:8.5px;letter-spacing:.28em;color:var(--muted);text-transform:uppercase;margin-top:2px}
.shop-hdr-nav{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.shop-hdr-nav a{padding:8px 12px;font-family:var(--ff2);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:rgba(237,232,224,.55);border-radius:4px;transition:color .2s,background .2s}
.shop-hdr-nav a:hover,.shop-hdr-nav a[aria-current="page"]{color:var(--gold);background:var(--gold-dim)}
.shop-hdr-back{font-family:var(--ff2);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border:1px solid var(--gold-line);padding:8px 14px;border-radius:4px;transition:.2s;white-space:nowrap}
.shop-hdr-back:hover{color:var(--gold);border-color:var(--gold)}

@media(max-width:760px){
  .shop-hdr-inner{flex-wrap:wrap;height:auto;padding:12px 20px}
  .shop-hdr-nav{width:100%;justify-content:flex-start;gap:2px}
  .shop-hdr-nav a{padding:6px 8px;font-size:8.5px}
}

/* ══ PAGE HEADER ══ */
.page-head{padding:56px 24px 32px;text-align:center}
.page-tag{display:inline-flex;align-items:center;gap:12px;font-family:var(--ff2);font-size:8px;letter-spacing:.4em;text-transform:uppercase;color:var(--gold);margin-bottom:18px}
.page-tag::before,.page-tag::after{content:"";width:24px;height:1px;background:var(--gold);opacity:.5}
.page-title{font-family:var(--ff1);font-size:clamp(1.9rem,4.5vw,3.2rem);font-weight:300;letter-spacing:-.01em;color:var(--white);margin-bottom:16px}
.page-sub{font-family:var(--ff3);font-size:.95rem;color:var(--muted);max-width:560px;margin:0 auto;line-height:1.8}

/* ══ BUTTONS ══ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 30px;font-family:var(--ff2);font-size:9px;letter-spacing:.22em;text-transform:uppercase;border-radius:2px;transition:all .3s var(--ease);white-space:nowrap;border:1px solid transparent;cursor:pointer}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2) 50%,var(--gold));color:#050810;font-weight:500;box-shadow:0 0 30px rgba(200,168,75,.25)}
.btn-gold:hover{box-shadow:0 0 50px rgba(200,168,75,.45);transform:translateY(-1px)}
.btn-gold:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.btn-line{background:transparent;color:var(--gold);border-color:var(--gold-line)}
.btn-line:hover{border-color:var(--gold);background:var(--gold-dim)}
.btn-block{display:flex;width:100%}
.btn-sm{padding:10px 18px;font-size:8px}

/* ══ CATALOG GRID ══ */
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px;padding:0 24px 80px;max-width:1080px;margin:0 auto}
.product-card{background:var(--layer);border:1px solid var(--gold-line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:border-color .25s,transform .25s}
.product-card:hover{border-color:var(--gold);transform:translateY(-3px)}
.product-card-cover{aspect-ratio:16/10;background:var(--card) center/cover no-repeat;display:flex;align-items:center;justify-content:center;color:var(--muted2);font-family:var(--ff2);font-size:9px;letter-spacing:.2em;text-transform:uppercase}
.product-card-body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}
.product-card-cat{font-family:var(--ff2);font-size:8px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.product-card-title{font-family:var(--ff1);font-size:1.35rem;font-weight:500;color:var(--white);line-height:1.25}
.product-card-desc{font-size:.85rem;color:var(--muted);line-height:1.65;flex:1}
.product-card-price{font-family:var(--ff2);font-size:1.05rem;color:var(--gold3);margin-top:4px}
.product-card-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.product-card-actions .btn{flex:1;padding:11px 16px}

.state-msg{text-align:center;padding:60px 24px;color:var(--muted);font-size:.95rem;max-width:480px;margin:0 auto}
.state-msg strong{color:var(--white);display:block;margin-bottom:8px;font-family:var(--ff1);font-size:1.2rem;font-weight:400}

/* ══ PRODUCT DETAIL ══ */
.product-detail{max-width:1000px;margin:0 auto;padding:0 24px 100px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}
@media(max-width:820px){.product-detail{grid-template-columns:1fr;gap:36px}}

.gallery-cover{width:100%;aspect-ratio:4/3;background:var(--card) center/cover no-repeat;border:1px solid var(--gold-line);border-radius:var(--radius);margin-bottom:14px}
.gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap}
.gallery-thumbs img{width:76px;height:76px;object-fit:cover;border-radius:4px;border:1px solid var(--gold-line);cursor:pointer;transition:border-color .2s}
.gallery-thumbs img:hover{border-color:var(--gold)}

.pd-category{font-family:var(--ff2);font-size:8.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.pd-title{font-family:var(--ff1);font-size:clamp(1.8rem,3.6vw,2.6rem);font-weight:400;color:var(--white);margin-bottom:14px;line-height:1.15}
.pd-short{color:var(--muted);font-size:.95rem;line-height:1.8;margin-bottom:22px}
.pd-price{font-family:var(--ff2);font-size:1.7rem;color:var(--gold3);margin-bottom:6px}
.pd-price-note{font-size:.75rem;color:var(--muted2);margin-bottom:22px}
.pd-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin-bottom:26px;padding:18px;background:var(--layer);border:1px solid var(--dim);border-radius:var(--radius)}
.pd-meta-item{display:flex;flex-direction:column;gap:2px}
.pd-meta-label{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted2)}
.pd-meta-value{font-size:.85rem;color:var(--white)}

.pd-section{margin-bottom:28px}
.pd-section h2{font-family:var(--ff1);font-size:1.15rem;font-weight:500;color:var(--white);margin-bottom:12px}
.pd-section p{color:var(--muted);font-size:.88rem;line-height:1.8}
.pd-list{display:flex;flex-direction:column;gap:8px}
.pd-list li{font-size:.85rem;color:var(--muted);padding-left:20px;position:relative;line-height:1.6}
.pd-list.included li::before{content:"✓";position:absolute;left:0;color:var(--ok)}
.pd-list.excluded li::before{content:"✕";position:absolute;left:0;color:var(--danger)}

.faq-item{border-bottom:1px solid var(--dim);padding:14px 0}
.faq-q{font-size:.9rem;color:var(--white);font-weight:400;margin-bottom:6px}
.faq-a{font-size:.85rem;color:var(--muted);line-height:1.7}

.pd-callout{background:var(--layer);border:1px solid var(--gold-line);border-left:3px solid var(--gold);border-radius:var(--radius);padding:20px;font-size:.85rem;color:var(--muted);line-height:1.75}
.pd-callout strong{color:var(--gold3)}

.pd-cta-box{margin-top:8px;display:flex;flex-direction:column;gap:10px}

/* ══ SIMPLE CONTENT PAGES (policy / legal / contact) ══ */
.content-page{max-width:760px;margin:0 auto;padding:0 24px 100px}
.content-page h2{font-family:var(--ff1);font-size:1.4rem;font-weight:500;color:var(--white);margin:32px 0 14px}
.content-page h2:first-of-type{margin-top:0}
.content-page p{color:var(--muted);font-size:.92rem;line-height:1.85;margin-bottom:14px}
.content-page ul{margin:0 0 14px;display:flex;flex-direction:column;gap:8px}
.content-page li{color:var(--muted);font-size:.9rem;line-height:1.75;padding-left:18px;position:relative}
.content-page li::before{content:"—";position:absolute;left:0;color:var(--gold)}
.legal-note{background:var(--layer);border:1px solid var(--gold-line);border-left:3px solid var(--gold);border-radius:var(--radius);padding:18px 20px;font-size:.82rem;color:var(--muted);line-height:1.75;margin:24px 0}

/* ══ LICENSE TYPE CARDS ══ */
.license-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin:24px 0 8px}
.license-card{background:var(--layer);border:1px solid var(--dim);border-radius:var(--radius);padding:20px}
.license-card.available{border-color:var(--gold-line)}
.license-card h3{font-family:var(--ff2);font-size:.85rem;letter-spacing:.06em;color:var(--gold3);margin-bottom:8px}
.license-card p{font-size:.8rem;color:var(--muted);line-height:1.7}
.license-badge{display:inline-block;margin-top:10px;font-size:8px;letter-spacing:.12em;text-transform:uppercase;padding:3px 8px;border-radius:2px}
.license-badge.open{background:rgba(122,201,138,.14);color:var(--ok)}
.license-badge.inquire{background:var(--dim);color:var(--muted)}

/* ══ FORM (contact) ══ */
.contact-form{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.contact-form label{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted2)}
.contact-form input,.contact-form textarea,.contact-form select{background:var(--layer);border:1px solid var(--gold-line);border-radius:4px;padding:12px 14px;color:var(--white);font-family:var(--ff3);font-size:.9rem}
.contact-form textarea{min-height:120px;resize:vertical}
.field{display:flex;flex-direction:column;gap:6px}

/* ══ FOOTER ══ */
.shop-ftr{border-top:1px solid var(--dim);padding:36px 24px;text-align:center}
.shop-ftr-links{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;margin-bottom:16px}
.shop-ftr-links a{font-size:.78rem;color:var(--muted);transition:color .2s}
.shop-ftr-links a:hover{color:var(--gold)}
.shop-ftr-copy{font-size:.75rem;color:var(--muted2)}

/* ══ SUCCESS / CANCELLED PAGES ══ */
.status-page{max-width:600px;margin:60px auto 100px;padding:0 24px;text-align:center}
.status-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 22px;font-size:1.6rem;font-family:var(--ff2)}
.status-icon.ok{background:rgba(122,201,138,.14);color:var(--ok);border:1px solid rgba(122,201,138,.3)}
.status-icon.info{background:var(--gold-dim);color:var(--gold);border:1px solid var(--gold-line)}
.status-ref{margin-top:22px;font-size:.78rem;color:var(--muted2);word-break:break-all}
.status-ref code{color:var(--muted);background:var(--layer);padding:2px 8px;border-radius:3px}

/* ══ TIER / LOADING SPINNER ══ */
.spinner{width:22px;height:22px;border-radius:50%;border:2px solid var(--gold-line);border-top-color:var(--gold);animation:spin .8s linear infinite;margin:24px auto}
@keyframes spin{to{transform:rotate(360deg)}}

/* =====================================================================
   Catalogue tools, richer product cards, and product-page additions.
   ===================================================================== */

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ── filter + search bar ─────────────────────────────────────────────── */
/* Same trap as everywhere else: an author `display:flex` beats the `hidden`
   attribute, so without this the filter bar stayed on screen above an error
   state it was explicitly hidden for. */
.catalog-tools[hidden],.related-products[hidden],.feat-actions[hidden]{display:none}
.catalog-tools{
  max-width:1180px;margin:0 auto 26px;padding:0 24px;
  display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;justify-content:space-between;
}
.catalog-filters{display:flex;flex-wrap:wrap;gap:8px}
.cat-chip{
  font:inherit;font-size:.8rem;letter-spacing:.02em;cursor:pointer;
  padding:8px 15px;border-radius:99px;
  background:transparent;color:var(--muted);
  border:1px solid var(--gold-line);
  transition:color .16s ease,border-color .16s ease,background .16s ease;
}
.cat-chip:hover{color:var(--white);border-color:var(--gold)}
.cat-chip.is-on{background:var(--gold-dim);border-color:var(--gold);color:var(--gold3)}
.cat-chip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.catalog-search{display:flex;flex-direction:column;gap:6px;min-width:220px}
.catalog-search input{
  font:inherit;font-size:.9rem;padding:10px 14px;min-width:220px;
  background:var(--card);color:var(--white);
  border:1px solid var(--gold-line);border-radius:7px;
}
.catalog-search input::placeholder{color:var(--muted2)}
.catalog-search input:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.catalog-count{font-size:.74rem;color:var(--muted2);letter-spacing:.04em;margin:0}

/* ── product card ────────────────────────────────────────────────────── */
.product-card{position:relative;display:flex;flex-direction:column}
.product-card-flag{
  position:absolute;top:12px;left:12px;z-index:2;
  font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;
  background:var(--gold);color:#0a0f1e;padding:4px 10px;border-radius:99px;font-weight:600;
}
.product-card-cover{
  display:block;position:relative;overflow:hidden;background:var(--layer);
  aspect-ratio:4/3;line-height:0;
}
/* width/height + aspect-ratio reserve the box before the cover arrives, so a
   loading grid does not shove the cards below it down the page. */
.product-card-img{width:100%;height:100%;object-fit:cover;display:block}
.product-card-nocover{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:'Cinzel',Georgia,serif;font-size:2.1rem;letter-spacing:.16em;
  color:rgba(200,168,75,.26);
  background:linear-gradient(135deg,#0d1530,#060a18);
}
.product-card-body{display:flex;flex-direction:column;flex:1}
.product-card-title{margin:0 0 8px}
.product-card-title a{color:inherit;text-decoration:none}
.product-card-title a:hover{color:var(--gold3)}
.product-card-meta{font-size:.72rem;color:var(--muted2);letter-spacing:.05em;margin-bottom:10px}
.product-card-price-tbc{color:var(--muted)}
.product-card-actions{margin-top:auto}
.is-featured{border-color:var(--gold-line);box-shadow:0 0 0 1px rgba(200,168,75,.18)}

.state-msg span{display:block;margin-top:8px;color:var(--muted);font-size:.9rem;line-height:1.6}

/* ── universes block under the grid ──────────────────────────────────── */
.catalog-universes{
  max-width:1180px;margin:64px auto 0;padding:34px 24px 0;
  border-top:1px solid var(--gold-line);
}
.catalog-universes h2{
  font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;
  font-size:1.5rem;color:var(--white);margin-bottom:10px;
}
.catalog-universes p{color:var(--muted);font-size:.9rem;line-height:1.7;max-width:62ch}
.catalog-universe-list{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:9px}
.catalog-universe-list a{
  display:inline-block;font-size:.8rem;color:var(--muted);text-decoration:none;
  border:1px solid var(--gold-line);border-radius:99px;padding:7px 15px;
}
.catalog-universe-list a:hover{color:var(--gold3);border-color:var(--gold)}

/* ── product detail additions ────────────────────────────────────────── */
.pd-crumbs{
  max-width:1180px;margin:0 auto;padding:0 24px 20px;
  font-size:.76rem;color:var(--muted2);letter-spacing:.04em;
}
.pd-crumbs a{color:var(--muted);text-decoration:none}
.pd-crumbs a:hover{color:var(--gold3);text-decoration:underline}
.pd-crumbs span{margin:0 8px;color:var(--muted2)}

.gallery-cover{aspect-ratio:4/3;background-size:cover;background-position:center}
.gallery-cover-img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:10px}
.gallery-thumbs img{cursor:zoom-in}

.pd-updated{font-size:.74rem;color:var(--muted2);letter-spacing:.04em;margin-top:14px}

.related-products{max-width:1180px;margin:70px auto 0;padding:34px 24px 0;border-top:1px solid var(--gold-line)}
.related-products h2{
  font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;
  font-size:1.5rem;color:var(--white);margin-bottom:20px;
}
.related-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}

/* Lightbox for product previews. Plain <dialog>-free implementation so it
   works the same in every browser the storefront targets. */
.pv-lightbox{
  position:fixed;inset:0;z-index:200;display:none;
  align-items:center;justify-content:center;padding:24px;
  background:rgba(2,4,10,.93);
}
.pv-lightbox.open{display:flex}
.pv-lightbox img{max-width:100%;max-height:88vh;border-radius:8px;box-shadow:0 24px 70px rgba(0,0,0,.6)}
.pv-close{
  position:absolute;top:18px;right:18px;width:44px;height:44px;cursor:pointer;
  background:transparent;border:1px solid var(--gold-line);border-radius:50%;
  color:var(--gold3);font-size:1.1rem;line-height:1;
}
.pv-close:hover{border-color:var(--gold);color:#fff}

@media (max-width:720px){
  .catalog-tools{flex-direction:column;gap:14px}
  .catalog-search,.catalog-search input{width:100%;min-width:0}
}

@media (prefers-reduced-motion:reduce){
  .cat-chip{transition:none}
}
