:root {
  --bg: #f6f6f3;
  --card: #ffffff;
  --ink: #101114;
  --muted: #6b7280;
  --line: rgba(16,17,20,.08);
  --shadow: 0 18px 40px rgba(16,17,20,.10);
  --radius: 22px;
  --accent: #e1093f;
  --accent2: #ff4b73;
  --glass-bg: rgba(255,255,255,0.22);
  --glass-border: rgba(255,255,255,0.55);
  --glass-shadow: 0 20px 45px rgba(15,23,42,0.25);
  --text-main: #0f172a;
  --text-soft: #64748b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(900px 520px at 90% 0%, rgba(225,9,63,.07), transparent 55%),
    radial-gradient(900px 520px at 10% 10%, rgba(0,0,0,.03), transparent 55%), var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 26px;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 16px;
}
.logo-wrap::before {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,9,63,.18) 0%, rgba(225,9,63,.08) 40%, rgba(225,9,63,0) 70%);
  animation: breathe 4.5s ease-in-out infinite;
  z-index: 0;
}
.logo {
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}
.logo-tagline {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
  position: relative;
  z-index: 1;
}
@keyframes breathe {
  0% { transform: scale(0.95); opacity: .55; }
  50% { transform: scale(1.05); opacity: .85; }
  100% { transform: scale(0.95); opacity: .55; }
}

/* Hero video */
.video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  margin: 0 0 8px;
}
.video-wrap video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Action buttons */
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 0 16px;
}
.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(16,17,20,.08);
  background: #fbfbfa;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease;
}
.act:active { transform: scale(.985); }
.act i {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225,9,63,.10);
  color: var(--accent);
  font-size: 18px;
}
.act span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15px;
  color: #1f2937;
  text-align: center;
  line-height: 1.1;
}

/* Promo Slider */
.promo-slider-section {
  margin-top: 8px;
  padding: 0;
}
.promo-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.promo-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.promo-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.promo-slide img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: block;
}
.promo-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
}
.promo-slide-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.promo-slide-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}
.promo-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}
.promo-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.promo-slider-section:empty,
.promo-slider-section[data-empty="true"] {
  display: none;
}

/* Sections */
.section {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 12px;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 10px;
}
.sec-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: .2px;
  font-weight: 900;
}
.sec-head a {
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  color: var(--accent);
}

/* Quick category slider */
.quick-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 14px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.quick-slider::-webkit-scrollbar { display: none; }
.qsc-card {
  flex: 0 0 auto;
  width: 110px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: #fbfbfa;
  border: 1px solid rgba(16,17,20,.08);
  box-shadow: 0 6px 18px rgba(15,23,42,0.09);
  scroll-snap-align: start;
  transition: transform 0.18s ease;
  display: block;
}
.qsc-card:active { transform: scale(0.96); }
.qsc-media {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  background: rgba(225,9,63,.06);
}
.qsc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.qsc-card:hover .qsc-media img { transform: scale(1.07); }
.qsc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.45) 0%, transparent 60%);
  pointer-events: none;
}
.qsc-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  opacity: 0.6;
}
.qsc-name {
  padding: 8px 8px 9px;
  font-size: 11.5px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category pills */
.pills {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 4px 6px 6px;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16,17,20,.10);
  background: #fbfbfa;
  color: #111827;
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: .15s;
}
.pill.active, .pill:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
}

/* Featured row */
.feat-row {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 4px 6px 8px;
  scrollbar-width: none;
}
.feat-row::-webkit-scrollbar { display: none; }
.feat-card {
  min-width: 240px;
  max-width: 240px;
  border-radius: 20px;
  border: 1px solid rgba(16,17,20,.08);
  background: #fbfbfa;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.feat-img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16,17,20,.08);
  background: #fff;
  flex: 0 0 auto;
}
.feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feat-info { flex: 1; min-width: 0; }
.feat-name {
  margin: 0;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-price {
  margin-top: 6px;
  font-weight: 1000;
  color: var(--accent);
  font-size: 13px;
}

/* Footer social */
.footer {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.social {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.sbtn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16,17,20,.10);
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16,17,20,.07);
}

/* ===== HEADER (menu & sepet) ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
}
.header-back {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 1rem; cursor: pointer;
  text-decoration: none;
}
.header-back:hover { background: rgba(0,0,0,0.04); }
.header-center {
  flex: 1; text-align: center;
}
.header-title { font-size: 1rem; font-weight: 800; margin: 0; }
.header-sub { font-size: 0.75rem; color: var(--muted); margin: 2px 0 0; }
.header-cart {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; text-decoration: none; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(225,9,63,0.35);
}

/* btn-primary */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 16px;
  font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 20px rgba(225,9,63,0.35);
}

/* ===== MENU PAGE ===== */
.menu-body {
  background: radial-gradient(circle at top, #e0f2ff 0, #f5f5ff 40%, #e5ecff 100%);
}

.main-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
}
.header-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.back-button {
  background: none; border: none; font-size: 1.5rem; color: var(--text-main);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; transition: 0.2s;
}
.back-button:hover { background: rgba(148,163,184,0.18); }
.header-center {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.header-title { font-size: 1.05rem; font-weight: 600; margin: 0; }
.header-subtitle { font-size: 0.75rem; color: var(--text-soft); margin-top: 2px; }

.cart-button {
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; width: 46px; height: 46px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 12px 28px rgba(225,9,63,0.5); font-size: 1.2rem;
}
.cart-badge {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
  border-radius: 50%; background: #22c55e; color: #fff; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.content { max-width: 1200px; margin: 0 auto; padding: 90px 14px 30px; }

/* Main category cards */
.main-category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.main-category-card {
  position: relative; overflow: hidden; border-radius: 20px; text-decoration: none;
  color: var(--text-main); background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); transition: 0.25s ease; cursor: pointer;
}
.main-category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 50px rgba(15,23,42,0.28);
}
.main-cat-media { position: relative; height: 140px; overflow: hidden; }
.main-cat-media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: 0.4s;
}
.main-category-card:hover .main-cat-media img { transform: scale(1.08); }
.main-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.75), transparent 55%);
}
.main-cat-label {
  position: absolute; left: 12px; bottom: 10px;
  display: flex; align-items: center; gap: 8px; color: #fff;
}
.main-cat-icon {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(15,23,42,0.65); display: flex; align-items: center; justify-content: center;
}
.main-cat-name { font-weight: 600; font-size: 0.95rem; }
.main-cat-body { padding: 0.8rem 0.9rem 0.9rem; font-size: 0.8rem; color: var(--text-soft); }

/* Sub-category grid */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem;
}
.category-card {
  text-decoration: none; color: var(--text-main); background: var(--glass-bg);
  border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); transition: 0.25s ease; cursor: pointer;
}
.category-card:hover { transform: translateY(-3px) scale(1.02); }
.category-image { width: 100%; height: 120px; object-fit: cover; display: block; }
.category-name {
  padding: 0.7rem 0.6rem 0.8rem; text-align: center; font-size: 0.9rem; font-weight: 600; margin: 0;
}

/* Products grid */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem;
}
.product-card {
  background: var(--glass-bg); border-radius: 18px; border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); overflow: hidden; cursor: pointer; transition: 0.25s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-3px) scale(1.01); }
.product-image-container { position: relative; width: 100%; height: 140px; background: #e5e7eb; }
.product-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-price-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(15,23,42,0.9); color: #fff;
  font-size: 0.8rem; padding: 4px 9px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
}
.product-price-badge i { color: #fde68a; }
.product-details { padding: 0.75rem 0.8rem 0.9rem; }
.product-name { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.25rem; }
.product-description {
  font-size: 0.78rem; color: var(--text-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mobile-add-btn {
  position: absolute; bottom: 10px; left: 10px;
  background: #fff; border-radius: 999px; border: 2px solid var(--accent);
  padding: 4px 10px; font-size: 0.78rem;
  display: flex; align-items: center; gap: 4px;
  font-weight: 600; color: var(--accent); cursor: pointer;
}
.product-card:hover .mobile-add-btn { background: var(--accent); color: #fff; }

/* Breadcrumb */
.breadcrumb-custom {
  background: rgba(255,255,255,0.9); border-radius: 999px;
  padding: 0.45rem 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; margin-bottom: 0.7rem;
  border: 1px solid rgba(226,232,240,0.9); box-shadow: 0 14px 32px rgba(15,23,42,0.12);
}
.breadcrumb-custom a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumb-custom span { color: var(--text-soft); }

.section-title {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 6px;
}
.section-title i { color: var(--accent); }

/* Empty state */
.empty-box {
  text-align: center; padding: 3rem 1.5rem;
  background: var(--glass-bg); border-radius: 18px;
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.empty-box i { font-size: 3rem; color: #cbd5f5; margin-bottom: 0.75rem; display: block; }
.empty-box p { color: var(--text-soft); font-size: 0.9rem; }

/* ===== SEPET PAGE ===== */
.cart-container {
  background: var(--glass-bg); border-radius: 22px; border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); padding: 16px 14px; backdrop-filter: blur(20px);
}
.cart-item {
  display: flex; align-items: flex-start; padding: 12px 4px;
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.cart-item-extras { font-size: 0.78rem; color: var(--text-soft); margin-bottom: 2px; }
.cart-item-note { font-size: 0.78rem; color: #6b7280; font-style: italic; margin-bottom: 2px; }
.cart-item-price { font-size: 0.8rem; color: #111827; margin-top: 3px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: 8px; }
.cart-item-quantity { display: flex; align-items: center; gap: 6px; }
.quantity-btn {
  width: 28px; height: 28px; border-radius: 999px; border: none;
  background: #f9fafb; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 10px rgba(148,163,184,0.6);
}
.quantity-value { min-width: 20px; text-align: center; font-weight: 600; }
.remove-item { border: none; background: none; color: #dc2626; cursor: pointer; font-size: 0.9rem; }
.clear-cart {
  width: 100%; margin-top: 12px; padding: 10px 0; border-radius: 14px; border: none;
  background: rgba(15,23,42,0.04); color: #374151; font-weight: 500; font-size: 0.9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.clear-cart:hover { background: rgba(248,113,113,0.1); color: #b91c1c; }

.cart-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex;
  z-index: 1000; box-shadow: 0 -12px 26px rgba(15,23,42,0.28);
}
.cart-total {
  flex: 1; background: #0f172a; color: white; padding: 12px 16px;
  display: flex; flex-direction: column; justify-content: center;
}
.total-label { font-size: 0.8rem; opacity: 0.8; }
.total-amount { font-size: 1.1rem; font-weight: 700; }
.checkout-btn {
  flex: 1; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* Empty cart */
.empty-cart { text-align: center; padding: 32px 12px 28px; }
.empty-cart-icon {
  width: 70px; height: 70px; border-radius: 20px; background: rgba(15,23,42,0.04);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.empty-cart-icon i { font-size: 30px; color: #cbd5f5; }
.browse-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 14px 28px rgba(225,9,63,0.55);
}

/* Bill page */
.bill-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 16px; text-align: center; margin-top: 20px;
}
.bill-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #fff; font-size: 36px;
}
.bill-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.bill-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }
.bill-items { text-align: left; margin: 16px 0; }
.bill-item {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.bill-total {
  display: flex; justify-content: space-between; padding: 12px 0;
  font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--ink);
  margin-top: 8px;
}

/* Loading spinner */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; color: var(--muted);
}
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .6s linear infinite; margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CATEGORY THUMBNAIL CARDS ===== */
.cat-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 6px;
}
.cat-thumb-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  background: #fbfbfa;
  border: 1px solid rgba(16,17,20,.08);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: block;
}
.cat-thumb-card:active {
  transform: scale(0.97);
}
.cat-thumb-media {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.cat-thumb-media img,
.cat-thumb-media video {
  width: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
.cat-thumb-card:hover .cat-thumb-media img,
.cat-thumb-card:hover .cat-thumb-media video {
  transform: scale(1.08);
}
.cat-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.15) 50%, transparent 100%);
  pointer-events: none;
}
.cat-thumb-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  z-index: 2;
}
.cat-thumb-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.cat-thumb-name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.cat-thumb-desc {
  padding: 10px 12px 12px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single column layout for 1 thumbnail card */
.cat-thumb-grid:has(.cat-thumb-card:only-child) {
  grid-template-columns: 1fr;
}

@media (max-width: 420px) {
  .actions { gap: 8px; }
  .act { padding: 10px 6px; border-radius: 16px; }
  .act i { width: 42px; height: 42px; }
  .product-image-container { height: 130px; }
  .cat-thumb-grid { gap: 10px; }
  .cat-thumb-name { font-size: 0.82rem; }
}

/* ============================================================
   TOUCH OPTIMIZATION - QR Menu
   ============================================================ */

/* Prevent iOS zoom on input focus */
input, select, textarea {
  font-size: 16px !important;
}

/* Disable double-tap zoom on interactive elements */
a, button, .act, .pill, .feat-card, .sbtn,
.product-card, .category-card, .main-category-card,
.cat-thumb-card, .qsc-card, .quantity-btn, .remove-item,
.clear-cart, .checkout-btn, .browse-btn,
.back-button, .cart-button, .header-back,
.header-cart, .btn-primary, .mobile-add-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth touch scrolling for all scroll containers */
.pills, .feat-row, .quick-slider, .content, .wrap,
.cart-container, .products-grid,
.categories-grid, .main-category-grid {
  -webkit-overflow-scrolling: touch;
}

/* Prevent overscroll bounce on scroll containers */
.pills, .feat-row {
  overscroll-behavior: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
}
.pill, .feat-card {
  scroll-snap-align: start;
}

body {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* Touch target minimum sizes */
.act, .pill, .sbtn, .back-button, .cart-button,
.header-back, .header-cart, .quantity-btn,
.mobile-add-btn, .remove-item, .clear-cart,
.checkout-btn, .browse-btn, .btn-primary {
  min-height: 44px;
  min-width: 44px;
}

/* Quantity buttons bigger for touch */
.quantity-btn {
  width: 36px;
  height: 36px;
}

/* Active states for touch feedback */
@media (pointer: coarse) {
  /* Disable hover transforms */
  .main-category-card:hover,
  .category-card:hover,
  .product-card:hover {
    transform: none !important;
  }
  .main-category-card:hover .main-cat-media img,
  .cat-thumb-card:hover .cat-thumb-media img,
  .cat-thumb-card:hover .cat-thumb-media video {
    transform: scale(1.02) !important;
  }

  /* Active press feedback */
  .main-category-card:active,
  .category-card:active,
  .cat-thumb-card:active {
    transform: scale(0.97) !important;
  }
  .product-card:active {
    transform: scale(0.98) !important;
  }
  .act:active {
    transform: scale(0.95) !important;
  }
  .pill:active {
    transform: scale(0.93) !important;
  }
  .quantity-btn:active {
    transform: scale(0.9);
    opacity: 0.7;
  }
  .btn-primary:active,
  .checkout-btn:active,
  .browse-btn:active {
    transform: scale(0.97) !important;
    opacity: 0.85;
  }

  /* Prevent text selection on interactive elements */
  button, a, .act, .pill, .feat-card, .sbtn,
  .product-card, .category-card, .main-category-card,
  .cat-thumb-card, .quantity-btn {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  /* Cart items - bigger touch area */
  .cart-item {
    padding: 16px 4px;
  }

  /* Remove item button - bigger */
  .remove-item {
    padding: 8px;
    font-size: 1.1rem;
  }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .cart-bottom-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
