/* =========================
   ROOT VARIABLES
========================= */
:root {
  --brand-red: #c62828;
  --brand-green: #2e7d32;
  --brand-white: #ffffff;
  --bg-light: #f6f6f6;
  --text-dark: #222;
  --muted: #666;
}

/* Logo image styling */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img, .logo-icon {
  height: 60px;               /* adjust size as needed */
  width: auto;
  max-height: 100px;
  margin-right: 10px;         /* space between image and text (if using both) */
}

.logo:hover {
  opacity: 0.9;               /* subtle hover effect */
}

/* Optional: if you want text + image */
.logo span {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.4rem;
}

/* ===== Hero with Auto-Switching Images ===== */
.hero {
  position: relative;
  min-height: 80vh;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: flex;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65));
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3.8rem;
  margin: 0 0 0.6rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7);
  color: var(--brand-white);
}

.hero-text .tag {
  font-size: 1.6rem;
  margin: 0 0 1.2rem;
  color: var(--brand-green);
  font-weight: 600;
}

.hero-text .lead {
  font-size: 1.3rem;
  margin: 0 0 2rem;
  color: #eee;
}

.hero-ctas .btn {
  margin: 0 0.8rem 1rem;
  padding: 1rem 2.2rem;
  font-size: 1.2rem;
  border-radius: 50px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
}



/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1.5rem;
}

h1, h2, h3 {
  letter-spacing: -0.5px;
}

p {
  color: #444;
}

/* =========================
   HEADER
========================= */
.header {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--brand-green),
    var(--brand-white),
    var(--brand-red)
  );
  border-radius: 0 0 18px 18px;   /* rounded bottom corners if desired */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-red);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-red);
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }

  .nav-links a {
    padding: 1rem;
    border-top: 1px solid #eee;
  }

  .nav-links.open {
    max-height: 300px;
  }
}

/* =========================
   SECTIONS
========================= */
.section {
  background: white;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--brand-green),
    var(--brand-white),
    var(--brand-red)
  );
  border-radius: 18px 18px 0 0;
}

.section + .section {
  margin-top: 3rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-red);
  color: white;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
}

.btn.secondary:hover {
  background: var(--brand-green);
  color: white;
}

/* =========================
   VISIT / CONTACT + MAP
========================= */

.visit-section {
  background: #f8f8f8;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.visit-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.visit-info h2 {
  margin-bottom: 1rem;
}

.visit-info h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.visit-info p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.visit-info a {
  color: inherit;
  text-decoration: none;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours li {
  padding: 0.25rem 0;
}

/* Map */
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  border-radius: 10px;
}

/* Button spacing */
.visit-info .btn {
  margin-top: 1.5rem;
}


/* =========================
   SOCIAL MEDIA
========================= */
.social-sub {
  margin-bottom: 2rem;
  color: var(--muted);
}

.social-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.social-icon {
  width: 70px;          /* change this number to make it bigger/smaller */
  height: 70px;
  object-fit: contain;  /* keeps the logo shape perfect, no stretching */
  margin-bottom: 1rem;  /* space between image and title */
}
.social-icong {
  width: 60px;          /* change this number to make it bigger/smaller */
  height: 60px;
  object-fit: contain;  /* keeps the logo shape perfect, no stretching */
  margin-bottom: 1rem;  /* space between image and title */
}
.social-iconf {
  width: 80px;          /* change this number to make it bigger/smaller */
  height: 80px;
  object-fit: contain;  /* keeps the logo shape perfect, no stretching */
  margin-bottom: 1rem;  /* space between image and title */
}
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.social-card .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .75rem;
}

.social-card.facebook h3 { color: #1877f2; }
.social-card.instagram h3 { color: #c13584; }
.social-card.google h3 { color: #ea4335; }

/* ===== MENU PAGE ===== */

.menu-hero {
  text-align: center;
  color: var(--brand-green);
  padding: 3rem 1rem 2rem;
}

.menu-hero h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.menu-subtitle {
  color: var(--muted);
  font-size: 1rem;
}
/* ===== Italian flag top stripe for menu sections ===== */

.menu-section {
  position: relative;
  overflow: hidden;
}

.menu-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-green) 0%,
    var(--brand-green) 33%,
    var(--brand-white) 33%,
    var(--brand-white) 66%,
    var(--brand-red) 66%,
    var(--brand-red) 100%
  );
}


/* Section titles */
.menu-title {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  color: var(--brand-red);
  position: relative;
}

.menu-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--brand-green);
  display: block;
  margin: 0.75rem auto 0;
  border-radius: 3px;
}

/* Notes under section titles */
.menu-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Menu items */
.menu-item {
  max-width: 750px;
  margin: 0 auto 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 0.8rem;
}

.menu-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-item span {
  font-weight: 700;
  white-space: nowrap;
}

.menu-item p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
/* Top 10 Badge */
.badge-container {
  text-align: center;
  margin-top: 4rem;
}

.top-badge {
  max-width: 300px;          /* adjust this to control size */
  height: auto;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.badge-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand);
}

/* ===== Why Choose Us Section ===== */


.why-title {
  text-align: center;
  color: var(--brand);
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.why-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why-card {
  background: #fffaf0; /* very light cream for warmth */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.why-card h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.why-card p {
  color: #444;
  line-height: 1.6;
}
/* Responsive */
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ORDER LAYOUT */
.order-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* MENU */
.order-menu .menu-card {
  margin-bottom: 30px;
}

/* ===== ORDER MENU SCROLL CONTAINER ===== */
.order-menu {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 1.5rem;

  max-height: calc(100vh - 140px); /* header + spacing */
  overflow-y: auto;
}

/* Smooth scrollbar */
.order-menu::-webkit-scrollbar {
  width: 8px;
}

.order-menu::-webkit-scrollbar-thumb {
  background: #c62828;
  border-radius: 6px;
}

.order-menu::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed #ddd;
}
.item-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0.25rem 0 0.5rem;
  max-width: 420px;
}
.price {
  font-weight: 600;
}
.item-info h3 {
  margin: 0;
  font-size: 1.05rem;
}

.order-item:last-child {
  border-bottom: none;
}

.add-btn {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

/* CART */
.cart {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart h2 {
  margin-top: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 1.1rem;
}
/* ===== CHECKOUT FORM CARD ===== */
.checkout-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,.06);
}


.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #008c45;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
}
/* size options */
.size-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.size-options label {
  font-size: 0.88rem;
  cursor: pointer;
}
.size-select {
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
} 
.size-select:focus {
  outline: none;
  border-color: #c62828;
}

/* ===== ORDER: Customize (Notes) ===== */
.customize-toggle {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 6px;
  color: var(--brand-green);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.customize-input {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background: #fff;
}

.customize-input.open {
  display: block;
}

/* ===== CART ROWS (Qty + Remove) ===== */
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-name {
  font-weight: 700;
  color: var(--text-dark);
}

.cart-variant {
  font-weight: 600;
  color: var(--muted);
}

.cart-note {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-sub {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-right {
  text-align: right;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 110px;   /* fixed width */
  background: #f3f3f3;
  border-radius: 999px;
  padding: 4px 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-red);
  color: var(--brand-red);
}

.qty-num {
  width: 24px;
  text-align: center;
  font-weight: 700;
  flex: 0 0 24px;
} 

.cart-line-total {
  font-weight: 800;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--brand-red);
  font-weight: 700;
  padding: 0;
}
/* ===== Structured Modifiers ===== */
.mods-wrap {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.mod-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.mod-select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 0.9rem;
}

.mod-select:focus {
  outline: none;
  border-color: var(--brand-red);
}
/* =========================
   CUSTOMIZE MODAL (POPUP)
========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.modal-card {
  position: relative;
  width: min(880px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-dark);
}

.modal-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.modal-body {
  padding: 16px 18px;
}

.modal-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid #eee;
}

/* ===== CHECKOUT INPUTS ===== */
.modal-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.2px;
}

.modal-row input,
.modal-row textarea,
.modal-row select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.modal-row input:focus,
.modal-row textarea:focus,
.modal-row select:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}


.modal-warning {
  margin-top: 6px;
  font-size: 0.86rem;
  color: #8a8a8a;
}

.mod-section {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
}

.mod-section h3 {
  margin: 0 0 10px;
  color: var(--brand-red);
  font-size: 1.05rem;
}

.toppings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 760px) {
  .toppings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.topping-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fafafa;
}

.topping-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topping-left input {
  transform: scale(1.15);
}

.topping-price {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.topping-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topping-place {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 6px 10px;
  background: #fff;
  font-size: 0.9rem;
  display: none; /* shown when checked */
}

.topping-item.checked .topping-place {
  display: inline-block;
}

.modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eee;
  padding: 6px 10px;
  border-radius: 999px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--bg-light);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-total-right {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.mod-block { margin-top: 14px; }
.mod-title { font-size: 1rem; margin: 10px 0; }
.req { color: var(--brand-red); font-weight: 700; margin-left: 6px; }

.top-group { margin-top: 10px; }
.top-group-title {
  color: var(--brand-red);
  font-weight: 800;
  margin: 10px 0 6px;
}
.top-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #eee;
  cursor:pointer;
}
.top-name{ font-weight:600; }
.top-price{ color: var(--muted); font-size:.9rem; }
.top-row input{ width:18px; height:18px; }


/* ===== ADMIN MENU EDITOR (safe / isolated) ===== */
.admin-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:20px;
}
@media (max-width: 900px){
  .admin-grid{ grid-template-columns:1fr; }
}
.admin-panel{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.admin-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.admin-input{
  width:100%;
  padding:.6rem .7rem;
  border-radius:10px;
  border:1px solid #ddd;
  outline:none;
}
.admin-input:focus{ border-color:#c62828; }
.menu-list{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 65vh;
  overflow:auto;
  padding-right:4px;
}
.menu-card-item{
  border:1px solid #eee;
  border-radius:14px;
  padding:10px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.menu-card-item:hover{ border-color:#c62828; }
.menu-meta{ color:#666; font-size:.85rem; }
.badge{
  padding:4px 10px;
  border-radius:999px;
  font-size:.8rem;
  border:1px solid #eee;
  color:#333;
}
.badge.off{ opacity:.55; }
.editor label{ display:block; margin:10px 0 6px; font-weight:600; }
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 700px){
  .form-grid{ grid-template-columns:1fr; }
}
.divider{ border:none; border-top:1px solid #eee; margin:16px 0; }
.subhead{ margin:0 0 6px; color:#222; }
.radio{ display:flex; gap:8px; align-items:center; cursor:pointer; }
.toggle-row{ display:flex; gap:10px; align-items:center; }
.sizes-list, .groups-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.size-row, .group-card{
  border:1px solid #eee;
  border-radius:14px;
  padding:12px;
}
.size-row{
  display:grid;
  grid-template-columns: 1fr 120px 120px 80px;
  gap:10px;
  align-items:center;
}
@media (max-width: 700px){
  .size-row{ grid-template-columns:1fr 1fr; }
}
.group-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.group-options{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.opt-row{
  display:grid;
  grid-template-columns: 1fr 120px 140px 110px 80px;
  gap:8px;
  align-items:center;
}
@media (max-width: 900px){
  .opt-row{ grid-template-columns:1fr 1fr; }
}
.small-btn{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
}
.small-btn:hover{ border-color:#c62828; }
.category-bar-wrap{
  position: sticky;
  top: -4px;
  z-index: 20;
  background: #fff;
  padding: 4px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);

  
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}



.category-bar::-webkit-scrollbar{
  height: 6px;
}

.cat-link{
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
}

.cat-link:hover{
  background: rgba(0,0,0,.04);
}
.menu-title{
  scroll-margin-top: 90px;
}
.category-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.category-bar {
  position: sticky;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 8px;
  padding: 6px 0;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.cat-arrow {
  border: none;
  background: #eee;
  font-size: 22px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
}

.cat-arrow:hover {
  background: var(--brand-red);
}
/* ===== DELIVERY BOX ===== */
#deliveryFields {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fdfdfd;
  border: 1px solid rgba(0,0,0,.08);
}
#checkoutError {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}
/* ===== PICKUP TIMING ===== */
#pickupTimingBox {
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 14px;
  padding: 14px;
}

#pickupTimingBox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
}

#pickupTimingBox input[type="radio"] {
  transform: scale(1.2);
}

/* ===== PICKUP CALENDAR (datetime-local) ===== */
#pickupDateTime {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#pickupDateTime:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* Makes the calendar icon clickable + consistent */
#pickupDateTime::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.8;
}

#pickupDateTime::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.portion-pills{
  display:flex;
  gap:6px;
  align-items:center;
  padding:4px;
  border:1px solid #e6e6e6;
  border-radius:999px;
  background:#fafafa;
}

.portion-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:none;
  background:transparent;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:.85rem;
  opacity:.95;
}

.portion-pill:disabled{
  cursor:not-allowed;
  opacity:.45;
}

.portion-pill.active{
  background:#3a9d3f;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.08);
}

.pizza-ico{
  width:18px;
  height:18px;
  display:inline-block;
  border-radius:50%;
  border:2px solid #c62828;
  background:#fff;
  position:relative;
  overflow:hidden;
}

/* "All" filled */
.pizza-ico.all::after{
  content:"";
  position:absolute; inset:0;
  background:rgba(198,40,40,.18);
}

/* Left half filled */
.pizza-ico.left::after{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:50%;
  background:rgba(198,40,40,.18);
}

/* Right half filled */
.pizza-ico.right::after{
  content:"";
  position:absolute;
  right:0; top:0; bottom:0;
  width:50%;
  background:rgba(198,40,40,.18);
}
.tip-btn {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: white;
  cursor: pointer;
}
.tip-btn.active {
  background: #2e7d32;
  color: white;
  border-color: #2e7d32;
}
.custom-tip {
  font-style: italic;
}
.tip-summary {
  font-size: 1.05rem;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.tip-summary span:first-child {
  color: #333;
}

.tip-summary span:last-child {
  color: #2e7d32;
  font-weight: 700;
}
.none-tip {
  background: #f5f5f5;
  color: #666;
}
.none-tip.active {
  background: #e0e0e0;
  color: #333;
}

.sauce-portion-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sauce-portion-pills .portion-pill {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.sauce-portion-pills .portion-pill.active {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}

/* Footer powered by line */
.powered-by {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.85;
}

.powered-by a {
  color: var(--brand);           /* your red color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.powered-by a:hover {
  color: #008C45;                /* green hover for Italian flag vibe */
  text-decoration: underline;
}

/* Validation styles */
.modal-row {
  position: relative;
}

input.invalid {
  border-color: #c62828 !important;
  background: #ffebee;
}

input.valid {
  border-color: #2e7d32 !important;
  background: #e8f5e9;
}

.error {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: block;
  min-height: 1.2rem; /* prevents jump */
}
/* =========================
ORDER PAGE RESPONSIVE LAYOUT
========================= */

/* Default (Desktop + Tablet): Side-by-side */
.order-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* Menu takes more space */
  gap: 30px;
  margin-top: 40px;
}

/* Cart stays sticky on larger screens */
.cart {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

/* =========================
MOBILE LAYOUT - Stack + Cart at bottom
========================= */
@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;        /* Stack vertically */
    gap: 20px;
  }

  /* Move cart to bottom using order property */
  .order-menu {
    order: 2;   /* Menu first */
  }

  .cart {
    order: 1;   /* Cart second (at bottom) */
    position: static;   /* remove sticky on mobile */
    margin-top: 20px;
  }

  /* Make menu full width and remove side padding on mobile */
  .order-menu {
    padding: 0;
  }

  /* Improve spacing on mobile */
  .section {
    margin: 1rem 0;
    padding: 1.5rem 1rem;
  }
}

/* Optional: Extra small phones */
@media (max-width: 480px) {
  .order-layout {
    gap: 15px;
  }
  
  .cart {
    padding: 1.2rem;
  }
}

/* =========================
MOBILE IMPROVEMENTS - ORDER PAGE
========================= */

/* Make menu wider on mobile (reduce side padding) */
@media (max-width: 900px) {
  .container {
    padding: 0 10px;           /* less side padding */
  }

  .order-menu {
    padding: 15px 10px;        /* tighter padding */
  }

  .checkout-card {
    padding: 15px 10px;          /* tighter padding = more space for the form on phone */
  }
  .section {
    margin: 1rem 0;
    padding: 1.8rem 1rem;      /* better use of space */
  }

  .why-us-section,
  .menu-section {
    padding: 2rem 1rem;
  }
}

/* Customize Modal - Better mobile experience */
.modal-card {
  width: min(92%, 880px);      /* almost full width on phone */
  max-height: 92vh;            /* prevent it from being taller than screen */
  margin: 4vh auto;            /* center vertically with some breathing room */
  overflow-y: auto;            /* allow scrolling inside modal if needed */
}

/* Make modal content easier to scroll on phone */
.modal-body {
  max-height: calc(92vh - 180px);   /* leave space for header + footer */
  overflow-y: auto;
  padding-bottom: 20px;
}

/* Improve footer buttons on small screens */
.modal-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 16px 18px 20px;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  z-index: 10;
}

/* Make "Add to Cart" button bigger and easier to tap on mobile */
#modalAddBtn {
  font-size: 1.1rem;
  padding: 16px 24px;
  min-height: 56px;               /* better tap target */
}

/* Make qty controls bigger on mobile */
.modal-qty {
  font-size: 1.3rem;
}

.qty-btn {
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
}

/* Reduce modal title size on very small phones */
@media (max-width: 480px) {
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-subtitle {
    font-size: 0.95rem;
  }
}


/* ===== ORDER TYPE BUTTONS ===== */
.order-type-toggle {
  display: flex;
  gap: 10px;
}

.order-type-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.order-type-btn:hover {
  border-color: var(--brand-red);
  background: #fff;
}

.order-type-btn.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 8px 22px rgba(198,40,40,.18);
}

/* ===== DELIVERY TIMING ===== */
#deliveryTimingBox {
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 14px;
  padding: 14px;
}

#deliveryTimingBox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
}

#deliveryTimingBox input[type="radio"] {
  transform: scale(1.2);
}

#deliveryDateTime {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#deliveryDateTime:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

#deliveryDateTime::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.8;
}

#deliveryDateTime::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}