/* Shared styles for shop.html and product.html */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

:root{
  color-scheme: light;
  --white:#FFFFFF;
  --royal:#1B3F8B;
  --royal-dark:#152F66;
  --mid:#2952A3;
  --ice:#EEF2FA;
  --navy:#0D2560;
  --ink:#0D2560;
  --grey:#3A4F7A;
  --line:#C8D5EE;
  --amber:#8A6100;
  --amber-bg:#FFF6E0;
  --ff-display:'Bebas Neue', Impact, sans-serif;
  --ff-body:'DM Sans', Arial, sans-serif;
  --max-w:1140px;
}

html{ scroll-behavior:smooth; background:var(--white); }
body{
  font-family:var(--ff-body); font-weight:300;
  background:var(--white); color:var(--ink);
  line-height:1.7; -webkit-font-smoothing:antialiased;
}
.wrap{ max-width:var(--max-w); margin:0 auto; padding:0 24px; }
img{ display:block; max-width:100%; }

/* ── SETUP BANNER — only shown while Shopify is not connected ── */
.setup{
  display:none;
  background:var(--amber-bg); color:var(--amber);
  border-bottom:1px solid #E8D28F;
  padding:14px 24px; font-size:.86rem; line-height:1.6;
}
.setup.show{ display:block; }
.setup strong{ font-weight:700; }
.setup code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.82em; background:rgba(0,0,0,.05);
  padding:1px 5px; border-radius:3px;
}
.setup ul{ margin:6px 0 0 18px; }

/* ── EU BANNER ── */
.eu-banner{
  display:none;
  background:var(--navy); color:#fff;
  font-size:.84rem; letter-spacing:.02em;
  padding:10px 44px 10px 24px; text-align:center; position:relative;
}
.eu-banner.show{ display:block; }
.eu-banner a{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
.eu-banner .x{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:rgba(255,255,255,.7);
  font-size:1.3rem; line-height:1; cursor:pointer; padding:4px 8px;
}
.eu-banner .x:hover{ color:#fff; }

/* ── HEADER ── */
header{
  background:var(--white); border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.header-inner{
  max-width:var(--max-w); margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.logo{ text-decoration:none; display:block; }
.logo .title{
  display:block; font-family:var(--ff-display); font-size:1.4rem;
  letter-spacing:.06em; color:var(--royal); line-height:1;
}
.logo .co{
  display:block; font-size:.62rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--grey); margin-top:3px;
}
.back-link{
  font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--grey); text-decoration:none; white-space:nowrap;
}
.back-link:hover{ color:var(--royal); }

/* ── HERO ── */
.hero{
  background:var(--white); padding:64px 0 48px;
  border-bottom:4px solid var(--royal);
  position:relative; overflow:hidden;
}
.hero::before{
  content:'SHOP'; position:absolute; left:-1%; bottom:-24%;
  font-family:var(--ff-display); font-size:24vw; letter-spacing:-.03em;
  color:rgba(27,63,139,.04); line-height:1; pointer-events:none;
}
.hero .wrap{ position:relative; z-index:1; }
.kicker{
  font-size:.66rem; font-weight:500; letter-spacing:.22em;
  text-transform:uppercase; color:var(--mid);
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
.kicker::before{ content:''; width:24px; height:3px; background:var(--royal); }
.hero h1{
  font-family:var(--ff-display); font-size:clamp(3rem,7vw,6.5rem);
  letter-spacing:.02em; line-height:.9; color:var(--navy); margin-bottom:14px;
}
.hero h1 .accent{ color:var(--royal); }
.hero p{ font-size:1rem; color:var(--grey); max-width:520px; }
.ship-pill{
  display:none; margin-top:18px; padding:7px 14px;
  background:var(--ice); border:1px solid var(--line); border-radius:2px;
  font-size:.78rem; letter-spacing:.04em; color:var(--royal);
}
.ship-pill.show{ display:inline-block; }

/* ── FEATURED PRODUCT ── */
.featured{ padding:72px 0 0; }
.feat-card{
  display:grid; grid-template-columns:1.1fr 1fr; gap:0;
  border:1px solid var(--line); border-top:4px solid var(--royal);
  background:var(--white);
}
/* Product photos are never cropped: frames match the 16:9 main shots, and
   object-fit:contain letterboxes any photo with a different shape. */
.feat-img{ background:var(--ice); position:relative; aspect-ratio:16/9; align-self:center; }
.feat-img img{ width:100%; height:100%; object-fit:contain; }
.feat-badge{
  position:absolute; top:0; left:0;
  background:var(--royal); color:#fff;
  font-family:var(--ff-display); font-size:.8rem;
  letter-spacing:.12em; padding:8px 16px;
}
.feat-body{ padding:44px 44px; display:flex; flex-direction:column; justify-content:center; }
.p-type{
  font-size:.62rem; font-weight:500; letter-spacing:.2em;
  text-transform:uppercase; color:var(--royal); margin-bottom:10px;
}
.feat-body h2{
  font-family:var(--ff-display); font-size:clamp(2rem,3.4vw,3rem);
  letter-spacing:.03em; line-height:1; color:var(--navy); margin-bottom:12px;
}
.feat-body p{ font-size:.95rem; color:var(--grey); margin-bottom:22px; }

/* ── PRODUCT GRID ── */
.grid-section{ padding:72px 0 88px; }
.sec-head{ margin-bottom:32px; }
.sec-head h2{
  font-family:var(--ff-display); font-size:clamp(1.8rem,3vw,2.6rem);
  letter-spacing:.03em; line-height:1; color:var(--navy); margin-bottom:8px;
}
.sec-head p{ font-size:.92rem; color:var(--grey); max-width:540px; }
.pgrid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.pcard{
  border:1px solid var(--line); border-top:4px solid var(--mid);
  background:var(--white); display:flex; flex-direction:column;
  transition:box-shadow .25s;
}
.pcard:hover{ box-shadow:0 8px 28px rgba(27,63,139,.1); }
.pcard-img{ background:var(--ice); aspect-ratio:16/9; overflow:hidden; }
.pcard-img img{ width:100%; height:100%; object-fit:contain; }
.pcard-body{ padding:22px 20px; display:flex; flex-direction:column; flex:1; }
.pcard-body h3{
  font-family:var(--ff-display); font-size:1.25rem; letter-spacing:.04em;
  line-height:1.05; color:var(--navy); margin-bottom:8px;
}
.pcard-body p{ font-size:.82rem; color:var(--grey); line-height:1.6; flex:1; margin-bottom:18px; }

/* Where the Shopify button + price are mounted. */
.buy-mount{ min-height:46px; }
.buy-mount.unavailable{
  display:flex; align-items:center; justify-content:center;
  border:1.5px dashed var(--line); border-radius:2px;
  padding:12px; font-size:.78rem; font-style:italic; color:var(--grey);
}

/* ── INFO STRIP ── */
.info{ background:var(--ice); padding:64px 0; border-top:1px solid var(--line); }
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.info-col h4{
  font-family:var(--ff-display); font-size:1.15rem; letter-spacing:.05em;
  color:var(--navy); margin-bottom:10px;
}
.info-col p{ font-size:.86rem; color:var(--grey); line-height:1.7; }
.info-col a{ color:var(--royal); text-decoration:none; }
.info-col a:hover{ text-decoration:underline; }

/* ── FOOTER ── */
footer{ background:var(--navy); color:#fff; padding:40px 0 32px; }
.footer-inner{
  max-width:var(--max-w); margin:0 auto; padding:0 24px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px;
}
.footer-brand{ font-family:var(--ff-display); font-size:1.4rem; letter-spacing:.06em; }
.footer-sub{ font-size:.74rem; color:rgba(255,255,255,.4); margin-top:4px; }
.footer-links{ display:flex; gap:20px; }
.footer-links a{ color:rgba(255,255,255,.6); text-decoration:none; font-size:.82rem; }
.footer-links a:hover{ color:#fff; }

@media (max-width:1000px){
  .pgrid{ grid-template-columns:repeat(2,1fr); }
  .info-grid{ grid-template-columns:1fr; gap:24px; }
}
@media (max-width:820px){
  .feat-card{ grid-template-columns:1fr; }
  .feat-body{ padding:32px 24px; }
  .featured{ padding-top:48px; }
  .grid-section{ padding:48px 0 64px; }
}
@media (max-width:560px){
  .pgrid{ grid-template-columns:1fr; }
  .hero{ padding:44px 0 36px; }
  .footer-inner{ flex-direction:column; text-align:center; }
}

/* ── LINKS TO THE DETAIL PAGE (shop.html) ── */
a.feat-img, a.pcard-img{ display:block; }
.pcard-img img, .feat-img img{ transition:transform .4s ease; }
a.pcard-img:hover img, a.feat-img:hover img{ transform:scale(1.04); }
.feat-img{ overflow:hidden; }
.feat-body h2 a, .pcard-body h3 a{ color:inherit; text-decoration:none; }
.feat-body h2 a:hover, .pcard-body h3 a:hover{ color:var(--royal); }
.more-link{
  display:inline-block; margin-top:14px;
  font-size:.74rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  color:var(--royal); text-decoration:none;
}
.more-link:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ── PRODUCT DETAIL PAGE (product.html) ── */
.crumbs{ padding:28px 0 0; font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; color:var(--grey); }
.crumbs a{ color:var(--grey); text-decoration:none; }
.crumbs a:hover{ color:var(--royal); }
.crumbs span{ margin:0 8px; color:var(--line); }

.pd{ padding:28px 0 80px; }
.pd-grid{ display:grid; grid-template-columns:1.25fr 1fr; gap:56px; align-items:start; }

.gallery-main{
  position:relative; background:var(--ice); aspect-ratio:4/3; overflow:hidden;
  border:1px solid var(--line); border-top:4px solid var(--royal);
}
.gallery-main img{ width:100%; height:100%; object-fit:contain; }
.g-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border:none; border-radius:2px; cursor:pointer;
  background:rgba(255,255,255,.88); color:var(--royal);
  font-size:1.4rem; line-height:1; display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 10px rgba(13,37,96,.15); transition:background .2s;
}
.g-nav:hover{ background:#fff; }
.g-prev{ left:12px; } .g-next{ right:12px; }
.g-count{
  position:absolute; right:12px; bottom:12px;
  background:rgba(13,37,96,.75); color:#fff; font-size:.72rem; letter-spacing:.08em;
  padding:4px 10px; border-radius:2px;
}
.thumbs{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:12px; }
.thumb{
  aspect-ratio:4/3; padding:0; border:2px solid transparent; background:var(--ice);
  cursor:pointer; overflow:hidden; opacity:.7; transition:opacity .2s, border-color .2s;
}
.thumb img{ width:100%; height:100%; object-fit:contain; }
.thumb:hover{ opacity:1; }
.thumb.on{ border-color:var(--royal); opacity:1; }

.pd-info{ position:sticky; top:96px; }
.pd-info h1{
  font-family:var(--ff-display); font-size:clamp(2.4rem,4.4vw,3.8rem);
  letter-spacing:.03em; line-height:.95; color:var(--navy); margin-bottom:18px;
}
.pd-info .pd-text p{ font-size:.98rem; color:var(--grey); margin-bottom:14px; }
.pd-info .buy-mount{ margin:26px 0 18px; }
.pd-note{
  border-left:3px solid var(--royal); background:var(--ice);
  padding:12px 16px; font-size:.84rem; color:var(--grey); margin-bottom:18px;
}
.pd-note a{ color:var(--royal); }
.pd-perks{ list-style:none; border-top:1px solid var(--line); padding-top:16px; }
.pd-perks li{ font-size:.84rem; color:var(--grey); padding:4px 0 4px 22px; position:relative; }
.pd-perks li::before{ content:''; position:absolute; left:0; top:13px; width:12px; height:3px; background:var(--royal); }
.pd-perks a{ color:var(--royal); }

.related{ background:var(--ice); padding:64px 0 72px; border-top:1px solid var(--line); }
.related .pgrid{ grid-template-columns:repeat(4,1fr); }
.related .pcard-body p{ margin-bottom:0; }

@media (max-width:1000px){
  .related .pgrid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:820px){
  .pd-grid{ grid-template-columns:1fr; gap:32px; }
  .pd-info{ position:static; }
}
@media (max-width:560px){
  .related .pgrid{ grid-template-columns:1fr; }
  .thumbs{ grid-template-columns:repeat(4,1fr); gap:8px; }
  .g-nav{ width:38px; height:38px; }
}

[hidden]{ display:none !important; }

/* Bullet lists inside the product description (comes from Shopify) */
.pd-text ul{ margin:4px 0 14px 20px; }
.pd-text li{ font-size:.98rem; color:var(--grey); margin-bottom:4px; }
