/* Full-screen pages (cart, catering, chef), reviews, popups, animations */
.page-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100vw;
}

.page-overlay.open {
  display: block;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.overlay-back {
  background: none;
  border: 1px solid var(--border);
  color: #1a0a06;
  padding: 8px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  border-radius: 2px;
  transition: all 0.2s;
}

.overlay-back:hover {
  border-color: #8b1a2b;
  color: #8b1a2b;
}

.overlay-content {
  padding: 60px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #faf5f0;
  border: 1px solid var(--border);
  border-radius: 2px;
  gap: 12px;
}

.cart-item-name {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  flex: 1;
  color: #1a0a06;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-family: "Playfair Display", serif;
  color: #8b1a2b;
  min-width: 70px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #5a3a30;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.cart-item-remove:hover {
  opacity: 1;
  color: #e05555;
}

.cart-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.cart-panel h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: #1a0a06;
}

.form-section {
  margin-bottom: 24px;
}

.form-section h4 {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8b1a2b;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.fg label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3a2010;
  font-weight: 600;
}

.fg input,
.fg select,
.fg textarea {
  background: #fff;
  border: 1px solid rgba(139, 26, 43, 0.3);
  color: #1a0a06;
  padding: 12px 16px;
  font-size: 0.88rem;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  width: 100%;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: #8b1a2b;
  background: rgba(139, 26, 43, 0.02);
}

.fg input::placeholder {
  color: #8a6060;
}

.fg select option {
  background: #fff;
  color: #1a0a06;
}

.fg textarea {
  resize: vertical;
  min-height: 80px;
  color: #1a0a06;
}

.order-type-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ot-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  transition: all 0.2s;
  color: #1a0a06;
}

.ot-label:has(input:checked) {
  border-color: #8b1a2b;
  background: rgba(139, 26, 43, 0.08);
  color: #8b1a2b;
}

.ot-label input {
  display: none;
}

.delivery-fields {
  display: none;
}

.delivery-fields.show {
  display: block;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.receipt-table td {
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(139, 26, 43, 0.1);
  color: #1a0a06;
}

.receipt-table td:last-child {
  text-align: right;
  color: #8b1a2b;
}

.receipt-table .total-row td {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: none;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: #1a0a06;
}

.receipt-table .total-row td:last-child {
  color: #8b1a2b;
}

.btn-pay {
  width: 100%;
  background: #8b1a2b;
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  margin-top: 16px;
  transition:
    background 0.2s,
    transform 0.2s;
  position: relative;
  z-index: 10;
  -webkit-appearance: none;
  touch-action: manipulation;
  cursor: pointer;
}

.btn-pay:hover {
  background: #6a1320;
  transform: translateY(-2px);
}

.order-num-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 26, 43, 0.06);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #3a2010;
  margin-bottom: 24px;
}

.order-num-badge strong {
  color: #8b1a2b;
}

.timeslot-note {
  font-size: 0.72rem;
  color: #5a3a30;
  margin-top: 4px;
  line-height: 1.5;
}

.catering-hero {
  background: linear-gradient(135deg,
      rgba(139, 26, 43, 0.08),
      rgba(139, 26, 43, 0.04));
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 48px;
  margin-bottom: 48px;
  text-align: center;
}

.catering-hero h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #1a0a06;
}

.catering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.catering-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.catering-card h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #8b1a2b;
  margin-bottom: 12px;
}

.catering-card p {
  font-size: 0.85rem;
  color: #3a2010;
  line-height: 1.6;
}

.catering-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.catering-form-grid .full {
  grid-column: 1/-1;
}

.menu-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.menu-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #faf5f0;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  color: #1a0a06;
}

.menu-select-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #1a0a06;
}

.menu-select-item input[type="checkbox"] {
  accent-color: #8b1a2b;
  width: 14px;
  height: 14px;
}

.menu-select-item select {
  background: #fff;
  border: 1px solid var(--border);
  color: #1a0a06;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 2px;
  max-width: 70px;
}

.btn-send {
  width: 100%;
  background: #8b1a2b;
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  margin-top: 16px;
  transition: background 0.2s;
}

.btn-send:hover {
  background: #6a1320;
}

.chef-hero {
  text-align: center;
  margin-bottom: 56px;
}

.chef-hero h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: #1a0a06;
}

.chef-pricing {
  background: rgba(139, 26, 43, 0.05);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 2px;
  margin-bottom: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.chef-pricing-item strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #8b1a2b;
}

.chef-pricing-item span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #3a2010;
  text-transform: uppercase;
}

.chef-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.chef-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #faf5f0;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  gap: 8px;
  color: #1a0a06;
}

.chef-menu-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #1a0a06;
}

.chef-menu-item input[type="checkbox"] {
  accent-color: #8b1a2b;
  width: 14px;
  height: 14px;
}

.chef-menu-item select {
  background: #fff;
  border: 1px solid var(--border);
  color: #1a0a06;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 2px;
  max-width: 80px;
  outline: none;
}

.condition-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.condition-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #3a2010;
  line-height: 1.5;
}

.condition-list li::before {
  content: "✦";
  color: #8b1a2b;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(139, 26, 43, 0.12);
}

.review-stars {
  color: #8b1a2b;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.review-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  font-style: italic;
  color: #3a1a0a;
  line-height: 1.8;
  margin-bottom: 22px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  background: rgba(139, 26, 43, 0.1);
  border: 1px solid rgba(139, 26, 43, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  color: #8b1a2b;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.reviewer strong {
  display: block;
  font-size: 0.9rem;
  color: #1a0a06;
  margin-bottom: 2px;
}

.reviewer span {
  font-size: 0.7rem;
  color: #5a3a30;
  letter-spacing: 0.08em;
}

#scrollTop {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #8b1a2b;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(139, 26, 43, 0.45);
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s;
  opacity: 0;
  z-index: 400;
  white-space: nowrap;
}

#scrollTop.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#scrollTop svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (min-width: 641px) {
  #scrollTop {
    display: none;
  }
}

#tutaPopup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
}

#tutaPopup.show {
  display: flex;
}

#tutaBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 6, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

#tutaWrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 32px 0 0;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#tutaPopup.show #tutaWrap {
  transform: translateY(0);
}

#tutaBubble {
  background: #fff;
  border: 3px solid #1a0507;
  border-radius: 28px;
  padding: 22px 26px 20px;
  max-width: 340px;
  box-shadow: 5px 5px 0 #1a0507;
  position: relative;
  margin-bottom: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

#tutaBubble::before {
  content: "";
  position: absolute;
  bottom: -22px;
  right: 52px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 22px solid #1a0507;
}

#tutaBubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  right: 54px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 18px solid #fff;
}

#tutaBubbleTitle {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: #8b1a2b;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#tutaBubbleMsg {
  font-size: 0.86rem;
  color: #2a1008;
  line-height: 1.6;
  margin-bottom: 18px;
}

#tutaBubbleMsg ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

#tutaBubbleMsg li {
  margin-bottom: 3px;
}

#tutaBubbleBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tuta-btn {
  border: 2px solid #1a0507;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.15s;
  box-shadow: 2px 2px 0 #1a0507;
}

.tuta-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.tuta-btn-primary {
  background: #8b1a2b;
  color: #fff;
}

.tuta-btn-primary:hover {
  background: #a02030;
}

.tuta-btn-secondary {
  background: #fff;
  color: #8b1a2b;
}

.tuta-btn-secondary:hover {
  background: #f9f0f0;
}

#tutaImg {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(139, 26, 43, 0.2));
  flex-shrink: 0;
  margin-right: 16px;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (max-width: 640px) {
  #tutaPopup {
    align-items: flex-end;
    justify-content: center;
  }

  #tutaWrap {
    padding: 0 0;
    align-items: center;
  }

  #tutaBubble {
    max-width: calc(100vw - 32px);
    padding: 16px 18px 16px;
  }

  #tutaBubble::before {
    right: 50%;
    transform: translateX(50%);
  }

  #tutaBubble::after {
    right: 50%;
    transform: translateX(50%);
  }

  #tutaBubbleTitle {
    font-size: 1rem;
  }

  #tutaBubbleMsg {
    font-size: 0.82rem;
  }

  #tutaImg {
    width: 120px;
    margin-right: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes galleryScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cart page: minimum order notice and receipt discount */
#min-order-notice {
  background: rgba(139, 26, 43, 0.06);
  border: 1px solid rgba(139, 26, 43, 0.2);
  border-radius: 2px;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: #8b1a2b;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

#rDiscount {
  display: none;
}