/* ===============================
   Dolly Rotten – styles.css
   =============================== */

/* Design tokens */
:root{
  --bg: #0a0a0c;
  --panel: #121218;
  --ink: #f4f4f7;
  --muted: #b9b9c6;
  --pink: #ff2fa8;
  --pink2: #ff6bc4;
  --teal: #2fb7b0;
  --line: rgba(255,255,255,.12);
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1120px;

  --font-display: "Wittgenstein", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --header-offset: 180px;
  --topglow-height: 700px;
}

/* Reset-ish */
*{ box-sizing: border-box; }
html,body{ height: 100%; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

[id]{
  scroll-margin-top: var(--header-offset);
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  font-family: var(--font-body);
  font-weight: 400;
  position: relative;
}

/* One-off top glow (does not “repeat” on scroll) */
body::before{
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topglow-height);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 18% 0%, rgba(255,47,168,.18), transparent 60%),
    radial-gradient(900px 500px at 82% 10%, rgba(47,183,176,.12), transparent 55%);
}

/* Links */
a{ color: var(--teal); text-decoration: none; }
a:hover{ color: var(--pink2); }

/* Wrapper */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

/* Typography */
h1, h2, h3, h4,
nav,
.cta,
.section-head h2{
  font-family: var(--font-display);
}

h1{
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

h2{ font-weight: 600; }
h3{ font-weight: 500; }

p, li, input, button{
  font-family: var(--font-body);
}

/* ===============================
   Header / Top Bar
   =============================== */

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 170px; /* breathing room around 150px logo */
}

.brand-bar{
  display: flex;
  align-items: center;
}

.logo-bar{
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.5));
}

nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlink{
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.navlink:hover{
  color: #fff;
  border-color: rgba(255,47,168,.35);
  background: rgba(255,47,168,.08);
}

.cta{
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(47,183,176,.55);
  background: rgba(47,183,176,.12);
  color: #fff;
  font-weight: 600;
}

.cta:hover{
  background: rgba(47,183,176,.2);
}

/* ---------------------------------------------
   Image-based navigation (logo + buttons)
--------------------------------------------- */

.nav-images {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-img {
  display: inline-block;
  cursor: pointer;
}

.nav-img img {
  height: 100px;  
  width: auto;     
  display: block;

  user-select: none;
  -webkit-user-drag: none;
  cursor: inherit;
}

.nav-img.home img {
  height: 150px;
}

.nav-img img:active {
  transform: translateY(1px);
}

/* Screen-reader only text */
.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;
}

/* ===============================
   Cards / Layout
   =============================== */

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.btn:hover{
  border-color: rgba(255,47,168,.45);
  background: rgba(255,47,168,.08);
}

.btn.primary{
  border-color: rgba(255,47,168,.55);
  background: linear-gradient(180deg, rgba(255,47,168,.22), rgba(255,47,168,.10));
}

.btn.primary:hover{
  background: linear-gradient(180deg, rgba(255,47,168,.28), rgba(255,47,168,.12));
}

/* ===============================
   Hero
   =============================== */

.hero{ padding: 34px 0 18px; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 22px;
  align-items: stretch;
}

.hero-copy{
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-copy:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(255,47,168,.22), transparent 55%),
    radial-gradient(700px 360px at 80% 10%, rgba(47,183,176,.16), transparent 55%);
  pointer-events:none;
  opacity: .9;
}

.hero-copy > *{ position: relative; }

.kicker{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,47,168,.35);
  background: rgba(255,47,168,.10);
  color: var(--ink);
  font-size: .92rem;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-logo{
  padding: 18px;
  display: grid;
  place-items: center;
}

.hero-logo img{
  width: min(100%, 440px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 55px rgba(0,0,0,.55));
}

/* ===============================
   Sections
   =============================== */

section{ padding: 26px 0; }

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2{
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.01em;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

/* Product grid */
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product{
  padding: 16px;
  display: grid;
  gap: 10px;
}

.thumb{
  aspect-ratio: 4/3;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120px 90px at 30% 30%, rgba(255,47,168,.20), transparent 60%),
    radial-gradient(120px 90px at 70% 30%, rgba(47,183,176,.14), transparent 60%),
    rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.35);
  font-weight: 700;
  letter-spacing: .05em;
}

.price{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .95rem;
}

.tag{
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47,183,176,.45);
  background: rgba(47,183,176,.10);
  color: var(--ink);
  font-size: .85rem;
  width: fit-content;
}

/* About + newsletter */
.split{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.panel{ padding: 18px; }
.panel p{ color: var(--muted); margin-top: 8px; }

.formrow{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

input[type="email"]{
  flex: 1 1 220px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--ink);
  outline: none;
}

input[type="email"]:focus{
  border-color: rgba(255,47,168,.55);
  box-shadow: 0 0 0 4px rgba(255,47,168,.12);
}

/* Footer */
footer{
  border-top: 1px solid var(--line);
  /* padding: 10px 0; */
  color: var(--muted);
  font-size: .95rem;
}

.foot{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.tiny-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 900px){
  :root{
    --header-offset: 150px;
    --topglow-height: 560px;
  }

  .topbar-inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    min-height: unset;
  }

  .logo-bar{ height: 120px; }
  nav{ justify-content: center; }

  .hero-grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
}
/* ===============================
   Product page (test.html)
   =============================== */

.crumbs{
  color: var(--muted);
  font-size: .95rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 18px;
}

.crumbs a{ color: var(--muted); }
.crumbs a:hover{ color: var(--pink2); }
.sep{ opacity: .35; }

.product-page{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: start;
}

.media{
  padding: 16px;
  overflow: hidden;
}

.media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  filter: drop-shadow(0 18px 55px rgba(0,0,0,.45));
}

.info{
  padding: 18px;
}

.meta-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.pill{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,47,168,.35);
  background: rgba(255,47,168,.10);
  color: var(--ink);
  font-size: .9rem;
  width: fit-content;
}

.pill.teal{
  border-color: rgba(47,183,176,.45);
  background: rgba(47,183,176,.10);
}

.price-big{
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
  margin: 6px 0 0;
}

.small-muted{
  color: var(--muted);
  margin: 10px 0 0;
  font-size: .95rem;
}

.actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* a subtle divider between blocks on the right */
.section{
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Product page accordions */
details{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.18);
  margin-top: 10px;
}

summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker{ display: none; }

details p, details ul{
  color: var(--muted);
  margin: 10px 0 6px;
}

details ul{ padding-left: 18px; }

a.inline{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile: stack */
@media (max-width: 900px){
  .product-page{ grid-template-columns: 1fr; }
}



/* Modal CSS */

    .zoomable { cursor: zoom-in; }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(0,0,0,0.72);
      z-index: 9999;
    }
    .modal.open { display: flex; }

    .modal-panel {
      position: relative;
      max-width: min(980px, 92vw);
      max-height: 92vh;
      background: rgba(20,20,20,0.55);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 18px;
      padding: 14px;
      box-shadow: 0 24px 60px rgba(0,0,0,0.45);
      backdrop-filter: blur(6px);
    }

    .modal-panel img {
      display: block;
      max-width: 100%;
      max-height: calc(92vh - 60px);
      height: auto;
      border-radius: 12px;
    }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 40px;
      height: 40px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(0,0,0,0.45);
      color: #fff;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }
    .modal-close:hover { background: rgba(0,0,0,0.62); }
 /* Product page mini thumbs (scoped so it doesn't clobber shop .thumb) */
.thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.thumbs .thumb{
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  padding:6px;
  border-radius:12px;
  cursor:pointer;
}

.thumbs .thumb img{
  display:block;
  height:64px;
  width:auto;
  border-radius:8px;
}

.thumbs .thumb.is-active{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 720px){
  .thumbs .thumb img{ height:54px; }
}

.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 760px){
  .form-grid{ grid-template-columns: 1fr; }
}

input[type="text"], select, textarea{ width:100%; }

.attr-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:.75rem;
  margin:.5rem 0;
}
@media (max-width: 760px){
  .attr-row{ grid-template-columns: 1fr; }
}

.tag-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:.75rem;
  margin-top:.75rem;
}
@media (max-width: 760px){
  .tag-grid{ grid-template-columns: 1fr; }
}

.tag-choice{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.tag-inline-add{
  padding: .75rem;
  border: 1px dashed var(--border);
  border-radius: .5rem;
  margin-bottom: 1rem;
}
.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{
  padding: .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table th{
  text-align:left;
  color: var(--ink-muted);
  font-weight: 600;
}
.attrs-edit .attr-row{
  grid-template-columns: auto 1fr 1fr auto;
}
/* Admin action links (compact, inline) */
.action-links{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: 0.9rem;
}

.action-link,
.action-links button{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
}

.action-link:hover,
.action-links button:hover{
  color: var(--brand-dark);
  text-decoration: underline;
}

.action-link.danger,
.action-links button.danger{
  color: #a11;
}

.action-link.muted{
  color: var(--ink-muted);
}

.variant-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.variant-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  text-decoration:none;
  font-weight:600;
}

.variant-chip:hover{
  background: rgba(255,255,255,0.07);
}

.variant-chip.is-active{
  border-color: rgba(255,63,181,0.55);
  box-shadow: 0 0 0 3px rgba(255,63,181,0.12);
}

.variant-badge{
  font-size:12px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(255,255,255,0.12);
  color: var(--ink);
}
.variant-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

@media (min-width: 700px){
  .variant-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.variant-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  text-decoration:none;
}

.variant-card:hover{
  background: rgba(255,255,255,0.07);
}

.variant-card.is-active{
  border-color: rgba(255,63,181,0.55);
  box-shadow: 0 0 0 3px rgba(255,63,181,0.12);
}

.variant-thumb{
  width:44px;
  height:44px;
  border-radius:12px;
  object-fit:cover;
  flex:0 0 44px;
  border:1px solid rgba(255,255,255,0.12);
}

.variant-name{
  font-weight:700;
  line-height:1.1;
}

.variant-badge{
  margin-left:auto;
  font-size:12px;
  font-weight:800;
  padding:3px 9px;
  border-radius:999px;
  background: rgba(255,255,255,0.12);
}
.pill{ text-decoration:none; display:inline-flex; }
.pill:hover{ text-decoration:none; }
/* Product thumbnail fallback (site-wide) */
.thumb-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing:0.05em;
  color: var(--ink-muted);
  background: rgba(255,255,255,0.04);
}
/* Product card thumbnail frame (used on shop + homepage) */
.card.product .thumb{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;   /* pick your vibe: 1/1 for square, 4/3 for nice cards */
  border-radius: 14px;
  margin-bottom: 10px;
}

.card.product .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Greenwich Wildlife Network block (home) */
.gwn{ margin-top: 16px; }

.gwn-card{
  padding: 18px;
}

.gwn-grid{
  display:grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 16px;
  align-items: center;
}

.gwn-logo,
.gwn-fox{
  display:flex;
  justify-content:center;
  align-items:center;
}

.gwn-logo img{
  max-width: 200px;
  width: 100%;
  height: auto;
  display:block;
  opacity: .95;
}

.gwn-fox img{
  max-width: 220px;
  width: 100%;
  height: auto;
  display:block;
}

/* Make the copy column read nicely */
.gwn-copy .lead{
  max-width: 60ch;
}

/* Responsive: stack nicely on smaller screens */
@media (max-width: 900px){
  .gwn-grid{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .gwn-logo, .gwn-fox{
    justify-content:flex-start;
  }
  .gwn-logo img{
    max-width: 180px;
  }
  .gwn-fox img{
    max-width: 200px;
  }
}
footer .nav-img img {
  height: 80px;
}
/* Cart badge */
.nav-img .nav-icon{
  position: relative;
  display: inline-block;
  line-height: 0;
}

.cart-badge{
  position: absolute;
  top: -6px;
  right: -8px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;

  background: var(--brand);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
/* Home hero: Londinium logo + intro text */
.intro-split{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.intro-logo{
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-logo img{
  width: min(180px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.45));
  opacity: .98;
}

.intro-text .lead{
  margin-top: 0;
}

.intro-text p{
  margin: 10px 0 0;
}

/* Stack on small screens */
@media (max-width: 900px){
  .intro-split{
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .intro-logo{
    justify-content: flex-start;
  }
  .intro-logo img{
    width: min(220px, 70vw);
  }
}
