html {
  scroll-behavior: smooth;
}

/* HEADER STRUCTURE WITH LOGO, TITLE, BURGER & BASKET */
.header-wrapper {
  position: relative;
  z-index: 10000;
  padding: 2rem 0 0 0; /* match original spacing */
  background: transparent;
}

header {
  background-color: #ebdcbc;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  z-index: 10000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body {
  padding-top: 50px; 
}

.logo {
  height: 75px;
  width: auto;
  display: block;
}

/* NAV TITLE IN CENTER */
.nav-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title {
  font-family: 'Burgundia', cursive;
  font-size: 2rem;
  color: #4b3b2a;
  white-space: nowrap;
}

.title-underline {
  height: 2px;
  background-color: #4b3b2a;
  margin: 4px 0;
  width: fit-content;
  min-width: 17.5%;
  align-self: center;
}


.subtitle {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: #4b3b2a;
  font-style: italic;
}

/* NAV CONTROLS (BURGER + BASKET) RIGHT SIDE */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.burger {
  cursor: pointer;
}

.burger img {
  width: 75px;
  height: 75px;
  display: block;
}

.basket-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
}

.basket-icon:hover {
  transform: scale(1.1);
}

/* NAVIGATION */
nav {
  position: relative;
}

#navLinks {
  position: fixed;
  top: 0;
  right: -300px; /* Off-screen initially */
  width: 250px;
  height: 100vh;
  background-color: #e5d3b3;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

#navLinks.show {
  right: 0; /* Slide into view */
}


nav a {
  font-family: 'Silver Melody', cursive;
  font-size: 1.4rem;
  text-decoration: none;
  color: #4b3b2a;
}

/* RESPONSIVE MENU */

/* HERO SECTION */
.hero {
  position: relative;
  height: 375px; /* Maintain full height */
  margin: 2rem auto; /* Adds spacing around the hero */
  border-radius: 12px; /* Rounded corners */
  overflow: hidden; /* Ensures image respects the border-radius */
  max-width: 100%; /* Optional: use full width unless you want to limit it */
  box-sizing: border-box;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Let the .hero wrapper handle rounding */
}

.hero-text {
  font-family: 'Burgundia', cursive;
  font-size: 7.5vw;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff3dc;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
  text-align: center;
}

/* Make hero video behave like the previous image */
.hero video.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* .hero wrapper already has rounding/overflow hidden */
}

/* currently in your file */
.hero.loaded img { opacity: 1; }



@media (max-width: 768px) {
  .hero-text {
    font-size: 10vw; /* Slightly larger on smaller screens */
  }
}

/* QUOTE SECTION */
.quote-banner {
  background-color: #d6c2a1;
  text-align: center;
  padding: 2rem;
  margin: 2rem auto; /* Adds spacing around the hero */
  border-radius: 12px; /* Rounded corners */
  overflow: hidden; /* Ensures image respects the border-radius */
}

.quote-text {
  font-weight: bold;
  font-size: 3rem;
  margin: 0;
}

.quote-author {
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.5rem;
  color: #5a4b3a;
}

@media (max-width: 768px) {
  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .image-card {
    width: 90%;
    max-width: none;
  }
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  margin: 2rem auto;
  background-color: #fff7ea;
  border-radius: 12px;
  max-width: 95%;      /* Use 95% of the page width */
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-gallery.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-card {
  flex: 1 1 250px;
  width: 250px;
  height: 200px; /* 👈 fixed height */
  transition: transform 0.3s ease, flex-grow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  line-height: 0;
}

.image-card:hover {
  transform: scale(1.05);
  flex-grow: 1.2;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.image-modal.hidden {
  display: none;
}

.gallery-with-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.cta-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cta-button {
  background-color: #4b3b2a;
  color: #fff3dc;
  padding: 1.25rem 2rem;
  font-size: 1.4rem;
  font-family: 'Roboto Medium', sans-serif;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #3a2f20;
  transform: scale(1.05);
}

/* Animate slide-in */
.fade-slide-in {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}


.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


.intro-with-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background-color: #fff7ea;
  border-radius: 12px;
  margin: 2rem auto;
  flex-wrap: wrap;
  font-family: 'Roboto Medium', sans-serif;
  text-align: center;
  font-family: 'Burgundia', sans-serif; /* ← or use 'Burgundia', 'Silver Melody', etc. */
}

.intro-text {
  flex: 1 1 500px;
  max-width: 700px;
  margin: 0 auto;
}

.cta-button {
  background-color: #4b3b2a;
  color: #fff3dc;
  padding: 1.5rem 3rem;           /* Bigger padding */
  font-size: 1.6rem;              /* Bigger text */
  font-weight: bold;             /* More emphasis */
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Roboto Medium', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Optional: subtle shadow */

  /* 👇 pull it in from the right */
  margin-right: 10rem;
}


.cta-button:hover {
  background-color: #3a2f20;
  transform: scale(1.05);
}


/* Slide-in animation */
.fade-slide-in {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .intro-with-cta {
    flex-direction: column;
    text-align: center;
  }

  .intro-text {
    max-width: 100%;
  }
}


/* INTRO SECTION */
.intro {
  text-align: center;
  padding: 2rem;
  font-family: 'Burgundia', sans-serif;
  margin: 2rem auto; /* Adds spacing around the hero */
  border-radius: 12px; /* Rounded corners */
  overflow: hidden; /* Ensures image respects the border-radius */
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.2rem;
}

/* ABOUT PAGE SECTION */
.about-content {
  background-color: #cbb894;
  color: #2e1f0f;
  font-family: 'DMSerifText-Regular', sans-serif;
  padding: 3rem 2rem;
  font-size: 1.2rem;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  margin: 2rem auto; /* Adds spacing around the hero */
  border-radius: 12px; /* Rounded corners */
  overflow: hidden; /* Ensures image respects the border-radius */
}

@font-face {
  font-family: 'DMSerifText-Regular';
  src: url('DMSerifText-Regular.ttf') format('truetype');
}


/* FOOTER */
footer {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: normal;
  text-align: center;
  padding: 2rem 1rem;
  background-color: #d6c2a1;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  margin: 2rem auto; /* Adds spacing around the hero */
  border-radius: 12px; /* Rounded corners */
  overflow: hidden; /* Ensures image respects the border-radius */
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

footer .credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

footer .credit a {
  color: #4b3b2a;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.offbeat-logo {
  height: 50px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

/* CUSTOM FONTS */
@font-face {
  font-family: 'Burgundia';
  src: url('Burgundia.otf') format('opentype');
}

@font-face {
  font-family: 'Silver Melody';
  src: url('SilverMelody.otf') format('opentype');
}

@font-face {
  font-family: 'Roboto Medium';
  src: url('Roboto-Medium.ttf') format('truetype');
}

.contact-columns {
  display: flex;
  justify-content: left;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-box {
  max-width: 300px;
  text-align: left;
}

form {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9f1e2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: bold;
  font-family: 'Roboto Medium', sans-serif;
}

form input,
form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  width: 700px;      /* fixed width */
  max-width: 100%;   /* still responsive */
  box-sizing: border-box;
}


form button {
  padding: 0.75rem 1.5rem;
  background-color: #4b3b2a;
  color: #fff3dc;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roboto Medium', sans-serif;
  width: 700px;
  max-width: 100%;
}


form button:hover {
  background-color: #3a2f20;
}

.contact-layout {
  display: flex;
  width: 100%;
  gap: 2rem;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 2rem;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #f9f1e2;
  padding: 2rem;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 900px;
}

#contactForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: #f9f1e2;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 900px;  /* Increase from previous 600px */
  width: 100%;
}

.map-section {
  margin-top: 2rem; /* or adjust value to your liking */
}

.contact-details.embedded {
  background-color: #fff7ea;
  padding: 1rem 0 0;
  border-top: 1px solid #cbb894;
}

.contact-details.embedded h2 {
  margin-top: 0;
}

.contact-columns {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.contact-box {
  flex: 1;
  min-width: 120px;
  font-size: 0.95rem;
}

.form-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }

  .form-image {
    margin-top: 1.5rem;
    height: auto;
  }
}

@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
  }

  .logo {
    height: 55px;
    margin-bottom: 0.5rem;
  }

  .nav-title {
    order: 2;
    margin-bottom: 0.5rem;
  }

  .main-title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .nav-controls {
    order: 3;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
  }

  .basket-icon,
  .burger img {
    width: 40px;
    height: 40px;
  }
}

.contact-details.embedded {
  background-color: #fff7ea;
  padding: 1rem 0 0;
  border-top: 1px solid #cbb894;
  text-align: center;
}

.contact-details.embedded h2 {
  margin-top: 0;
  font-family: 'Roboto Medium', sans-serif;
  font-size: 1.5rem;
  color: #4b3b2a;
}

/* Optional: center the phone and email paragraphs */
.contact-details.embedded p {
  margin: 0.5rem 0;
}

/* Optional: style icons inline */
.contact-details.embedded .contact-icon {
  width: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Keep columns nicely spaced */
.contact-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ORDER FORM STYLING */
#orderForm {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9f1e2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Roboto Medium', sans-serif;
  box-sizing: border-box;
}

#orderForm label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
}

#orderForm input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#orderForm button {
  padding: 0.75rem 1.5rem;
  background-color: #4b3b2a;
  color: #fff3dc;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

#orderForm button:hover {
  background-color: #3a2f20;
}

#totalDisplay {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 1rem;
  font-family: 'Roboto Medium', sans-serif;
  color: #4b3b2a;
}

.order-layout {
  display: flex;
  width: 100%;
  gap: 2rem;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Contact page column only */
.contact-layout .form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #f9f1e2;
  padding: 2rem;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 900px;
}


.form-image {
  flex: 1;
  position: relative;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.hero-overlay-text {
  position: absolute;
  font-family: 'Burgundia', cursive;
  font-size: 3vw;
  color: #fff3dc;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .order-layout {
    flex-direction: column;
  }

  .form-image {
    margin-top: 1.5rem;
    height: auto;
  }

  .hero-overlay-text {
  position: absolute;
  font-family: 'Burgundia', cursive;
  font-size: 3vw;
  color: #fff3dc;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}


.product-item {
  margin-bottom: 1.5rem;
}

.product-desc {
  font-style: italic;
  font-weight: normal;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-left: 0.25rem;
  color: #4b3b2a;
}

.pay-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #4b3b2a;
  color: #fff3dc;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roboto Medium', sans-serif;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.pay-button:hover {
  background-color: #3a2f20;
}

.confirmation-container {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  font-family: 'Roboto Medium', sans-serif;
  padding: 2rem;
  background-color: #fff7ea;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.return-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #4b3b2a;
  color: #fff3dc;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.return-button:hover {
  background-color: #3a2f20;
}

form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stock-note {
  font-size: 0.8rem;
  color: #a33;
  margin-left: 0.5rem;
}
}

/* ========== PRIVACY BUTTON ========== */

.privacy-button-wrapper {
  margin-top: 1rem;
  text-align: center;
}

.privacy-button {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: #4b3b2a;
  color: #fff3dc;
  text-decoration: none;
  border-radius: 3px;
  font-family: 'Roboto Medium', sans-serif;
  font-size: 0.65rem;
  transition: background-color 0.2s ease;
}


.privacy-button:hover {
  background-color: #3a2f20;
}

/* ========== COOKIE BANNER ========== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #4b3b2a;
  color: #fff3dc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner a {
  color: #ffeebc;
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 0.5rem;
}

.cookie-buttons button {
  background: #fff3dc;
  color: #4b3b2a;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

.cookie-buttons button:hover {
  background-color: #e0cfa6;
}

.cookie-banner.hidden {
  display: none;
}

.pay-button.loading {
  opacity: 0.6;
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero.loaded img {
  opacity: 1;
}

.cookie-banner {
  transition: transform 0.4s ease-in-out;
}

@media (max-width: 480px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 0.5rem 1rem;
  }

  .logo {
    height: 50px;
    margin-bottom: 0.5rem;
  }

  .nav-title {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .main-title {
    font-size: 1.3rem;
    white-space: normal;
    word-break: break-word;
    max-width: 90vw;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .nav-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .basket-icon,
  .burger img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .hero-overlay-text {
    font-size: 6vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 1rem;
    max-width: 90%;
  }
}

.product-thumb {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.collection-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.collection-option input[type="radio"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.collection-option label {
  min-width: 100px;   /* Ensures labels line up */
  font-size: 1rem;
}

.collection-days {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #8c3f3f;
  color: #fff;
  font-size: 0.65rem;
  font-family: 'Roboto Medium', sans-serif;
  width: 1.2rem;      /* fixed equal width & height */
  height: 1.2rem;
  border-radius: 50%;
  line-height: 1.2rem; /* vertically center text */
  text-align: center;
  display: none;
}


.basket-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #8c3f3f;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  display: none;
}
.basket-link {
  position: relative;
}

@media (max-width: 480px) {
  .image-card {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .image-card img {
    height: 100%;
    object-fit: cover;
  }
}

.hero-text.thank-you {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  font-size: 4vw;
  max-width: 90%;
  padding: 0 1rem;
  line-height: 1.2;
}

.thank-you-message {
  text-align: center;
  font-family: 'Burgundia', cursive;
  font-size: 1.6rem;
  margin: 2rem auto;
  padding: 1rem;
  color: #4b3b2a;
  max-width: 700px;
}

.thank-you-button-wrapper {
  text-align: center;
  margin: 2rem auto 5rem; /* Top = 2rem, Bottom = 5rem spacing from footer */
}

.center-button {
  margin-right: 0 !important;
}

/* Responsive gallery grid + centered CTA */
.image-gallery {
  display: flex;
  flex-wrap: nowrap;            /* One row only */
  justify-content: center;      /* Center the full row */
  gap: 1rem;
  overflow-x: auto;             /* Enables scrolling if screen is too small */
  padding: 2rem 1rem;
  margin: 2rem auto;
  background-color: #fff7ea;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-gallery.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Make the CTA span the grid and center it */
.image-gallery .cta-button-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.image-gallery .cta-button {
  margin-right: 0 !important;
  margin-left: 0;
}

/* --- Mobile centering fixes for image galleries --- */

/* Center items within their grid cells */
.image-gallery {
  justify-items: center;   /* centers the card inside each grid column */
}

/* Let cards fill the column instead of staying 250px wide */
.image-gallery .image-card {
  width: 100%;             /* fill available grid track width */
  max-width: 520px;        /* optional: cap on very wide screens */
}

/* On small phones, force a single centered column */
@media (max-width: 480px) {
  .image-gallery {
    grid-template-columns: 1fr;  /* one column that spans full width */
  }
}

/* GENERAL RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

/* NEWSLETTER POPUP */
.nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nl-overlay.hidden {
  display: none;
}

.nl-overlay.show {
  opacity: 1;
  transform: scale(1);
}

.nl-overlay.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* Modal box */
.nl-modal {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
}

.nl-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
}

/* Form Elements */
#nl-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

#nl-form input[type="text"],
#nl-form input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.nl-consent {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  align-items: center;
}

.nl-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.nl-btn,
.nl-skip {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.nl-btn {
  background-color: #222;
  color: #fff;
}

.nl-skip {
  background-color: #ccc;
  color: #222;
}

/* Status Message */
.nl-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #007700;
}

/* Optional: responsive tweaks */
@media (max-width: 500px) {
  .nl-modal {
    padding: 1.5rem;
  }

  .nl-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nl-btn,
  .nl-skip {
    width: 100%;
  }
}


/* Force badge to stay a perfect circle on all pages */
header .cart-badge {
  display: inline-block !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  border-radius: 50% !important;
  line-height: 1.2rem !important;
  text-align: center !important;
  font-size: 0.65rem !important;
  font-family: 'Roboto Medium', sans-serif;
  background-color: #8c3f3f;
  color: #fff;
}

/* Force cart badge to be a perfect circle on all pages */
header .basket-link .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #8c3f3f;
  color: #fff;
  font-family: 'Roboto Medium', sans-serif;
  font-size: 0.65rem;
  /* circle geometry */
  width: 1.2rem;
  height: 1.2rem;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: inline-flex;       /* avoid line-height issues */
  align-items: center;
  justify-content: center;
  line-height: 1;             /* neutral line-height */
  padding: 0;
  /* hidden by default; JS will show when > 0 */
  display: none;
}

/* === Cart badge hardening === */
header .basket-link .cart-badge {
  background-color: #8c3f3f;
  color: #fff;
  font-family: 'Roboto Medium', sans-serif;
  font-size: 0.65rem;
  position: absolute;
  top: -8px;
  right: -8px;

  /* Circle geometry */
  width: 1.2rem;
  height: 1.2rem;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: none;           /* hidden by default */
  align-items: center;     /* active when shown via JS */
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-align: center;
}

/* Hide when no text inside (extra safety) */
header .basket-link .cart-badge:empty { display: none !important; }


/* Fix intro-with-cta layout on mobile */
@media (max-width: 768px) {
  .intro-with-cta {
    flex-direction: column;
    align-items: center; /* ensure both text and button are centered */
    gap: 1rem; /* reduce excess spacing between elements */
  }

  .intro-with-cta .intro-text {
    text-align: center;
  }

  .intro-with-cta .cta-button {
    margin-right: 0; /* remove desktop offset */
    margin-top: 0.5rem; /* small, consistent space below text */
  }
}


/* ===== Responsive fixes for order.html (form + hero) ===== */
@media (max-width: 768px) {
  .order-layout {
    flex-direction: column;
    gap: 1rem;
  }

  /* Let the form column shrink to fit on small screens */
  .order-layout .form-column,
  .form-column {
    min-width: 0;
    width: 100%;
    padding: 1.25rem;
  }

  /* Ensure the actual <form> fits comfortably */
  #orderForm {
    max-width: 100%;
    padding: 1.25rem;
  }

  /* Make the right-side hero/image fully responsive */
  .order-layout .form-image,
  .form-image {
    order: 2;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .order-layout .form-image img,
  .form-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
  }

  /* Improve legibility of overlay text on smaller viewports */
  .hero-overlay-text {
    font-size: 6vw;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
  }
}


/* ===== Responsive fixes for contact.html (form + image) ===== */
@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
    gap: 1rem;
  }

  /* Make form column take full width */
  .contact-layout .form-column {
    min-width: 0;
    width: 100%;
    padding: 1.25rem;
  }

  /* Ensure form elements fit on small screens */
  #contactForm {
    max-width: 100%;
    padding: 1.25rem;
  }

  /* Stack and resize the image */
  .contact-layout .form-image {
    order: 2;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .contact-layout .form-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
  }

  /* Adjust embedded contact details for better mobile view */
  .contact-details.embedded {
    text-align: center;
    padding: 1rem;
  }

  .contact-columns {
    flex-direction: column;
    align-items: center;
  }
}


/* ===== Responsive fixes for contact.html (form + layout) ===== */
@media (max-width: 768px) {
  /* Stack columns and allow them to shrink */
  .contact-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-layout .form-column,
  .form-column {
    min-width: 0;          /* override 900px min-width */
    width: 100%;
    padding: 1.25rem;
  }

  /* Make the actual form fluid */
  #contactForm {
    max-width: 100%;
    width: 100%;
    padding: 1.25rem;
  }

  /* Inputs/buttons should span the container on mobile */
  form input,
  form textarea,
  form button,
  #contactForm input,
  #contactForm textarea,
  #contactForm button {
    width: 100%;
  }

  /* Right-side image: full width and auto height */
  .form-image {
    order: 2;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .form-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
  }

  /* Contact details spacing/legibility */
  .contact-details.embedded {
    padding: 1rem;
  }

  /* Map spacing */
  .map-section {
    margin-top: 1rem;
  }
}


/* === Responsive Overrides (drop-in) ===
   Place this AFTER your existing styles.css or merge it at the end.
   Focus: prevent overflow on phones/tablets and keep layout intact.
*/

/* Forms and columns: remove rigid min-widths on narrow viewports */
@media (max-width: 1024px) {
  .form-column,
  .contact-layout .form-column,
  #contactForm,
  #orderForm {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* CTA button: avoid large right margin on small screens */
@media (max-width: 900px) {
  .cta-button {
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: inline-block;
  }
}

/* Header spacing: ensure content never hides behind the fixed header */
:root {
  --header-safe-space: clamp(70px, 10vw, 110px);
}
body {
  padding-top: var(--header-safe-space) !important;
}

/* Image gallery cards: allow them to shrink slightly on small phones */
@media (max-width: 380px) {
  .image-card {
    width: 45vw !important;
    min-width: 140px !important;
    height: 32vw !important;
    max-height: 180px !important;
  }
}

/* Hero text: keep legible and contained on very small devices */
@media (max-width: 380px) {
  .hero-text {
    font-size: 12vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 1rem !important;
    max-width: 92vw !important;
    text-align: center !important;
  }
}

/* Contact columns: ensure neat stacking/centering on mobile */
@media (max-width: 768px) {
  .contact-columns {
    justify-content: center !important;
  }
}

/* Form controls: respect container width on small screens */
@media (max-width: 900px) {
  form input,
  form textarea,
  form button {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Basket/cart badge: prevent overlap issues on very small screens */
@media (max-width: 400px) {
  .basket-link .cart-badge {
    top: -6px !important;
    right: -6px !important;
  }
}

/* Order page hero overlay text: ensure readable on phones */
@media (max-width: 480px) {
  .hero-overlay-text {
    font-size: 6.5vw !important;
    padding: 0 1rem !important;
    width: 100% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }
}

/* Slide-out nav: make sure it fits tiny phones */
@media (max-width: 360px) {
  #navLinks {
    width: 220px !important;
  }
}

/* Smaller delete (✕) button in order basket */
.cart-table .remove {
  font-size: 0.7rem;      /* smaller text/icon */
  padding: 0.1rem 0.3rem; /* compact padding */
  line-height: 1;
  background: #c00;       /* red background */
  color: #fff;            /* white X */
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.cart-table .remove:hover {
  background: #900;       /* darker red on hover */
}



/* =========================
   Scoped enhancements (non-breaking)
   - Calendar visuals (only inside Order form & Admin collection block)
   - Tiny cart remove (✕) button (only inside Order form)
   ========================= */

/* --- Order page calendar (scoped) --- */
#orderForm .calendar{
  --cal-bg: #fffaf0;
  --cal-border: #cbb894;
  --cal-accent: #4b3b2a;
  --cal-ink: #2e2a25;
  --cal-ink-muted: #6b5b45;
  --cal-selected-ink: #fff3dc;
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

#orderForm .calendar .cal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; gap:.5rem; }
#orderForm .calendar .cal-header button{ background: var(--cal-accent); color: var(--cal-selected-ink); border:none; border-radius:8px; padding:.35rem .6rem; cursor:pointer; transition: transform .06s ease, opacity .2s ease; }
#orderForm .calendar .cal-header button:hover{ opacity:.9 }
#orderForm .calendar .cal-header button:active{ transform: translateY(1px) }

#orderForm .calendar .grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:.3rem; }
#orderForm .calendar .dow{ font-size:.82rem; color: var(--cal-ink-muted); text-align:center; padding:.25rem 0; user-select:none; }
#orderForm .calendar .day{
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid #e8dcc4; background:#fff; cursor:pointer; user-select:none; font-size:.95rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
#orderForm .calendar .day:hover{ box-shadow: inset 0 0 0 1px var(--cal-border) }
#orderForm .calendar .day:focus-visible{ box-shadow: 0 0 0 3px rgba(203,184,148,.55) }
#orderForm .calendar .day.other{ opacity:.35; cursor:not-allowed; }
#orderForm .calendar .day.disabled{ opacity:.45; cursor:not-allowed; color:#a7a098; background:#f5f1e8; text-decoration: line-through; }
#orderForm .calendar .day.enabled{ color: var(--cal-ink); background:#fff; }
#orderForm .calendar .day.selected{ background: var(--cal-accent); color: var(--cal-selected-ink); border-color: var(--cal-accent); box-shadow: 0 0 0 2px rgba(75,59,42,.15); }

/* --- Admin page calendar (scoped) --- */
#collectionDatesBlock .calendar{
  --cal-bg: #fffaf0;
  --cal-border: #cbb894;
  --cal-accent: #4b3b2a;
  --cal-ink: #2e2a25;
  --cal-ink-muted: #6b5b45;
  --cal-selected-ink: #fff3dc;
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
#collectionDatesBlock .calendar .cal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; gap:.5rem; }
#collectionDatesBlock .calendar .cal-header button{ background: var(--cal-accent); color: var(--cal-selected-ink); border:none; border-radius:8px; padding:.35rem .6rem; cursor:pointer; transition: transform .06s ease, opacity .2s ease; }
#collectionDatesBlock .calendar .cal-header button:hover{ opacity:.9 }
#collectionDatesBlock .calendar .cal-header button:active{ transform: translateY(1px) }
#collectionDatesBlock .calendar .grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:.3rem; }
#collectionDatesBlock .calendar .dow{ font-size:.82rem; color: var(--cal-ink-muted); text-align:center; padding:.25rem 0; user-select:none; }
#collectionDatesBlock .calendar .day{ aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; border-radius:10px; border:1px solid #e8dcc4; background:#fff; cursor:pointer; user-select:none; font-size:.95rem; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; outline:none; }
#collectionDatesBlock .calendar .day:hover{ box-shadow: inset 0 0 0 1px var(--cal-border) }
#collectionDatesBlock .calendar .day:focus-visible{ box-shadow: 0 0 0 3px rgba(203,184,148,.55) }
#collectionDatesBlock .calendar .day.other{ opacity:.35; cursor:not-allowed; }
#collectionDatesBlock .calendar .day.disabled{ opacity:.45; cursor:not-allowed; color:#a7a098; background:#f5f1e8; text-decoration: line-through; }
#collectionDatesBlock .calendar .day.enabled{ color: var(--cal-ink); background:#fff; }
#collectionDatesBlock .calendar .day.selected{ background: var(--cal-accent); color: var(--cal-selected-ink); border-color: var(--cal-accent); box-shadow: 0 0 0 2px rgba(75,59,42,.15); }

/* --- Basket remove (✕) button — compact & centered; scoped to Order form --- */
#orderForm .cart-table .remove{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:24px !important;
  height:24px !important;
  font-size:14px !important;
  line-height:1 !important;
  padding:0 !important;
  margin:0 !important;
  border:none !important;
  border-radius:50% !important;
  background:#c00 !important;
  color:#fff !important;
  cursor:pointer !important;
  box-sizing:border-box !important;
}
#orderForm .cart-table .remove:hover{ background:#900 !important; }

/* General styles for the calendar container */
#calendarCustomer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px; /* Set a max width for the calendar */
  margin: 20px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

/* Calendar header */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cal-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.cal-header button:hover {
  color: #007bff;
}

/* Days of the week row */
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 15px;
}

.dow {
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

/* Styling for each day cell */
.day {
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.day:hover {
  background-color: #f0f0f0;
}

.day.selected {
  background-color: #007bff;
  color: white;
}

.day.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.day.enabled {
  background-color: #fff;
}

.day.selected.enabled {
  background-color: #0056b3;
  color: white;
}

/* Optional styling for the calendar hint */
#collectionHint {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
}

/* Styling for navigation buttons (prev and next) */
#cPrev, #cNext {
  font-size: 1.2rem;
  padding: 5px 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  cursor: pointer;
}

#cPrev:hover, #cNext:hover {
  background-color: #007bff;
  color: white;
}

#calendarAdmin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.day {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.enabled {
  background-color: white;
}

.selected {
  background-color: #007bff;
  color: white;
}

.other {
  background-color: #f0f0f0;
}

.dow {
  font-weight: bold;
  text-align: center;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.2rem;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 1rem;
  margin-top: 1rem;
}

.day {
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}

.day.enabled {
  background-color: #f0f0f0;
}

.day.selected {
  background-color: #8c3f3f;
  color: white;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* ===== Admin-only portrait fixes ===== */
@media (orientation: portrait) and (max-width: 768px) {
  /* Container & padding */
  #adminPage { padding: 1rem; }
  #adminPage .admin-container { padding: 1rem; }

  /* Any grid rows with inline 2/3 columns => stack to 1 col */
  #adminPage .field-row,
  #adminPage .two-col {
    grid-template-columns: 1fr !important;
  }

  /* Controls: make buttons & inputs wrap and fill */
  #adminPage .save-btn,
  #adminPage input[type="text"],
  #adminPage input[type="number"],
  #adminPage input[type="date"],
  #adminPage input[type="time"],
  #adminPage textarea,
  #adminPage select {
    width: 100% !important;
  }

  /* --- Calendar (admin) --- */
  /* Keep a true 7-column grid with smaller cells; allow pan if still tight */
  #adminPage #calendarAdmin { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #adminPage #calendarAdmin .grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(30px, 1fr)); /* shrink in portrait */
    gap: 4px;
    font-size: 0.85rem;
  }
  #adminPage #calendarAdmin .dow { text-align: center; padding: 6px 0; font-weight: 600; }
  #adminPage #calendarAdmin .day { text-align: center; padding: 6px 0; line-height: 1; }

  /* Compact month header + bigger tap targets for arrows */
  #adminPage #calendarAdmin .cal-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
  }
  #adminPage #calendarAdmin .cal-header button { padding: 6px 0; font-size: 1rem; }
  #adminPage #calendarAdmin .cal-header strong { font-size: 1rem; }

  /* --- Quantities tables (Product totals & Stock) --- */
  /* Make wrappers scrollable horizontally on phones */
  #adminPage #productTotalsTable,
  #adminPage #stockTable {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep table columns readable while allowing scroll */
  #adminPage #productTotalsTable table,
  #adminPage #stockTable table {
    min-width: 560px;       /* force scroll instead of squashing */
    font-size: 0.95rem;
  }
  #adminPage #productTotalsTable th,
  #adminPage #productTotalsTable td,
  #adminPage #stockTable th,
  #adminPage #stockTable td {
    padding: .45rem .5rem !important;
    white-space: nowrap;    /* don't wrap numbers/labels */
  }
}

/* Extra-tight phones */
@media (orientation: portrait) and (max-width: 400px) {
  #adminPage #calendarAdmin .grid {
    grid-template-columns: repeat(7, minmax(26px, 1fr));
    font-size: 0.8rem;
  }
  #adminPage #calendarAdmin .day { padding: 4px 0; }
}

/* === Digits-only override for price & pack lines (pizza page) === */
/* Build a digits-only face from your existing Roboto-Medium.ttf */
@font-face {
  font-family: "DigitsAlt";
  src: url("Roboto-Medium.ttf") format("truetype");
  font-display: swap;
  /* 0–9 + £ + degree + en/em dash (for ranges like 5–8 minutes) */
  unicode-range: U+0030-0039, U+00A3, U+00B0, U+2013, U+2014;
}

/* 1) The intro-with-cta paragraph that contains "£10 per pack" and "packs of 6" */
.intro-with-cta .intro-text p {
  font-family: "DigitsAlt", inherit;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* 2) The first paragraph under the Pack & Price section ("Packs of 6... £15 per pack") */
.intro h2 + p {
  font-family: "DigitsAlt", inherit;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Ensure the badge itself also swaps its digits */
.price-badge {
  font-family: "DigitsAlt", inherit;
}

/* Digits-only swap (optional, for the <span class="num">…</span> wrapper) */
.num {
  font-family: 'Roboto Medium', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* === Desktop hero + CTA align fixes (pizza page) === */

/* 1) Let the hero wrapper match the video height on desktop so nothing is cropped */
.hero {
  height: clamp(360px, 55vh, 720px) !important;  /* same scale as the video */
}

/* 2) Stop the intro CTA drifting to the right on desktop */
.intro-with-cta .cta-button {
  margin-right: 0 !important;   /* override the 10rem offset */
}

/* 3) Make CTA anchors block-like so top margins actually create space */
.cta-button {
  display: inline-block;         /* lets margin-top work */
}

/* 4) Ensure the Pack & Price CTA sits below the paragraph cleanly */
.intro .cta-button {
  margin-top: 1rem !important;   /* visible spacing under the text */
}
 /* === Center the three feature cards inside the Features section === */
.image-gallery .feature-grid {
  width: auto !important;                 /* override inline width:100% */
  max-width: 1000px;                      /* cap the row width */
  margin: 0 auto;                         /* center the grid area */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  justify-content: center;                /* center tracks if there's extra space */
  justify-items: center;                  /* center cards inside each track */
  gap: 16px;
}

/* Keep cards a sensible width on desktop */
.image-gallery .feature-card {
  width: 100%;
  max-width: 480px;
}

/* Tablet: 2 centered columns (matches your current feel) */
@media (max-width: 900px) {
  .image-gallery .feature-grid {
    grid-template-columns: 1fr 1fr !important;
    max-width: 760px;
  }
}

/* Phones: 1 centered column */
@media (max-width: 520px) {
  .image-gallery .feature-grid {
    grid-template-columns: 1fr !important;
    max-width: 460px;
  }
}

/* Center hero text on desktop (keeps mobile unchanged) */
@media (min-width: 769px) {
  .hero-text {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    text-align: center;
    z-index: 2;          /* sit above image/video */
    width: min(90%, 900px);
    padding: 0 1rem;
    pointer-events: none; /* avoid blocking clicks on hero, optional */
  }
}

/* Pizza hero: smaller desktop heading so it fits over the video */
@media (min-width: 769px) {
  .pizza-hero .hero-text {
    font-size: clamp(32px, 5.2vw, 88px) !important;
    line-height: 1.05;
    max-width: min(90%, 1000px);
    padding: 0 1rem; /* tiny side breathing room */
  }
}

/* Intro + CTA responsive layout */
.intro-with-cta {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;   /* stack on mobile */
  gap: 1rem;
  align-items: center;
}

.intro-with-cta .intro-text {
  max-width: 65ch;
  margin-inline: auto;          /* center text block on mobile */
}

.intro-with-cta .cta-stack {
  display: flex;
  justify-content: center;      /* center button on mobile */
}

.intro-with-cta .cta-button {
  display: inline-block;
  text-align: center;
  width: 100%;                  /* full-width button on mobile */
  max-width: 320px;             /* keeps it elegant */
}

/* Desktop: place text and CTA side-by-side */
@media (min-width: 900px) {
  .intro-with-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }
  .intro-with-cta .intro-text {
    margin-inline: 0;           /* align to left column */
  }
  .intro-with-cta .cta-stack {
    justify-content: end;       /* push button to the right */
    align-self: center;         /* vertical centering vs. text */
  }
  .intro-with-cta .cta-button {
    width: auto;                /* natural width on desktop */
    max-width: none;
  }
}

