/* ============================================================
   NAPOLI PIZZA POLIGON — PREMIUM DESIGN SYSTEM
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,700&display=swap');

/* ── Design Tokens ── */
:root {
  --ink: #1a1410;
  --ink-soft: #2d2520;
  --muted: #7a7068;
  --paper: #fdf8f2;
  --cream: #f5ece0;
  --warm-white: #fffcf7;
  --orange: #e8652a;
  --orange-dark: #d4521a;
  --orange-glow: rgba(232, 101, 42, 0.15);
  --red: #c42e1e;
  --red-dark: #a5231b;
  --green: #1e5e3a;
  --green-dark: #174a2d;
  --gold: #d4a853;
  --line: #ebe1d3;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(26, 20, 16, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 20, 16, 0.10);
  --shadow-lg: 0 20px 60px rgba(26, 20, 16, 0.14);
  --shadow-xl: 0 30px 80px rgba(26, 20, 16, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Typography ── */
.heading-xl { font: 800 clamp(48px, 7vw, 86px)/0.95 'Playfair Display', Georgia, serif; letter-spacing: -0.03em; }
.heading-lg { font: 700 clamp(36px, 5vw, 56px)/1.05 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; }
.heading-md { font: 700 clamp(28px, 3.5vw, 42px)/1.1 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; }
.heading-sm { font: 700 22px/1.2 'Playfair Display', Georgia, serif; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font: 800 11px/1 'Inter', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Utility ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  background: var(--paper);
  border-bottom: 1px solid rgba(235, 225, 211, 0.9);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font: 700 15px/1 'Playfair Display', Georgia, serif;
  box-shadow: 0 4px 15px rgba(196, 46, 30, 0.3);
  transition: transform var(--transition);
}
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.05); }
.brand b {
  display: block;
  font: 700 18px/1.2 'Playfair Display', Georgia, serif;
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  color: var(--muted);
  font: 600 10px/1 'Inter', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Nav */
.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font: 600 13px/1 'Inter', sans-serif;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--orange);
  background: var(--orange-glow);
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font: 700 13px/1 'Inter', sans-serif;
  transition: all var(--transition);
}
.cart-link:hover { background: var(--ink-soft); transform: translateY(-1px); }
.cart-link span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

/* Locale form */
.locale-form { display: block; }
.locale-form select {
  width: auto;
  border: 1px solid var(--line);
  background: var(--warm-white);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 20, 16, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: min(320px, 85vw);
  height: 100vh;
  z-index: 95;
  background: var(--warm-white);
  visibility: hidden;
  pointer-events: none;
  padding: 100px 30px 40px;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition), visibility var(--transition);
  overflow-y: auto;
}
.mobile-nav.active { right: 0; visibility: visible; pointer-events: auto; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font: 600 16px/1 'Inter', sans-serif;
  color: var(--ink);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--orange); }

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 14px/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.button-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  box-shadow: 0 4px 15px rgba(196, 46, 30, 0.25);
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 46, 30, 0.35);
}
.button-primary:active { transform: translateY(0); }
.button-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.button-ghost:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}
.button-outline-white {
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.button-outline-white:hover {
  background: white;
  color: var(--ink);
}
.button-full { width: 100%; }
.button-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font: 800 clamp(44px, 6vw, 78px)/0.95 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--red);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--orange-glow);
  border-radius: 3px;
}
.hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero .button-row { margin-top: 36px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}
.hero-visual img {
  width: 100%;
  max-width: 560px;
  border-radius: 50%;
  object-fit: cover;
  animation: heroFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(26, 20, 16, 0.25));
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  animation: heroPulse 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

/* Badge/ribbon on hero */
.hero-badge {
  position: absolute;
  top: 20px;
  right: -10px;
  padding: 10px 20px;
  background: var(--green);
  color: #fff;
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: -30px auto 80px;
  position: relative;
  z-index: 5;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.trust-row div {
  text-align: center;
}
.trust-row div + div {
  border-left: 1px solid var(--line);
}
.trust-row b {
  display: block;
  font: 700 17px/1.3 'Playfair Display', Georgia, serif;
  margin-bottom: 4px;
}
.trust-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 2px solid rgba(232, 101, 42, 0.1);
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 100px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-heading h2 {
  font: 700 clamp(32px, 4vw, 44px)/1.05 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.section-heading > a,
.text-link {
  font: 700 14px/1 'Inter', sans-serif;
  color: var(--red);
  transition: color var(--transition);
}
.text-link:hover { color: var(--orange); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5ece0, #ede3d4);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}
/* Fallback CSS pizza when no image */
.product-image .pizza-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5e6d0, #ecd5b8);
}
.pizza-placeholder .pizza-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffe7a3 0 4%, transparent 5%),
              radial-gradient(circle at 70% 55%, #ffda70 0 5%, transparent 6%),
              repeating-conic-gradient(from 30deg, #e15e2a 0 14deg, #f8c951 14deg 28deg);
  border: 8px solid #d68d46;
  box-shadow: inset 0 0 0 6px #f5c45a, 0 10px 20px rgba(82, 25, 8, 0.2);
}

/* Discount badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--red);
  color: white;
  font: 800 11px/1 'Inter', sans-serif;
  z-index: 2;
}

/* AR badge on product image */
.ar-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(26, 20, 16, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  font: 700 10px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  transition: all var(--transition);
}
.ar-badge:hover {
  background: var(--orange);
}
.ar-badge svg {
  width: 14px;
  height: 14px;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.product-meta {
  font: 800 10px/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.product-card h3 {
  font: 700 20px/1.2 'Playfair Display', Georgia, serif;
  margin-bottom: 6px;
}
.product-card .product-desc {
  color: #4b5563;
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-price {
  font: 800 22px/1 'Playfair Display', Georgia, serif;
  color: var(--ink);
}
.product-price .old-price {
  display: block;
  font: 400 13px/1 'Inter', sans-serif;
  text-decoration: line-through;
  color: var(--muted);
  margin-bottom: 2px;
}
.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(196, 46, 30, 0.25);
  transition: all var(--transition);
}
.icon-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(196, 46, 30, 0.35);
}

/* Stock badge */
.out-of-stock .product-image { filter: grayscale(0.5); opacity: 0.7; }
.out-of-stock .product-body { opacity: 0.6; }
.stock-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font: 700 11px/1 'Inter', sans-serif;
  z-index: 2;
}

.chef-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font: 800 11px/1 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(232, 101, 42, 0.4);
}

/* ============================================================
   STORY / PROMO GRID
   ============================================================ */
.story-grid {
  max-width: 1080px;
  margin: 0 auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
}
.dark-panel,
.offer-panel {
  min-height: 340px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}
.dark-panel:hover,
.offer-panel:hover { transform: translateY(-4px); }
.dark-panel {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.dark-panel h2 {
  font: 700 clamp(28px, 3vw, 38px)/1.1 'Playfair Display', Georgia, serif;
  margin: 10px 0 14px;
}
.dark-panel p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}
.offer-panel {
  background: linear-gradient(135deg, #f5ece0, var(--cream));
  border: 1px solid var(--line);
}
.offer-panel h2 {
  font: 700 clamp(24px, 3vw, 32px)/1.1 'Playfair Display', Georgia, serif;
  margin: 10px 0 14px;
}

/* ============================================================
   LOCATION
   ============================================================ */
.location-section {
  max-width: 1080px;
  margin: 0 auto 100px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.location-section h2 {
  font: 700 clamp(28px, 3vw, 38px)/1.1 'Playfair Display', Georgia, serif;
  margin: 8px 0 16px;
}
.location-section p { color: var(--muted); line-height: 1.7; }
.location-section .location-details { display: grid; gap: 10px; margin-top: 16px; }
.location-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.location-detail svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
  background: var(--cream);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}
.map-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  background: linear-gradient(135deg, var(--cream), #ede3d4);
  border-radius: var(--radius-md);
  color: var(--green);
  font: 600 18px/1.4 'Playfair Display', Georgia, serif;
}
.map-placeholder small {
  display: block;
  font: 400 12px/1.5 'Inter', sans-serif;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #f0e8dd;
  padding: 60px max(24px, calc((100vw - var(--max-width)) / 2)) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--red), var(--orange));
  margin-bottom: 14px;
}
.footer-brand p {
  color: #9e958b;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font: 700 14px/1 'Inter', sans-serif;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col a,
.footer-col p {
  display: block;
  color: #9e958b;
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #706860;
}
.footer-bottom a { color: #9e958b; text-decoration: underline; }
.footer-bottom a:hover { color: var(--orange); }

/* Legacy footer support */
.site-footer:not(:has(.footer-grid)) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding: 20px max(24px, calc((100vw - var(--max-width)) / 2));
}
.site-footer:not(:has(.footer-grid)) > div { display: flex; align-items: center; gap: 10px; }
.site-footer:not(:has(.footer-grid)) p { color: #9e958b; }
.site-footer:not(:has(.footer-grid)) a { color: #fff; text-decoration: underline; }

/* ============================================================
   PAGE
   ============================================================ */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.page-heading {
  max-width: 700px;
  margin-bottom: 40px;
}
.page-heading h1 {
  font: 800 clamp(40px, 5vw, 56px)/1 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.page-heading p { color: var(--muted); font-size: 16px; }

/* Search bar */
.search-bar {
  position: relative;
  margin-bottom: 24px;
}
.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 15px;
  transition: border-color var(--transition);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--orange);
}
.search-bar svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
}

/* Chip row (category pills) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font: 600 13px/1 'Inter', sans-serif;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ============================================================
   CART
   ============================================================ */
.cart-layout,
.checkout-layout,
.tracking-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
}
.cart-items,
.tracking-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.cart-item:hover { background: var(--cream); }
.cart-item:last-child { border-bottom: none; }
.cart-item h3 { font: 700 18px/1.2 'Playfair Display', Georgia, serif; }
.cart-item p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.mini-pizza {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 34%, #a5231b 0 10%, transparent 11%),
              radial-gradient(circle at 62% 63%, #a5231b 0 9%, transparent 10%),
              #f4c34d;
  border: 4px solid #d68d46;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  font-size: 16px;
  transition: all var(--transition);
}
.quantity button:hover { border-color: var(--orange); color: var(--orange); }
.quantity span { font-weight: 700; min-width: 20px; text-align: center; }

/* Order summary */
.order-summary {
  align-self: start;
  background: var(--ink);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  position: sticky;
  top: 100px;
}
.order-summary h2 { font: 700 26px/1 'Playfair Display', Georgia, serif; margin-bottom: 22px; }
.coupon-form { display: flex; gap: 0; margin-bottom: 22px; border-radius: var(--radius-sm); overflow: hidden; }
.coupon-form input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 12px;
  font-size: 14px;
}
.coupon-form button {
  background: var(--orange);
  color: white;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.order-summary dl { margin: 22px 0; }
.order-summary dl div,
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: #c8c0b7;
  font-size: 14px;
}
.order-summary dl .total {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font: 800 20px/1 'Playfair Display', Georgia, serif;
}

/* Empty state */
.empty-state {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 60px 40px;
}
.empty-state h1,
.empty-state h2 { font: 700 32px/1.2 'Playfair Display', Georgia, serif; margin-bottom: 14px; }
.empty-state a { color: var(--red); font-weight: 700; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { padding: 36px; border-radius: var(--radius-md); }
.form-card h2 { font: 700 26px/1.1 'Playfair Display', Georgia, serif; margin: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font: 600 13px/1 'Inter', sans-serif;
}
input, select, textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--warm-white);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
}
textarea { resize: vertical; }
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.payment-options .payment-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}
.payment-options .payment-option:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f1;
}
.payment-options .payment-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin: 0;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.payment-options .payment-option input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--orange);
}
.payment-options .payment-option input[type="radio"]:checked {
  border-color: var(--orange);
}
.payment-options .payment-option input[type="radio"]:checked::before {
  transform: scale(1);
}
.payment-options .payment-option span {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
.check input { width: auto; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
/* ============================================================
   TABLE MENU (QR)
   ============================================================ */
.table-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.table-banner h1 { font: 700 32px/1.1 'Playfair Display', Georgia, serif; margin: 5px 0; }
.table-banner p { margin: 0; color: rgba(255,255,255,0.7); }

/* ============================================================
   ORDER TRACKING
   ============================================================ */
.tracking-card { padding: 32px; border-radius: var(--radius-md); }
.tracking-card h2 { font: 700 26px/1.1 'Playfair Display', Georgia, serif; }
.timeline { margin: 28px 0; }
.timeline li {
  position: relative;
  border-left: 3px solid var(--orange);
  padding: 0 0 28px 22px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.timeline b, .timeline span, .timeline time { display: block; }
.timeline span, .timeline time { font-size: 13px; color: var(--muted); }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 10px;
  border-radius: 99px;
  font: 800 10px/1 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eee7de;
  color: var(--ink-soft);
}
.status-ready, .status-completed, .status-delivered, .status-paid, .status-available { background: #d8eee0; color: #196a39; }
.status-preparing, .status-on_delivery, .status-acknowledged { background: #fff0c9; color: #875b00; }
.status-cancelled, .status-refunded, .status-pending_payment { background: #f9d9d5; color: #a42c20; }

/* ============================================================
   AR PAGE
   ============================================================ */
.ar-page {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--ink);
  color: white;
}
.ar-camera {
  min-height: 620px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #2a302a, #111);
}
.ar-camera video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-overlay {
  z-index: 1;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  transition: transform 0.1s ease;
  touch-action: none;
}
.ar-overlay.interactive {
  pointer-events: auto;
  cursor: grab;
}
.ar-overlay.interactive:active { cursor: grabbing; }
.ar-overlay img {
  max-width: 300px;
  max-height: 300px;
  user-select: none;
  -webkit-user-drag: none;
}
.ar-camera > p {
  z-index: 2;
  position: absolute;
  bottom: 20px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.ar-controls {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}
.ar-controls button {
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font: 600 12px/1 'Inter', sans-serif;
  transition: background var(--transition);
}
.ar-controls button:hover { background: rgba(255,255,255,0.25); }
.ar-info {
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ar-info h1 { font: 800 clamp(36px, 4vw, 52px)/1 'Playfair Display', Georgia, serif; margin: 12px 0 16px; }
.ar-info p { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.6; }
.ar-info strong {
  display: block;
  font: 800 28px/1 'Playfair Display', Georgia, serif;
  color: var(--gold);
  margin: 20px 0;
}
.ar-info .button-row { margin-top: 10px; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.auth-card {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  padding: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font: 700 34px/1.1 'Playfair Display', Georgia, serif; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.alert p { margin: 0; }
.alert-success { background: #dff1e3; color: #1e6136; border: 1px solid #c3e5ca; }
.alert-error { background: #fbe0dc; color: #942c21; border: 1px solid #f0ccc7; }
.flash {
  max-width: var(--max-width);
  margin: 14px auto;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.flash-success { background: #e1f2e4; color: #1a6a39; border: 1px solid #c3e5ca; }
.flash-error { background: #fae0dc; color: #9d2a20; border: 1px solid #f0ccc7; }

/* ============================================================
   INSTALLER
   ============================================================ */
.install-page {
  min-height: 100vh;
  padding: 50px 20px;
  background: linear-gradient(135deg, #f0dfcb 0%, var(--paper) 100%);
}
.install-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.install-card h1 {
  font: 700 clamp(32px, 4vw, 44px)/1.1 'Playfair Display', Georgia, serif;
  margin: 10px 0 8px;
}
.install-card > p { color: var(--muted); }
.requirement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: 28px 0;
}
.requirement {
  padding: 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.requirement span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  font-weight: 800;
}
.requirement.ok span { background: #d6ebdc; color: #176536; }
.requirement.bad span { background: #f9d7d2; color: #9f2b20; }
.install-form { display: grid; gap: 22px; }
.install-form h2 { font: 700 24px/1.1 'Playfair Display', Georgia, serif; margin: 8px 0 -2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 40px 24px 20px; gap: 30px; }
  .hero-visual { order: -1; min-height: 320px; }
  .hero-visual img { max-width: 380px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .cart-layout, .checkout-layout, .tracking-layout, .ar-page { grid-template-columns: 1fr; }
  .order-summary { position: static; margin-top: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .mobile-nav, .mobile-nav-overlay { display: block; }
  .site-header nav { display: none; }

  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .hero-visual { min-height: 260px; }
  .hero-visual img { max-width: 280px; }

  .trust-row { grid-template-columns: 1fr; margin: 0 20px 60px; padding: 20px; border-radius: var(--radius-md); }
  .trust-row div + div { border-left: none; border-top: 1px solid var(--line); padding-top: 16px; }

  .section { padding-bottom: 60px; }
  .section-heading h2 { font-size: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 180px; }

  .story-grid { grid-template-columns: 1fr; margin-bottom: 60px; }
  .dark-panel, .offer-panel { min-height: 240px; padding: 28px; border-radius: var(--radius-md); }

  .location-section { grid-template-columns: 1fr; margin: 0 20px 60px; padding: 28px; gap: 24px; border-radius: var(--radius-md); }

  .cart-layout, .checkout-layout, .tracking-layout, .ar-page { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-card { padding: 24px; }

  .ar-camera { min-height: 55vh; }
  .ar-info { padding: 32px 24px; }
  .ar-info h1 { font-size: 36px; }

  .table-banner { flex-direction: column; align-items: flex-start; padding: 20px; border-radius: var(--radius-md); }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .page { padding: 40px 20px 80px; }
  .page-heading h1 { font-size: 36px; }

  .install-card { padding: 28px; border-radius: var(--radius-md); }
  .install-card h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .product-card h3 { font-size: 17px; }
  .product-image { height: 160px; }
  .button { min-height: 46px; padding: 10px 18px; font-size: 13px; }
}

/* ============================================================
   AOS — REDESIGN PRODUCT CARDS & CHIPS
   ============================================================ */

.chip-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 99px;
  font: 700 14px/1 'Inter', sans-serif;
  color: #4b5563; /* Gray text for inactive */
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent;
}
.chip-new .chip-icon {
  font-size: 16px;
}
.chip-new:hover {
  background: #f3f4f6;
}

/* Active states for chips based on categories */
.chip-new.active.cat-pizzalar { background: #ef4444; color: #fff; }
.chip-new.active.cat-kampanyalar { background: #f59e0b; color: #fff; }
.chip-new.active { background: #4b5563; color: #fff; } /* Default active */


/* Product Card Redesign */
.product-card-new {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
  position: relative;
}
.product-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}
.product-card-new.is-campaign {
  border: 1px solid #ef4444;
}

.product-image-new {
  position: relative;
  background: #f8fafc;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-image-new img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card-new:hover .product-image-new img {
  transform: scale(1.05);
}

/* Badges */
.badge-ar-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #3b82f6;
  color: #fff;
  font: 800 10px/1 'Inter', sans-serif;
  padding: 6px 10px;
  border-radius: 99px;
  text-decoration: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-campaign-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  font: 800 11px/1 'Inter', sans-serif;
  padding: 6px 12px;
  border-radius: 99px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-qr-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  z-index: 2;
}
.badge-qr-new img,
.badge-qr-new svg { width: 18px; height: 18px; color: #1f2937; }
.badge-qr-new span {
  font: 800 7px/1.2 'Inter', sans-serif;
  text-align: center;
  color: #374151;
}

.product-body-new {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.product-title-row h3 {
  font: 700 20px/1.2 'Inter', sans-serif;
  color: #111827;
  margin: 0;
}

.product-price-new {
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.current-price-new {
  font: 800 22px/1 'Inter', sans-serif;
  color: #ef4444;
}
.old-price-new {
  font: 600 14px/1 'Inter', sans-serif;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-desc-new {
  font: 400 13.5px/1.5 'Inter', sans-serif;
  color: #4b5563;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.ing-tag {
  background: #f3f4f6;
  color: #4b5563;
  font: 500 11px/1 'Inter', sans-serif;
  padding: 6px 10px;
  border-radius: 99px;
}

.add-to-cart-form-new {
  margin-top: auto;
}
.btn-add-cart-new {
  width: 100%;
  background: #10b981;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font: 700 15px/1 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-add-cart-new:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Mobile Action Bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 10px 15px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 80;
  gap: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.action-call { background: #22c55e; color: #fff; }
.action-map { background: #3b82f6; color: #fff; }

@media (max-width: 768px) {
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 70px; } /* Prevent footer overlap */
  
  /* Product grid: 2 columns on tablet-ish, 1 on small */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  /* Chip row scrollable on mobile */
  .chip-row { 
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important; gap: 8px !important; 
    padding: 0 16px !important; margin-bottom: 24px !important;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-new { white-space: nowrap; flex-shrink: 0; padding: 8px 16px; font-size: 13px; }
  
  /* Product card mobile tweaks */
  .product-image-new { height: 160px; padding: 12px; }
  .product-body-new { padding: 14px; }
  .product-title-row h3 { font-size: 16px; }
  .current-price-new { font-size: 18px; }
  .product-desc-new { font-size: 12px; margin-bottom: 10px; }
  .ingredient-tags { margin-bottom: 12px; }
  .ing-tag { font-size: 10px; padding: 4px 8px; }
  .btn-add-cart-new { padding: 12px; font-size: 14px; }
  
  /* Badge sizes on mobile */
  .badge-ar-new { font-size: 9px; padding: 5px 8px; top: 8px; left: 8px; }
  /* QR code is not needed on mobile because the user can just tap the AR button directly. */
  .badge-qr-new { display: none !important; }
  
  /* Hero section mobile */
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  
  /* Location / map section */
  .map-container { height: 280px !important; }
  
  /* Instagram CTA mobile */
  .instagram-cta { padding: 40px 20px !important; }
  .instagram-cta h2 { font-size: 1.6rem !important; }
  
  /* Ensure tap targets are at least 44px */
  a, button, select, input[type="submit"] { min-height: 44px; }
}

/* Small phones: 480px and below */
@media (max-width: 480px) {
  .product-card h3 { font-size: 17px; }
  .product-image { height: 160px; }
  .button { min-height: 46px; padding: 10px 18px; font-size: 13px; }
  
  /* Single column grid on small phones */
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .product-image-new { height: 200px; }
  .product-body-new { padding: 16px; }
  
  /* Hero adjustments */
  .hero { padding: 24px 16px; }
  .hero h1 { font-size: 28px; }
  .hero-visual { min-height: 200px; }
  .hero-visual img { max-width: 220px; }
  
  /* Page heading */
  .page { padding: 24px 16px 80px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 14px; }
  
  /* Search bar */
  .search-bar { margin: 0 0 16px; }
  .search-bar input { font-size: 14px; }
  
  /* Section headings */
  .section-heading h2 { font-size: 24px; }
  
  /* Cart / Checkout */
  .form-card { padding: 16px; }
  
  /* Footer */
  .site-footer { padding: 40px 16px 24px; }
}

/* Very small phones: 320px */
@media (max-width: 360px) {
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .product-title-row h3 { font-size: 15px; }
  .current-price-new { font-size: 16px; }
  .btn-add-cart-new { font-size: 13px; padding: 10px; }
  .page-heading h1 { font-size: 24px; }
  .chip-new { padding: 6px 12px; font-size: 12px; }
  
  /* Ensure brand logo doesn't overflow */
  .brand span b { font-size: 14px; }
  .brand img { width: 36px !important; height: 36px !important; }
}

/* Safe area for notched phones (iPhone X+, modern Android) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-action-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .ar-bottom {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* Landscape orientation for phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 20px; }
  .hero-visual { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
