﻿/* =========================================================
 * Crapsâ€™s Pizza â€” KFC 2025 Aesthetic Redesign
 * Style.css (Updated)
 * ========================================================= */

/* ------------ Variables Globales ------------ */
:root {
  /* KFC 2025 Palette + Craps Brand Injection */
  --cr-red: #E4002B;
  /* Base Red */
  --cr-red-dark: #B00020;
  --cr-red-light: #FFEBEE;

  /* Craps Brand Accents (Injected Sutilmente) */
  --cr-gold: #FFC107;
  /* Cheese / Quality */
  --cr-orange: #FF6D00;
  /* Crust / Warmth */
  --cr-warm-white: #ffffff;
  /* Pure White per user request */

  --ink: #202124;
  --ink-light: #5F6368;

  --bg-page: var(--cr-warm-white);
  --bg-card: #FFFFFF;

  --success: #34A853;
  --error: #EA4335;

  /* Layout */
  --container: 1140px;
  --radius: 20px;
  --header-h: 72px;
  --hero-h: clamp(300px, 50vh, 500px);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 24px rgba(228, 0, 43, 0.25);
  --shadow-gold: 0 8px 24px rgba(255, 193, 7, 0.3);
  /* New Gold Shadow */

  /* Sheet */
  --sheet-footer-h: 120px;
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

/* =========================================================
 * Base Reset & Typography
 * ========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  /* KEY CHANGE: Outfit font */
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  /* Prevent horizontal scroll */
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


#map {
  width: 100%;
  height: 550px;
  background: #EFF1F3;
  border-radius: 28px;
  overflow: hidden;
  /* Premium Frame */
  border: 8px solid #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

#map:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Map Markers - Precision Pin */
.cr-pin,
.cr-pin-user {
  width: 60px !important;
  height: 60px !important;
  background: #fff;
  border-radius: 50% 50% 50% 0;
  /* Teardrop shape */
  transform: rotate(-45deg);
  /* Point down */
  border: 3px solid #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  /* Bouncy */
  overflow: visible !important;
  /* Reset leaflet defaults */
}

/* Fix image rotation inside the rotated pin */
.cr-pin img,
.cr-pin-user img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(45deg);
  /* Counter-rotate */
  border: 2px solid #EFF1F3;
}

.cr-pin:hover,
.cr-pin-user:hover {
  z-index: 9999 !important;
  transform: rotate(-45deg) scale(1.1);
  border-color: var(--cr-red);
}

/* Pulsing Animation */
.cr-pin.pulsing {
  border-color: var(--cr-red);
  z-index: 10000 !important;
  animation: pin-bounce 0.8s infinite alternate;
}

@keyframes pin-bounce {
  from {
    transform: rotate(-45deg) translateY(0);
  }

  to {
    transform: rotate(-45deg) translateY(-10px);
  }
}


/* Modern Leaflet Controls (Glassmorphism) */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
}

.leaflet-bar a {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  color: var(--ink) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-weight: bold;
  font-size: 16px !important;
  transition: all 0.2s;
}

.leaflet-bar a:first-child {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.leaflet-bar a:last-child {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  border-bottom: none !important;
}

.leaflet-bar a:hover {
  background: #fff !important;
  color: var(--cr-red) !important;
}

/* Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 14px 20px !important;
  font-family: 'Outfit', sans-serif !important;
}

.leaflet-popup-tip {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* =========================================================
 * Premium Upsell Modal (KFC 2025)
 * ========================================================= */
.upsell-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s;
}

.upsell-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.upsell-overlay.hidden .upsell-panel {
  transform: translateY(100%);
}

.upsell-panel {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

/* Red Roof Accent for Upsell Modal */
.upsell-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--cr-red, #E4002B);
  z-index: 5;
}

@media(min-width: 600px) {
  .upsell-overlay {
    align-items: center;
  }

  .upsell-panel {
    border-radius: 24px;
    max-height: 80vh;
    margin: 20px;
  }

  .upsell-overlay.hidden .upsell-panel {
    transform: scale(0.95);
    opacity: 0;
  }
}

.upsell-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #EFF1F3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upsell-close {
  background: #F1F3F4;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  color: var(--ink);
}

.upsell-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

/* Upsell Mini Cards (Mini Red Roof) */
.upsell-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.upsell-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.upsell-card:hover {
  border-color: var(--cr-red-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.upsell-img {
  width: 100%;
  aspect-ratio: 1;
  background: #eee;
  position: relative;
  overflow: hidden;
}

.upsell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upsell-info {
  padding: 12px;
}

.upsell-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.2;
}

.upsell-price {
  color: var(--cr-red);
  font-weight: 800;
}

.upsell-footer {
  padding: 16px 24px calc(16px + var(--safe-bot));
  border-top: 1px solid #EFF1F3;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.m0 {
  margin: 0;
}

.mb6 {
  margin-bottom: 8px;
}

.mt8 {
  margin-top: 12px;
}

.muted {
  color: var(--ink-light);
  font-weight: 500;
}

.good {
  color: var(--success);
  font-weight: 700;
}

.bad {
  color: var(--error);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 20px;
}

.two {
  grid-template-columns: 1.8fr 1fr;
}

/* Map Column & Branding Fill */
.map-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: sticky;
  top: 100px;
  /* Sticky Map */
}

#map {
  min-height: 400px;
  width: 100%;
  border-radius: 24px;
  z-index: 10;
  /* Ensure it doesn't overlap header */
}

/* =========================================================
 * Craps Pulse Dashboard (Desktop Only)
 * ========================================================= */
.craps-pulse-dashboard {
  display: none;
  /* Hidden on mobile */
  margin-top: 24px;
}

@media(min-width: 900px) {
  .craps-pulse-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.pulse-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pulse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Header */
.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pc-icon {
  font-size: 1.2rem;
}

.pc-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

/* Body */
.pc-stat {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: var(--ink);
}

.pc-sub {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin: 2px 0 0 0;
}

/* Kitchen Visuals */
.live-indicator-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  /* Green */
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.pc-visual {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.eq-bar {
  width: 4px;
  background: var(--cr-red);
  border-radius: 2px;
}

.b1 {
  height: 10px;
  animation: eq 1s infinite ease-in-out;
}

.b2 {
  height: 20px;
  animation: eq 1.2s infinite ease-in-out 0.1s;
}

.b3 {
  height: 15px;
  animation: eq 0.8s infinite ease-in-out 0.2s;
}

.b4 {
  height: 22px;
  animation: eq 1.1s infinite ease-in-out 0.3s;
}

@keyframes eq {

  0%,
  100% {
    height: 30%;
  }

  50% {
    height: 100%;
  }
}

/* Radar Visuals */
.radar-visual {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--cr-yellow);
  border-radius: 50%;
  opacity: 0;
  animation: radar-ping 2.5s infinite linear;
}

.r2 {
  animation-delay: 1.2s;
}

@keyframes radar-ping {
  0% {
    transform: scale(0.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Quality Visuals */
.quality-visual {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: var(--cr-red);
  opacity: 0.1;
  transform: scale(2.5) rotate(-10deg);
}

/* Legacy Loader Cleaned Up */

.text-red {
  color: var(--cr-red);
}

/* Hover Interaction: Whole pizza rotates slowly */
.pizza-assembler-box:hover .pizza-stage {
  transform: rotate(10deg) scale(1.05);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media(min-width: 600px) {
  .map-brand-fill {
    display: flex;
    min-height: 200px;
  }
}


.branch-box {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: transparent;
  box-shadow: none;
  /* We will style the items instead */
  border: none;
}

.branch-box .box-header {
  padding: 0 0 20px 0;
  background: transparent;
  box-shadow: none;
}

.branch-list {
  display: grid;
  gap: 16px;
  /* Space between cards */
  padding: 0;
  /* No scroll */
}

/* Branch Item (KFC Card Style) */
.branch-item {
  background: #fff;
  border: 1px solid #EFF1F3;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.branch-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #E5E7EB;
}

.branch-item h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.branch-item .pill {
  background: #F1F3F4;
  font-size: 0.75rem;
  padding: 4px 8px;
}

.branch-item .muted {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Selected State */
.branch-item:has(.select-branch.selected) {
  border: 2px solid var(--cr-red);
  background: var(--cr-red-light);
}

/* Buttons inside branch item */
.branch-item .select-branch {
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  border: none;
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
}

.branch-item .select-branch:hover {
  background: var(--cr-red);
}

.branch-item .select-branch.selected {
  background: var(--cr-red);
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.3);
}

.branch-item a.pill {
  width: 100%;
  justify-content: center;
  background: #fff;
  border: 1px solid #E5E7EB;
}

/* Fixed sidebar width */
@media(max-width: 900px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.row-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
 * Components: Cards, Buttons, Inputs
 * ========================================================= */
.box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
}

.box:hover {
  box-shadow: var(--shadow-lg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #EFF1F3;
  color: var(--ink);
  border: none;
}

.pill.primary {
  background: var(--cr-red-light);
  color: var(--cr-red);
}

.pill.selected {
  background: var(--cr-red-light);
  color: var(--cr-red);
  outline: 2px solid var(--cr-red);
}

.pill.tiny {
  padding: 4px 10px;
  font-size: 12px;
}

/* =========================================================
 * Components: Buttons, Inputs, Steppers
 * ========================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  /* Pill shape */
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: scale(0.98) translateY(0);
}

.btn-primary {
  background: var(--cr-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
}

.btn-primary:hover {
  background: var(--cr-red-dark);
  box-shadow: 0 6px 20px rgba(228, 0, 43, 0.4);
}

.btn:active {
  transform: scale(0.96);
}

/* Ripple Effect Class (JS to add) or simple Active states */
.btn-primary:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.4s linear;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

.btn-outline {
  background: #fff;
  border: 2px solid #E5E7EB;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: #fff;
}

/* --- Inputs & Selects --- */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #EFF1F3;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: #F8F9FA;
  transition: all 0.2s;
  appearance: none;
  /* Remove default browser styling */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cr-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.1);
}

/* Custom Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235F6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* --- Quantity Stepper (New) --- */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid #EFF1F3;
  border-radius: 999px;
  /* Pill */
  overflow: hidden;
  background: #F8F9FA;
  width: fit-content;
}

.btn-stepper {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.1s;
}

.btn-stepper:hover {
  color: var(--cr-red);
  background: rgba(0, 0, 0, 0.03);
}

.btn-stepper:active {
  background: rgba(0, 0, 0, 0.08);
}

.icon-btn {
  padding: 8px !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  background: white;
}

.icon-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}



.qty-stepper input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  box-shadow: none !important;
  /* No focus glow for this inner input */
}

/* Hide built-in spinners */
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
.qty-stepper input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* =========================================================
 * Header
 * ========================================================= */
header {
  border-top: 5px solid #E4002B;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #fff;
  /* Clean white header */
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

body {
  padding-top: var(--header-h);
}

/* Red Roof Accent */
header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 8px;
  background: #E4002B;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.4);
  z-index: 1001;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cr-red);
  padding: 2px;
}

.brand span {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.section-map {
  margin-top: 40px;
  margin-bottom: 40px;
  /* Ensure it doesn't touch the header on mobile too much, but PC needs more */
}

@media(min-width: 900px) {
  .section-map {
    margin-top: 80px;
    /* Big gap from header on PC */
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    /* Center horizontally if max-width permits */
  }
}

/* Steps (dots) */
.steps {
  display: flex;
  gap: 6px;
}

.step {
  padding: 6px 12px;
  border-radius: 999px;
  background: #F1F3F4;
  color: var(--ink-light);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step.active {
  background: var(--cr-red);
  color: #fff;
}

.step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.step.active .dot {
  background: #fff;
  color: var(--cr-red);
}

@media(max-width: 600px) {
  .step .label {
    display: none;
  }

  .brand span {
    font-size: 1.1rem;
  }
}

/* =========================================================
 * Slider Hero (Rappi Style -> KFC Style)
 * ========================================================= */
/* =========================================================
 * Location Toast (Pop-up Sutil)
 * ========================================================= */
.loc-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #fff;
  padding: 16px 24px;
  border-radius: 50px;
  /* Pill shape */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 4000;
  border: 2px solid var(--cr-red);
  min-width: 300px;
  animation: toastPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.loc-toast.hidden {
  display: none;
}

.lt-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  animation: pizzaSpin 3s linear infinite;
}

.lt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.lt-content h4 {
  font-size: 1rem;
  color: var(--cr-red);
}

.lt-content .small {
  font-size: 0.9rem;
  color: var(--ink-light);
}

@keyframes toastPop {
  0% {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes pizzaSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(10deg) scale(1.1);
  }

  50% {
    transform: rotate(0deg) scale(1);
  }

  75% {
    transform: rotate(-10deg) scale(1.1);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* =========================================================
 * Pizza Hut 2026 Hero Slider (Redesigned)
 * ========================================================= */
.kfc-hero {
  margin: 32px auto;
  padding: 0 20px;
  max-width: 1200px;
  position: relative;
}

.k-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.k-track::-webkit-scrollbar {
  display: none;
}

.k-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  border-radius: 24px;
  /* Slightly tighter than KFC */
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
  aspect-ratio: 21/9;
  /* Wider Cinematic */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Red Roof Strip on Card */
.k-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--cr-red);
  z-index: 10;
}

@media(max-width: 768px) {
  .k-card {
    aspect-ratio: 4/5;
    /* Portrait on Mobile */
  }
}

.k-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(228, 0, 43, 0.2);
  /* Hut Red Glow */
}

.k-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.k-card:hover .k-img {
  transform: scale(1.04);
}

.k-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
}

.k-tag {
  display: inline-block;
  background: var(--cr-orange);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.4);
}

.k-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 8px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.k-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
  max-width: 600px;
}

/* Navigation Arrows (Floating) */
.k-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: 0.2s;
  opacity: 0;
  /* Hidden by default until hover/interaction */
}

.kfc-hero:hover .k-nav {
  opacity: 1;
}

.k-nav:hover {
  background: var(--cr-red);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.k-prev {
  left: 40px;
}

.k-next {
  right: 40px;
}

@media(max-width: 768px) {
  .k-nav {
    display: none;
  }

  /* Touch only on mobile */
  .kfc-hero {
    padding: 0 16px;
    margin: 20px auto;
  }
}

/* Dots */
.k-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.k-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5E7EB;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}

.k-dot.active {
  background: var(--cr-red);
  transform: scale(1.2);
  width: 24px;
  border-radius: 10px;
  /* Stretch effect */
}

/* =========================================================
 * Menu Grid & Items
 * ========================================================= */
.tabs {
  position: sticky;
  top: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 90;
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  overflow-x: auto;
  border-bottom: 1px solid #EFF1F3;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #E5E7EB;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s;
}

.tab.is-active {
  background: var(--cr-gold);
  color: var(--ink);
  border-color: var(--cr-gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

/* Locked state */
.menu-grid.locked {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

/* =========================================================
 * PIZZA HUT 2026 CARD DESIGN (Red Roof Future)
 * ========================================================= */
.r-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  /* subtle border, but relies more on shadow */
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The "Red Roof" Top Accent */
.r-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--cr-red);
  z-index: 5;
  transform-origin: center top;
  transition: transform 0.3s ease;
}

.r-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.r-card:hover::before {
  height: 8px;
  /* Slightly thicker on hover */
}

/* Image container */
.r-media {
  aspect-ratio: 1;
  position: relative;
  background: #f4f4f4;
  overflow: hidden;
}

.r-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.8, 1);
}

.r-card:hover .r-media img {
  transform: scale(1.08);
}

/* Floating Add Button (Pizza Hut Hut Rewards Style) */
.fab-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

/* Plus Icon */
.fab-add::after {
  content: '+';
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--cr-red);
  margin-top: -2px;
  /* optical center */
}

.fab-add:hover {
  background: var(--cr-red);
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(228, 0, 43, 0.3);
}

.fab-add:hover::after {
  color: #fff;
}

.fab-add:active {
  transform: scale(0.95);
}

.fab-add.clicked {
  animation: pulse-fab 0.3s ease;
}

@keyframes pulse-fab {
  50% {
    transform: scale(0.85);
    box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.2);
  }
}

/* Info Section */
.r-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Price Tag - Modern & Bold */
.r-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.r-price strong {
  color: var(--cr-red);
  /* Highlight price in brand color */
}

/* Title */
.r-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Description */
.r-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.4;
  margin: 0;
  /* clamp text lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
 * Cart & Location (Leaflet)
 * ========================================================= */
#map {
  height: 550px !important;
  /* Force consistent height */
  border-radius: 20px;
  background: #EEE;
  z-index: 1;
}

.branch-list {
  display: grid;
  gap: 8px;
  /* Reduced gap */
  margin-top: 10px;
  max-height: 550px;
  /* Matches map height */
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
}

.branch-item {
  padding: 12px;
  /* Compact padding */
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
}

.branch-item:hover {
  border-color: var(--cr-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.branch-item h4 {
  margin-bottom: 2px;
  font-size: 1rem;
}

/* Cart Summary Bar (Floating) */
.cart-summary {
  position: sticky;
  bottom: 20px;
  margin: 20px 20px 0;
  background: var(--ink);
  color: #fff;
  padding: 16px 24px;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 900;
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 900;
}

.cart-btn {
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.badge {
  background: var(--cr-gold);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Cart Item Layout */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #EFF1F3;
}

.cart-item:last-child {
  border-bottom: none;
}

.remove-item {
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: #BBB;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: 12px;
  padding-bottom: 4px;
  /* Align X visually */
}

.remove-item:hover {
  background: var(--cr-red-light);
  color: var(--cr-red);
  border-color: var(--cr-red-light);
  transform: rotate(90deg);
}

/* Cart lines */
.line-del {
  width: 32px;
  height: 32px;
  background: #FEE2E2;
  color: var(--error);
  border-radius: 50%;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

/* =========================================================
 * Sheet (Configurator) & Selects
 * ========================================================= */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  /* Let clicks pass through backdrop */
}

.sheet.hidden {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  /* Optimization: Remove blur */
  /* backdrop-filter: blur(4px); */
  pointer-events: auto;
}

.sheet-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  /* Glass */
  /* Optimization: Removed heavy blur */
  /* backdrop-filter: blur(20px); */
  /* -webkit-backdrop-filter: blur(20px); */
  border-radius: 24px 24px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F3F4;
  border: none;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

#sheetContent {
  padding: 24px 24px 140px;
  overflow-y: auto;
}

#sheetFooter {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  padding: 16px 24px;
  /* Space for safe area handled by var */
  padding-bottom: calc(16px + var(--safe-bot));
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* Custom Select Logic Styles */
.fsel-wrap {
  margin-bottom: 12px;
}

/* The container for custom select */
.fselect {
  position: relative;
  width: 100%;
}

/* Native select hidden but accessible */
.fselect select {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

/* The visible button */
.fs-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #EFF1F3;
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.2s;
}

.fselect.active .fs-btn {
  border-color: var(--cr-red);
  box-shadow: 0 0 0 4px var(--cr-red-light);
}

/* Dropdown list */
.fs-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #EFF1F3;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.2s;
}

.fselect.active .fs-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fs-opt {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #F8F9FA;
  cursor: pointer;
}

.fs-opt:hover {
  background: #F8F9FA;
}

.fs-opt.selected {
  color: var(--cr-red);
  background: var(--cr-red-light);
}

.fs-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #f9f9f9;
  color: #aaa;
  cursor: not-allowed;
  position: relative;
}

.fs-item.disabled::after {
  content: "(No disponible)";
  display: block;
  font-size: 0.7em;
  color: #aaa;
  font-weight: 400;
}

/* =========================================================
 * Location Overlay (KFC Premium Onboarding)
 * ========================================================= */
.loc-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.4s ease-out;
}

.loc-panel {
  background: #fff;
  padding: 40px;
  border-radius: 40px;
  border: 4px solid var(--cr-warm-white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
  text-align: center;
  max-width: 440px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loc-brand-anim {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  position: relative;
}

.loc-brand-anim img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(228, 0, 43, 0.3);
  animation: logoBreath 3s infinite ease-in-out;
}

.loc-panel h3 {
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.1;
  font-weight: 800;
}

.loc-panel p {
  font-size: 1.1rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 32px;
}

.loc-actions .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(228, 0, 43, 0.3);
  transition: transform 0.2s;
}

.loc-actions .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(228, 0, 43, 0.5);
}

@keyframes logoBreath {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(228, 0, 43, 0.3);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 16px 30px rgba(228, 0, 43, 0.5);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loc-overlay.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

/* =========================================================
 * Sheet Footer Button (Add Big) - KFC Vistoso
 * ========================================================= */
.add-big {
  background: var(--cr-red);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(228, 0, 43, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  flex-shrink: 0;
  min-width: 140px;
}

.add-big:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(228, 0, 43, 0.6);
  background: var(--cr-red-dark);
}

.add-big:active {
  transform: scale(0.95);
}



/* =========================================================
 * Order Success Overlay
 * ========================================================= */
.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  text-align: center;
  animation: fadeIn 0.3s forwards;
}

.order-overlay.hidden {
  display: none;
}

.order-card {
  max-width: 90%;
  width: 400px;
  animation: popUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.happy-face {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: bounceFace 2s infinite ease-in-out;
}

.order-card h2 {
  font-size: 1.8rem;
  color: var(--cr-red);
  margin-bottom: 12px;
  line-height: 1.2;
}

.order-card p {
  font-size: 1.1rem;
  color: var(--ink-light);
}

@keyframes popUp {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceFace {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* =========================================================
 * Premium Upsell Modal (KFC 2025)
 * ========================================================= */
.upsell-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s;
}

.upsell-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.upsell-overlay.hidden .upsell-panel {
  transform: translateY(100%);
}

.upsell-panel {
  background: rgba(255, 255, 255, 0.98);
  /* Optimization: Removed heavy blur */
  /* backdrop-filter: blur(24px); */
  width: 100%;
  max-width: 600px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

@media(min-width: 600px) {
  .upsell-overlay {
    align-items: center;
  }

  .upsell-panel {
    border-radius: 24px;
    max-height: 80vh;
    margin: 20px;
  }

  .upsell-overlay.hidden .upsell-panel {
    transform: scale(0.95);
    opacity: 0;
  }
}

.upsell-header {
  padding: 20px 24px;
  border-bottom: 1px solid #EFF1F3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upsell-close {
  background: #F1F3F4;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  color: var(--ink);
}

.upsell-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

/* Upsell Grid (KFC 2025) */
.upsell-card {
  background: #fff;
  border: 1px solid #EFF1F3;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
}

.upsell-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #E5E7EB;
}

.upsell-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #F8F9FA;
  border-bottom: 1px solid #EFF1F3;
}

.upsell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.upsell-card:hover .upsell-img img {
  transform: scale(1.05);
}

.upsell-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upsell-title {
  font-weight: 800;
  font-size: 0.95rem;
  /* Slight reduction for better fit */
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upsell-footer {
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping on very small screens */
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}

.upsell-price {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Add Button (Pill/FAB hybrid) */
.u-add {
  background: var(--cr-red);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  /* Slightly smaller text for fit */
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  /* Prevent button text breaking */
  flex-shrink: 0;
  /* Don't shrink button */
}

.u-add:hover {
  background: var(--cr-red-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(228, 0, 43, 0.4);
}

.u-add.added {
  background: var(--success);
  box-shadow: none;
}

/* =========================================================
 * Fancy Selects (Restored)
 * ========================================================= */
.fsel-wrap {
  margin-bottom: 12px;
}

.fselect {
  position: relative;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fselect:hover {
  border-color: var(--ink-light);
}

.fselect.filled {
  border-color: var(--ink);
  background: #FAFAFA;
}

/* The real select: invisible but clickable on top */
.fsel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
  /* prevent zoom ios */
}

/* The visual display */
.fsel-display {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fsel-display::after {
  content: "â–¼";
  font-size: 0.8em;
  color: var(--ink-light);
  margin-left: 8px;
}

.input-error {
  border-color: var(--error) !important;
}

/* =========================================================
 * Extras Modal CSS (Restored)
 * ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s;
}

.modal-box {
  background: rgba(255, 255, 255, 0.98);
  /* Optimization: Removed heavy backdrop-filter for desktop performance */
  /* backdrop-filter: blur(20px); */
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #000;
  /* Ensure text is visible */
}

.modal-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: #000;
}

/* Extras Grid (KFC 2025) */
.extras-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.extras-list label.pill {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid #EFF1F3;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.extras-list label.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: #E5E7EB;
}

.extras-list label.pill:active {
  transform: scale(0.96);
}

/* Checked State */
.extras-list label.pill:has(input:checked) {
  border-color: var(--cr-red);
  background: var(--cr-red-light);
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.2);
}

.extras-list label.pill span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.extras-list label.pill .price {
  font-weight: 800;
  color: var(--cr-red);
  font-size: 0.9rem;
}

/* Hide native checkbox visually but keep it accessible/functional */
.extras-list input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extras-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cr-red, #E31C2D);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* =========================================================
 * Animations (Flash Green)
 * ========================================================= */
@keyframes flashGreen {
  0% {
    background-color: rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
  }

  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.highlight-green {
  animation: flashGreen 1s ease-out;
}


/* =========================================================
 * Premium Upsell Modal (Restored & Polished)
 * ========================================================= */
.upsell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10010;
  display: flex;
  align-items: center;
  /* Desktop center */
  justify-content: center;
  animation: fadeIn 0.3s;
}

.upsell-overlay.hidden {
  display: none;
}

.upsell-panel {
  background: var(--bg-card, #fff);
  width: 100%;
  max-width: 500px;
  /* Slightly wider for grid */
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.upsell-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  z-index: 10;
}

.upsell-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.upsell-body {
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.upsell-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.upsell-card:active {
  transform: scale(0.98);
}

.upsell-card.added {
  background: #E6F4EA;
  border-color: var(--success);
  box-shadow: 0 8px 15px rgba(52, 168, 83, 0.2);
}

.upsell-card.added .u-title {
  color: #137333;
  font-weight: 700;
}

.upsell-card .u-img {
  height: 100px;
  background: #eee;
  transition: opacity 0.2s;
}

.upsell-card.added .u-img {
  opacity: 0.8;
}

.upsell-card .u-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upsell-card .u-info {
  padding: 10px;
  flex: 1;
}

.upsell-card .u-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
  transition: color 0.2s;
}

.r-desc {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upsell-card .u-price {
  font-size: 0.85rem;
  color: var(--cr-red, #E31C2D);
  font-weight: 700;
}

.upsell-card .u-add {
  /* position: absolute; removed */
  width: auto;
  height: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cr-red, #E31C2D);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(227, 28, 45, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.upsell-card .u-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.upsell-card .u-add.added {
  background: var(--success);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(52, 168, 83, 0.4);
}

/* ========================
 * Mobile Sticky Cart
 * ====================== */
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  /* Hidden by default on desktop */
}

@media (max-width: 768px) {
  .sticky-cart {
    display: flex;
  }

  .sticky-cart.hidden {
    display: none;
  }
}

.sc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--ink);
}

.sc-sep {
  color: #ddd;
}

.sc-btn {
  background: var(--cr-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.sc-btn:active {
  transform: scale(0.96);
}

/* ========================
 * Pulse Animation for CTA
 * ====================== */
@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-button {
  background: #10B981 !important;
  /* Green CTA */
  border-color: #10B981 !important;
  color: #fff !important;
  animation: pulseGreen 2s infinite;
  transition: all 0.3s ease;
}

.pulse-button:hover {
  background: #059669 !important;
  transform: translateY(-2px);
}


/* =========================================================
 * Flavor Modal (Premium Selection)
 * ========================================================= */
/* =========================================================
 * Flavor Modal (Premium Selection)
 * ========================================================= */
.flavor-box {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media(min-width: 600px) {
  .flavor-box {
    border-radius: 24px;
    max-height: 80vh;
    margin: 20px;
  }
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #EFF1F3;
}

.modal-close {
  background: #F1F3F4;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}

.modal-search {
  padding: 16px 24px;
  border-bottom: 1px solid #EFF1F3;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #EFF1F3;
  background: #F8F9FA;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
}

.modal-search input:focus {
  border-color: var(--cr-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227, 28, 45, 0.1);
}

.fs-list {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.fs-item {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  background: #fff;
}

.fs-item:hover {
  background: #F8F9FA;
  transform: translateY(-2px);
}

.fs-item.selected {
  background: #FFF5F6;
  border-color: #FECACA;
}

.fs-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.fs-item-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.4;
}

/* =========================================================
 * Premium Size Selection Cards
 * ========================================================= */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.size-card {
  position: relative;
  border: 2px solid #EFF1F3;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.size-card:active {
  transform: scale(0.96);
}

.size-card.selected {
  border-color: var(--cr-red);
  background: #FFF5F6;
  box-shadow: 0 4px 12px rgba(227, 28, 45, 0.15);
}

.hidden-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sc-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 0.2s;
}

.size-card.selected .sc-icon {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

.sc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: capitalize;
}

.sc-price {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-weight: 500;
}

.size-card.selected .sc-name {
  color: var(--cr-red);
}

.size-card.selected .sc-price {
  color: var(--cr-red);
  font-weight: 700;
}

@media(max-width: 360px) {
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
 * Premium Menu Sections (Tabs & Titles)
 * ========================================================= */
.tabs {
  display: flex !important;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px;
  /* Space for shadow */
  margin: 0 -24px 24px;
  /* Bleed on mobile */
  padding-left: 24px;
  padding-right: 24px;

  /* Utility to force hide sticky cart via JS */
  .sticky-cart.force-hide {
    transform: translateY(200%);
    opacity: 0;
    pointer-events: none;
  }

  /* Sticky Magic */
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  background: #F1F3F4;
  color: var(--ink-light);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tab:hover {
  background: #E5E7EB;
  color: var(--ink);
  transform: translateY(-1px);
}

.tab.is-active {
  background: var(--cr-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
  transform: scale(1.05);
}

/* Product Titles (Improved Legibility) */
.r-title {
  font-size: 1.1rem !important;
  /* Force override */
  font-weight: 800 !important;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.r-card:hover .r-title {
  color: var(--cr-red);
}

/* Mobile Tweaks */
@media(max-width: 600px) {
  body {
    padding-bottom: 100px !important;
  }

  .tabs {
    top: 60px;
    /* Below header if sticky */
  }
}

/* =========================================================
 * Visual Pizza Builder (Tasty Edition ðŸ•)
 * ========================================================= */
.pizza-viz-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.pizza-viz {
  width: 200px;
  height: 200px;
  background: #F3CA88;
  /* Dough Color */
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 6px solid #EAA348;
  /* Crust */
  /* box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1); REMOVED for clarity */
  transition: all 0.3s ease;
}

.pv-slice {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1 !important;
  /* FIXED: Removed pale filter */
  background: #FFFBEB;
  /* Mozzarella (Empty) */
  clip-path: none;
  border: 0px solid rgba(0, 0, 0, 0.05);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
  background-image: url('../img/pizza1.jpg');
  /* Default */
  background-size: cover;
  background-position: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

/* Texture Pattern for Filled (Pepperoni Style) */
.pv-slice.filled {
  opacity: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
  background-image: url('../img/pizza1.jpg');
  /* Default */
  background-size: cover;
  background-position: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.pv-slice:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pv-slice.pulse-pop {
  animation: slice-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slice-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Flash Focus for Selects */
.flash-focus {
  animation: select-flash 0.5s ease;
  border-color: var(--cr-red) !important;
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.2) !important;
}

@keyframes select-flash {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* Mode 2 Slicing */
.mode-2 .pv-slice:nth-child(1) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  width: 50%;
  left: 0;
  border-radius: 50% 0 0 50%;
}

.mode-2 .pv-slice:nth-child(2) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  width: 50%;
  left: 50%;
  border-radius: 0 50% 50% 0;
}

/* Mode 4 Slicing */
.mode-4 .pv-slice {
  width: 50%;
  height: 50%;
  clip-path: none;
}

.mode-4 .pv-slice:nth-child(1) {
  top: 0;
  left: 0;
  border-radius: 100% 0 0 0;
}

.mode-4 .pv-slice:nth-child(2) {
  top: 0;
  left: 50%;
  border-radius: 0 100% 0 0;
}

.mode-4 .pv-slice:nth-child(3) {
  top: 50%;
  left: 0;
  border-radius: 0 0 0 100%;
}

.mode-4 .pv-slice:nth-child(4) {
  top: 50%;
  left: 50%;
  border-radius: 0 0 100% 0;
}

/* Hover effects for interactivity */
.pv-slice.filled:hover {
  filter: brightness(1.1);
}

/* Labels overlapping */
.pv-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pv-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.pv-label.show {
  opacity: 1;
}

/* =========================================================
 * Pizza Visualizer (Interactive) - RE-ADDED FORCEFULLY
 * ========================================================= */
.pizza-viz-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pizza-viz {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: translateZ(0);
  border: 4px solid #fff;
}

.pv-slice {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
  background-image: url('../img/pizza1.jpg');
  background-size: cover;
  background-position: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.pv-slice:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pv-slice.pulse-pop {
  animation: slice-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slice-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Flash Focus for Selects */
.flash-focus {
  animation: select-flash 0.5s ease;
  border-color: var(--cr-red) !important;
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.2) !important;
}

@keyframes select-flash {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }

  100% {
    transform: translateX(0);
  }
}

/* =========================================================
 * Post-Add Action Sheet (Added to Cart) - Pizza Hut 2026
 * ========================================================= */
.action-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.action-sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.action-sheet {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 32px 32px 0 0;
  padding: 30px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Red Roof Accent */
.action-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--cr-red, #E4002B);
  z-index: 5;
}

@media(min-width: 500px) {
  .action-sheet-backdrop {
    align-items: center;
  }

  .action-sheet {
    border-radius: 32px;
    margin: 20px;
    transform: scale(0.9);
  }

  .action-sheet-backdrop.visible .action-sheet {
    transform: scale(1);
  }
}

.action-sheet-backdrop.visible .action-sheet {
  transform: translateY(0);
}

.as-head {
  text-align: center;
  margin-bottom: 24px;
}

.as-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.as-head h3 {
  margin: 0 0 4px 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.as-head p {
  margin: 0;
  opacity: 0.7;
}

.as-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-action {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-action:active {
  transform: scale(0.98);
}

.btn-action.primary {
  background: var(--cr-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(215, 25, 32, 0.3);
}

.btn-action.secondary {
  background: #f8f9fa;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-action.tertiary {
  background: transparent;
  color: var(--ink-light);
  justify-content: center;
  padding: 12px;
}

.ba-icon {
  font-size: 1.8rem;
  margin-right: 16px;
}

.ba-text {
  display: flex;
  flex-direction: column;
}

.ba-text strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.ba-text small {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 400;
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mode 2 Slicing */
.mode-2 .pv-slice:nth-child(1) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  width: 50%;
  left: 0;
  border-radius: 50% 0 0 50%;
}

.mode-2 .pv-slice:nth-child(2) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  width: 50%;
  left: 50%;
  border-radius: 0 50% 50% 0;
}

/* Mode 4 Slicing */
.mode-4 .pv-slice {
  width: 50%;
  height: 50%;
  clip-path: none;
}

.mode-4 .pv-slice:nth-child(1) {
  top: 0;
  left: 0;
  border-radius: 100% 0 0 0;
}

.mode-4 .pv-slice:nth-child(2) {
  top: 0;
  left: 50%;
  border-radius: 0 100% 0 0;
}

.mode-4 .pv-slice:nth-child(3) {
  top: 50%;
  left: 0;
  border-radius: 0 0 0 100%;
}

.mode-4 .pv-slice:nth-child(4) {
  top: 50%;
  left: 50%;
  border-radius: 0 0 100% 0;
}

/* Branch Cards - Premium Glass (Pizza Hut 2026) */
.branch-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.branch-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.branch-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-color: #fff;
}

.branch-item:hover::before {
  transform: translateX(100%);
}

.branch-item.active {
  border-left: 8px solid var(--cr-red) !important;
  border: 1px solid var(--cr-red);
  background: #fff;
  box-shadow: 0 10px 40px rgba(228, 0, 43, 0.2);
}

.branch-item.active::after {
  content: "\2705";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.branch-item h4 {
  margin: 0 0 4px 0;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.branch-item .pill {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  width: fit-content;
  font-weight: 500;
}

.branch-item button.pill.select-branch {
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.branch-item button.pill.select-branch:hover {
  background: #000;
  transform: scale(1.05);
}

/* Active State override for the button inside active card */

/* =========================================
   High Impact Checkout Attention
   ========================================= */

/* The "Shouting" Container */
.checkout-attention {
  position: relative;
  border: 3px solid var(--cr-red) !important;
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.2), 0 15px 40px rgba(228, 0, 43, 0.25) !important;
  animation: pulse-attention 1.5s infinite ease-in-out;
  z-index: 100 !important;
  /* Lift above others */
}

/* Heartbeat / Pulse Animation */
@keyframes pulse-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0px rgba(228, 0, 43, 0.4), 0 15px 40px rgba(228, 0, 43, 0.25);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(228, 0, 43, 0), 0 20px 50px rgba(228, 0, 43, 0.35);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0px rgba(228, 0, 43, 0), 0 15px 40px rgba(228, 0, 43, 0.25);
  }
}

/* "Alive" Input Fields - Waiting for you */
.files-alive input,
.files-alive select,
.files-alive textarea {
  transition: all 0.3s;
  border-color: var(--cr-gold);
  background: #fffdf5;
  /* Subtle warm tint */
}

.files-alive input:focus,
.files-alive select:focus,
.files-alive textarea:focus {
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Finger/Arrow Pointer Helper */
.checkout-attention::after {
  content: "";
  font-size: 3rem;
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  animation: finger-poke 1s infinite alternate;
}

@media(max-width: 800px) {
  .checkout-attention::after {
    left: -10px;
    top: -40px;
    transform: rotate(90deg);
    animation: finger-poke-mobile 1s infinite alternate;
  }
}

@keyframes finger-poke {
  from {
    transform: translateY(-50%) translateX(0);
  }

  to {
    transform: translateY(-50%) translateX(10px);
  }
}

@keyframes finger-poke-mobile {
  from {
    transform: rotate(90deg) translateX(0);
  }

  to {
    transform: rotate(90deg) translateX(10px);
  }
}

/* Calmed State (when user interacts) */
.checkout-calm {
  border-color: var(--success) !important;
  box-shadow: 0 4px 20px rgba(52, 168, 83, 0.2) !important;
  animation: none !important;
  transform: scale(1) !important;
  transition: all 0.5s ease;
}

.checkout-calm::after {
  display: none;
}

/* =========================================
   UX Hand-Holding Enhancements
   ========================================= */

/* 1. Visual Progress Checks */
.step.completed .dot {
  background: var(--success) !important;
  color: #fff !important;
  border-color: var(--success) !important;
  font-size: 0;
  /* Hide number */
}

.step.completed .dot::after {
  content: 'âœ”';
  font-size: 14px;
  line-height: 24px;
  display: block;
}

.step.completed .label {
  color: var(--success) !important;
  font-weight: 700;
}

/* 2. Fly-to-Cart Animation */
.fly-item {
  position: fixed;
  z-index: 12000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 3. Smart Sticky Footer Types */
/* Default (Items present) is already styled */
#stickyCart {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Mode: Select Branch (Step 1) */
#stickyCart.mode-branch {
  background: var(--cr-blue) !important;
  /* Distinct from checkout green */
}

#stickyCart.mode-branch .sc-info span {
  color: #fff;
}

/* Mode: Add Items (Step 2 - Empty) */
#stickyCart.mode-add {
  background: var(--bg-card);
  border-top: 2px solid var(--cr-gold);
  color: var(--text-main);
}

#stickyCart.mode-add .sc-info {
  color: var(--text-main);
}

#stickyCart.mode-add .sc-btn {
  background: var(--cr-gold);
  color: var(--text-main);
}

/* Pulse animation for the button in footer */
@keyframes pulse-btn {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

#stickyCart .sc-btn.pulse {
  animation: pulse-btn 1s infinite;
}

/* Fix Deformed Checkmark */
.step.completed .dot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
}

.step.completed .dot::after {
  content: "";
  font-size: 14px;
  line-height: 1;
  display: block;
}

/* Location Toast - Fixed Top Position */
.loc-toast {
  position: fixed;
  top: 20px !important;
  bottom: auto !important;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 12000;
  min-width: 300px;
  max-width: 90%;
  animation: slideDownFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.loc-toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -20px);
}

.lt-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.lt-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-content h4 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
  margin-top: 0;
}

.lt-content p {
  font-size: 0.8rem;
  line-height: 1.2;
  margin: 0;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Highlight Green (Success Feedback) */
.highlight-green {
  animation: flashGreen 0.5s ease-out;
  border-color: #2ecc71 !important;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.4) !important;
}

@keyframes flashGreen {
  0% {
    transform: scale(1);
    background-color: rgba(46, 204, 113, 0.1);
  }

  50% {
    transform: scale(1.02);
    background-color: rgba(46, 204, 113, 0.2);
  }

  100% {
    transform: scale(1);
    background-color: transparent;
  }
}

/* Cart Jump Animation */
.cart-jump {
  animation: cartJump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  color: #2ecc71;
  /* Green text during jump */
}

@keyframes cartJump {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

/* Fix for Flash Visibility */
.r-card {
  overflow: visible !important;
  /* Ensure shadow shows */
}

/* Ensure flash is on top */
.highlight-green {
  z-index: 10 !important;
  position: relative;
}

/* =========================================
   Product Image Normalization
   ========================================= */
.r-media {
  width: 100%;
  aspect-ratio: 4/3;
  /* Uniform shape */
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.r-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop to fit */
  display: block;
  transition: transform 0.4s ease;
}

.r-card:hover .r-media img {
  transform: scale(1.05);
}

/* Utility: Lock Scroll */
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

/* =========================================
   Location Success Modal (Pizza Hut 2026)
   ========================================= */
.loc-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.loc-success-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.loc-success-card {
  background: #fff;
  width: 90%;
  max-width: 380px;
  padding: 40px 30px;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: scale(1);
  animation: lsPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loc-success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--cr-red);
}

@keyframes lsPop {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.ls-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(228, 0, 43, 0.25);
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
}

.ls-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.1;
}

.ls-msg {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 30px;
  line-height: 1.5;
}

.loc-success-card button {
  width: 100%;
  padding: 16px;
  border-radius: 99px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--cr-red);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(228, 0, 43, 0.3);
  transition: all 0.2s;
}

.loc-success-card button:hover {
  background: var(--cr-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(228, 0, 43, 0.4);
}

/* =========================================
   Location Success Modal (Celebratory)
   ========================================= */
.loc-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.loc-success-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.loc-success-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcf8 100%);
  width: 90%;
  max-width: 400px;
  padding: 40px 30px;
  border-radius: 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(16, 185, 129, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: scale(1);
  animation: lsPopElastic 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Green Success Accent */
.loc-success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #10B981;
  /* Success Green */
  z-index: 5;
}

@keyframes lsPopElastic {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animated Checkmark Icon */
.ls-icon-success {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #D1FAE5;
  /* Light Green */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.1);
}

.success-checkmark {
  width: 40px;
  height: 60px;
  border-bottom: 6px solid #10B981;
  border-right: 6px solid #10B981;
  transform: rotate(45deg) translateY(-8px);
  animation: checkDraw 0.6s 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  opacity: 0;
}

@keyframes checkDraw {
  0% {
    opacity: 0;
    height: 0;
    width: 0;
  }

  50% {
    opacity: 1;
    height: 60px;
    width: 0;
  }

  100% {
    opacity: 1;
    height: 60px;
    width: 40px;
  }
}

.ls-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ls-msg {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.5;
}

.btn-gold {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--cr-gold);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.05em;
}

.btn-gold:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4);
  background: #FFCA2C;
}

/* =========================================
   Responsive Fixes for Sucursales (Mobile/Tablet)
   ========================================= */
@media screen and (max-width: 1024px) {

  /* Stack Columns */
  .section-map .grid.two {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  /* Disable Sticky Map & Adjust Height */
  .map-col {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
  }

  #map {
    height: 400px !important;
    /* Smaller map on mobile */
  }

  /* Expand Branch List (Natural Scroll) */
  .branch-list {
    max-height: none !important;
    overflow-y: visible !important;
    display: flex;
    flex-direction: column;
  }

  /* No truncation on mobile cards */
  .branch-item {
    height: auto !important;
  }
}

/* Validation Errors */
.input-error {
  border-color: #ff4444 !important;
  background-color: rgba(255, 68, 68, 0.1) !important;
  animation: shake 0.4s linear;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

/* Stripe Element */
.StripeElement {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  /* Logic handled by container border usually, but explicit here */
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  -webkit-transition: box-shadow 150ms ease;
  transition: box-shadow 150ms ease;
}

.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

/* =========================================================
 * Apple-Level Validation Feedback (Overriding JS defaults)
 * ========================================================= */
.guide-highlight {
  outline: none !important;
  /* Reset JS default */
  animation: appleShake 0.5s cubic-bezier(.36, .07, .19, .97) both !important;
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.5) !important;
  z-index: 20 !important;
}

/* Specific for the Slices to look amazing */
.pv-slice.guide-highlight {
  /* Red Overlay + Glow */
  box-shadow: inset 0 0 0 4px rgba(228, 0, 43, 0.8), 0 0 20px rgba(228, 0, 43, 0.4) !important;
  filter: sepia(1) hue-rotate(-50deg) saturate(5) !important;
  /* Deep Red tint */
}

@keyframes appleShake {

  10%,
  90% {
    transform: translate3d(-2px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(4px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-6px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(6px, 0, 0);
  }
}

/* =========================================================
 * Apple-Style Laptop Layout (Pizza Builder)
 * ========================================================= */
/* =========================================================
 * DEFINITIVE APPLE / PIZZA HUT 2026 LAPTOP LAYOUT
 * (Rebuilt from scratch for perfect proportions)
 * ========================================================= */
/* DESKTOP LAYOUT CLEARED BY USER REQUEST - SEE LAYOUT_ENGINE_V3.CSS */
/*
@media (min-width: 1024px) {
  .sheet {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
}
*/

/* 4. The Form (Right Column) - The "Interaction" */

/* Container items (Head, Sizes, Flavors) */
.sheet-head,
.size-grid,
#flavorsBlock,
h4:not(.u-title):not(.branch-item h4) {
  width: 100%;
  /* Fill the right column area */
  box-sizing: border-box;
  padding-left: 40px;
  padding-right: 40px;
}

/* Header - Clean & Big */
.sheet-head {
  padding-top: 50px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid transparent;
}

.sheet-head h3 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #000;
}

.sheet-head p {
  color: #666;
  font-size: 1rem;
}

/* Section Headers */
h4 {
  margin-top: 30px !important;
  margin-bottom: 15px !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888 !important;
  font-weight: 700;
}

/* Size Grid - Compact */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.size-card {
  padding: 20px 10px;
  background: #fff;
  border: 1px solid #E5E5E5;
  box-shadow: none;
}

.size-card:hover {
  border-color: #CCC;
  transform: translateY(-1px);
}

.size-card.selected {
  border-color: var(--cr-red);
  background: #FFF5F6;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.1);
}

/* Flavors - Clean List */
.fsel-wrap {
  margin-bottom: 12px;
}

/* Force Flavor Labels Black in Laptop Mode */
.fsel-wrap label {
  color: #000 !important;
  opacity: 1 !important;
  font-weight: 700;
}

.fs-btn {
  padding: 14px 18px;
  border: 1px solid #E5E5E5;
  /* STYLES MOVED TO LAYOUT_ENGINE_V3.CSS */
  /*
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

#sheetFooter {
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - 340px);

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);

  padding: 20px 40px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-stepper {
  background: #fff;
  border: 1px solid #ddd;
}

.add-big {
  font-size: 1rem;
  padding: 12px 40px;
  box-shadow: 0 8px 16px rgba(228, 0, 43, 0.25);
}

.sheet-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: #F2F2F7;
  color: #888;
  width: 36px;
  height: 36px;
}

.sheet-close:hover {
  background: #E5E5EA;
  color: #000;
}
}
*/

  @keyframes zoomIn {
    from {
      opacity: 0;
      transform: scale(0.98);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* =========================================================
 * PERFORMANCE & FLUIDITY OPTIMIZATIONS (2026)
 * ========================================================= */
  .upsell-panel,
  .sheet,
  #map,
  .modal-overlay,
  .pizza-stage,
  .branch-item,
  .pulse-card,
  .upsell-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }

  /* Make hover effects feel snappier/more responsive */
  .branch-item,
  .pulse-card,
  .upsell-card,
  .btn,
  button {
    transition-duration: 0.2s !important;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  /* Optimize Backdrop Filters */
  .upsell-overlay,
  .leaflet-bar a,
  .sheet-backdrop {
    transform: translateZ(0);
    /* Trigger GPU composition */
  }

  /* Visualizer Optimization */
  .pizza-stage {
    will-change: transform;
    /* Smoother rotation */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }


  /* =========================================================
 * RENDERING OPTIMIZATION (Chrome 85+)
 * =========================================================.
 */
  #menuGrid,
  .branch-list {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
    /* Estimate to minimize layout shift */
  }

  /* Reduce Paint Areas */
  .hero-section {
    will-change: contents;
  }
  }

  
  