/* — Palette & Reset — */
:root {
  --pink: #ff1294;
  --blue: #b0dfe5;
  --gray: #4b3f36;
  --light-bg: #F7F1ED;
  --transition: 0.3s ease;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gray);
  background: #fff;
  line-height: 1.6;
}

/* — Containers & Sections — */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section {
  padding: 4rem 0;
}
.section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--pink);
  text-align: center;
  margin-bottom: 2rem;
}

/* — NAVIGATION — */
.nav {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 1rem;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo img {
  height: 90px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray);
  cursor: pointer;
  transition: color var(--transition);
}
.nav-toggle.open {
  color: var(--pink);
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
}
.nav-list a,
.btn-cart {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover,
.nav-list a.active,
.btn-cart:hover {
  background: var(--pink);
  color: #fff;
}

/* — Burger Menu (Mobile) — */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    position: absolute;
    top: 60px;
    right: 1rem;
    background: var(--blue);
    flex-direction: column;
    width: 220px;
    max-height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: max-height var(--transition);
  }
  .nav-list.open {
    max-height: 400px; /* adjust if you add more items */
  }
  .nav-list li {
    width: 100%;
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .nav-list a:last-child {
    border-bottom: none;
  }
  .btn-cart {
    margin: 0.75rem 1.25rem;
    padding: 0.5rem;
  }
}

/* — CART MODAL — */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 300;
}
.cart-modal.open {
  display: flex;
}
.cart-content {
  background: #fff;
  padding: 2rem 1rem;  /* reduce horizontal padding on small screens */
  border-radius: 0.75rem;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;   /* ✅ make it never exceed viewport height */
  overflow-y: auto;   /* ✅ allow internal scrolling */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

.cart-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-items {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 0;
}
.cart-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.remove-item {
  background: none;
  border: none;
  color: red;
  font-size: 1rem;
  cursor: pointer;
}
.cart-total {
  text-align: right;
  margin-bottom: 1.25rem;
  font-weight: bold;
  font-size: 1.1rem;
}
.cart-content .btn {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
}

/* — ORDER FORM MODAL — */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 400;
}
.order-modal.open {
  display: flex;
}
.order-form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--pink);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.close-modal:hover {
  background: #e22c8e;
}
.order-form h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.order-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}
.order-form label span {
  display: block;
  margin-bottom: 0.25rem;
}
.order-form input,
.order-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}
.order-form button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* — HERO — */
.hero {
  background: var(--blue) url('../images/hero.jpg') center/cover no-repeat;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-container {
  position: relative;
  z-index: 1;
}
/* — Responsive Hero Logo — */
.hero-logo {
  display: block;
  width: clamp(250px, 15vw, 400px);
  height: auto;
  margin: 0 auto 1rem; /* center + preserve bottom space */
}

.hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover {
  background: #e22c8e;
}

/* — MENU GRID — */
.menu-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.menu-item {
  background: var(--light-bg);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}
.menu-item:hover {
  transform: translateY(-5px);
}
.menu-item.in-cart {
  box-shadow: 0 0 0 3px var(--pink);
}
.menu-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}
.menu-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.menu-item .price {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.menu-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
}
.quantity {
  width: 60px;
  padding: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  text-align: center;
}
.btn-add {
  background: var(--gray);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-add:hover {
  background: #3b342d;
}
.btn-add.in-cart {
  background: var(--pink) !important;
}
.btn-add.in-cart:hover {
  background: #e22c8e !important;
}
.new .tag-new {
  background: var(--pink);
  color: #fff;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.limited .tag-limited {
  background: #ccc;
  color: var(--gray);
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* — GALLERY GRID — */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery-grid img {
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition);
}
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* — LIGHTBOX — */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 1rem;
}

/* — CONTACT — */
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}
.map-container,
.contact-column {
  flex: 1;
  min-width: 280px;
}
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.contact-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 0;
}
.contact-info li {
  margin-bottom: 1rem;
  font-weight: 500;
}
.contact-info a {
  color: var(--pink);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  font-size: 1.5rem;
  color: var(--gray);
  transition: color var(--transition);
}
.social-links a:hover {
  color: var(--pink);
}

/* — Footer Designer Credit — */
.footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
}

.designer-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #fff;
}

.designer-credit a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.designer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

/* — Reviews Section — */
.reviews-section h2 {
  margin-bottom: 2rem;
}
.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.review-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-card p {
  font-style: italic;
  margin-bottom: 1rem;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--gray);
}
.stars {
  color: #FFD700; /* gold */
  font-size: 1rem;
}
/* — Back to Top Button — */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--pink);
  color: #fff;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background var(--transition), transform var(--transition);
  z-index: 1000;
}
#back-to-top:hover {
  background: #e22c8e;
  transform: translateY(-2px);
}
#back-to-top.show {
  display: flex;
}
#back-to-top i {
  font-size: 1.25rem;   /* adjust so it nicely fills the circle */
}
/* — Two items per row on mobile — */
@media (max-width: 768px) {
  .menu-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* — Reviews Carousel — */
.reviews-grid {
  position: relative;
  overflow: hidden;
  min-height: 8rem; /* adjust if needed so it doesn’t jump */
}
.review-card {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease;
}
.review-card.active {
  display: block;
  position: relative;
  opacity: 1;
}
.availability {
  font-size: 0.9em;
  color: #444;
  margin-top: 4px;
}
.menu-item.sold-out .availability {
  color: red;
  font-weight: bold;
}
/* Styled dropdown select */
.menu-item .type-select {
  padding: 6px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.menu-item .type-select:focus {
  border-color: #a8e0e6;
  outline: none;
}

.menu-item .menu-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-item .type-select option {
  background-color: #fff;
  color: #333;
}
/* General dropdown styling */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 2px solid #a8e0e6;
  border-radius: 5px;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

select:focus {
  outline: none;
  border-color: #72c4cf;
  background-color: #f8f8f8;
}

/* Ensure consistent spacing in the form */
label select {
  width: 100%;
  margin-top: 5px;
}
.stock-count {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.9em;
  color: #555;
}
.countdown-box {
  text-align: center;
  margin: 30px 0;
  font-size: 1.5rem;
  color: #c0392b;
}

.extra-gallery {
  padding: 30px;
  text-align: center;
}
.extra-gallery img {
  max-width: 250px;
  margin: 10px;
  border-radius: 10px;
}
.hidden {
  display: none;
}.countdown-message {
  font-size: 1.25rem;
  text-align: center;
  background: #ffefe0;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #d13b00;
  font-weight: bold;
}
/* Gallery navigation buttons */
.gallery-controls {
  text-align: center;
  margin-top: 1rem;
}

.gallery-controls button {
  background-color: #ff66a5;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.6em 1.2em;
  margin: 0 0.5em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gallery-controls button:hover {
  background-color: #e05590;
}

/* Sold out / Preorder unavailable state */
.menu-item.sold-out {
  opacity: 0.5;
  filter: blur(1px);
  pointer-events: none;
  position: relative;
}

.menu-item.sold-out::after {
  content: "Sold Out or Unavailable";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 80, 0.9);
  color: white;
  padding: 0.5em 1em;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  z-index: 10;
}
.pickup-alert {
  background: #ffe5e5;
  color: #b30000;
  font-weight: bold;
  border-left: 5px solid #ff4d4d;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-content h2 {
  color: #d8007b;
  font-weight: bold;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 5px #ffd6f7;
}
.cart-content h2 i {
  color: #ff69b4;
}
.cart-items li {
  background: #fff0f6;
  border-left: 4px solid #ff69b4;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items .remove-item {
  background: none;
  color: #b30000;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
}
.cart-total {
  background: #ffe8f1;
  border-radius: 6px;
  padding: 10px;
  margin: 10px 0;
  font-size: 1.2rem;
  text-align: right;
  font-weight: bold;
  color: #c00055;
}
.btn.btn-primary {
  background: #ff1493;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px #c20070;
  transition: all 0.2s ease-in-out;
}
.btn.btn-primary:hover {
  background: #e01188;
  transform: translateY(-1px);
}

.btn.btn-secondary {
  background: white;
  border: 2px solid #222;
  color: #222;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  padding: 10px 20px;
}
.btn.btn-secondary:hover {
  background: #f5f5f5;
}
.cart-content {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
}
.gallery-thumb {
  display: none !important;
}

.gallery-thumb.js-visible {
  display: inline-block !important;
}


#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue);
  color: var(--gray);
  padding: 1rem;
  z-index: 10000;
  display: none;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

#cookie-consent .cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

#cookie-consent p {
  margin: 0;
  flex: 1;
  font-size: 1rem;
}

#cookie-consent a {
  color: var(--pink);
  text-decoration: underline;
}

#cookie-consent button {
  background: var(--pink);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background var(--transition);
}

#cookie-consent button:hover {
  background: #e01188;
}

@media (max-width: 600px) {
  #cookie-consent .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  #cookie-consent button {
    margin-left: 0;
  }
}

.cart-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@media (max-width: 480px) {
  .cart-content {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }
}

/* ====== Confirmation Modal Styling (Pink Theme) ====== */
.confirmation-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dim overlay */
  justify-content: center;
  align-items: center;
}

.confirmation-modal.show {
  display: flex;
}

.confirmation-content {
  background: #fff0f6; /* Soft pink background */
  border: 3px solid var(--pink);
  border-radius: 14px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.confirmation-content h2 {
  color: var(--pink);
  text-shadow: 0 0 5px #ffd6f7;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.confirmation-content p,
.confirmation-content strong {
  color: var(--gray);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.confirmation-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.confirmation-content ul li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed #ffb6d5;
  font-size: 0.95rem;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pink);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.close-btn:hover {
  background: #e01188;
}

#close-confirm-btn {
  margin-top: 1rem;
  background: var(--pink);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px #c20070;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#close-confirm-btn:hover {
  background: #e01188;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .confirmation-content {
    width: 95%;
    padding: 1.5rem;
  }
  .confirmation-content h2 {
    font-size: 1.6rem;
  }
}


/* === ORDER (Checkout) Modal Scroll Fix === */
.order-form-container {
  max-height: 90vh;              /* ✅ Prevents overflow */
  overflow-y: auto;              /* ✅ Internal scroll if needed */
  -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
}

@media (max-width: 600px) {
  .order-form-container {
    width: 95%;                  /* Slightly narrower for small screens */
    max-height: 85vh;            /* Reduce to fit below browser bars */
    padding: 1.5rem;             /* Trim padding for mobile */
  }
}

/* Ensure background doesn't scroll when modal is open */
body.modal-open {
  overflow: hidden;
  height: 100%;
}


