/**
 * Pizzarella Animated Digital Restaurant Menu Board
 * KFC-Style Billboard Aesthetics & Responsive TV Display
 */

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-dark: #0a0c10;
  --bg-surface: #12151c;
  --bg-card: #181c24;
  --bg-card-hover: #1f242e;
  
  --accent-red: #e61c24;
  --accent-red-hover: #ff2a33;
  --accent-red-deep: #b71219;
  --accent-red-glow: rgba(230, 28, 36, 0.35);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-cream: #fbf7ee;

  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(230, 28, 36, 0.4);

  /* Typography */
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en-display: 'Montserrat', sans-serif;
  --font-ar: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Screen & Timing */
  --header-height: 105px;
  --footer-height: 48px;
  --ease-billboard: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-speed: 0.7s;
}

/* ==========================================================================
   Light Mode Design Tokens (Warm Italian Daylight Aesthetic)
   ========================================================================== */
body.theme-light {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --accent-red: #d91b24;
  --accent-red-hover: #b71219;
  --accent-red-deep: #990f15;
  --accent-red-glow: rgba(217, 27, 36, 0.2);

  --accent-gold: #b45309;
  --accent-gold-light: #fef3c7;
  --accent-cream: #0f172a;

  --text-white: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(217, 27, 36, 0.4);
}

/* ==========================================================================
   Global Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

body.lang-ar {
  font-family: var(--font-ar);
}

/* Full-Screen Digital Signage Display Container (Edge-to-Edge) */
#menu-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 20%, #171b24 0%, #0c0e12 70%, #060709 100%);
  overflow: hidden;
}

/* ==========================================================================
   Progress Bar (Top Animated Countdown Indicator)
   ========================================================================== */
.progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 100;
}

#slide-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), #ff4d4d, var(--accent-gold));
  box-shadow: 0 0 12px var(--accent-red-glow);
}

/* ==========================================================================
   Header Section (Billboard Branding & Category Title)
   ========================================================================== */
/* ==========================================================================
   Header Section (Billboard Branding & Category Title)
   ========================================================================== */
.menu-header {
  position: relative;
  height: var(--header-height);
  padding: 0 clamp(20px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.96) 0%, rgba(14, 17, 23, 0.85) 100%);
  backdrop-filter: blur(12px);
  z-index: 50;
}

/* Brand Area */
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: clamp(68px, 8.5vh, 92px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.2);
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

body.theme-light .brand-logo-img {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.brand-emblem svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-en-display);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-white);
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
}

/* TV Screen Indicator Badge in Header */
.screen-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(230, 28, 36, 0.14);
  border: 1px solid rgba(230, 28, 36, 0.45);
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffb3b6;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.screen-pill-badge:hover {
  background: rgba(230, 28, 36, 0.25);
  border-color: rgba(230, 28, 36, 0.8);
  transform: translateY(-1px);
}

/* Category Center Billboard */
.category-billboard {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.category-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#current-category-name {
  font-family: var(--font-en-display);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-white);
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

body.lang-ar #current-category-name {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-weight: 900;
}

#current-category-arabic {
  font-family: var(--font-ar);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 3px;
}

.part-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230, 28, 36, 0.18);
  border: 1px solid rgba(230, 28, 36, 0.4);
  color: #ff9e9e;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Header Meta & Clock */
.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-indicator-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.restaurant-clock {
  font-family: var(--font-en-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cream);
  min-width: 100px;
  text-align: right;
}

body.lang-ar #current-category-name {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-weight: 900;
}

#current-category-arabic {
  font-family: var(--font-ar);
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}

.part-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230, 28, 36, 0.18);
  border: 1px solid rgba(230, 28, 36, 0.4);
  color: #ff9e9e;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.restaurant-clock {
  font-family: var(--font-en-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cream);
  min-width: 105px;
  text-align: right;
}

/* Theme Toggle Button in Header */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  user-select: none;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

body.theme-light .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.theme-light .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn .icon-sun {
  display: none;
}

.theme-toggle-btn .icon-moon {
  display: inline;
}

body.theme-light .theme-toggle-btn .icon-sun {
  display: inline;
}

body.theme-light .theme-toggle-btn .icon-moon {
  display: none;
}

/* ==========================================================================
   Comprehensive Light Mode Component Overrides
   ========================================================================== */
body.theme-light #menu-app {
  background: radial-gradient(circle at 50% 15%, #ffffff 0%, #f4f6fa 60%, #e8ecf4 100%);
}

body.theme-light .menu-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.9) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .brand-name {
  color: #0f172a;
  text-shadow: none;
}

body.theme-light #current-category-name {
  color: #0f172a;
  text-shadow: none;
}

body.theme-light #current-category-arabic {
  color: #b45309;
}

body.theme-light .screen-pill-badge {
  background: rgba(217, 27, 36, 0.08);
  border-color: rgba(217, 27, 36, 0.35);
  color: #b71219;
}

body.theme-light .screen-pill-badge:hover {
  background: rgba(217, 27, 36, 0.15);
  border-color: rgba(217, 27, 36, 0.7);
}

body.theme-light .part-badge {
  background: rgba(217, 27, 36, 0.08);
  border-color: rgba(217, 27, 36, 0.35);
  color: #b71219;
}

body.theme-light .slide-indicator-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.09);
  color: #475569;
}

body.theme-light .restaurant-clock {
  color: #0f172a;
}

body.theme-light .product-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.theme-light .product-card:hover {
  border-color: rgba(217, 27, 36, 0.4);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 0 16px rgba(217, 27, 36, 0.15);
}

body.theme-light .product-image-box {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-light .image-ambient-glow {
  display: none !important;
}

body.theme-light .product-weight {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.theme-light .product-info-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.theme-light .product-name {
  color: #0f172a;
}

body.theme-light .product-description {
  color: #475569;
}

body.theme-light .product-price-badge {
  background: linear-gradient(135deg, #d91b24, #b71219);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 27, 36, 0.28);
}

body.theme-light .menu-footer {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.theme-light .footer-highlight {
  color: #b45309;
}

body.theme-light .key-hint {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
}

body.theme-light .progress-container {
  background: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Main Slide Display Stage (KFC Billboard Transitions)
   ========================================================================== */
.menu-stage-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: hidden;
}

.menu-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide Container Elements */
.menu-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 2.5vh, 32px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--transition-speed) var(--ease-billboard),
              opacity var(--transition-speed) var(--ease-billboard);
  will-change: transform, opacity;
  pointer-events: none;
}

.menu-slide.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* Direction Classes for LTR & RTL Horizontal Billboarding */
.menu-slide.enter-right {
  transform: translateX(100%);
  opacity: 0;
  z-index: 20;
}

.menu-slide.enter-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 20;
}

.menu-slide.exit-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 5;
}

.menu-slide.exit-right {
  transform: translateX(100%);
  opacity: 0;
  z-index: 5;
}

/* ==========================================================================
   Dynamic Responsive Product Grids (43" Vertical LED TV - 9:16 Portrait)
   ========================================================================== */
.slide-products-grid {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

/* 6 Items: Standard 3 Columns x 2 Rows */
.slide-products-grid.layout-grid-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.layout-grid-6 .product-card {
  height: 100%;
  border-radius: 16px;
}

.layout-grid-6 .product-image-box {
  flex: 0 0 54%;
  height: 54% !important;
}

.layout-grid-6 .product-name {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem) !important;
}

.layout-grid-6 .price-val {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem) !important;
}

/* 4 Items: 2 Columns x 2 Rows Layout (Never squished in a single row) */
.slide-products-grid.layout-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}

.layout-grid-4 .product-card {
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  border-radius: 18px;
}

.layout-grid-4 .product-image-box {
  width: 44%;
  height: 100% !important;
  flex: 0 0 44%;
}

.layout-grid-4 .product-info-box {
  width: 56%;
  flex: 1 1 56%;
  padding: clamp(14px, 1.8vh, 22px) clamp(16px, 1.8vw, 26px);
  justify-content: center;
}

.layout-grid-4 .product-name {
  font-size: clamp(1.3rem, 1.7vw, 1.7rem) !important;
  -webkit-line-clamp: 2 !important;
}

.layout-grid-4 .price-val {
  font-size: clamp(1.4rem, 1.8vw, 1.8rem) !important;
}

.layout-grid-4 .product-description {
  font-size: clamp(0.88rem, 1vw, 1.05rem) !important;
  -webkit-line-clamp: 3 !important;
  margin-top: 6px !important;
}

/* 3 Items: 3 Columns x 1 Row Tall Hero Banner Layout */
.slide-products-grid.layout-hero-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.layout-hero-3 .product-card {
  height: 100%;
  border-radius: 20px;
}

.layout-hero-3 .product-image-box {
  flex: 0 0 62%;
  height: 62% !important;
}

.layout-hero-3 .product-name {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
}

.layout-hero-3 .price-val {
  font-size: clamp(1.45rem, 2vw, 1.9rem) !important;
}

.layout-hero-3 .product-description {
  font-size: clamp(0.92rem, 1.1vw, 1.12rem) !important;
  -webkit-line-clamp: 3 !important;
}

/* 5 Items: 2 Rows (3 on Top Row, 2 on Bottom Row) - Maximum 3 per row */
.slide-products-grid.layout-grid-5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

/* Row 1: 3 equal cards (span 2 each out of 6 cols) */
.layout-grid-5 .product-card:nth-child(1),
.layout-grid-5 .product-card:nth-child(2),
.layout-grid-5 .product-card:nth-child(3) {
  grid-column: span 2;
  height: 100%;
  border-radius: 16px;
}

.layout-grid-5 .product-card:nth-child(1) .product-image-box,
.layout-grid-5 .product-card:nth-child(2) .product-image-box,
.layout-grid-5 .product-card:nth-child(3) .product-image-box {
  flex: 0 0 54%;
  height: 54% !important;
}

.layout-grid-5 .product-card:nth-child(1) .product-name,
.layout-grid-5 .product-card:nth-child(2) .product-name,
.layout-grid-5 .product-card:nth-child(3) .product-name {
  font-size: clamp(1.15rem, 1.4vw, 1.45rem) !important;
}

.layout-grid-5 .product-card:nth-child(1) .price-val,
.layout-grid-5 .product-card:nth-child(2) .price-val,
.layout-grid-5 .product-card:nth-child(3) .price-val {
  font-size: clamp(1.25rem, 1.5vw, 1.55rem) !important;
}

/* Row 2: 2 wide feature cards (span 3 each out of 6 cols) */
.layout-grid-5 .product-card:nth-child(4),
.layout-grid-5 .product-card:nth-child(5) {
  grid-column: span 3;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  border-radius: 16px;
}

.layout-grid-5 .product-card:nth-child(4) .product-image-box,
.layout-grid-5 .product-card:nth-child(5) .product-image-box {
  width: 44%;
  height: 100% !important;
  flex: 0 0 44%;
}

.layout-grid-5 .product-card:nth-child(4) .product-info-box,
.layout-grid-5 .product-card:nth-child(5) .product-info-box {
  width: 56%;
  flex: 1 1 56%;
  padding: clamp(12px, 1.5vh, 20px) clamp(14px, 1.6vw, 22px);
  justify-content: center;
}

.layout-grid-5 .product-card:nth-child(4) .product-name,
.layout-grid-5 .product-card:nth-child(5) .product-name {
  font-size: clamp(1.2rem, 1.5vw, 1.55rem) !important;
  -webkit-line-clamp: 2 !important;
}

.layout-grid-5 .product-card:nth-child(4) .price-val,
.layout-grid-5 .product-card:nth-child(5) .price-val {
  font-size: clamp(1.3rem, 1.6vw, 1.65rem) !important;
}

/* ==========================================================================
   Product Card Component
   ========================================================================== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  animation: productCardEntrance 0.65s var(--ease-billboard) forwards;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 0;
}

.product-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-red-glow);
}

@keyframes productCardEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Image Container */
.product-image-box {
  position: relative;
  width: 100%;
  height: 54%;
  flex: 0 0 54%;
  min-height: 0;
  overflow: hidden;
  background: #141720;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  animation: foodImageZoom 1.2s var(--ease-billboard) forwards;
  transition: transform 0.5s ease;
  display: block;
}

@keyframes foodImageZoom {
  to {
    transform: scale(1);
  }
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

/* Image Bottom Vignette (Subtle edge feathering) */
.image-ambient-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 16%;
  background: linear-gradient(180deg, transparent 0%, rgba(24, 28, 36, 0.35) 100%);
  pointer-events: none;
}

/* Serving Weight Pill */
.product-weight {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-cream);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.lang-ar .product-weight {
  right: auto;
  left: 12px;
}

/* Product Info Box */
.product-info-box {
  position: relative;
  flex: 1;
  padding: clamp(12px, 1.5vh, 18px) clamp(14px, 1.5vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, var(--bg-card) 0%, #13161d 100%);
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-en-display);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.lang-ar .product-name {
  font-family: var(--font-ar);
  font-weight: 800;
  text-transform: none;
}

/* Price Badge */
.product-price-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-deep));
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

.price-currency {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-en-display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 900;
}

/* Product Description */
.product-description {
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: capitalize;
}

body.lang-ar .product-description {
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.45;
  color: var(--text-muted);
}

body.theme-light .product-description,
body.theme-light.lang-ar .product-description {
  color: #475569 !important;
}

/* ==========================================================================
   Footer Status Bar
   ========================================================================== */
.menu-footer {
  position: relative;
  height: var(--footer-height);
  padding: 0 clamp(24px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 16, 0.95);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
  z-index: 50;
}

.footer-highlight {
  color: var(--accent-gold);
  font-weight: 600;
}

.footer-nav-hint {
  display: flex;
  align-items: center;
  gap: 16px;
}

.key-hint {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.75rem;
}

/* ==========================================================================
   Hidden Developer & Testing Controls Panel
   ========================================================================== */
.dev-toggle-trigger {
  position: fixed;
  bottom: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0.2;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.dev-toggle-trigger:hover {
  opacity: 1;
  background: rgba(230, 28, 36, 0.3);
}

.dev-control-panel {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 18, 25, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-billboard);
  z-index: 1000;
}

.dev-control-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dev-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.screen-selector-group {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 12px;
  margin-right: 4px;
}

.screen-btn {
  font-family: monospace;
}

.screen-btn.active {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-deep)) !important;
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 10px var(--accent-red-glow);
}

.dev-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dev-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.dev-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.dev-btn.paused {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.dev-select {
  background: rgba(20, 24, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  max-width: 220px;
}

.dev-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dev-slider-wrap input[type="range"] {
  width: 90px;
  accent-color: var(--accent-red);
}

/* ==========================================================================
   Responsive Adaptations for Different TV Resolutions
   ========================================================================== */

/* 1366x768 & 1280x720 (720p Displays) */
@media screen and (max-height: 800px) {
  :root {
    --header-height: 85px;
    --footer-height: 38px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  #current-category-name {
    font-size: 1.85rem;
  }

  .product-info-box {
    padding: 8px 12px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .price-val {
    font-size: 1.05rem;
  }

  .product-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
}

/* 3840x2160 (4K UHD Displays) */
@media screen and (min-width: 2560px) {
  :root {
    --header-height: 180px;
    --footer-height: 72px;
  }

  html, body {
    font-size: 24px;
  }

  .brand-emblem {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .brand-emblem svg {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 2.8rem;
    letter-spacing: 4px;
  }

  #current-category-name {
    font-size: 4.5rem;
  }

  #current-category-arabic {
    font-size: 2rem;
  }

  .product-card {
    border-radius: 24px;
  }

  .product-weight {
    font-size: 1.15rem;
    padding: 6px 16px;
    border-radius: 16px;
  }

  .product-price-badge {
    padding: 6px 18px;
    border-radius: 24px;
  }

  .price-val {
    font-size: 1.9rem;
  }
}

/* ==========================================================================
   43-INCH VERTICAL LED TV DISPLAY MODE (Portrait 9:16 - 1080x1920)
   ========================================================================== */
.orientation-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.orientation-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
}

/* ==========================================================================
   Header Orientation Toggle Pill Badge
   ========================================================================== */
.orientation-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.orientation-pill-badge:hover {
  background: rgba(230, 28, 36, 0.2);
  border-color: rgba(230, 28, 36, 0.5);
  transform: translateY(-1px);
}

.orientation-pill-badge.active {
  background: rgba(230, 28, 36, 0.25);
  border-color: var(--accent-red);
  color: #ff9da1;
}

body.theme-light .orientation-pill-badge {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
  color: #0f172a;
}

body.theme-light .orientation-pill-badge.active {
  background: rgba(217, 27, 36, 0.12);
  border-color: var(--accent-red);
  color: var(--accent-red-deep);
}

/* ==========================================================================
   Vertical 43-Inch LED TV Layout (1080x1920 Portrait)
   Applies when screen is naturally vertical OR when body.mode-portrait is active
   ========================================================================== */
@media screen and (orientation: portrait), screen and (max-aspect-ratio: 1/1) {
  :root {
    --header-height: 165px;
    --footer-height: 54px;
  }

  .menu-header {
    height: var(--header-height);
    padding: 14px 24px 12px;
    flex-wrap: wrap;
    align-content: space-between;
  }

  .brand-block {
    order: 1;
    gap: 14px;
  }

  .brand-logo-img {
    height: clamp(82px, 6.2vh, 115px) !important;
    max-width: 340px !important;
    padding: 5px 12px !important;
    border-radius: 14px !important;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .header-meta {
    order: 2;
    gap: 12px;
  }

  .category-billboard {
    order: 3;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    justify-content: space-between;
  }

  .category-titles {
    align-items: flex-start;
    text-align: left;
  }

  body.lang-ar .category-titles {
    align-items: flex-start;
    text-align: right;
  }

  #current-category-name {
    font-size: clamp(2rem, 5.5vw, 2.7rem);
    letter-spacing: 1px;
  }

  #current-category-arabic {
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    margin-top: 2px;
  }

  .menu-slide {
    padding: 16px 20px;
  }

  /* 6 Items: 2 Columns x 3 Rows */
  .slide-products-grid.layout-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .layout-grid-6 .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 16px;
    overflow: hidden !important;
  }

  .layout-grid-6 .product-image-box {
    flex: 0 0 58% !important;
    height: 58% !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .layout-grid-6 .product-info-box {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px 16px !important;
  }

  .layout-grid-6 .product-name {
    font-size: clamp(1.15rem, 2.2vw, 1.6rem) !important;
    -webkit-line-clamp: 2 !important;
  }

  .layout-grid-6 .price-val {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  }

  .layout-grid-6 .product-description {
    font-size: clamp(0.85rem, 1.3vw, 1.05rem) !important;
    -webkit-line-clamp: 2 !important;
    margin-top: 4px !important;
  }

  /* 4 Items: 2 Columns x 2 Rows */
  .slide-products-grid.layout-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .layout-grid-4 .product-card {
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 20px;
    overflow: hidden !important;
  }

  .layout-grid-4 .product-image-box {
    flex: 0 0 62% !important;
    width: 100% !important;
    height: 62% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .layout-grid-4 .product-info-box {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 18px 22px !important;
  }

  .layout-grid-4 .product-name {
    font-size: clamp(1.5rem, 2.8vw, 2rem) !important;
    -webkit-line-clamp: 2 !important;
  }

  .layout-grid-4 .price-val {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  }

  .layout-grid-4 .product-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
    -webkit-line-clamp: 3 !important;
    margin-top: 6px !important;
  }

  .layout-grid-4 .product-weight {
    font-size: 0.95rem !important;
    padding: 6px 14px !important;
  }

  /* 3 Items: 1 Column x 3 Stacked Cards */
  .slide-products-grid.layout-hero-3 {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 20px !important;
  }

  .layout-hero-3 .product-card {
    flex-direction: row !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 20px;
    overflow: hidden !important;
  }

  .layout-hero-3 .product-image-box {
    flex: 0 0 44% !important;
    width: 44% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .layout-hero-3 .product-info-box {
    flex: 1 1 56% !important;
    width: 56% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 24px 30px !important;
    justify-content: center;
  }

  .layout-hero-3 .product-name {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem) !important;
    -webkit-line-clamp: 2 !important;
  }

  .layout-hero-3 .price-val {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem) !important;
  }

  .layout-hero-3 .product-description {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important;
    -webkit-line-clamp: 4 !important;
    margin-top: 10px !important;
  }

  /* 5 Items: 2 Columns x 3 Rows with Last Item Full Width */
  .slide-products-grid.layout-grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .layout-grid-5 .product-card {
    border-radius: 16px;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .layout-grid-5 .product-card:nth-child(1),
  .layout-grid-5 .product-card:nth-child(2),
  .layout-grid-5 .product-card:nth-child(3),
  .layout-grid-5 .product-card:nth-child(4) {
    grid-column: span 1 !important;
    flex-direction: column !important;
  }

  .layout-grid-5 .product-card:nth-child(1) .product-image-box,
  .layout-grid-5 .product-card:nth-child(2) .product-image-box,
  .layout-grid-5 .product-card:nth-child(3) .product-image-box,
  .layout-grid-5 .product-card:nth-child(4) .product-image-box {
    flex: 0 0 58% !important;
    width: 100% !important;
    height: 58% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .layout-grid-5 .product-card:nth-child(1) .product-info-box,
  .layout-grid-5 .product-card:nth-child(2) .product-info-box,
  .layout-grid-5 .product-card:nth-child(3) .product-info-box,
  .layout-grid-5 .product-card:nth-child(4) .product-info-box {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px 16px !important;
  }

  .layout-grid-5 .product-card:last-child {
    grid-column: span 2 !important;
    flex-direction: row !important;
  }

  .layout-grid-5 .product-card:last-child .product-image-box {
    flex: 0 0 44% !important;
    width: 44% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .layout-grid-5 .product-card:last-child .product-info-box {
    flex: 1 1 56% !important;
    width: 56% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 16px 24px !important;
    justify-content: center;
  }
}

/* ==========================================================================
   Explicit body.mode-portrait Styles (Guarantees Portrait Layout On Any Display)
   ========================================================================== */
body.mode-portrait {
  --header-height: 180px;
  --footer-height: 54px;
}

body.mode-portrait .menu-header {
  height: var(--header-height);
  padding: 14px 24px 12px;
  flex-wrap: wrap;
  align-content: space-between;
}

body.mode-portrait .brand-block {
  order: 1;
  gap: 14px;
}

body.mode-portrait .brand-logo-img {
  height: clamp(82px, 6.2vh, 115px) !important;
  max-width: 340px !important;
  padding: 5px 12px !important;
  border-radius: 14px !important;
}

body.mode-portrait .header-meta {
  order: 2;
  gap: 12px;
}

body.mode-portrait .category-billboard {
  order: 3;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  justify-content: space-between;
}

body.mode-portrait .category-titles {
  align-items: flex-start;
  text-align: left;
}

body.mode-portrait.lang-ar .category-titles {
  align-items: flex-start;
  text-align: right;
}

body.mode-portrait #current-category-name {
  font-size: clamp(2rem, 5.5vw, 2.7rem);
}

body.mode-portrait #current-category-arabic {
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
}

body.mode-portrait .menu-slide {
  padding: 16px 20px;
}

body.mode-portrait .slide-products-grid.layout-grid-6 {
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 16px !important;
}

body.mode-portrait .layout-grid-6 .product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-6 .product-image-box {
  flex: 0 0 58% !important;
  height: 58% !important;
  min-height: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-6 .product-info-box {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-6 .product-name {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem) !important;
}

body.mode-portrait .layout-grid-6 .price-val {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
}

body.mode-portrait .slide-products-grid.layout-grid-4 {
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 20px !important;
}

body.mode-portrait .layout-grid-4 .product-card {
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-4 .product-image-box {
  flex: 0 0 60% !important;
  width: 100% !important;
  height: 60% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-4 .product-info-box {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .slide-products-grid.layout-hero-3 {
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 20px !important;
}

body.mode-portrait .layout-hero-3 .product-card {
  flex-direction: row !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-hero-3 .product-image-box {
  flex: 0 0 44% !important;
  width: 44% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-hero-3 .product-info-box {
  flex: 1 1 56% !important;
  width: 56% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 24px 30px !important;
  justify-content: center;
}

body.mode-portrait .slide-products-grid.layout-grid-5 {
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 16px !important;
}

body.mode-portrait .layout-grid-5 .product-card {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-5 .product-card:nth-child(1),
body.mode-portrait .layout-grid-5 .product-card:nth-child(2),
body.mode-portrait .layout-grid-5 .product-card:nth-child(3),
body.mode-portrait .layout-grid-5 .product-card:nth-child(4) {
  grid-column: span 1 !important;
  flex-direction: column !important;
}

body.mode-portrait .layout-grid-5 .product-card:nth-child(1) .product-image-box,
body.mode-portrait .layout-grid-5 .product-card:nth-child(2) .product-image-box,
body.mode-portrait .layout-grid-5 .product-card:nth-child(3) .product-image-box,
body.mode-portrait .layout-grid-5 .product-card:nth-child(4) .product-image-box {
  flex: 0 0 58% !important;
  width: 100% !important;
  height: 58% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-5 .product-card:nth-child(1) .product-info-box,
body.mode-portrait .layout-grid-5 .product-card:nth-child(2) .product-info-box,
body.mode-portrait .layout-grid-5 .product-card:nth-child(3) .product-info-box,
body.mode-portrait .layout-grid-5 .product-card:nth-child(4) .product-info-box {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-5 .product-card:last-child {
  grid-column: span 2 !important;
  flex-direction: row !important;
}

body.mode-portrait .layout-grid-5 .product-card:last-child .product-image-box {
  flex: 0 0 44% !important;
  width: 44% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mode-portrait .layout-grid-5 .product-card:last-child .product-info-box {
  flex: 1 1 56% !important;
  width: 56% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  justify-content: center;
}

/* ==========================================================================
   Short Screen Viewport Adaptation (Laptop Screens, 1366x768, Scaled Windows)
   Guarantees that food images NEVER collapse and footer NEVER overlaps!
   ========================================================================== */
@media screen and (max-height: 880px) {
  :root {
    --header-height: 104px !important;
    --footer-height: 40px !important;
  }

  body.mode-portrait {
    --header-height: 135px !important;
    --footer-height: 40px !important;
  }

  .menu-header {
    height: var(--header-height) !important;
    padding: 8px 18px !important;
  }

  body.mode-portrait .menu-header {
    height: var(--header-height) !important;
    padding: 8px 18px !important;
  }

  .brand-logo-img,
  body.mode-portrait .brand-logo-img {
    height: 72px !important;
    max-width: 260px !important;
    padding: 3px 8px !important;
  }

  .brand-emblem {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-emblem svg {
    width: 20px !important;
    height: 20px !important;
  }

  .brand-name,
  body.mode-portrait .brand-name {
    font-size: 1.25rem !important;
  }

  .category-billboard,
  body.mode-portrait .category-billboard {
    margin-top: 4px !important;
    padding-top: 4px !important;
  }

  #current-category-name,
  body.mode-portrait #current-category-name {
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
  }

  #current-category-arabic,
  body.mode-portrait #current-category-arabic {
    font-size: 0.95rem !important;
  }

  .menu-slide,
  body.mode-portrait .menu-slide {
    padding: 8px 14px !important;
  }

  /* Compact Grids */
  .slide-products-grid.layout-grid-6,
  body.mode-portrait .slide-products-grid.layout-grid-6 {
    gap: 10px !important;
  }

  .layout-grid-6 .product-card,
  body.mode-portrait .layout-grid-6 .product-card {
    border-radius: 12px !important;
  }

  .layout-grid-6 .product-image-box,
  body.mode-portrait .layout-grid-6 .product-image-box {
    flex: 0 0 50% !important;
    height: 50% !important;
  }

  .layout-grid-6 .product-info-box,
  body.mode-portrait .layout-grid-6 .product-info-box {
    padding: 6px 12px !important;
  }

  .layout-grid-6 .product-name,
  body.mode-portrait .layout-grid-6 .product-name {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 1 !important;
  }

  .layout-grid-6 .product-description,
  body.mode-portrait .layout-grid-6 .product-description {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
    margin-top: 2px !important;
  }

  /* Footer Overflow Prevention on Short Viewports */
  .menu-footer,
  body.mode-portrait .menu-footer {
    height: var(--footer-height) !important;
    padding: 0 16px !important;
    font-size: 0.72rem !important;
  }

  .footer-brand-info {
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-nav-hint {
    gap: 8px !important;
    white-space: nowrap;
    overflow: hidden;
  }
}

