/* Checkout Guide Text */
.checkout-guide {
  background: var(--cr-red-light);
  color: var(--cr-red-dark);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-guide::before {
  content: "💡";
}

/* Input Error State */
.input-error {
  border-color: var(--error) !important;
  background-color: #fef2f2 !important;
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* WhatsApp Button Enhancement */
.btn-whatsapp {
  background-color: #25D366 !important;
  /* Official WA Green */
  border-color: #25D366 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #1ebc57 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}



/* =========================================
   Pizza Hut 2026 BRAND BANNER
   ========================================= */
.brand-banner {
  background: linear-gradient(135deg, #E4002B 0%, #8A001A 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(138, 0, 26, 0.2);
  /* No border radius if full width, or maybe just slight */
}

@media(min-width: 768px) {
  .brand-banner {
    margin: 20px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 100px;
  }
}

.bb-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.bb-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bb-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 20px;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  letter-spacing: -2px;
}

.bb-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 400px;
  margin-bottom: 30px;
  font-weight: 500;
  line-height: 1.5;
}

.bb-btn {
  background: #fff;
  color: #E4002B;
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bb-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bb-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.bb-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.bb-shape.s1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -50px;
  filter: blur(40px);
}

.bb-shape.s2 {
  width: 200px;
  height: 200px;
  bottom: -20px;
  left: 20%;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(30px);
}

/* Map Radar Overlay */
.radar-overlay-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.radar-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(228, 0, 43, 0.1) 0deg, transparent 60deg, transparent 100%);
  transform: translate(-50%, -50%);
  animation: radarSpin 4s linear infinite;
  opacity: 0.5;
}

@keyframes radarSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Branch List - Scrollbar Hide */
.branch-list::-webkit-scrollbar {
  width: 4px;
}

.branch-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* =========================================
   FUTURE MAP (Pizza Hut 2026)
   ========================================= */

/* 1. Dark Mode Filter for Map Tiles */
.leaflet-tile-pane {
  filter: none !important;
}

/* 2. Custom Red Roof 3D Marker */
.cr-pin {
  background: transparent;
  border: none;
}

.cr-pin-inner {
  position: relative;
  width: 50px;
  height: 50px;
  /* The Marker Shape */
}

/* The Red Roof Hat */
.cr-pin-hat {
  position: absolute;
  top: 0;
  left: 5px;
  width: 40px;
  height: 20px;
  background: #E4002B;
  border-radius: 40px 40px 0 0;
  /* Roof shape */
  box-shadow: 0 5px 15px rgba(228, 0, 43, 0.5);
  z-index: 2;
  animation: floatPin 3s ease-in-out infinite;
}

/* The Logo/Image Container */
.cr-pin-body {
  position: absolute;
  top: 15px;
  left: 5px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #E4002B;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cr-pin-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The Pulse Signal */
.cr-pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(228, 0, 43, 0.4);
  border-radius: 50%;
  z-index: 0;
  animation: markerPulse 2s infinite;
}

@keyframes floatPin {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes markerPulse {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
  }

  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* =========================================
   HOW IT WORKS (Pizza Hut Mode)
   ========================================= */
.how-it-works {
  padding: 100px 20px;
  background: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Dramatic Sauce Base */
}

/* Sauce Blob 1 (Top Left Splash) */
.how-it-works::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -5%;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #E4002B 0%, #a80020 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Organic Blob */
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  /* Transparent but visible */
  transform: rotate(-10deg);
  animation: blobFloat 8s ease-in-out infinite alternate;
}

/* Sauce Blob 2 (Bottom Right Drip) */
.how-it-works::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -10%;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle at center, #FFC107 0%, #E4002B 80%);
  /* Gold center blending to Red */
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

/* Melting Cheese SVG Pattern (CSS Generated) */
.cheese-drip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  background: #FFC107;
  /* Cheese Gold */
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 4px 0 rgba(200, 150, 0, 0.5));
  animation: cheeseOoze 4s ease-in-out infinite alternate;
  transform-origin: top;
}

@keyframes cheeseOoze {
  0% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(1.1);
  }
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  100% {
    transform: translate(20px, 30px) rotate(5deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hiw-header {
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.hiw-badge {
  display: inline-block;
  background: var(--cr-red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
  text-transform: uppercase;
}

.hiw-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: #121212 !important;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hiw-title span {
  color: var(--cr-red);
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}

@media(min-width: 900px) {
  .hiw-steps {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }
}

/* Sauce Trail Line */
.hiw-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 0;
  border-top: 3px dashed #ffcccb;
  /* Light Red Dash */
  z-index: 0;
  transform: translateY(-50%);
  display: none;
}

@media(min-width: 900px) {
  .hiw-line {
    display: block;
  }
}

.hiw-line-fill {
  /* Animate a "sauce" filling styling */
  position: absolute;
  top: -3px;
  /* Align with border-top */
  left: 0;
  height: 3px;
  width: 0%;
  border-top: 3px dashed var(--cr-red);
  transition: width 1s ease;
  animation: sauceFlow 1s linear infinite;
}

/* Step Cards */
.hiw-card {
  background: #fff;
  border: none;
  border-radius: 32px;
  /* Soft & Doughy */
  padding: 40px 30px;
  position: relative;
  flex: 1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy spring */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1;
  border-bottom: 6px solid #f0f0f0;
  /* Default bottom lip */
}

/* Hover Action */
.hiw-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(228, 0, 43, 0.15);
  border-bottom-color: var(--cr-red);
  /* Red Lip Pop */
}

.hiw-number {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: #f7f7f7;
  line-height: 1;
  pointer-events: none;
  z-index: -1;
  transition: all 0.3s;
}

.hiw-card:hover .hiw-number {
  color: #fff0f1;
  transform: translateX(-50%) scale(1.1);
}

.hiw-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  background: #fff;
  /* Mask number */
  padding: 10px;
  border-radius: 50%;
}

.hiw-card:hover .hiw-icon {
  transform: scale(1.2) rotate(15deg);
  background: transparent;
}

.hiw-card h3 {
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #121212 !important;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hiw-card p {
  color: #555 !important;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
}

/* =========================================
   GENERIC UI ELEMENTS (Pizza Hut 2026)
   ========================================= */

/* Fix for Filtered View Groups */
.menu-group {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  /* Match main grid */
  gap: 16px;
  width: 100%;
}

/* Menu Section Headers (Ingredient Pills) */
.menu-section-header {
  background: #E4002B;
  /* Pizza Hut Red */
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: 50px;
  /* Full Pill */
  width: fit-content;
  margin: 30px 0 16px 0;
  /* Left Aligned (No specific auto) */
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.2);
  /* Softer shadow */

  /* Removed sticky to avoid broken layout in flat grid */
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Start align content */
  border: 1px solid rgba(228, 0, 43, 0.3);
  /* Red border instead of white opacity */

  /* Ensure it spans full width in Grid View */
  grid-column: 1 / -1;
  justify-self: start;
  /* Grid alignment left */
}

.menu-section-header::before {
  content: '🍕';
  margin-right: 8px;
  font-size: 1.1em;
}

/* =========================================
   FLAVOR SELECTOR 2026 (Refined)
   ========================================= */

.flavor-section-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #000;
  margin: 20px 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

/* SLOTS CONTAINER */
.flavor-slots {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  justify-content: center;
  margin-bottom: 10px;
}

.flavor-slot {
  flex: 1;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flavor-slot:hover {
  background: #fff;
  border-color: #ccc;
  transform: translateY(-2px);
}

.flavor-slot.active-slot {
  border-color: #E4002B;
  background: #fff;
  box-shadow: 0 8px 24px rgba(228, 0, 43, 0.15);
  transform: translateY(-4px);
  z-index: 2;
}

/* Checkmark badge for populated slots */
.flavor-slot.filled::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #10B981;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slot-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.slot-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.slot-value.placeholder {
  color: #ccc;
  font-style: italic;
  font-weight: 400;
}

/* FLAVOR PICKER GRID (The Drawer) */
#flavorPickerContainer {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Subtle depth */
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #eee;
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flavor-grid-filters {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fafafa;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
  /* Hide scrollbar */
  scrollbar-width: none;
}

.flavor-grid-filters::-webkit-scrollbar {
  display: none;
}

.fg-filter {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #ddd;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.fg-filter.active {
  background: #E4002B;
  color: #fff;
  border-color: #E4002B;
}

.flavor-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

/* FLAVOR OPTION CARD */
/* FLAVOR OPTION CARD */
.fo-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  /* Faster response */
  position: relative;
  /* Prevent tap highlight colors from browser */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Tactile "Press" Effect */
.fo-card:active {
  transform: scale(0.92);
  background: #f0f0f0;
  border-color: #ddd;
}

/* Selected State */
.fo-card.selected {
  border-color: #E4002B;
  box-shadow: 0 0 0 2px rgba(228, 0, 43, 0.2);
  background: #fff5f5;
  /* Subtle red tint */
  transform: scale(0.98);
  /* Slightly smaller than resting but larger than active */
}

/* Image */
.fo-img-wrap {
  height: 90px;
  width: 100%;
  background: #fff;
  /* Pure White for HD Clarity */
  position: relative;
  overflow: hidden;
}

.fo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  /* HD POP */
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.1) saturate(1.15);
}

.fo-card:hover .fo-img-wrap img {
  transform: scale(1.1);
}

/* Info */
.fo-info {
  padding: 10px 8px;
  text-align: center;
}

.fo-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.2;
}

.fo-desc {
  font-size: 0.7rem;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard */
  -webkit-box-orient: vertical;
}

/* Sauce Splash Removed by User Request */
.branch-item {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: transform 0.2s;
  z-index: 1;
}

.branch-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* Text stays normally positioned, no need to force z-index 2 if splash is -1 */
.branch-item h4 {
  margin: 0 0 6px 0 !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #1a1a1a;
  position: relative;
}

.branch-item div {
  position: relative;
}



/* Responsive tweaks */
@media(max-width: 480px) {
  .flavor-options {
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 cols on mobile */
  }
}

/* PIZZA VISUALIZER 2.0 SECTION REMOVED TO PREVENT CONFLICTS WITH style_builder_2026.css */

/* Force overrides just in case */
.pizza-viz-wrap .pizza-viz {
  margin: 0 auto !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hint Overlay Removed by User Request */

/* --- WORLD CLASS FLAVOR MODAL --- */
.flavor-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.2s ease-out;
}

.flavor-modal-card {
  background: #fff;
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleInCard 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fm-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  z-index: 2;
}

.fm-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}

.fm-close {
  background: #f5f5f7;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fm-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f9f9faf0;
  -webkit-overflow-scrolling: touch;
}

/* Flavor Items - Premium List/Grid */
/* Flavor Items - Premium List (Pizza Hut 2026 Style) */
.fm-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid #f2f2f2;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.fm-item:active {
  transform: scale(0.97);
  background: #fafafa;
}

.fm-item.active {
  border-color: #E4002B;
  background: #fffafb;
  /* Very faint red tint */
  box-shadow: 0 8px 20px rgba(228, 0, 43, 0.15);
}

/* Left Red Stripe for Active */
.fm-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #E4002B;
}

.fm-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 16px;
  background: #f8f8f8;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.fm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.fm-item.active .fm-thumb img {
  transform: scale(1.1);
  /* Zoom effect on select */
}

.fm-info {
  flex: 1;
  padding-right: 10px;
}

.fm-name {
  font-weight: 800;
  /* Extra bold */
  font-size: 1rem;
  color: #111;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  /* 2026 Style */
}

.fm-desc {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
  font-weight: 500;
}

/* Custom Checkmark */
.fm-check {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: 5px;
}

.fm-item.active .fm-check {
  border-color: #E4002B;
  background: #E4002B;
  transform: scale(1.1);
}

.fm-check::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.fm-item.active .fm-check::after {
  opacity: 1;
  transform: scale(1);
}

/* Animations */
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleInCard {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.2s;
}

/* =========================================
   SAUCE SELECTOR (Visual)
   ========================================= */
.sauce-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.sauce-card {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 90px;
}

.sauce-card:hover {
  background: #fff;
  border-color: #ccc;
  transform: translateY(-2px);
}

.sauce-card.selected {
  border-color: #E4002B;
  background: #fff5f5;
  box-shadow: 0 8px 20px rgba(228, 0, 43, 0.15);
  transform: translateY(-3px);
  z-index: 2;
}

.sauce-card .sauce-icon {
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.sauce-card .sauce-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
}

/* =========================================
   PRIVACY NOTICE FOOTER & MODAL
   ========================================= */
.site-footer {
  background: #f8f8f8;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 60px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-link {
  color: #333;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--cr-red);
}

/* Privacy Modal Specifics */
.privacy-modal-box {
  width: 90%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pm-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #121212;
}

.pm-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  padding: 4px;
}

.pm-close:hover {
  color: var(--cr-red);
}

.pm-body {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.6;
  color: #444;
  font-size: 0.95rem;
}

.pm-body h3 {
  color: #000;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.pm-body ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.pm-body li {
  margin-bottom: 8px;
}

/* =========================================
   MOBILE BUILDER REFINEMENTS (Apple Style Polish)
   ========================================= */
@media (max-width: 600px) {

  .size-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    overflow-x: auto;
    padding: 4px 2px 10px 2px;
    /* Bottom padding for shadow cutoff */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    margin: 0 -10px;
    /* Slight breakout to allow edge-to-edge feeling */
    padding-left: 10px;
    padding-right: 10px;
  }

  .size-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
  }

  .size-card {
    flex: 1 1 auto !important;
    min-width: 85px !important;
    /* Minimum comfortable touch target width */
    max-width: 32% !important;
    /* Don't get too wide on larger phones */

    background: #F2F2F7;
    /* Apple System Gray 6 / Light Background */
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    /* iOS squircle-ish */
    padding: 12px 6px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);

    height: auto !important;
    position: relative;
    overflow: hidden;
  }

  /* Active/Selected State (Apple Blue or Brand Red style) */
  .size-card.selected {
    background: #fff !important;
    border-color: var(--cr-red) !important;
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.15) !important;
    transform: translateY(-2px);
  }

  /* Tap State for responsiveness */
  .size-card:active {
    transform: scale(0.96);
    background: #E5E5EA;
  }

  /* Icon */
  .size-card .sc-icon {
    font-size: 1.5rem !important;
    margin-bottom: 6px !important;
    margin-right: 0 !important;
    filter: grayscale(100%) opacity(0.6);
    /* Muted by default */
    transition: all 0.2s;
  }

  .size-card.selected .sc-icon {
    filter: none;
    /* Full color active */
    transform: scale(1.1);
  }

  /* Typography */
  .size-card .sc-info {
    text-align: center !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .size-card .sc-name {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #1c1c1e;
    /* Apple Label Color */
    letter-spacing: -0.01em;
    margin: 0 !important;

    /* Truncate nicely */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .size-card .sc-price {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--cr-red) !important;
  }

  /* Checkmark Badge for Selected (Subtle Apple touch) */
  .size-card.selected::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--cr-red);
    border-radius: 50%;
    opacity: 0.8;
  }
}

/* =========================================
   SAMSUNG S8+ / NARROW DEVICE OPTIMIZATIONS (<380px)
   ========================================= */
@media (max-width: 380px) {

  /* 1. Container Padding - Gain space */
  .container {
    padding: 0 16px !important;
    /* Reduce from 20px */
  }

  /* 2. Menu Grid - Force 2 Columns if possible, or clean 1 column */
  /* 360px screen - 32px padding = 328px available. */
  /* To fit 2 cols: (328 - 12px gap) / 2 = 158px max per card. */
  /* Current minmax is 165px -> Forces 1 col. */
  /* Let's allow 2 columns for a denser feel, or keep 1 col if preferred? */
  /* "Mas responsivo" usually implies utilizing space better. 1 column is safer but tall. */
  /* Let's try to fit 2 columns tightly */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Adjust card internals for narrow 2-col */
  .r-card {
    padding: 8px !important;
  }

  .r-title {
    font-size: 0.95rem !important;
  }

  .r-price strong {
    font-size: 1rem !important;
  }

  /* 3. Hero Titles */
  h1 {
    font-size: 1.8rem !important;
    /* Prevent massive headers */
  }

  .k-title {
    font-size: 1.2rem !important;
  }

  /* 4. Pizza Builder - Ensure it fits comfortably */
  .pizza-viz {
    width: 240px !important;
    height: 240px !important;
  }

  /* 5. Nav/Header - Prevent overlap */
  .brand span {
    font-size: 1rem !important;
    /* Shrink brand name */
  }

  /* 6. Checkout - Full width inputs */
  .form input,
  .form textarea,
  .form select {
    font-size: 16px !important;
    /* Prevent IOS/Android zoom */
  }

  /* 7. Steps Indicator - Compact */
  .steps .step .label {
    display: none;
    /* Hide labels on very narrow screens, show only dots/numbers? */
    /* Or just make smaller */
    font-size: 0.7rem !important;
  }
}

/* =========================================
   IPAD PRO / TABLET LANDSCAPE (1024px - 1366px)
   ========================================= */
@media (min-width: 1024px) and (max-width: 1399px) {

  /* 1. Menu Grid - Fill the space nicely */
  .menu-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }

  /* 2. Pizza Builder Sheet - Optimized proportions */
  /* The default desktop query (>900px) sets width to 480px leff sidebar. */
  /* On iPad Pro, we want to make sure it's not too cramped or too wide */

  .sheet-panel {
    max-width: 90% !important;
    /* Slightly wider sheet */
    height: 80vh !important;
    /* Not too tall */
  }

  /* Adjust Pizza Visualizer Size for Tablet */
  .pizza-viz {
    width: 320px !important;
    height: 320px !important;
  }

  /* Make sidebar slightly narrower to give more room to content? */
  /* Default is 480px. Let's keep it but ensure padding is right. */

  /* 3. Typography Scale */
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  /* 4. Touch Targets - Ensure buttons are generous */
  .branch-item .select-branch {
    padding: 14px !important;
    font-size: 1rem !important;
  }

  .r-card .fab-add {
    width: 44px !important;
    height: 44px !important;
  }
}
/* =========================================
   MINIMALIST TRACKER UI (v2026)
   ========================================= */
.tracker-overlay-minimal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(10px);
  padding: 20px;
}

.tracker-overlay-minimal.hidden {
  display: none !important;
}

.minimal-card {
  width: 100%;
  max-width: 450px;
  background: transparent;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.focus-icon {
  font-size: 7rem;
  margin-bottom: 24px;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: inline-block;
}

.focus-icon.pulse {
  animation: slowPulse 2s infinite ease-in-out;
}

.focus-icon.bounce {
  animation: slightBounce 1.5s infinite ease-in-out;
}

.focus-icon.slide {
  animation: slowSlide 3s infinite ease-in-out;
}

.focus-icon.pop {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.main-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.sub-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #aaa;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.time-subtext {
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  margin: 16px 0 40px 0;
}

.minimal-actions {
  width: 100%;
  margin-top: auto;
}

.quiet-link {
  color: #888;
  font-size: 0.95rem;
  text-decoration: underline;
  transition: color 0.2s;
  display: block;
  margin-top: 10px;
}

.quiet-link:hover {
  color: #fff;
}

@keyframes slowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes slightBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes slowSlide {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(10px) rotate(5deg); }
  75% { transform: translateX(-10px) rotate(-5deg); }
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* =========================================
   DRAG AND DROP CASCADING STYLES
   ========================================= */
.cart-row[draggable="true"] {
  cursor: grab;
}

.cart-row[draggable="true"]:active {
  cursor: grabbing;
}

/* Make things smoother and visually obvious */
#accountChipsRow button {
  position: relative;
  overflow: hidden;
}

#accountChipsRow button::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.0);
  transition: background 0.2s;
  pointer-events: none;
}

#accountChipsRow button[style*="scale(1.1)"]::after {
  background: rgba(255,255,255,0.1);
}

