/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #1a1a1a;
  color: #fff;
  line-height: 1.6;
  cursor: url('../img/tongs-cursor.png') 10 10, auto;
}
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url('../img/tongs-cursor.png') 10 10, auto;
  }
}

/* Navbar */
.navbar {
  background: #1111115e;
  /* dark charcoal instead of full black */
  padding: 1rem 2rem;
  display: flex;
  top: 0;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  z-index: 20;
  width: 100%;
  /* ensure it stays above hero */
}

.navbar .logo img {
  max-height: 50px;
  /* keeps logo small in navbar */
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ff4500;
}

/* Hide burger on desktop   */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2000;
  /* ✅ ensure it’s clickable */
  position: relative;
  /* make z-index take effect */

}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    /* ✅ show burger on mobile */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    left: 0;
    width: 200px;
    padding: 1rem;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    pointer-events: none;
  }

  .navbar.nav-open .nav-links {
    transform: translateX(0);
    pointer-events: auto;
  }
    .hero::before {
    width: 300px;
    height: 300px;
    top: -50px;
  }
  .hero h1,
.hero p {
  display: none;
  /* readability */
}



}

/* Hero */
.hero {
  height: 90vh;
  background: url('../img/Cheese_Hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: 100svh; 
}
.hero-content {
  padding-top: 100px; /* adjust as needed */
}

.hero h1,
.hero p {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  /* readability */
}

/* Big floating logo */
.hero::before {
  content: "";
  background: url('../img/logo_alt.svg') no-repeat center;
  background-size: contain;
  pointer-events: none;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;     /* responsive instead of fixed px */
  max-width: 450px; /* cap at desktop size */
  height: 90vw;
  max-height: 450px;
  opacity: 0.95;
  z-index: 11;
}


.hero p {
  margin-bottom: 2rem;
}

.btn {
  background: #ff4500;
  padding: 0.75rem 1.5rem;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #e03e00;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 4rem 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #ff4500;
}

/* Products */
.products .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: scale(1.05);
  background: #222;
}

.shopnow-btn {
  background: #FF5757;
  /* WhatsApp green */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  vertical-align: middle;
  /* aligns buttons nicely side by side */

}

.shopnow-btn:hover {
  background: #fd4c4c;
  ;
  /* darker hover */
}

.shopnow-btn.disabled {
  background: #888;
  /* greyed out */
  cursor: not-allowed;
  /* show blocked cursor */
  opacity: 0.6;
  /* make it look inactive */
  pointer-events: none;
  /* prevent clicks */
}

/* WhatsApp button */
.whatsapp-btn {
  background: #25D366;
  /* WhatsApp green */
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  /* aligns buttons nicely side by side */
  gap: 0.5rem;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;

}

.whatsapp-btn-center {
  background: #25D366;
  /* WhatsApp green */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  width: 30%;
  align-self: center;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  /* darker hover */
}

.whatsapp-btn-center:hover {
  background: #1ebe5d;
  /* darker hover */
}

.wa-icon {
  width: 20px;
  height: 20px;
}

/* Adjust for tablets and below */
@media (max-width: 992px) {
  .whatsapp-btn-center {
    width: 50%;
    text-align: center;
  }
}

/* Adjust for mobile screens */
@media (max-width: 600px) {
  .whatsapp-btn-center {
    width: 80%;
    margin: 0 auto;
    /* centers the button itself */
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    text-align: center;
    /* ensures text stays centered */
  }
}

.video-wrapper {
  position: relative;
  width: 90vw; /* 90% of viewport width */
  max-width: 560px; /* keeps it tidy on desktop */
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* maintains video proportions */
  overflow: hidden;
  border-radius: 12px; /* optional: soft retro corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* optional: subtle depth */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Build Your Wors */
.wors-builder {
  display: flex;
  /*flex*/
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: auto;
}

.price {
  font-weight: bold;
  color: #ff4500;
}

/* Order Section */
.order {
  text-align: center;
}

/* Footer */
.footer {
  background: #111;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.footer .socials a {
  color: #ff4500;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer .socials a:hover {
  color: #fff;
}

/* Product Grid */
.products .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* Product card wrapper */
.product-card {
  background: #111;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: scale(1.03);
  background: #222;
}

/* Flip Cards */
.flip-card {
  background: transparent;
  perspective: 1000px;
  height: 320px;
  border-radius: 1rem;
  position: relative;
  overflow: visible;
  /* allows embers to leave the card */
  z-index: 1;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flip-card-back {
  transform: rotateY(180deg);
  flex-direction: column;
  padding: 1rem;
  background: #222;
  color: #fff;
}

.monomaniac-one-regular {
  font-family: "Monomaniac One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 60px !important;
}

.alfa-slab-one-regular {
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 60px !important;
}

.flip-card-back {
  margin-bottom: 1rem;
  font-family: 'Cochocib Script Latin Pro', cursive;
}

/* Ember base style */
.ember {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd966, #ff4500, #b22222);
  box-shadow: 0 0 10px rgba(255, 100, 0, 0.9),
    0 0 20px rgba(255, 80, 0, 0.6);
  pointer-events: none;
  opacity: 1;
  z-index: 5;
}

/* Match wors-builder select */
.order-row {
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  /* ensures vertical centering */
}

.order-row select {
  flex: 1;
  padding: 0.5rem;
  border-radius: 6px;
  border: 2px solid #333;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  height: 38px;
  /* force consistent height */
}

.order-row select:hover {
  border-color: #ff4500;
}

/* Add-to-cart button styled like WhatsApp but smaller */
.order-row .add-to-cart {
  flex: 1;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  /* force consistent height */
}

.order-row .add-to-cart:hover {
  background: #1ebe5d;
  /* darker WhatsApp green */
}

/* Spinner + success animation states */
.order-row .add-to-cart.loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
  /* hide text */
}

.order-row .add-to-cart.loading::after {
  content: "";
  position: absolute;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.order-row .add-to-cart.success {
  background: #1ebe5d;
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.order-row .add-to-cart.success::after {
  content: "✔";
  position: absolute;
  font-size: 1.2rem;
  color: #fff;
}

/* Global receipt in order section */
.receipt {
  background: #fff;
  color: #000;
  font-family: monospace;
  width: 400px;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid #ccc;
  position: relative;
}

.receipt-header {
  text-align: center;
  margin-bottom: 0.1rem;
}

#receipt-list {
  list-style: none;
  padding: 0.5rem 1rem;
  margin: 0;
  text-align: left;
  /* force left align */
  font-family: monospace;
  font-size: 0.9rem;
}

#receipt-list li {
  margin: 0.2rem 0;
  
  /* prevent wrapping, keeps "·· remove ··" inline white-space: nowrap; */
}

.receipt-logo {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}

.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(-45deg,
      #fff,
      #fff 6px,
      #ccc 6px,
      #ccc 12px);
}

.receipt::before {
  top: -12px;
  /* top tear */
}

.receipt::after {
  bottom: -12px;
  /* bottom tear */
}

.remove-item {
  font-family: monospace;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  margin-left: 6px;
  /* space after product text */
  text-decoration: none;
  border-bottom: 1px dotted #aaa;
  display: inline-block;
  /* keeps it in line, not dropping down */
}

.remove-item:hover {
  color: #000;
  border-bottom-color: #000;
}

.wors-builder input[type="number"],
.wors-builder textarea,
.wors-builder select {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: .65rem .8rem;
  outline: none;
}

.wors-builder input[type="number"]:focus,
.wors-builder textarea:focus,
.wors-builder select:focus {
  border-color: #ff4500;
}

.order-deadline {
  margin: 1rem 0;
  color: #ffb347;
}

.order-deadline small {
  color: #aaa;
}

.locations {
  background: #1a1a1a;
  padding: 4rem 2rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.location-card {
  background: #111;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.location-card h3 {
  color: #ff4500;
  margin-bottom: .5rem;
}

.location-card p {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.location-card iframe {
  border-radius: 10px;
}

/* Countdown */
.countdown {
  text-align: center;
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: #ff4500;
  font-weight: bold;
}

.readynote {
  display: block;
  text-align: center;
  width: 100%;
}

.orderNote {
  display: block;
  text-align: center;
  width: 100%;
}

/* Two-column builder */
.builder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* give ingredients more space */
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  /* expand usable space */
  margin: 0 auto;
  /* keep centered */
  width: 100%;
  padding: 0 2rem;
}

.builder-row {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.builder-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.builder-field label {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.builder-field select {
  background: #222;
  border: 2px solid #333;
  border-radius: 6px;
  padding: 0.5rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.builder-field select:hover {
  border-color: #ff4500;
}

@media (max-width: 768px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .flavor-radar {
    margin-top: 2rem;
  }

  .receipt {
    width: 95%;

    .hero h1 {
      display: none;
    }
  }
}

/* Ingredients grid */

/* Section headings inside builder */
.ingredients-heading {
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  color: #ff4500;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3rem;
}

/* Left side layout */
.ingredients-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Uniform 4-column grid for each section */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ingredient {
  background: #222;
  border-radius: 8px;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  font-size: 0.95rem;
  min-height: 80px;
  /* uniform height */
  transition: 0.2s;
}

.ingredient:hover {
  border-color: #ff4500;
  background: #333;
}

.ingredient.active {
  border-color: #ff4500;
  background: #111;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
}

/* Ingredient notes below flavour Radar */

.ingredient-notes {
  margin-top: 1rem;
  padding: 1rem;
  border-top: 1px dashed #ccc;
  font-size: 0.9rem;
  text-align: left;
}
.ingredient-notes h4 {
  margin-bottom: 0.3rem;
}


/* Radar side */
.flavor-radar {
  max-width: 600px;
  /* larger than before */
  width: 100%;
  margin: auto;
}

.flavor-radar .ingredient-heading {
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  color: #ff4500;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3rem;
}

.cart-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: flex-start;
  padding-top: 5vh; /* push modal down a bit */
}

.cart-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease-out;

  max-height: 85vh;     /* prevent overflow */
  overflow-y: auto;     /* enable scroll if receipt grows */
}

.cart-content h2 {
  margin-top: 0;
}

.cart-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.continue-btn {
  background: #444; /* charcoal */
  color: #fff;
  margin-top: 1rem;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}
.continue-btn:hover {
  background: #333; /* slightly darker on hover */
}

@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Flame burst inside FAB */
.cart-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease; /* smooth fade */
}

.cart-fab.hidden-bg {
  background: transparent !important;
  box-shadow: none;
}

.cart-fab:hover {
  background: #1ebe5d;
}

.cart-fab.pulse {
  animation: pulse 0.6s ease-out;
}

.cart-fab .flame-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.cart-fab.burst .flame-burst {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.6);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Responsive: collapse to 2 columns on tablet, 1 on mobile */
@media (max-width: 992px) {
  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ingredients-grid {
    grid-template-columns: 1fr;
  }
}

/* Make radar responsive */
@media (max-width: 992px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .flavor-radar {
    max-width: 500px;
    margin-top: 2rem;
  }
}

@media (min-width: 1400px) {
  .flavor-radar {
    max-width: 700px;
    /* extra large for big screens */
  }
}

.reviews {
/*   background: #111; charcoal black */
  color: #fff;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: #1a1a1a;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #ff4500;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.review-card p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.review-card .author {
  font-weight: bold;
  font-size: 0.85rem;
  color: #ccc;
}

.reviews-cta {
  margin-top: 2rem;
}

.reviews-cta .btn {
  display: inline-block;
  background: #444;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.reviews-cta .btn:hover {
  background: #ff4500;
}


/*
.trail {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,80,0.6), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 4;
  will-change: transform, opacity;
}
.ember, .trail {
  position: absolute;
  will-change: transform, opacity;
}
*/

/* Rising animation with drift */
@keyframes emberRise {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  30% {
    transform: translate(-5px, -30px) scale(0.9);
    /* drift left */
  }

  60% {
    transform: translate(8px, -60px) scale(0.7);
    /* drift right */
  }

  100% {
    transform: translate(-4px, -100px) scale(0.5);
    opacity: 0;
  }
}