    /* Products page extras (safe, modern, doesn’t fight your main CSS) */
/* Products page hero with background image */
.page-hero{
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero--image{
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.86) 45%,
      rgba(255,255,255,.65) 70%,
      rgba(255,255,255,.40) 100%
    ),
    url("https://www.pineappletextiles.co.uk/gifs/bag2019.jpg") center / cover no-repeat;
}

.page-hero-inner{
  position: relative;
  z-index: 1;
}

.page-hero h1{
  margin: 0;
  font-family: Fraunces, serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  color: var(--text);
}

.page-hero p{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

/* Slightly tighter on small screens */
@media (max-width: 760px){
  .page-hero{
    padding: 32px 0 26px;
  }
}


    .layout{
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 18px;
      align-items: start;
    }
    @media (max-width: 980px){
      .layout{ grid-template-columns: 1fr; }
    }
/* Desktop: sticky side navigation */
.toc{
  position: static;
  top: 92px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
}

/* Tablets & mobiles: NOT sticky */
@media (max-width: 980px){
  .toc{
    position: static;   /* <-- key fix */
    top: auto;
  }
}

    .toc h3{
      margin: 0 0 10px;
      font-size: 15px;
    }
    .toc a{
      display: block;
      padding: 10px 10px;
      border-radius: 12px;
      border: 1px solid transparent;
      color: var(--text);
      text-decoration: none;
      font-size: 14px;
    }
    .toc a:hover{
      background: rgba(17,24,39,.04);
      border-color: var(--line);
      text-decoration: none;
    }
    .toc small{
      display:block;
      margin-top: 10px;
      color: var(--muted);
      line-height: 1.4;
    }

    .product-section{
      scroll-margin-top: 96px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--card);
      box-shadow: var(--shadow);
      padding: 18px;
      margin-bottom: 16px;
    }
    .product-head{
      display:flex;
      flex-wrap:wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .product-head h2{
      margin:0;
      font-family: Fraunces, serif;
      font-size: 22px;
    }
    .price{
      font-weight: 700;
      color: var(--text);
      border: 1px solid var(--line);
      background: rgba(255,255,255,.65);
      padding: 8px 10px;
      border-radius: 999px;
      font-size: 13px;
      white-space: nowrap;
    }
    .meta{
      color: var(--muted);
      margin: 0 0 10px;
    }

    .specbox{
      border: 1px solid var(--line);
      background: rgba(255,255,255,.70);
      border-radius: 14px;
      padding: 12px;
      margin: 12px 0 12px;
    }
    .specbox p{ margin: 0; color: var(--text); }

    .gallery{
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    @media (max-width: 900px){
      .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 480px){
      .gallery{ grid-template-columns: 1fr; }
    }
    .gallery img{
      width: 100%;
      height: 220px;
      object-fit: cover;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
    }

    .backrow{
      margin-top: 12px;
      display:flex;
      justify-content:flex-end;
    }
    .mini-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.80);
      color: var(--text);
      text-decoration: none;
      font-size: 13px;
      font-weight: 700;
    }
    .mini-link:hover{ text-decoration:none; }

    /* Optional: keep the “call centre” + offer image looking tidy */
    .side-card{
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--card);
      box-shadow: var(--shadow);
      padding: 16px;
      margin-top: 14px;
    }
    .side-card h3{ margin:0 0 10px; font-size: 15px; }
    .side-card img{
      width: 100%;
      height: auto;
      border-radius: 14px;
      border: 1px solid var(--line);
      background:#fff;
    }

html { scroll-behavior: smooth; }

/* Ensure anchor jumps aren't hidden behind sticky headers */
#top { scroll-margin-top: 110px; }

/* If your header is sticky and you know its height, also do: */
:root { scroll-padding-top: 110px; }

/* ================================
   Pineapple Textiles legacy colour
   Header / Navigation override
   ================================ */

/* Main header background */
.site-header,
.site-header[data-header] {
  background-color: #1a105c !important;
  border-bottom: none;
}

/* Ensure inner containers stay transparent */
.site-header .container,
.site-header .header-inner {
  background: transparent !important;
}

/* Brand text + tagline */
.site-header .brand-name,
.site-header .brand-tag {
  color: #ffffff !important;
}

/* Navigation links */
.site-header .nav-link {
  color: #ffffff !important;
  opacity: 0.9;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  opacity: 1;
  text-decoration: underline;
}

/* CTA / pill */
.site-header .pill {
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.35);
}

.site-header .pill-kicker,
.site-header .pill-main {
  color: #ffffff !important;
}

/* Mobile hamburger */
.site-header .nav-toggle-lines,
.site-header .nav-toggle-lines::before,
.site-header .nav-toggle-lines::after {
  background-color: #ffffff !important;
}

/* Mobile nav panel */
.nav-panel {
  background-color: #1a105c !important;
}

.nav-panel .nav-link {
  color: #ffffff !important;
}

/* Ensure sticky header still floats correctly */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
