/* ====================================================
   Tulip ReMoving — styles.css
   ==================================================== */

/* --- Fonts ------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap');

/* --- Color & typographic variables ------------------------ */
:root {
  /* Palette */
  --rose-cream: #FFFCFC;       /* background soft */
  --deep-neutral: #202020;     /* primary dark text */
  --eco-green: #218F7D;        /* accent green */
  --indigo-deep: #040450;      /* rich accent / CTA alt */
  --dusty-rose: #DDB5B6;       /* warm complementary tone */

  /* Derived neutrals */
  --muted-text: #6b6b6b;
  --panel-bg: #fcf6f5;
  --card-bg: #ffffff;
  --soft-border: rgba(32,32,32,0.06);

  /* Button system */
  --btn-bg: var(--eco-green);
  --btn-bg-hover: #1b7a67;
  --btn-text: #ffffff;

  /* Spacing */
  --radius: 10px;
  --gap: 1.25rem;
  --page-max: 1600px;
  --font-weight: 200;
  
  /* Typography */
  --font-heading: "Literata", serif;
  --font-body: "Inter Tight", sans-serif;
}  

/* --- Playfair-like refinements for Literata headings --- */
h1 {
  font-family: var(--font-heading);
  font-weight: 200;
  letter-spacing: -0.5px;        /* mild tightening */
  line-height: 1.1;              /* more dramatic, Playfair-like */
}

h2 {
  font-family: var(--font-heading);
  font-weight: 200;
  letter-spacing: -0.3px;        /* subtle refinement */
  line-height: 1.25;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 200;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

/* Body text stays calm and airy */
body, p {
  font-family: var(--font-body);
  font-weight: 200;
  letter-spacing: 0px;
  line-height: 1.55;
}

/* --- Global reset & base --------------------------------- */
* { box-sizing: border-box; }
html,body{ z-index: 1; height:100%; margin:0; padding:0; background: var(--rose-cream); color:var(--deep-neutral); font-family:var(--font-body); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 1rem; align-items: center; }

/* --- Making sure the header, body and footer are in the right place ------ */
html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: 2rem;
  flex-shrink: 0;
	position: relative;
  z-index: 1;
}

.store-container,
.product-page,
.cart-page,
.how-section,
.how-hero,
.intro,
.mission,
.why-refurbished,
.faq-container {
  flex: 1 0 auto;
}

.secondary {
	color: var(--btn-bg);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 1rem;
}

.secondary:hover {
  background: var(--btn-bg-hover);
}

.secondary.muted {
  opacity: 0.5;
  cursor: default;
}

/* ==========================================================
   NEW BULLETPROOF RESPONSIVE HEADER
   ========================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--rose-cream);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: clamp(3.6rem, 8vw, 5rem);
  margin: 0 2rem;
  display: block;
}

.cart-img {
  height: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0 2rem;
  display: block;
}

/* Desktop navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--deep-neutral);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.35rem 0.45rem;
}

.nav-links li a:hover {
  color: var(--eco-green);
}

/* CTA Button */
.book-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.6rem 1.1rem;
  border-radius: 5px;
  font-family: var(--font-body);
  box-shadow: 0 6px 16px rgba(33,143,125,0.12);
  transition: 0.25s ease;
}

.book-btn:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}

/* Mobile nav drawer — must sit above header */
nav ul {
  z-index: 2000;
  background: var(--rose-cream);
}

/* --- Mobile Hamburger ------------------------------------ */

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  font-weight: 200;
  cursor: pointer;
  padding: 0.4rem;
  background: transparent;
  border: none;
}

.menu-close {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--deep-neutral);
  z-index: 2001;
	border: none;
	background: none;
}

/* CTA button inside mobile menu */
.menu-book-btn {
  display: none;
  text-align: left;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0px;
  font-weight: 400;
  box-shadow: none;
}

/* ====================================
   Footer Section
==================================== */

footer {
  width: 100%;
  padding: 0.5rem 2rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-top: 2px solid rgba(0, 0, 0, 0.05);
	background: var(--rose-cream);
  box-shadow: 0 -2px -6px rgba(0,0,0,0.03);
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
	display: flex;
	flex-direction: column;
  gap: 1rem;
}

.footer-section {
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.5rem;
	width: clamp(20%,1200px,100%);
}

.footer-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-section p {
  line-height: 1.5;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Legal bottom area */
.footer-legal {
  max-width: 80%;
  margin: 1rem auto 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  opacity: 0.8;
	text-align: center;
}

.footer-legal p {
  margin: 0.25rem 0;
}

@media (min-width: 1199px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
		gap: 0;
		padding: 0;
  }
  .mobile-filter-btn { display: none; }
	.mobile-shop-btn { display: none; }
}


/* --- Hero ------------------------------------------------ */

.tulip-logo {
  height: 8rem;
}

.hero-content { max-width: 900px; padding: 0 1rem; }

.cta-btn {
  font-family: var(--font-body);
  display:inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font-weight: 200;
  box-shadow: 0 8px 20px rgba(33,143,125,0.10);
}
.cta-btn:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }

/* --- Intro ------------------------------------------------ */
.intro { padding: 2.25rem 0; align-items: center; justify-content: center; text-align:center; }
.intro-container { text-align:center; max-width: 900px; padding: 2rem; margin: 0 auto; }
.intro-container.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, var(--h1));
  line-height: 1.02;
  margin: 0 0 0.6rem 0;
  color: var(--deep-neutral);
  font-weight: 200;
  letter-spacing: -0.5px;
}
.intro-container.intro-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, var(--lead));
  color: var(--muted-text);
  margin: 0 0 1.6rem 0;
  max-width: 56ch;
  margin-left:auto;
  margin-right:auto;
}
.intro h2 { font-family: var(--font-heading); font-size: 1.75rem; margin: 0 0 0.6rem 0; color:var(--deep-neutral); }
.intro p { color:var(--muted-text); max-width:64ch; margin: 0 auto; font-size:1rem; }
.intro-container ul, h3 { text-align:left; }

/* --- Featured Products ----------------------------------- */
.featured-products { padding: 2rem 0 1.5rem 0; }
.featured-products > .container > h2 { font-family:var(--font-heading); font-size:1.6rem; margin:0 0 1rem 0; color:var(--deep-neutral); }

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--soft-border);
  padding: 0.9rem;
  text-align: left;
  display:flex;
  flex-direction:column;
  gap:0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(16,16,16,0.03);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,16,16,0.06); }
.product-img {
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6f6f6, #fff);
}
.product-title { font-family:var(--font-heading); font-size:1.05rem; margin:0; color:var(--deep-neutral); }
.product-price { font-weight:200; color:var(--deep-neutral); margin:0.25rem 0; }
.product-btn {
  margin-top:auto;
  display:inline-block;
  background: transparent;
  color: var(--indigo-deep);
  border: 1px solid rgba(4,4,80,0.06);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight:200;
}
.product-btn:hover {
  background: rgba(4,4,80,0.04);
  transform: translateY(-2px);
}

/* --- Why Refurbished ------------------------------------ */
.why-refurbished { padding: 2rem 0; background: linear-gradient(180deg, rgba(33,143,125,0.01), transparent); }
.why-container { max-width: 1100px; margin: 0 auto; }
.why-container h2 { font-family:var(--font-heading); margin:0 0 1rem 0; color:var(--deep-neutral); }
.why-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap:1rem; align-items:start; }
.why-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--soft-border);
  height: 15rem; 
  align-content: top;
	text-align: left;
}
.why-card h3 { margin:0 0 0.5rem 0; font-family:var(--font-heading); font-size:1.05rem; color:var(--deep-neutral); }
.why-card p { margin:0; color:var(--muted-text); }

/* --- Mission -------------------------------------------- */
.mission { padding: 2rem 0 4rem 0; }
.mission-container { max-width:900px; margin:0 auto; text-align:center; }
.mission h2 { font-family:var(--font-heading); font-size:1.4rem; margin-bottom:0.5rem; color:var(--deep-neutral); }
.mission p { color:var(--muted-text); margin:0 auto; max-width:60ch; line-height:1.6; }

/* --- Small UI helpers ----------------------------------- */
.badge {
  display:inline-block;
  background:var(--dusty-rose);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 200;
  font-size:0.8rem;
}


/* ==========================================================
   STATIC PAGE STYLES
   ========================================================== */

.how-hero {
  padding: 4rem 0 2rem 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(33,143,125,0.03), transparent);
}

.how-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.how-intro {
  max-width: 60ch;
  margin: 0.5rem auto 0 auto;
  color: var(--muted-text);
  font-size: 1.1rem;
}

.how-section {
  padding: 2rem 0 3rem 0;
}

.how-container {
  max-width: 900px;
  margin: 0 auto;
}

.how-section h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--deep-neutral);
}

.how-list {
  list-style: none;
  padding-left: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.how-list li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--muted-text);
}

.how-list li::before {
  content: "•";
  color: var(--eco-green);
  position: absolute;
  left: -0.5rem;
}

.how-impact {
  padding: 2rem 0 4rem 0;
  background: linear-gradient(180deg, rgba(33,143,125,0.05), transparent);
}

.how-impact-list {
  list-style: none;
  margin-top: 1rem;
  padding-left: 1rem;
}

.how-impact-list li {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--muted-text);
}

.how-impact-list li::before {
  content: "✓";
  color: var(--eco-green);
  font-weight: bold;
  position: absolute;
  margin-left: -1rem;
}


/* ==========================================================
   FAQ PAGE STYLES
   ========================================================== */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2 {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  color: var(--deep-neutral);
}

.faq-section p {
  color: var(--muted-text);
}

.faq-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0 1.5rem 0;
}

.faq-list li {
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.faq-list li::before {
  content: "•";
  position: absolute;
  left: -0.5rem;
  color: var(--eco-green);
}

.faq-link {
  color: var(--eco-green);
  font-weight: 200;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-link:hover {
  color: var(--btn-bg-hover);
}


/* ==========================================================
   Accordion FAQ Styles
   ========================================================== */

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--deep-neutral);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--eco-green);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--muted-text);
}

.faq-answer p {
  padding: 0.5rem 0 1rem 0;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* enough for long answers */
}

.faq-link {
  color: var(--eco-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-link:hover {
  color: var(--btn-bg-hover);
}

/* ==========================================================
   Scroll Fade-in Animation
   ========================================================== */

.fade-section {
  opacity: 0.1;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   CONTACT PAGE (contact.html)
   ========================================================== */

#contactForm {
  margin-top: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

/* Use grid so label blocks align cleanly */
#contactForm label {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  color: var(--deep-neutral);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Remove the <br><br> spacing effect by controlling spacing with CSS */
#contactForm label + br,
#contactForm br {
  display: none;
}

/* Wrap each field consistently */
#contactForm label:not([style*="display:none"]) {
  margin-bottom: 1.1rem;
}

/* Inputs / select / textarea – match your checkout modal + discount input feel */
#contactForm input,
#contactForm select,
#contactForm textarea {
  font-family: var(--font-body);
  width: 100%;
  padding: 0.7rem 0.8rem;
  margin-top: 0.45rem;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#contactForm textarea {
  resize: vertical;
  min-height: 180px;
}

/* Focus ring matches your overall focus language */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  border-color: rgba(33,143,125,0.55);
  box-shadow: 0 0 0 3px rgba(33,143,125,0.12);
}

/* Placeholder tone */
#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: rgba(32,32,32,0.45);
}

/* Submit row */
#contactForm button.secondary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(33,143,125,0.35);
  background: var(--eco-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(33,143,125,0.08);
}

/* Fix your global .secondary:hover currently turning background green
   but not ensuring text stays readable */
#contactForm button.secondary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}

/* Status text */
#contactForm #status {
  margin: 0.8rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Optional: success / error states (if your JS sets data-status attr) */
#contactForm #status[data-status="success"] {
  color: var(--eco-green);
}

#contactForm #status[data-status="error"] {
  color: #a33;
}

/* Make the whole contact section feel like cart pages (spacing) */
#returns-policy.how-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#returns-policy .how-container {
  max-width: 900px;
}

/* Mobile spacing */
@media (max-width: 600px) {
  #contactForm {
    padding: 1.1rem;
  }
}

/* ==========================================================
   SHOP PAGE LAYOUT
   ========================================================== */

.store-container {
  display: flex;
  gap: 2rem;
  width: 100%;
	max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.shopby-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  width: 220px;
  user-select: none;
}

.shopby-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shopby-toggle label {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.shopby-toggle .shopby-pill {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #f2f2f2;
  transition: transform 180ms ease;
  transform: translateX(0);
}

.shopby-toggle input[value="type"]:checked ~ .shopby-pill {
  transform: translateX(100%);
}

/* Filter mode chips (Include / Only) */
.chip {
  appearance: none;
  border: 1px solid #ccc;
  background: #f7f7f7;
  color: #333;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: #eaeaea;
}

.chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.chip:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.range-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}

.range-input:focus {
  outline: none;
  border-color: #999;
}

.range-input-labeled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.range-input-label {
  font-size: 13px;
  color: var(--muted-text);
}

.range-input {
  width: 80px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
	text-transform: capitalize;
}

.checklist input[type="checkbox"] {
  cursor: pointer;
}

details {
  border-bottom: 1px solid #e5e5e5;
  padding: 6px 0;
}

summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 6px;
}

details .content {
  padding-left: 4px;
}

.range-wrap {
  position: relative;
  height: 22px;
  margin: 0.15rem 0 0.35rem;
}

.range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(32, 32, 32, 0.14);
  border-radius: 999px;
  transform: translateY(-50%);
}

.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(32, 32, 32, 0.72);
  border-radius: 999px;
}

input[type="range"].range {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

/* Chrome / Safari track */
input[type="range"].range::-webkit-slider-runnable-track {
  height: 2px;
  background: transparent;
  border: none;
}

/* Firefox track */
input[type="range"].range::-moz-range-track {
  height: 2px;
  background: transparent;
  border: none;
}

/* Chrome / Safari thumb */
input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 12px;
  height: 12px;
  margin-top: -5px; /* centers thumb on 2px track */
  border-radius: 50%;
  border: 1px solid rgba(32, 32, 32, 0.22);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

/* Firefox thumb */
input[type="range"].range::-moz-range-thumb {
  pointer-events: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(32, 32, 32, 0.22);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

/* Hover/focus feels a bit more premium */
input[type="range"].range:hover::-webkit-slider-thumb,
input[type="range"].range:focus::-webkit-slider-thumb {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

input[type="range"].range:hover::-moz-range-thumb,
input[type="range"].range:focus::-moz-range-thumb {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background: none;
}

input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  cursor: pointer;
}

.range-values {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.range-input {
  width: 70px;
  padding: 4px 6px;
  font-size: 13px;
}

.muted {
  color: #777;
  font-size: 12px;
}

.bool-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.filter-accordion details {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.filter-accordion summary {
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 700;
}

.filter-accordion summary::-webkit-details-marker {
  display: none;
}

.filter-accordion .content {
  padding: 10px 12px 12px;
  border-top: 1px solid #eee;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.checklist label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.slider-row input[type="range"] {
  width: 100%;
}

.value-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}

/* ==========================
   FURNITURE INTEREST MODAL
   Matches postcode modal
========================== */

.interest-cta-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

#openInterestModalBtn {
  background: none;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

#openInterestModalBtn:hover {
  background: rgba(0,0,0,0.03);
}

#interestModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#interestModal.hidden {
  display: none;
}

#interestModal .modal-content {
  background: #fff;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  position: relative;
}

#interestModal .modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

#interestModal .modal-content p {
  margin-bottom: 1rem;
}

#closeInterestModal {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 1.8rem;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--deep-neutral);
}

#interestEmail {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-family: var(--font-body);
  border: 1px solid #ccc;
  border-radius: 6px;
}

#submitInterestBtn {
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
  background: var(--eco-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
}

#submitInterestBtn:hover {
  background: var(--btn-bg-hover);
}

#interestFeedback {
  margin-top: 8px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

#interestSummaryBox {
  margin: 1rem 0;
  padding: 12px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  white-space: pre-line;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted-text);
}

.form-group {
  margin-top: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--deep-neutral);
}

/* ==========================
   POSTCODE POPUP
========================== */

.postcode-header {
  margin-left: 1rem;
  font-size: 0.9rem;
}

.postcode-btn {
  background: transparent;
  color: var(--eco-green);
  border: 1px solid var(--eco-green);
  padding: 6px 12px;
  border-radius: 999px !important; /* pill shape */
  cursor: pointer;

  font-family: var(--font-body);
  font-weight: 400 !important;
  font-size: 0.95rem !important;

  transition: all 0.2s ease;
}

/* Hover: becomes more actionable */
.postcode-btn:hover {
  background: var(--eco-green) !important;
  color: white;
}

/* Active click feel */
.postcode-btn:active {
  transform: scale(0.97);
}

/* Optional: subtle entrance emphasis */
.postcode-btn.pulse {
  animation: postcodePulse 2.5s ease-in-out infinite;
}

@keyframes postcodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 143, 125, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(33, 143, 125, 0); }
}

.postcode-display a {
  margin-left: 6px;
  text-decoration: underline;
  cursor: pointer;
}

.postcode-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.postcode-content {
  background: #fff;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  position: relative;
}

.postcode-content input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}

.postcode-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.postcode-feedback {
  margin-top: 8px;
  font-size: 0.9rem;
}

.postcode-feedback.error {
  color: #b00020;
}

.green { color: #2e7d32; }
.red { color: #c62828; }

.hidden {
  display: none;
}

/* ------------------------------------------
   SIDEBAR
------------------------------------------ */
.sidebar {
  width: 260px;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.filter-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted-text);
}

.filter-group select {
  padding: 0.45rem;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.9rem;
}

.price-range-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.price-box input {
  width: 70px;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}

.price-box button {
  background: var(--eco-green);
  color: #fff;
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
/* Reset button – now green */
.reset-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.6rem;
  background: var(--eco-green);
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.reset-btn:hover {
  background: var(--btn-bg-hover); /* darker eco green */
}

/* ------------------------------------------
   MAIN CONTENT
------------------------------------------ */

.main-content {
  flex: 1;
}

.store-heading {
  margin: 0 0 0.3rem 0;
  font-family: var(--font-heading);
}

.store-subheading {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

/* ------------------------------------------
   BREADCRUMB
------------------------------------------ */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--eco-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ------------------------------------------
   PRODUCT GRID
------------------------------------------ */

/* Product Card */
.product-card {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 25px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding-bottom: 0.8rem;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
}

/* Carousel */
.carousel {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 1rem;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Card Info */
.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0.75rem 0 0.25rem 0;
  padding: 0 0.8rem;
}

.product-card p {
  padding: 0 0.8rem;
  margin: 0.2rem 0;
  color: var(--muted-text);
	text-transform: capitalize;
}

.product-card p:first-of-type {
  font-weight: 400;
  color: var(--deep-neutral);
}

/* --- Subtle entrance animations --------------------------- */
@keyframes floatUp {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0);   }
}
.product-card { animation: floatUp 360ms ease both; }

/* ----------------------------------
   MOBILE FILTER BUTTON
---------------------------------- */
.mobile-filter-btn, .mobile-shop-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(32, 32, 32, 0.18); /* soft line */
  border-radius: 999px; /* pill shape */
  background: #fff;
  color: var(--deep-neutral);
  font-size: 0.95rem;
  font-weight: 300;
  cursor: pointer;

  /* modern subtle shadow */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);

  transition: 0.15s ease;
}

/* Hover / active state */
.mobile-filter-btn:hover, .mobile-shop-btn:hover, {
  background: rgba(33, 143, 125, 0.06); /* soft green tint */
  border-color: rgba(33,143,125,0.35);
}

.mobile-filter-btn:active, .mobile-shop-btn:active, {
  transform: translateY(1px);
}

/* Icon alignment */
.filter-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.8;
}

.filter-close {
	display: none;
	font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--deep-neutral);
  color: #333;
  font-size: 2rem;
}

/* =========================
   PRODUCT PAGE LAYOUT
========================= */
.product-page {
  padding: 28px 16px 40px;
}

.product-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.product-breadcrumbs {
  font-size: 0.95rem;
  margin-bottom: 14px;
  opacity: 0.9;
}

.product-breadcrumbs a {
  text-decoration: underline;
}

.bc-sep::before {
  content: " / ";
  opacity: 0.6;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
	max-height: 600px;
	position: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
	max-height: 600px;
}

.gallery-main img.active {
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 28px;
  cursor: pointer;
	max-width: 480px;
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav.hidden { display: none; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
	max-width: 480px;
}

.gallery-thumbs img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.75;
  border: 2px solid transparent;
}

.gallery-thumbs img.active {
  opacity: 1;
  border-color: rgba(0,0,0,0.35);
}

.product-buybox {
  position: sticky;
  top: 76px; /* sits below sticky notice/header */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px;
  background: white;
}

.product-title {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
}

.stock-pill {
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 10px 0 14px;
}

.microcopy {
  margin: 10px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
  min-height: 18px;
}

.product-facts {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
	text-transform: capitalize;
}

.fact-label { opacity: 0.7; text-transform: capitalize;}
.fact-value { text-align: right; }

.dimension-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
	text-transform: none;
}

.delivery-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
}

.small-link {
  text-decoration: underline;
  font-size: 0.95rem;
}

.product-details {
  margin-top: 28px;
}

.product-description {
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.95;
	white-space: pre-line;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.details-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.details-card h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-buybox {
    position: static;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================
   CART PAGE LAYOUT
============================ */

.cart-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.cart-container {
  display: flex;
  flex: 1 0 auto;
  gap: 2rem;
  align-items: flex-start;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.cart-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-summary {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 1rem;
}

.cart-summary p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ============================
   CART PRODUCT CARD
============================ */

.cart-left .product-card {
	display: flex;
	flex-direction: row;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--soft-border);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card img {
	aspect-ratio: 4 / 5;
}

.cart-left .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.cart-left .carousel {
  width: 160px;
  min-width: 160px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cart-left .carousel img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

/* Carousel arrows */
.cart-left .carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.cart-left .carousel .prev { left: 6px; }
.cart-left .carousel .next { right: 6px; }

.cart-left .product-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.cart-left .product-card p {
  margin: 0.4rem 0;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.removeBtn {
  background: transparent;
  border: 1px solid rgba(200,0,0,0.2);
  color: #a33;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  transition: 0.15s ease;
}

.removeBtn:hover {
  background: rgba(200,0,0,0.07);
  border-color: rgba(200,0,0,0.35);
}

#placeOrderBtn {
  width: 100%;
  background: var(--eco-green);
  color: white;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(33,143,125,0.20);
  transition: 0.2s ease;
}

#placeOrderBtn:hover {
  background: var(--btn-bg-hover);
}

/* Summary details styling */
.cart-extra-info {
  margin-bottom: 1.2rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(33,143,125,0.05);
  border: 1px solid rgba(33,143,125,0.15);
}

.cart-extra-info p, .cart-extra-info ul, .cart-extra-info li {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.small-note {
  margin-top: -0.5rem;
  font-size: 0.78rem;
  color: var(--muted-text);
}

/* Discount code module */
.discount-box {
	flex: 1;
	padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.discount-box:focus {
  border-color: rgba(33,143,125,0.55);
  box-shadow: 0 0 0 3px rgba(33,143,125,0.12);
}

.discount-box label {
  font-size: 0.9rem;
  color: var(--deep-neutral);
  display: block;
}

.discount-box input:focus {
  border-color: var(--eco-green);
}

.discount-box .secondary {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--eco-green);
  background: #fff;
  color: var(--eco-green);
  cursor: pointer;
  transition: 0.2s ease;
}

.discount-feedback {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1em;
}

.discount-old {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.discount-new {
  color: var(--eco-green);
  font-weight: bold;
}

.checkout-modal {
  font-family: var(--font-body);
  position: fixed;
  overflow-y: auto;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  z-index: 3000;
  align-items: flex-start; /* moves modal up slightly */
  padding-top: 40px;       /* spacing from top */
}

.checkout-modal.hidden {
  display: none;
}

.checkout-content {
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  width: 90%;
  padding: 2rem;
  border-radius: 0px;
  box-shadow: 0 4px 35px rgba(0,0,0,0.2);
  position: relative;
  width: 95%;
  max-width: 520px;   /* slightly wider */
  min-width: 320px;   /* prevents collapsing */
}

.checkout-content > * + * {
  box-sizing: border-box;
}

.checkout-content input,
.checkout-content textarea {
  font-family: var(--font-body);
  width: 100%;
  padding: .7rem;
  margin: .4rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.checkout-content h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.checkout-content h3 {
  margin: 1.4rem 0 0.65rem;
  font-size: 1.15rem;
  color: var(--deep-neutral);
}

.checkout-content input,
.checkout-content textarea,
.checkout-content select {
  font-family: var(--font-body);
  width: 100%;
  padding: 0.75rem 0.85rem;
  margin: 0.4rem 0;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-content input:focus,
.checkout-content textarea:focus,
.checkout-content select:focus {
  border-color: rgba(33,143,125,0.55);
  box-shadow: 0 0 0 3px rgba(33,143,125,0.12);
}

.checkout-content textarea {
  min-height: 110px;
  resize: vertical;
}

/* postcode row */
.checkout-postcode-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.checkout-postcode-row label {
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: var(--deep-neutral);
}

.checkout-postcode-row .discount-box {
  margin: 0;
}

/* better secondary button styling inside checkout */
.checkout-content .secondary,
#changeCheckoutPostcode {
  flex: 0 0 auto;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(33,143,125,0.35);
  background: #fff;
  color: var(--eco-green);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.checkout-content .secondary:hover,
#changeCheckoutPostcode:hover {
  background: rgba(33,143,125,0.08);
  border-color: rgba(33,143,125,0.5);
  color: var(--btn-bg-hover);
  transform: translateY(-1px);
}

/* radio + checkbox groups */
.checkout-radio-group,
.checkout-checkbox-group {
  display: grid;
  gap: 0.6rem;
  margin: 0.35rem 0 0.9rem;
}

.checkout-radio-group label:has(input[type="radio"]:disabled) {
  color: #9a9a9a;
  cursor: default;
}

.checkout-radio-group p,
.checkout-checkbox-group p {
  margin: 0 0 0.1rem;
  font-size: 0.95rem;
  color: var(--deep-neutral);
}

.checkout-radio-group label,
.checkout-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--deep-neutral);
  cursor: pointer;
  line-height: 1.35;
}

.checkout-radio-group input[type="radio"],
.checkout-checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--eco-green);
}

/* generic field wrapper */
.checkout-field {
  margin: 0.35rem 0 0.9rem;
}

.checkout-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--deep-neutral);
}

/* summary box refinement */
.checkout-content .summary-block {
  margin-top: 1.25rem;
  padding: 1rem 1rem 0.9rem;
  background: var(--panel-bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
}

.checkout-content .summary-block p {
  margin: 0 0 0.55rem;
}

.checkout-content .summary-block hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 0.8rem 0;
}

/* change postcode link inside unavailable note */
#checkoutDeliveryUnavailableNote a {
  color: var(--eco-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#checkoutDeliveryUnavailableNote a:hover {
  color: var(--btn-bg-hover);
}

/* mobile stack for postcode row */
@media (max-width: 600px) {
  .checkout-postcode-row {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-postcode-row label {
    margin-bottom: -0.1rem;
  }

  .checkout-content .secondary,
  #changeCheckoutPostcode {
    width: 100%;
  }
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 30px;
	font-weight: 200;
  cursor: pointer;
	border: none;
	background: none;
}

.checkout-btn,
.discount-area button {
  font-family: var(--font-body);
  width: 100%;
  margin-top: 0.6rem;
  cursor: pointer;
  background: var(--eco-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  white-space: nowrap;     /* keeps button text on 1 line */
}

.checkout-btn.muted {
  opacity: 0.5;
  cursor: default;
}

.checkout-btn:hover {
  background: var(--btn-bg-hover);
}

.discount-area {
		align-items: stretch;        /* ensures equal height */
		width: 100%;	
		display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

/* Toast Modal (center popup) */
.toast-modal-content {
  max-width: 420px;
  text-align: center;
  padding: 1.5rem 1.5rem 1.2rem;
}

.toast-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.toast-actions {
  display: flex;
  justify-content: center;
}

#toastClose {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.toast-modal-content {
  max-width: 420px;
  min-width: 320px;
  text-align: center;
}

.toast-message {
  margin: 1.5rem 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.toast-actions {
  display: flex;
  justify-content: center;
}

.toast-actions .checkout-btn {
  width: auto;
  min-width: 120px;
}

/* Other responsiveness rules */

@media (max-width: 600px) {
  .discount-area {
    flex-direction: column;
    align-items: stretch;
  }

  .discount-area .secondary,
  .discount-box {
    width: 100%;
  }
}

.discount-area input {
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.total-line {
  font-size: 1.3rem;
  font-weight: bold;
}

.link-btn {
    background: none;
    border: none;
    color: #a33;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 4px;
}

.discount-row {
  display: none;
}

.discount-row.active {
  display: block;
}

.discount-value {
  color: var(--eco-green);
  font-weight: bold;
  display: inline;
}

.discount-help {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.discount-help a {
  color: var(--eco-green);
  text-decoration: underline;
}

.mobile-shop-actions {
  display: none;
}

@media (max-width: 900px) {
  .mobile-shop-actions {
    display: flex;
    gap: 12px;
    margin: 12px 0;
  }
}

@media (min-width: 901px) {
  .sidebar {
    position: static;
    transform: none !important;
    visibility: visible !important;
  }

  .filter-overlay,
  .mobile-shop-btn, .mobile-filter-btn {
    display: none !important;
  }
}

/* ==========================================================
   SHOP PAGE (shop.html)
   Scoped with: body[data-page="shop"]
   Notes:
   - Keep ALL shop-only styles here to avoid conflicts.
   - This section intentionally overrides some global header styles.
   ========================================================== */

body[data-page="shop"]{
  /* Sticky offsets */
  --shop-header-h: 91px;  /* matches your current header height */
  --shop-bars-h: 36px;    /* collapsed bar height used for sidebar offset */
  background: var(--rose-cream);
}

/* --------------------------
   Header (shop only)
-------------------------- */
body[data-page="shop"] header{
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--rose-cream);
  border-bottom: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.035);
  padding: 0.35rem 0;
}

body[data-page="shop"] .nav-container{
  align-items: center;
  gap: 0.25rem;
}

body[data-page="shop"] header nav{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

/* Postcode + spacing */
body[data-page="shop"] .postcode-display{
  font-size: 0.9rem;
  margin-right: 5rem; /* space before shop-by */
}

/* Shop-by toggle */
body[data-page="shop"] .shopby-wrap{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: calc(25% - 12rem);
}

body[data-page="shop"] .shopby-label{
  font-size: 0.86rem;
  color: var(--muted-text);
  line-height: 1;
  white-space: nowrap;
}

body[data-page="shop"] .shopby-toggle{
  box-sizing: border-box;
  width: 190px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  box-shadow: none;
}

body[data-page="shop"] .shopby-toggle label{
  padding: 7px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

body[data-page="shop"] .shopby-toggle .shopby-pill{
  left: 3px;
  right: auto;
  width: calc(50% - 3px);
  transform: translateX(0);
  top: 3px;
  bottom: 3px;
  background: rgba(0,0,0,0.06);
}

/* --------------------------
   Sticky category/subcategory bars
   IMPORTANT: must be opaque to avoid colour tinting
-------------------------- */
body[data-page="shop"] .shop-bars{
  position: sticky;
  top: var(--shop-header-h);
  z-index: 1100;

  /* FIX: opaque background to match header */
  background: var(--rose-cream);

  border-bottom: none;
  box-shadow: 0 16px 30px rgba(0,0,0,0.03);
  padding-bottom: 0;
}

/* Ensure inner wrappers don't “inherit tint” */
body[data-page="shop"] .shop-bars-inner,
body[data-page="shop"] .subcat-inner,
body[data-page="shop"] .subcat-bar{
  background: var(--rose-cream);
}

body[data-page="shop"] .shop-bars-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.25rem 1rem 0.1rem;
  display: block;
}

/* Top categories row */
body[data-page="shop"] #topButtonsRow.topbar-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem 1.4rem;
  align-items: center;
  width: 100%;
  padding: 0.1rem 0;

  border: none;
  background: transparent;
  box-shadow: none;
}

body[data-page="shop"] .top-cat-btn{
  white-space: nowrap;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0.35rem 0.1rem 0.55rem;
  border-radius: 0;

  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(32,32,32,0.82);

  cursor: pointer;
  position: relative;
  transition: color 140ms ease;
}

body[data-page="shop"] .top-cat-btn:hover{ color: var(--deep-neutral); }
body[data-page="shop"] .top-cat-btn.active{
	color: var(--deep-neutral);
	box-shadow: inset 0 -2px 0 var(--deep-neutral);
}

body[data-page="shop"] .top-cat-btn.active::after { content: none; }

/* Subcategory dropdown */
body[data-page="shop"] .subcat-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.15rem 1rem 0.35rem;
}

body[data-page="shop"] #subcategoryRow.subcategory-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.95rem;
  align-items: center;
  padding: 0.15rem 0;

  border: none;
  background: transparent;
  box-shadow: none;
}

body[data-page="shop"] .subcat-btn{
  white-space: nowrap;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0.3rem 0.1rem 0.55rem;

  font-size: 0.88rem;
  font-weight: 450;
  color: rgba(32,32,32,0.72);

  cursor: pointer;
  position: relative;
  transition: color 140ms ease;
}

body[data-page="shop"] .subcat-btn:hover{ color: var(--deep-neutral); }
body[data-page="shop"] .subcat-btn.active{
	color: var(--deep-neutral);
	box-shadow: inset 0 -2px 0 rgba(32,32,32,0.75) !important;
}

/* No underline in the mobile nav drawer */
#shopNavDrawer .top-cat-btn.active,
#shopNavDrawer .subcat-btn.active{
  background: rgba(32,32,32,0.06);
  border-radius: 3px;
  box-shadow: none !important;     /* removes inset underline */
}

body[data-page="shop"] .subcat-btn.active::after { content: none; }

body[data-page="shop"] .subcat-bar{
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 160ms ease, transform 260ms ease;
}

body[data-page="shop"] .subcat-bar.open{
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}

body[data-page="shop"] #subcategoryHint{
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

body[data-page="shop"] .shop-bars,
body[data-page="shop"] .shop-bars-inner,
body[data-page="shop"] #topButtonsRow,
body[data-page="shop"] .subcat-inner{
  overflow: visible;
}

/* --------------------------
   Main layout + sidebar stickiness
-------------------------- */
body[data-page="shop"] .store-container{
  height: auto;
  overflow: visible;
  margin-top: 0.75rem;
  padding-top: 0.25rem;
}

body[data-page="shop"] .sidebar{
  position: sticky;
  top: calc(var(--shop-header-h) + var(--shop-bars-h) + 16px);
}

/* Equal-height product cards */
body[data-page="shop"] #product-grid.product-grid{ align-items: stretch; }
body[data-page="shop"] .product-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

body[data-page="shop"] .product-card .product-btn,
body[data-page="shop"] .product-card button:last-child{
  margin-top: auto;
}

/* --------------------------
   Focus: only for keyboard users
-------------------------- */
body[data-page="shop"] a:focus,
body[data-page="shop"] button:focus,
body[data-page="shop"] input:focus,
body[data-page="shop"] select:focus{
  outline: none !important;
  box-shadow: none;
}

body[data-page="shop"] a:focus-visible,
body[data-page="shop"] button:focus-visible,
body[data-page="shop"] input:focus-visible,
body[data-page="shop"] select:focus-visible{
  outline: 2px solid rgba(32,32,32,0.28);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce){
  body[data-page="shop"] .subcat-bar{ transition: none; transform: none; }
  body[data-page="shop"] .top-cat-btn,
  body[data-page="shop"] .subcat-btn{ transition: none; }
}

/* --------------------------
   Shop nav hamburger (mobile)
-------------------------- */
body[data-page="shop"] .shop-nav{
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body[data-page="shop"] .shop-nav-row{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body[data-page="shop"] #shopMenuToggle{
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  user-select: none;
}

body[data-page="shop"] .shop-nav-cart{
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 12px;
  background: white;
}

/* Mobile breakpoint */
@media (max-width: 900px){
  body[data-page="shop"] #shopMenuToggle{ display: inline-block; }
  body[data-page="shop"] .shop-nav-row{ display: none; }
  body[data-page="shop"] .postcode-display{ margin-right: 0; } /* avoid huge gaps on mobile */
}

/* Mobile: categories/subcats + shop-by live INSIDE the filter drawer */
@media (max-width: 900px){
  body[data-page="shop"] .sidebar .shop-bars{
    position: static;        /* no sticky inside drawer */
    top: auto;
    z-index: auto;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }

  body[data-page="shop"] .sidebar .shop-bars-inner,
  body[data-page="shop"] .sidebar .subcat-inner{
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }

  body[data-page="shop"] .sidebar .shopby-wrap{
    width: 80%;
    justify-content: flex;
    margin: 0;
  }

  body[data-page="shop"] .sidebar .shopby-toggle{
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 900px){
  body[data-page="shop"] .sidebar .shop-mobile-nav{
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
	body[data-page="shop"] .shopby-wrap{
    display: none;
  }
	body[data-page="shop"] .sidebar .shopby-wrap{
    display: flex;
  }
	body[data-page="shop"] .filter-close {
    display: block;
  }
}

/* NAV drawer (separate from filters sidebar) */
.shop-nav-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.42);
  z-index: 9998;
}
.shop-nav-overlay.active{ display:block; }

.shop-nav-drawer{
  position:fixed;
  top:0;
  left:-340px;
  height:100%;
  width:320px;
  max-width:90vw;
  background: #fff;
  z-index: 9999;
  transition:left 0.28s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  padding: 3.2rem 1.1rem 1.1rem;
  overflow-y:auto;
}

.shop-nav-drawer.open{ left:0; }

.shop-nav-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

/* Nav drawer menu layout */
#shopNavDrawer .shop-bars{
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

#shopNavDrawer #topButtonsRow{
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

#shopNavDrawer .top-cat-btn{
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
}

#shopNavDrawer .top-cat-btn.active{ background: rgba(32,32,32,0.06); }
#shopNavDrawer .subcat-btn.active{ background: rgba(32,32,32,0.05); }

/* Right-side indicator */
#shopNavDrawer .top-cat-btn::after{
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

/* Active becomes "open" */
#shopNavDrawer .top-cat-btn.active::after{
  content: "–";
  opacity: 0.9;
}

/* Subcats vertical */
#shopNavDrawer #subcategoryRow{
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.35rem;
  padding-left: 0.35rem;
}

#shopNavDrawer .subcat-btn{
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

#shopNavDrawer .subcat-bar{
  max-height: 0;
  opacity: 0;
  transform: none;
  transition: max-height 220ms ease, opacity 160ms ease;
}

#shopNavDrawer .subcat-bar.open{
  max-height: 520px; /* enough for a long list */
  opacity: 1;
}

#shopNavDrawer .shopby-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0 0.9rem 0;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

#shopNavDrawer .shopby-label{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--deep-neutral);
}

/* Make the toggle match your filter inputs */
#shopNavDrawer .shopby-toggle{
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  padding: 4px;
}

#shopNavDrawer .shopby-toggle label{
  font-size: 0.92rem;
  font-weight: 600;
}

#shopNavDrawer .shop-nav-content {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

/* --- New content to fit new subcategory logic --- */

/* =========================
   Mobile shop nav tree
   ========================= */

#shopNavTree {
  display: grid;
  gap: 0.75rem;
}

.mobile-shopby-block {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-shopby-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-neutral);
}

.mobile-nav-list {
  display: grid;
  gap: 0.2rem;
}

.mobile-nav-group {
  display: grid;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-nav-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--deep-neutral);
  cursor: pointer;
  padding: 0.85rem 2rem 0.85rem 0.25rem;
  position: relative;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
}

.mobile-nav-item:hover {
  background: rgba(32,32,32,0.03);
}

.mobile-nav-item.active {
  background: rgba(32,32,32,0.06);
  border-radius: 8px;
}

.mobile-nav-item::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.mobile-nav-item.active::after {
  content: "–";
  opacity: 0.9;
}

.mobile-subnav,
.mobile-subnav-tree {
  display: grid;
  gap: 0;
  padding: 0.15rem 0 0.45rem 0.85rem;
}

.mobile-subnav-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: rgba(32,32,32,0.78);
  padding: 0.65rem 0.35rem;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
}

.mobile-subnav-item:hover {
  background: rgba(32,32,32,0.035);
  color: var(--deep-neutral);
}

.mobile-subnav-item.active {
  background: rgba(32,32,32,0.06);
  color: var(--deep-neutral);
  font-weight: 500;
}

/* ---- Toolbar (sort + filters) ---- */
body[data-page="shop"] .shop-toolbar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

/* Label */
body[data-page="shop"] .shop-toolbar label {
  font-size: 0.85rem;
  color: var(--muted-text);
  font-weight: 400;
}

/* Select wrapper feel */
body[data-page="shop"] #sortSelect {
  appearance: none; /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;

  padding: 0.55rem 2.2rem 0.55rem 0.9rem;

  background: white;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--deep-neutral);

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: pointer;

  transition: all 0.2s ease;
}

/* Custom dropdown arrow */
body[data-page="shop"] #sortSelect {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5.5 7l4.5 5 4.5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px;
}

/* Hover */
body[data-page="shop"] #sortSelect:hover {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Focus (important for UX polish) */
body[data-page="shop"] #sortSelect:focus {
  outline: none;
  border-color: var(--eco-green);
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.08);
}

/* Active (click feel) */
body[data-page="shop"] #sortSelect:active {
  transform: translateY(1px);
}

/* Overlay used by your JS */
body[data-page="shop"] .filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 9998;
}
body[data-page="shop"] .filter-overlay.active {
  display: block;
}

/* ---- Product grid + cards ---- */
body[data-page="shop"] #product-grid.product-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  body[data-page="shop"] #product-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body[data-page="shop"] #product-grid.product-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="shop"] .product-card {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 12px 34px rgba(0,0,0,0.06);
  overflow: hidden;
  background: white;
  padding-bottom: 0.9rem;
}

body[data-page="shop"] .carousel {
  aspect-ratio: 4 / 5;
  height: auto;
  background: #f5f5f5;
}

body[data-page="shop"] .carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
	max-height: 600px;
}

body[data-page="shop"] .carousel button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
}

body[data-page="shop"] .product-card h3 {
  padding: 0 0.95rem;
  margin: 0.85rem 0 0.2rem;
  font-size: 1.05rem;
}
body[data-page="shop"] .product-card p {
  padding: 0 0.95rem;
  margin: 0.22rem 0;
  color: var(--muted-text);
}
body[data-page="shop"] .product-card p:first-of-type {
  color: var(--deep-neutral);
  font-weight: 600;
}

/* ---- Footer (shop only) ---- */
body[data-page="shop"] footer {
  position: static;
  box-shadow: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 1.3rem 0;
  margin-top: 2rem;
}

body[data-page="shop"] .footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-text);
  font-size: 0.92rem;
}

body[data-page="shop"] .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body[data-page="shop"] .footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Mobile: filter drawer behaviour ---- */
@media (max-width: 900px) {
  body[data-page="shop"] .store-container {
    grid-template-columns: 1fr;
  }

  body[data-page="shop"] .sidebar {
    position: fixed;
    top: 0;
    left: -340px;
    height: 100%;
    width: 320px;
    max-width: 90vw;
    z-index: 9999;
    border-radius: 0 18px 18px 0;
    transition: left 0.28s ease;
    overflow-y: auto;
    padding-top: 3.2rem; /* space for close button */
  }

  body[data-page="shop"] .sidebar.open {
    left: 0;
  }

  body[data-page="shop"] .filter-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 2rem;
    cursor: pointer;
		border: none;
		background: none;
  }
}

/* ==========================================================
   ==========================================================
   Responsiveness
   ==========================================================
   ==========================================================   */
@media (max-width: 900px) {
  .hero-content { padding: 0 1.25rem; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.3rem); }
  .hero-subtitle { font-size: 0.98rem; }
  .product-img { height: 150px; }
}


@media (max-width: 900px) {
   .menu-book-btn {
    display: block;
  } 

  .menu-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
		border: none;
		background: none;
  }

  .nav-links {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  nav ul {
	background: var(--rose-cream);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -250px; /* Hidden by default */
    width: 250px;
    height: 100%;
    padding: 2rem 1rem;
    border-right: 1px solid #ddd;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
  }

  nav ul.open {
    left: 0; /* Slide in */
	background: var(--rose-cream);
  }

  nav ul li {
    margin: 1rem 0;
  }

  .menu-toggle {
    display: block !important;
	margin-left: auto;
  }

  .cart-container {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
    order: 2;
  }

  .cart-left {
    width: 100%;
	order: 1;
  }

  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-card .carousel {
    height: auto;
  }

  .removeBtn {
    align-self: center;
  }
}

@media (max-width: 1199px) and (min-width: 521px) {
  body {
    font-size: 0.9rem; /* shrink overall font size */
  }

  .logo {
    font-size: 1.2rem; /* smaller text size */
  }

  .hero-content h1 {
    font-size: 3.5rem; /* adjust hero heading */
  }

  .hero-content h2 {
    font-size: 1.3rem; /* adjust hero heading */
  }

  .hero-content p {
    font-size: 1rem; /* adjust hero subheading */
  }
}

/* Responsive adjustments */

@media (max-width: 600px) {
  header {
	max-height: 60px;
  }

  .book-btn {
    display: none;
  }

  body {
    font-size: 0.9rem; /* shrink overall font size */
  }

  .logo {
    font-size: 0; /* hides the text but keeps spacing */
	margin-left:0;
  }

  .hero {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2.1rem; /* adjust hero heading */
  }
  
  .hero-content h2 {
    font-size: 1rem; /* adjust hero heading */
  }
  
  .hero-content p {
    font-size: 0.8rem; /* adjust hero subheading */
  } 
}


/* ============================
   CART MOBILE LAYOUT
============================ */
@media (max-width: 1200px) {
	.cart-left .product-card {
		flex-direction: column;
	}
}
@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
  }

  .cart-summary {
    position: static;
    width: 100%;
    margin-top: 2rem;
  }

  .cart-left .product-card .carousel {
    align-items: center;
    text-align: center;
  }

  .cart-left .carousel {
    width: 100%;
    height: auto;
		aspect-ratio: 4 / 5;
  }
}

/* ============================
SHOP/PRODUCT/CART PAGES ONLY: always use burger for top-level nav
============================ */

body[data-page="shop"] .menu-toggle,
body[data-page="product"] .menu-toggle,
body[data-page="cart"] .menu-toggle {
  display: inline-flex !important;
  font-size: 1.5rem;
  font-weight: 200;
  cursor: pointer;
  padding: 0.4rem;
  background: transparent;
  border: none;
  margin-left: auto;
}

body[data-page="shop"] .menu-close,
body[data-page="product"] .menu-close,
body[data-page="cart"] .menu-close {
  display: block;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--deep-neutral);
	border: none;
	background: none;
}

/* keep nav drawer off-canvas until opened */
body[data-page="shop"] nav ul.nav-links,
body[data-page="product"] nav ul.nav-links,
body[data-page="cart"] nav ul.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  padding: 2rem 1rem;
  margin: 0;
  background: var(--rose-cream);
  border-right: 1px solid #ddd;
  transition: left 0.3s ease-in-out;
  z-index: 2000;
}

body[data-page="shop"] nav ul.nav-links.open,
body[data-page="product"] nav ul.nav-links.open,
body[data-page="cart"] nav ul.nav-links.open {
  left: 0;
}

body[data-page="shop"] nav ul.nav-links li,
body[data-page="product"] nav ul.nav-links li,
body[data-page="cart"] nav ul.nav-links li {
  margin: 1rem 0;
}

/* desktop: show postcode outside burger, hide postcode item inside burger */
body[data-page="shop"] .desktop-postcode-block,
body[data-page="product"] .desktop-postcode-block,
body[data-page="cart"] .desktop-postcode-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body[data-page="shop"] .mobile-only-nav,
body[data-page="product"] .mobile-only-nav,
body[data-page="cart"] .mobile-only-nav {
  display: none;
}

/* mobile: hide desktop postcode, show postcode inside burger */
@media (max-width: 900px) {
  body[data-page="shop"] .desktop-postcode-block,
	body[data-page="product"] .desktop-postcode-block,
	body[data-page="cart"] .desktop-postcode-block	{
    display: none;
  }

  body[data-page="shop"] .mobile-only-nav,
	body[data-page="product"] .mobile-only-nav,
	body[data-page="cart"] .mobile-only-nav	{
    display: block;
  }
}

/* --- Accessibility & focus -------------------------------- */
body[data-page="shop"] a:focus,
body[data-page="shop"] button:focus,
body[data-page="shop"] input:focus,
body[data-page="shop"] select:focus,
.menu-close:focus,
.filter-close:focus,
#closePostcodeModal:focus,
#closePostcodeEmailBlock:focus {
  outline: none !important;
  
}

/* Only show focus ring for keyboard users */
body[data-page="shop"] a:focus-visible,
body[data-page="shop"] button:focus-visible,
body[data-page="shop"] input:focus-visible,
body[data-page="shop"] select:focus-visible {
  outline: 2px solid rgba(32,32,32,0.28);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Hide desktop sidebar by default on mobile */
@media (max-width: 900px) {

  .store-container {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* hidden */
    width: 260px;
    height: 100%;
    overflow-y: auto;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
  }

  /* When open */
  .sidebar.open {
    left: 0;
  }

  .breadcrumb {
    display: none; /* hide breadcrumb */
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* off-screen */
    width: 260px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 2rem 1rem;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
  }

  .sidebar.open {
    left: 0;
  }

  .filter-overlay.active {
    display: block; /* darken page when drawer is open */
  }

}

@media (max-width: 900px) {
  .product-gallery {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    justify-self: center;
  }

  .gallery-main {
    margin: 0 auto;
  }

  .gallery-thumbs {
    justify-content: center;
  }

  body[data-page="shop"] .shop-bars {
    display: none;
  }

	body[data-page="shop"] header.shopby-label,
	body[data-page="shop"] header.shopby-toggle,
	body[data-page="shop"] header.shopby-pill	{
		display: none;
	}
}

@media (max-width: 1200px) {
  .cart-left .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cart-left .product-card h3,
  .cart-left .product-card h3 a {
    width: 100%;
    text-align: center;
    display: block;
  }
}