/* =====================================================================
   PAPA PIZZA & PASTA — Stylesheet V3 (frontend-design skill upgrade)
   Pure vanilla CSS. No framework. No build step.
   Typography: Bebas Neue (display) + Inter (body) via Google Fonts
   Design system: Papa-Orange primary, cream bg, warm Italian atmosphere
   Author: Arash Babaei
   ===================================================================== */

/* Food product image on cards */
.product-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 8px;
  display: block;
  background: #f5f5f5;
}

/* Cards with images get adjusted padding */
.product-card:has(.product-image) {
  padding-top: 0;
  overflow: hidden;
}

.product-card:has(.product-image) .product-header {
  padding: 0 12px;
}

.product-card:has(.product-image) .product-badges,
.product-card:has(.product-image) .product-description,
.product-card:has(.product-image) .product-sizes,
.product-card:has(.product-image) .deposit-info,
.product-card:has(.product-image) .btn-add-cart {
  margin-left: 12px;
  margin-right: 12px;
}

/* Responsive: smaller images on mobile */
@media (max-width: 480px) {
  .product-image {
    height: 110px;
  }
}

/* ============ CSS VARIABLES (V3 Design System) ============ */
:root {
  /* Brand Colors */
  --bg: #FFF8F0;
  --bg-warm: #FFF1E6;
  --primary: #E8521E;
  --primary-dark: #C13E12;
  --primary-light: #F47950;
  --logo-red: #A00000;
  --logo-red-dark: #800000;
  --dark: #3B2A1E;
  --white: #FFFFFF;
  --green: #28A834;
  --green-dark: #1E8228;
  --grey: #6B5344;
  --light-orange: #FFF1E6;
  --border: #E8DDD0;
  
  /* V3 Accent Colors */
  --pizza-flame: #FF6B35;
  --pepper: #2A1810;
  --basil: #3A5F0B;
  --tomato: #C8102E;
  --cream-stroke: #EDE0D0;
  
  /* Shadows — deeper, more atmospheric */
  --shadow: 0 2px 8px rgba(59, 42, 30, 0.1);
  --shadow-md: 0 4px 16px rgba(59, 42, 30, 0.15);
  --shadow-lg: 0 8px 32px rgba(59, 42, 30, 0.2);
  --shadow-card: 0 2px 12px rgba(59, 42, 30, 0.08);
  --shadow-card-hover: 0 8px 28px rgba(232, 82, 30, 0.22);
  --shadow-hero: 0 20px 60px rgba(42, 24, 16, 0.4);
  
  /* Radii */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-card: 14px;
  --radius-pill: 999px;
  
  /* Transitions */
  --transition: 0.25s ease;
  --transition-lift: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Layout */
  --header-height: 64px;
  --cart-width: 340px;
  
  /* Typography — distinctive, not generic */
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font: var(--font-body);
  
  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-display: 3.5rem;
  --text-hero: clamp(2.5rem, 6vw, 4.5rem);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  letter-spacing: -0.003em;
}

/* V3: distinctive headings using display font */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-weight: 400;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

/* ============ BACKGROUND WATERMARK ============ */
.bg-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  width: 600px;
  max-width: 80vw;
  opacity: 0.06;
  user-select: none;
}

.bg-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure all content sits above the watermark */
.site-header,
.main-content {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input,
select,
textarea {
  font-family: var(--font);
  font-size: 1rem;
}

ul,
ol {
  list-style: none;
}

/* ============ CUSTOM SCROLLBARS ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 42, 30, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 42, 30, 0.35);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 42, 30, 0.2) transparent;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pepper);
  color: var(--white);
  height: var(--header-height);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-papa {
  color: var(--white);
}

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

.logo-pasta {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(232, 82, 30, 0.25);
}

.nav-link.active {
  color: var(--white);
  background: var(--primary);
}

.nav-link.nav-phone {
  margin-left: 8px;
  color: var(--primary-light);
  font-weight: 700;
}

.nav-link.nav-phone:hover {
  color: var(--primary);
}
/* ============ HEADER AUTH BUTTONS (Login/Register) ============ */
.header-auth-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-auth-loggedin {
  gap: 4px;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.header-auth-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.header-auth-btn-text {
  font-size: 0.82rem;
}

.header-login-btn {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.header-login-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.header-register-btn {
  background: transparent;
  color: var(--primary-light);
  border-color: rgba(244, 121, 80, 0.6);
}

.header-register-btn:hover {
  background: rgba(232, 82, 30, 0.15);
  color: var(--white);
  border-color: var(--primary-light);
}

.header-account-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.header-account-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-logout-btn {
  background: rgba(0, 0, 0, 0.2);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  font-family: var(--font);
}

.header-logout-btn:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Desktop: show auth buttons in header */
.header-auth-buttons {
  display: flex;
}

/* Mobile: show auth buttons with short text next to hamburger */
@media (max-width: 768px) {
  .auth-btn-text {
    display: inline;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .header-auth-btn {
    padding: 6px 7px;
    gap: 2px;
    border-radius: var(--radius-pill);
  }

  .auth-btn-icon {
    font-size: 0.85rem;
  }

  .header-container {
    padding: 0 8px;
    gap: 4px;
  }

  .header-auth-buttons {
    gap: 2px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .logo-img {
    height: 36px;
  }

  .lang-switcher {
    gap: 1px;
    margin-left: 2px;
  }

  .lang-btn {
    padding: 4px 4px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .header-auth-btn {
    padding: 5px 5px;
  }
  
  .auth-btn-icon {
    font-size: 0.8rem;
  }
  
  .auth-btn-text {
    font-size: 0.6rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 28px;
  }

  .header-container {
    padding: 0 4px;
    gap: 2px;
  }

  .cart-toggle-mobile {
    font-size: 1.1rem;
  }

  .lang-btn {
    padding: 3px 3px;
    font-size: 0.65rem;
  }
}

/* Mobile nav login/register links */
.mobile-nav-login {
  color: var(--primary-light) !important;
  font-weight: 700;
}

.mobile-nav-register {
  color: var(--green) !important;
  font-weight: 700;
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 4px;
}

.lang-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
  font-family: var(--font);
}

.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.lang-active {
  color: var(--white);
  background: var(--primary);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* Mobile: make header more compact */
@media (max-width: 768px) {
  .lang-btn {
    padding: 3px 5px;
    font-size: 0.75rem;
  }

  .lang-sep {
    font-size: 0.75rem;
  }

  /* Reduce gap between auth buttons on mobile */
  .header-auth-buttons {
    gap: 4px;
  }

  .header-auth-btn {
    padding: 6px 7px;
  }
}

@media (max-width: 480px) {
  .header-auth-btn {
    padding: 5px 5px;
  }

  .auth-btn-icon {
    font-size: 0.95rem;
  }

  .lang-switcher {
    margin-left: 2px;
    gap: 0px;
  }

  .lang-btn {
    padding: 3px 4px;
    font-size: 0.7rem;
  }

  /* Make logo smaller on very small screens */
  .logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* Reduce header gaps */
  .header-container {
    padding: 0 10px;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .logo-text {
    display: none;
  }

  .logo-img {
    height: 30px;
  }

  .header-auth-btn {
    padding: 4px 4px;
  }

  .lang-btn {
    padding: 2px 3px;
    font-size: 0.65rem;
  }
}

/* Mobile header buttons */
.cart-toggle-mobile,
.nav-toggle-mobile {
  display: none;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle-mobile {
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 30px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--pepper);
  flex-direction: column;
  padding: 8px 16px 16px;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-top: 3px solid var(--primary);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:hover {
  background: rgba(232, 82, 30, 0.25);
  color: var(--white);
}

/* ============ MAIN CONTENT ============ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ PAGE SECTIONS ============ */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--dark);
  margin: 24px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  letter-spacing: 0.03em;
}

/* ============ HOME PAGE ============ */
.hero {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  background: url('icons/hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 24, 16, 0.75) 0%, rgba(160, 0, 0, 0.35) 50%, rgba(232, 82, 30, 0.3) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(42, 24, 16, 0.6), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 40px;
  color: var(--white);
  z-index: 2;
  animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  margin-bottom: 16px;
}

.hero-logo-img {
  max-height: 120px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-logo-text {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 16px;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.stars {
  font-size: 1.4rem;
  color: #FFD700;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-cta {
  margin-bottom: 20px;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-info-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

.hero-info-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Home sections */
.home-highlights,
.home-categories,
.home-info-section {
  padding: 20px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.section-subtitle {
  color: var(--grey);
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Category tiles grid */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 0 16px 0;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-lift), box-shadow var(--transition-lift), border-color var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.tile-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  background: var(--bg-warm);
}

.tile-icon {
  font-size: 2rem;
}

.tile-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
  padding: 0 16px;
}

.tile-count {
  font-size: 0.85rem;
  color: var(--grey);
}

/* Info cards on home */
.home-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.info-card p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

/* Category Nav (sticky tabs) */
.category-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(59, 42, 30, 0.08);
  overflow: hidden;
}

.category-tabs-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 8px;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-tabs-container::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  background: transparent;
  color: var(--grey);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}

.cat-tab:hover {
  color: var(--primary);
  background: rgba(232, 82, 30, 0.05);
}

.cat-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  flex-wrap: wrap;
  background: var(--bg);
}

.filter-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--grey);
  margin-right: 4px;
}

.filter-chip {
  background: var(--white);
  color: var(--grey);
  border: 2px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light-orange);
}

.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(232, 82, 30, 0.25);
}

.filter-chip.filter-reset {
  margin-left: auto;
  background: transparent;
}

.filter-chip.filter-reset:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Menu Layout */
.menu-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
}

.menu-content {
  flex: 1;
  min-width: 0;
}

/* Menu Category Section */
.menu-category {
  display: none;
  animation: fadeIn 0.35s ease;
}

.menu-category[style*="display: block"],
.menu-category:not([style*="display:none"]):not([style*="display: none"]) {
  /* fallback handled by inline styles */
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  letter-spacing: 0.03em;
}

.category-count {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
}

/* ============ PRODUCT GRID & CARDS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-lift), box-shadow var(--transition-lift), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--pizza-flame));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-light);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pepper);
  line-height: 1.35;
  flex: 1;
  letter-spacing: -0.01em;
}

.product-price {
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.original-price {
  display: block;
  font-size: 0.8rem;
  color: var(--grey);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Badges */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-vegan {
  background: #E8F5E9;
  color: #2E7D32;
}

.badge-vegetarian {
  background: #FFF3E0;
  color: #E65100;
}

.badge-spicy {
  background: #FFEBEE;
  color: #C62828;
}

.badge-10\%-off {
  background: #E8EAF6;
  color: #283593;
}

/* Product description */
.product-description {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.5;
}

/* Product sizes dropdown */
.product-sizes {
  margin-top: 4px;
}

.size-select {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition);
}

.size-select:hover,
.size-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Extras info box (single, at bottom of menu page) */
.extras-info-box {
  background: #F5F9FF;
  border: 1px solid #D0E0F0;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 12px auto;
  max-width: 600px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.extras-info-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.extras-info-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.extras-info-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1565C0;
  margin: 0;
}

.extras-info-subtitle {
  font-size: 0.68rem;
  color: #1565C0;
  margin: 0 0 4px;
}

.extras-info-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}

.extras-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  color: #0D47A1;
  border-bottom: 1px dotted #E0ECF8;
  padding-bottom: 1px;
}

.extras-info-list .extra-name {
  font-weight: 600;
}

.extras-info-list .extra-price {
  font-weight: 700;
  color: #1565C0;
  white-space: nowrap;
}

.extras-info-note {
  font-size: 0.65rem;
  color: #1976D2;
  font-style: italic;
  margin: 0;
}

@media (max-width: 600px) {
  .extras-info-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 2px 8px !important;
  }

  .extras-info-box {
    padding: 5px 8px;
    margin: 8px auto;
  }

  .extras-info-title {
    font-size: 0.78rem;
  }

  .extras-info-subtitle {
    font-size: 0.65rem;
  }

  .extras-info-list li {
    font-size: 0.68rem;
  }

  .extras-info-note {
    font-size: 0.6rem;
  }

  /* On mobile, hide English names in extras list to save space */
  .extras-info-list .cat-name-en {
    display: none;
  }
}

/* PDF Download button */
.menu-pdf-bar {
  text-align: center;
  margin: 16px 0 8px;
}

.btn-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(232, 82, 30, 0.3);
}

.btn-pdf-download:hover {
  background: #D04416;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(232, 82, 30, 0.4);
}

.btn-pdf-download:active {
  transform: translateY(0);
}

/* Deposit info */
.deposit-info {
  font-size: 0.8rem;
  color: var(--grey);
  font-style: italic;
}

/* Add to cart button (V3 upgraded) */
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: auto;
  transition: transform var(--transition-lift), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 3px 10px rgba(232, 82, 30, 0.25);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 82, 30, 0.35);
}

.btn-add-cart:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232, 82, 30, 0.3);
}

.btn-icon {
  font-size: 1rem;
}

/* ============ CART SIDEBAR ============ */
.cart-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  width: var(--cart-width);
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow: hidden;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border);
  background: var(--dark);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cart-header h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}

.cart-close-mobile {
  display: none;
  background: transparent;
  color: var(--white);
  font-size: 1.3rem;
  padding: 4px 8px;
  line-height: 1;
}

.cart-empty {
  padding: 40px 20px;
  text-align: center;
}

.cart-empty p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.cart-empty-hint {
  color: var(--grey) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  margin-top: 8px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  min-height: 0;
}

/* Cart item (dynamically added) */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-detail {
  font-size: 0.82rem;
  color: var(--grey);
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--dark);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  line-height: 1;
}

.cart-qty button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cart-qty span {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: transparent;
  color: #C62828;
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.cart-item-remove:hover {
  background: #FFEBEE;
}

/* Cart options (delivery/pickup) */
.cart-options {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.delivery-toggle {
  display: flex;
  gap: 8px;
}

.toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.toggle-option input[type="radio"] {
  accent-color: var(--primary);
  width: auto;
}

.toggle-option:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 82, 30, 0.06);
}

.toggle-option:hover {
  border-color: var(--primary);
}

/* Cart summary */
.cart-summary {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--grey);
  padding: 4px 0;
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--dark);
}

.summary-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
  font-size: 1.05rem !important;
}

.summary-total span {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  color: var(--primary) !important;
}

/* Cart coupon */
.cart-coupon {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

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

.btn-coupon {
  padding: 8px 16px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-coupon:hover {
  background: var(--grey);
}

/* Checkout button in cart */
.btn-checkout {
  margin: 12px 20px 20px;
  padding: 12px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-checkout:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 168, 52, 0.3);
}

.btn-checkout:disabled {
  background: var(--border);
  color: var(--grey);
}

/* Cart overlay (mobile) */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(59, 42, 30, 0.5);
  z-index: 1099;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  display: block;
  opacity: 1;
}

/* ============ CART PAGE (mobile full-page) ============ */
.page-cart {
  padding-bottom: 40px;
}

.cart-page-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ============ BUTTONS (V3 upgraded) ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--transition-lift), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 14px rgba(232, 82, 30, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 82, 30, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 82, 30, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--dark);
  background: var(--bg);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* ============ CHECKOUT PAGE ============ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
}

.checkout-form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.checkout-fieldset {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.checkout-fieldset legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0 8px;
}

/* Order type cards */
.checkout-order-type {
  display: flex;
  gap: 12px;
}

.order-type-card {
  flex: 1;
  display: block;
  cursor: pointer;
}

.order-type-card input[type="radio"] {
  display: none;
}

.order-type-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
}

.order-type-card input[type="radio"]:checked + .order-type-content {
  border-color: var(--primary);
  background: rgba(232, 82, 30, 0.06);
}

.order-type-content:hover {
  border-color: var(--primary-light);
}

.order-type-icon {
  font-size: 1.8rem;
}

.order-type-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

/* Form rows and fields */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field-small {
  max-width: 120px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 82, 30, 0.1);
}

.form-field textarea {
  resize: vertical;
  font-family: var(--font);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: #C62828;
}

/* Time options */
.time-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.time-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--grey);
  transition: all var(--transition);
}

.time-option input[type="radio"],
.time-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.time-option:hover {
  border-color: var(--primary);
}

.time-option:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 82, 30, 0.06);
}

.preorder-time,
.reservation-fields {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.reservation-toggle {
  margin-bottom: 0;
}

/* Checkout actions */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Checkout summary sidebar */
.checkout-summary {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.checkout-summary h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.checkout-items {
  margin-bottom: 12px;
}

.checkout-totals {
  padding-top: 12px;
  border-top: 2px solid var(--border);
}

.checkout-items .cart-item {
  font-size: 0.88rem;
}

/* ============ PAYMENT PAGE ============ */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
}

.payment-methods {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.payment-methods h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option {
  display: block;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.payment-option input[type="radio"]:checked + .payment-option-content {
  border-color: var(--primary);
  background: rgba(232, 82, 30, 0.06);
  box-shadow: 0 0 0 3px rgba(232, 82, 30, 0.1);
}

.payment-option-content:hover {
  border-color: var(--primary-light);
}

.payment-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.payment-desc {
  font-size: 0.85rem;
  color: var(--grey);
}

.payment-fields {
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.payment-fields .form-field {
  margin-bottom: 12px;
}

.payment-fields .form-row {
  margin-bottom: 12px;
}

.payment-info-text {
  color: var(--grey);
  font-size: 0.92rem;
  font-style: italic;
}

.payment-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.payment-summary {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.payment-summary h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ============ CONFIRMATION PAGE ============ */
.page-confirmation {
  display: none;
  padding: 40px 0;
}

.page-confirmation.active {
  display: flex;
  justify-content: center;
}

.confirmation-container {
  max-width: 600px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(40, 168, 52, 0.3);
  animation: popIn 0.5s ease;
}

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

.confirmation-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.confirmation-text {
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.confirmation-order-number {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 2px dashed var(--primary);
}

.order-number-label {
  display: block;
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.order-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
}

.confirmation-summary {
  text-align: left;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.confirmation-details {
  text-align: left;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.8;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.confirmation-contact {
  padding-top: 20px;
  border-top: 2px solid var(--border);
}

.confirmation-contact p {
  font-size: 0.9rem;
  color: var(--grey);
  margin: 4px 0;
}

.confirmation-contact a {
  font-weight: 600;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-section h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-section p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-owner .owner-login-link {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.footer-owner .owner-login-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 82, 30, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ RESPONSIVE: TABLET (<=768px) ============ */
@media (max-width: 768px) {
  :root {
    --cart-width: 300px;
  }

  /* Header */
  .header-nav {
    display: none;
  }

  .cart-toggle-mobile,
  .nav-toggle-mobile {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  /* Menu layout: cart becomes overlay */
  .menu-layout {
    flex-direction: column;
  }

  .cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

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

  .cart-close-mobile {
    display: block;
  }

  .cart-overlay.active {
    display: block;
  }

  /* Checkout & payment layouts */
  .checkout-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .payment-summary {
    position: static;
    order: -1;
  }

  /* Hero */
  .hero {
    height: 360px;
  }

  .hero-logo-img {
    max-height: 90px;
  }

  .hero-logo-text {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  /* Category tiles */
  .category-tiles {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* Home info */
  .home-info-section {
    grid-template-columns: 1fr;
  }

  /* Confirmation */
  .confirmation-container {
    padding: 24px;
  }

  .confirmation-title {
    font-size: 1.35rem;
  }

  .order-number {
    font-size: 1.6rem;
  }

  /* Checkout form rows */
  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-field-small {
    max-width: none;
  }
}

/* ============ RESPONSIVE: MOBILE (<=480px) ============ */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .main-content {
    padding: 0 12px;
  }

  .header-container {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 40px;
  }

  /* Watermark smaller on mobile */
  .bg-watermark {
    width: 400px;
    opacity: 0.05;
  }

  /* Hero */
  .hero {
    height: 300px;
    border-radius: var(--radius);
  }

  .hero-content {
    padding: 20px;
  }

  .hero-logo-text {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-info {
    flex-direction: column;
    gap: 8px;
  }

  .hero-info-item {
    font-size: 0.82rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.3rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  /* Product grid: single column */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Category tiles: 2 columns */
  .category-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-tile {
    padding: 0 0 12px 0;
  }

  .tile-photo {
    height: 90px;
  }

  .tile-icon {
    font-size: 1.6rem;
  }

  .tile-name {
    font-size: 0.9rem;
  }

  .tile-count {
    font-size: 0.78rem;
  }

  /* Category tabs */
  .cat-tab {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  /* Filter bar */
  .filter-bar {
    padding: 10px 4px;
    gap: 8px;
  }

  .filter-chip {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .filter-chip.filter-reset {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  /* Product cards */
  .product-card {
    padding: 16px;
  }

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

  .current-price {
    font-size: 1.1rem;
  }

  /* Cart sidebar: full width bottom bar style */
  .cart-sidebar {
    width: 100%;
    max-width: 100vw;
  }

  /* Checkout & payment */
  .checkout-form-section,
  .payment-methods {
    padding: 16px;
  }

  .checkout-fieldset {
    padding: 14px;
  }

  .checkout-order-type {
    flex-direction: column;
  }

  /* Payment options */
  .payment-option-content {
    padding: 12px 14px;
  }

  .payment-icon {
    font-size: 1.5rem;
  }

  /* Confirmation */
  .confirmation-container {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  .confirmation-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .confirmation-title {
    font-size: 1.2rem;
  }

  .order-number {
    font-size: 1.3rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .btn-large {
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Checkout/payment actions */
  .checkout-actions,
  .payment-actions {
    flex-direction: column;
  }

  .checkout-actions button,
  .payment-actions button {
    width: 100%;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px 16px;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}

/* ============ UTILITY & MISC ============ */

/* Hide elements */
.hidden {
  display: none !important;
}

/* Text utilities */
.text-center {
  text-align: center;
}

/* No-scroll for body when cart/mobile nav open */
body.no-scroll {
  overflow: hidden;
}

/* Ensure details/summary works cross-browser */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--primary);
  color: var(--white);
}
/* ============================================================
   MOBILE RESPONSIVE OVERHAUL — Comprehensive mobile-first fix
   Added: 2026-06-22 — Targets 375px–768px viewports
   ============================================================ */

/* ---- TABLET & BELOW (≤768px) ---- */
@media (max-width: 768px) {
  /* --- General: ensure min font size for readability --- */
  html {
    font-size: 15px;
  }

  body {
    font-size: 0.95rem;
  }

  /* --- HERO SECTION --- */
  .hero {
    height: 360px;
    min-height: 320px;
    /* Ensure hero-bg.jpg is shown with proper cover */
    background: url('icons/hero-bg.jpg') center center / cover no-repeat;
    border-radius: var(--radius);
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero::before {
    background: rgba(59, 42, 30, 0.5);
  }

  .hero-content {
    padding: 24px 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-logo {
    margin-bottom: 12px;
    text-align: center;
  }

  .hero-logo-img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
  }

  .hero-logo-text {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .hero-rating {
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .stars {
    font-size: 1.2rem;
  }

  .rating-text {
    font-size: 0.88rem;
  }

  .hero-cta {
    margin-bottom: 16px;
  }

  .hero-cta .btn-primary {
    padding: 12px 28px;
    font-size: 1rem;
    min-height: 44px;
  }

  .hero-info {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-info-item {
    font-size: 0.82rem;
    padding: 5px 12px;
  }

  /* --- HEADER --- */
  .header-nav {
    display: none;
  }

  .cart-toggle-mobile,
  .nav-toggle-mobile {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: none;
  }

  /* --- MENU LAYOUT --- */
  .menu-layout {
    flex-direction: column;
    gap: 0;
  }

  /* --- CART SIDEBAR (overlay mode) --- */
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

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

  .cart-close-mobile {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  .cart-overlay.active {
    display: block;
  }

  /* Cart items touch targets */
  .cart-qty button {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .cart-item-name {
    font-size: 0.95rem;
  }

  .cart-item-detail {
    font-size: 0.82rem;
  }

  .cart-item-price {
    font-size: 1rem;
  }

  .cart-item-remove {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 4px 12px;
  }

  /* --- CATEGORY TABS (horizontal scroll) --- */
  .category-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
  }

  .category-tabs-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px;
    gap: 0;
  }

  .category-tabs-container::-webkit-scrollbar {
    display: none;
  }

  .cat-tab {
    flex-shrink: 0;
    padding: 12px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  /* --- CHECKOUT / PAYMENT --- */
  .checkout-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .payment-summary {
    position: static;
    order: -1;
  }

  /* --- FOOTER --- */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 16px 16px;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .footer-bottom p {
    font-size: 0.78rem;
  }

  /* --- FORM ROWS --- */
  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-field-small {
    max-width: none;
  }
}

/* ---- MOBILE PHONE (≤480px) ---- */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
    --radius: 10px;
    --radius-lg: 14px;
  }

  /* --- GENERAL --- */
  html {
    font-size: 15px;
  }

  body {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .main-content {
    padding: 0 12px;
  }

  /* --- HEADER --- */
  .header-container {
    padding: 0 10px;
    gap: 8px;
  }

  .logo-img {
    height: 32px;
    border-radius: 4px;
  }

  .logo-text {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
  }

  .logo-pasta {
    font-size: 0.8rem;
  }

  .cart-toggle-mobile,
  .nav-toggle-mobile {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle-mobile {
    width: 44px;
    height: 44px;
  }

  .hamburger {
    width: 22px;
    height: 2.5px;
  }

  .cart-count-badge {
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  /* Mobile nav dropdown */
  .mobile-nav {
    top: var(--header-height);
    padding: 8px 12px;
    gap: 2px;
  }

  .mobile-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
  }

  /* --- HERO SECTION --- */
  .hero {
    height: 340px;
    min-height: 320px;
    max-height: 380px;
    border-radius: var(--radius);
    margin: 12px 0;
    /* Ensure hero-bg.jpg is properly displayed */
    background: url('icons/hero-bg.jpg') center center / cover no-repeat;
  }

  .hero::before {
    background: rgba(59, 42, 30, 0.55);
  }

  .hero-content {
    padding: 20px 16px;
  }

  .hero-logo {
    margin-bottom: 10px;
  }

  .hero-logo-img {
    max-height: 70px;
  }

  .hero-logo-text {
    font-size: 1.6rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .hero-rating {
    margin-bottom: 16px;
    gap: 6px;
  }

  .stars {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .rating-text {
    font-size: 0.82rem;
  }

  .hero-cta {
    margin-bottom: 12px;
  }

  .hero-cta .btn-primary {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .hero-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .hero-info-item {
    font-size: 0.76rem;
    padding: 4px 10px;
  }

  /* --- SECTION TITLES --- */
  .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .page-title {
    font-size: 1.3rem;
    margin: 16px 0 14px;
  }

  /* --- CATEGORY TILES (2-column grid) --- */
  .category-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
  }

  .category-tile {
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(59, 42, 30, 0.12);
    overflow: hidden;
    padding: 0 0 10px 0;
    border: 2px solid transparent;
  }

  .category-tile:hover {
    transform: none;
    box-shadow: 0 3px 12px rgba(59, 42, 30, 0.18);
  }

  .tile-photo {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }

  .tile-icon {
    font-size: 1.5rem;
  }

  .tile-name {
    font-size: 0.88rem;
    padding: 0 8px;
    line-height: 1.25;
    font-weight: 700;
  }

  .tile-count {
    font-size: 0.78rem;
    color: var(--grey);
  }

  /* --- PRODUCT CARDS (single column) --- */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(59, 42, 30, 0.1);
  }

  .product-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(59, 42, 30, 0.15);
  }

  .product-header {
    gap: 10px;
  }

  .product-name {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
  }

  .product-description {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--grey);
  }

  .current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
  }

  .original-price {
    font-size: 0.78rem;
  }

  .product-badges {
    gap: 4px;
  }

  .badge {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  /* Product image thumbnail on right when card has image */
  .product-image {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: 0;
    float: right;
    display: inline-block;
  }

  .product-card:has(.product-image) {
    padding-top: 14px;
  }

  .product-card:has(.product-image) .product-header {
    padding: 0;
    flex-direction: row;
    align-items: flex-start;
  }

  .product-card:has(.product-image) .product-badges,
  .product-card:has(.product-image) .product-description,
  .product-card:has(.product-image) .product-sizes,
  .product-card:has(.product-image) .deposit-info,
  .product-card:has(.product-image) .btn-add-cart {
    margin-left: 0;
    margin-right: 0;
  }

  /* Add to cart button — full width, prominent */
  .btn-add-cart {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    min-height: 44px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
  }

  /* Size select */
  .size-select {
    padding: 10px 12px;
    font-size: 0.88rem;
    min-height: 44px;
  }

  /* --- CATEGORY TABS --- */
  .category-nav {
    position: sticky;
    top: var(--header-height);
  }

  .category-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-tabs-container::-webkit-scrollbar {
    display: none;
  }

  .cat-tab {
    flex-shrink: 0;
    padding: 12px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
  }

  /* --- FILTER BAR --- */
  .filter-bar {
    padding: 8px 4px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .filter-chip {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .filter-chip.filter-reset {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* --- CART SIDEBAR (full width) --- */
  .cart-sidebar {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .cart-header {
    padding: 14px 16px;
  }

  .cart-header h3 {
    font-size: 1.1rem;
  }

  .cart-close-mobile {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-items {
    padding: 10px 16px;
  }

  .cart-item {
    padding: 12px 0;
  }

  .cart-item-name {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .cart-item-detail {
    font-size: 0.8rem;
  }

  .cart-item-price {
    font-size: 0.95rem;
  }

  .cart-qty button {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    min-height: 44px;
    border-radius: 8px;
  }

  .cart-qty span {
    font-size: 0.95rem;
    min-width: 28px;
  }

  .cart-item-remove {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .cart-options {
    padding: 10px 16px;
  }

  .toggle-option {
    padding: 10px 10px;
    font-size: 0.84rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-summary {
    padding: 10px 16px;
  }

  .summary-row {
    font-size: 0.88rem;
  }

  .summary-total span {
    font-size: 1.1rem !important;
  }

  .cart-coupon {
    padding: 10px 16px;
    gap: 6px;
  }

  .coupon-input {
    padding: 10px 12px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .btn-coupon {
    padding: 10px 14px;
    font-size: 0.84rem;
    min-height: 44px;
  }

  .btn-checkout {
    margin: 10px 16px 16px;
    padding: 14px 20px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* --- HOME INFO SECTION --- */
  .home-info-section {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0;
  }

  .info-card {
    padding: 16px;
    border-radius: var(--radius);
  }

  .info-card h3 {
    font-size: 1.05rem;
  }

  .info-card p {
    font-size: 0.9rem;
  }

  /* --- CHECKOUT / PAYMENT --- */
  .checkout-form-section,
  .payment-methods {
    padding: 14px;
    border-radius: var(--radius);
  }

  .checkout-fieldset {
    padding: 12px;
    border-radius: var(--radius);
  }

  .checkout-fieldset legend {
    font-size: 1rem;
    padding: 0 4px;
  }

  .checkout-order-type {
    flex-direction: column;
    gap: 10px;
  }

  .order-type-content {
    padding: 14px;
    min-height: 44px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .time-option {
    padding: 10px 12px;
    font-size: 0.88rem;
    min-height: 44px;
  }

  /* Payment options */
  .payment-option-content {
    padding: 12px 14px;
    min-height: 44px;
  }

  .payment-icon {
    font-size: 1.4rem;
  }

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

  .payment-desc {
    font-size: 0.82rem;
  }

  .payment-actions,
  .checkout-actions {
    flex-direction: column;
    gap: 10px;
  }

  .payment-actions button,
  .checkout-actions button {
    width: 100%;
    min-height: 44px;
  }

  /* --- CONFIRMATION --- */
  .confirmation-container {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  .confirmation-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .confirmation-title {
    font-size: 1.15rem;
  }

  .confirmation-text {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .order-number {
    font-size: 1.3rem;
  }

  .confirmation-order-number {
    padding: 16px;
    margin-bottom: 18px;
  }

  /* --- BUTTONS --- */
  .btn-primary,
  .btn-secondary {
    padding: 11px 18px;
    font-size: 0.92rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* --- WATERMARK --- */
  .bg-watermark {
    width: 320px;
    opacity: 0.04;
  }

  /* --- FOOTER --- */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 14px 14px;
  }

  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .footer-bottom {
    padding: 12px 14px;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  /* --- CATEGORY TITLE --- */
  .category-title {
    font-size: 1.2rem;
    margin: 20px 0 12px;
  }

  .category-count {
    font-size: 0.85rem;
  }

  /* --- PDF DOWNLOAD --- */
  .menu-pdf-bar {
    margin: 12px 0 6px;
  }

  .btn-pdf-download {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* --- EXTRAS INFO --- */
  .extras-info-list {
    grid-template-columns: 1fr;
  }

  .extras-info-list li {
    font-size: 0.78rem;
    padding-bottom: 3px;
  }
}

/* ---- VERY SMALL PHONES (≤375px) ---- */
@media (max-width: 375px) {
  :root {
    --header-height: 54px;
  }

  html {
    font-size: 15px;
  }

  .header-container {
    padding: 0 8px;
    gap: 6px;
  }

  .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .logo-pasta {
    font-size: 0.75rem;
  }

  .main-content {
    padding: 0 10px;
  }

  /* Hero */
  .hero {
    height: 320px;
    min-height: 320px;
    border-radius: var(--radius);
  }

  .hero-content {
    padding: 16px 12px;
  }

  .hero-logo-img {
    max-height: 60px;
  }

  .hero-logo-text {
    font-size: 1.4rem;
  }

  .hero-tagline {
    font-size: 0.88rem;
    margin-bottom: 10px;
  }

  .stars {
    font-size: 1rem;
  }

  .rating-text {
    font-size: 0.78rem;
  }

  .hero-cta .btn-primary {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .hero-info-item {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* Category tiles */
  .category-tiles {
    gap: 10px;
  }

  .tile-photo {
    height: 95px;
  }

  .tile-name {
    font-size: 0.82rem;
    padding: 0 6px;
  }

  .tile-count {
    font-size: 0.74rem;
  }

  /* Product cards */
  .product-card {
    padding: 12px;
  }

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

  .product-description {
    font-size: 0.82rem;
  }

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

  .btn-add-cart {
    font-size: 0.88rem;
    padding: 11px 14px;
  }

  /* Cat tabs */
  .cat-tab {
    padding: 10px 10px;
    font-size: 0.8rem;
  }

  /* Cart */
  .cart-items {
    padding: 8px 12px;
  }

  .cart-qty button {
    width: 32px;
    height: 32px;
    min-height: 44px;
  }
}

/* ============================================================
   BILINGUAL CARD STYLES — German (primary) + English (secondary)
   ============================================================ */

/* Category title — English secondary part */
.category-title .cat-name-en {
  font-size: 0.65em;
  font-weight: 400;
  color: var(--grey);
  opacity: 0.7;
}

/* Product name — German primary */
.product-name-de {
  display: block;
  font-weight: 700;
  color: var(--dark);
  font-size: 11px;
  line-height: 1.3;
}

/* Product name — English secondary */
.product-name-en {
  display: block;
  font-weight: 400;
  color: #444444;
  font-size: 10px;
  line-height: 1.3;
  margin-top: 1px;
  opacity: 0.85;
}

/* Product description — German primary */
.product-description .product-desc-de {
  display: block;
  color: #3B2A1E;
  font-size: 10px;
  line-height: 1.4;
}

/* Product description — English secondary */
.product-description .product-desc-en {
  display: block;
  font-style: italic;
  color: #555555;
  font-size: 9px;
  line-height: 1.3;
  margin-top: 1px;
  opacity: 0.85;
}

/* Badge bilingual — keep compact */
.badge {
  white-space: nowrap;
}

/* Cat-tab bilingual */
.cat-tab {
  white-space: nowrap;
}

/* Extras info box — English secondary */
.extras-info-title .cat-name-en,
.extras-info-subtitle .cat-name-en,
.extras-info-note .cat-name-en {
  font-size: 0.8em;
  color: var(--grey);
  opacity: 0.7;
  font-weight: 400;
}

/* Extra list item — English secondary */
.extra-name .cat-name-en {
  font-size: 0.85em;
  color: var(--grey);
  opacity: 0.7;
}

/* Make sure product-name h4 doesn't add extra margin */
.product-name {
  margin: 0;
  padding: 0;
}

/* Product header layout adjustment for bilingual names */
.product-header h4.product-name {
  flex: 1;
  min-width: 0;
}
