/* ==========================================================================
   THE NINO'S PIZZA & SUBS - SOLID TECH-STREET GRID INTERFACE
   ========================================================================== */

:root {
  --brand-primary: #ef4444;       /* Fire Brick Red */
  --brand-neon: #ff9900;          /* High-Vis Accent Yellow */
  --bg-deep: #090d16;              /* Matte Charcoal Black canvas */
  --bg-surface: #111827;          /* Steel Deck Gray panels */
  --text-bright: #f8fafc;         /* Crisp White */
  --text-muted: #94a3b8;          /* Smoke Gray descriptions */
  --border-steel: #1f2937;        /* Clean Structural framing lines */
  --radius-sharp: 6px;            /* Tight layout corners */
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-bright);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Hard-Edge Navigation bar */
.navigation-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-steel);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--brand-primary);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-right: 25px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-bright);
}

.cart-toggle-btn {
  background: var(--brand-primary);
  color: var(--text-bright);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: opacity 0.2s;
}

.cart-toggle-btn:hover {
  opacity: 0.9;
}

/* Premium Heavyweight Hero Layout */
.hero-header {
  max-width: 1200px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}

.hero-header .badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-header h1 {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.action-btn {
  display: inline-block;
  background: var(--text-bright);
  color: var(--bg-deep);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
}

/* Storefront Interaction Section */
.menu-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

.menu-wrapper h2 {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.category-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.tab-pill {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-steel);
  padding: 10px 20px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-pill:hover {
  border-color: var(--text-muted);
  color: var(--text-bright);
}

.tab-pill.active {
  background: var(--brand-primary);
  color: var(--text-bright);
  border-color: var(--brand-primary);
}

/* High-Contrast Grid Cards */
.products-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.product-menu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sharp);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body-details h3 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-body-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer-action-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-steel);
}

.price-tag-display {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-neon);
}

.add-to-tray-action-btn {
  background: rgba(248, 250, 252, 0.05);
  color: var(--text-bright);
  border: 1px solid var(--border-steel);
  padding: 10px 16px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.add-to-tray-action-btn:hover {
  background: var(--text-bright);
  color: var(--bg-deep);
}

/* Logistics Display Data Cards */
.utility-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--border-steel);
}

.utility-card {
  background: var(--bg-surface);
  border-radius: var(--radius-sharp);
  padding: 24px;
  border: 1px solid var(--border-steel);
}

.utility-card h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--brand-neon);
}

.utility-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.highlight-text-block {
  font-style: normal;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 10px;
  line-height: 1.5;
}

/* Outbound Checkout Sliding Tray System */
.drawer-shade {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.cart-drawer-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease-in-out;
  border-left: 1px solid var(--border-steel);
}

.cart-drawer-container.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-steel);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.drawer-close-x {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-line-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--border-steel);
}

.cart-line-item-details h5 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 2px;
}

.cart-line-item-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.cart-line-item-details strong {
  font-family: var(--font-mono);
  color: var(--brand-neon);
}

.cart-row-remove-x-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.cart-row-remove-x-btn:hover {
  color: var(--brand-primary);
}

.drawer-footer-checkout {
  padding: 20px;
  border-top: 1px solid var(--border-steel);
  background: rgba(0,0,0,0.2);
}

.input-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-stack label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.input-stack input {
  padding: 12px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-steel);
  background: var(--bg-deep);
  color: var(--text-bright);
  font-family: var(--font-sans);
}

.input-stack input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 1rem;
}

.total-row strong {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--brand-neon);
}

.checkout-btn {
  width: 100%;
  background: var(--brand-primary);
  color: var(--text-bright);
  border: none;
  padding: 14px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Modals & Configurator Engine UI Layouts */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Fixed Height Bounds and Internal Flex for Pop-Up Box */
.dialog-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-steel);
  width: 100%;
  max-width: 500px;
  max-height: 90vh; /* Keeps the container locked safely within view height */
  border-radius: var(--radius-sharp);
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevents edge bleeding */
}

.dialog-box h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.dialog-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-shrink: 0;
}

/* Force Form Container to Handle Scroll Actions Safely */
#customizer-interactive-form {
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch; /* Smooth iOS rubber-banding friction */
}

/* Custom Scrollbar Styles for Form Box Container */
#customizer-interactive-form::-webkit-scrollbar {
  width: 6px;
}
#customizer-interactive-form::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sharp);
}
#customizer-interactive-form::-webkit-scrollbar-thumb {
  background: var(--border-steel);
  border-radius: var(--radius-sharp);
}
#customizer-interactive-form::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.customizer-group-wrapper h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.radio-choices-column, .checkbox-choices-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customizer-radio-option-row, .customizer-check-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(248, 250, 252, 0.03);
  border: 1px solid var(--border-steel);
  padding: 12px;
  border-radius: var(--radius-sharp);
  cursor: pointer;
  color: var(--text-bright);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-shrink: 0;
}

.confirm-action-btn {
  flex: 1;
  background: var(--brand-primary);
  color: var(--text-bright);
  border: none;
  padding: 12px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
}

.cancel-action-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-steel);
  padding: 12px 20px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
}

.cancel-action-btn:hover {
  color: var(--text-bright);
}

/* Order Confirmation Screen Overlay Card */
.success-box {
  text-align: center;
  max-width: 450px;
}

.checkmark-icon {
  font-size: 2.5rem;
  color: #22c55e;
  margin-bottom: 10px;
}

.ticket-id-display {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  color: var(--brand-neon);
  font-weight: 700;
}

.receipt-location-card {
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sharp);
  padding: 15px;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
  border-left: 4px solid var(--brand-primary);
}

.checkpoint-header {
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
}

.checkpoint-row {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.checkpoint-row strong {
  color: var(--text-bright);
}

/* System Footer */
.shop-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-steel);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0,0,0,0.1);
}

.dev-tag {
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-top: 5px;
  color: #475569;
}

.hidden {
  display: none !important;
}

/* Responsive Structural Anchors */
@media (max-width: 640px) {
  .hero-header h1 { font-size: 2.25rem; }
  .nav-links { display: none; }
}