/* ═══════════════════════════════════════════════════════════════
   NEHOOD CARDÁPIO — Premium Delivery Layout
   ═══════════════════════════════════════════════════════════════ */

:root {
  --accent: #E8384A;
  --accent-dark: #C7283A;
  --accent-light: #FDEBEC;
  --ink: #1A1A1E;
  --ink-soft: #5B5B63;
  --line: #ECECEF;
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --gold: #F5A623;
  --green: #1FA855;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(20, 20, 30, 0.06);
  /* Compat aliases for cv-* pages (carrinho, checkout, etc.) */
  --cv-primary: #E8384A;
  --cv-primary-hover: #C7283A;
  --cv-primary-rgb: 232, 56, 74;
  --cv-primary-light: #FDEBEC;
  --cv-primary-soft: rgba(232, 56, 74, 0.12);
  --cv-bg: #F7F7F8;
  --cv-surface: #FFFFFF;
  --cv-card: #FFFFFF;
  --cv-text: #1A1A1E;
  --cv-text-secondary: #5B5B63;
  --cv-text-muted: #999;
  --cv-text-inverse: #FFFFFF;
  --cv-border: #ECECEF;
  --cv-border-strong: #e1e1e1;
  --cv-success: #1FA855;
  --cv-success-bg: #e6f7e9;
  --cv-warning: #F5A623;
  --cv-star: #F5A623;
  --cv-muted: #5B5B63;
  --cv-radius: 14px;
  --cv-font: 'Plus Jakarta Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 100px;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  padding: 9px 16px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline-dark { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.btn--outline-dark:hover { background: rgba(255,255,255,0.22); }
.btn--whatsapp { background: #22C35E; color: #fff; }
.btn--whatsapp:hover { background: #1CA850; }
.btn--white { background: #fff; color: var(--accent); font-weight: 700; }
.btn--white:hover { background: #f5f5f5; }
.btn--block { width: 100%; justify-content: center; }
.badge {
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; margin-left: 2px;
}

/* ===== HEADER ===== */
.header { position: relative; color: #fff; overflow: hidden; }
.header__bg { position: absolute; inset: 0; z-index: 0; }
.header__bg-img { width: 100%; height: 100%; object-fit: cover; }
.header__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,10,10,0.92) 0%, rgba(30,15,15,0.85) 40%, rgba(30,15,15,0.4) 70%, rgba(30,15,15,0.1) 100%);
}
.header__inner { position: relative; z-index: 1; padding: 24px 40px 40px; max-width: 1240px; margin: 0 auto; }
.header__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; gap: 14px; align-items: center; }
.brand__logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  overflow: hidden;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__name {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill--open { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.pill--closed { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.pill__dot { font-size: 0.5rem; }
.pill--mesa { background: rgba(99,102,241,0.15); color: #6366f1; border: 1px solid rgba(99,102,241,0.3); font-size: 0.75rem; }
.brand__mesa { margin-top: 4px; }
.header__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.header__meta { margin-top: 18px; font-size: 0.9rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.header__meta .dot { opacity: 0.5; }
.meta__star { color: var(--gold); }
.meta__muted { opacity: 0.75; }
.header__categories-top { margin-top: 6px; font-size: 0.88rem; opacity: 0.85; }
.hero { display: flex; align-items: center; gap: 32px; margin-top: 24px; }
.hero__text h2 { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.25; max-width: 480px; }
.hero__img { display: none; }
.hero__badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 999px; color: #fff; backdrop-filter: blur(6px); }
.tag--muted { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }

/* ===== LAYOUT ===== */
.layout { max-width: 1240px; margin: 0 auto; padding: 24px; }
.content { min-width: 0; }

/* ===== PROMO BANNER ===== */
.promo {
  position: relative; background: linear-gradient(120deg, #1B0E0F, #3B1114);
  border-radius: var(--radius-lg); padding: 24px 80px;
  display: flex; align-items: center; overflow: hidden; min-height: 180px;
}
.promo__track { display: flex; transition: transform 0.4s ease; width: 100%; }
.promo__slide {
  min-width: 100%; display: flex; align-items: center; gap: 24px; color: #fff; flex-wrap: nowrap;
}
.promo__slide img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.promo__info { flex: 1; min-width: 0; }
.promo__tag { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.promo__desc { font-size: 0.9rem; opacity: 0.9; margin-bottom: 8px; }
.promo__price { font-size: 0.85rem; margin-top: 8px; opacity: 0.85; }
.promo__old { text-decoration: line-through; opacity: 0.6; display: block; }
.promo__price strong { color: var(--gold); font-size: 1.3rem; display: block; margin-top: 2px; }
.promo__off {
  margin-left: auto; background: var(--gold); color: #1a1a1e;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  text-align: center; line-height: 1.1; width: 64px; height: 64px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.promo__cta { flex-shrink: 0; margin-left: 16px; }
.promo__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 2;
}
.promo__arrow--prev { left: 20px; }
.promo__arrow--next { right: 20px; }
.promo__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.promo__dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); transition: all 0.3s ease; cursor: pointer;
}
.promo__dots span.active { background: #fff; width: 20px; border-radius: 3px; }

/* ===== SEARCH ===== */
.search-row { margin-top: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-row__input {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 0.88rem;
}
.search-row__input i { color: var(--ink-soft); font-size: 1.1rem; }
.search-row__input input { border: none; outline: none; background: transparent; flex: 1; font-family: inherit; font-size: 0.88rem; color: var(--ink); }
.search-row__input input::placeholder { color: var(--ink-soft); }
.search-row select { font-family: var(--font-body); }

/* ===== CATEGORIES ===== */
.categories-wrap {
  position: sticky; top: 0; background: var(--bg); z-index: 5; margin-top: 20px;
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
}
.categories {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none; flex: 1; min-width: 0;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.categories::-webkit-scrollbar { display: none; }
.categories-more {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.categories-more:hover { color: var(--accent); border-color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  scroll-snap-align: start; transition: all 0.15s ease;
}
.chip i { font-size: 1rem; }
.chip--active { background: var(--accent-light); color: var(--accent); border-color: var(--accent-light); }

/* ===== SECTIONS ===== */
.section { margin-top: 34px; }
.section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section__head h3 { font-family: var(--font-display); font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.section__flame { color: var(--accent); }
.section__link { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ===== PRODUCT CARDS ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card {
  background: var(--surface); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; cursor: pointer;
}
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__top-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; z-index: 2;
}
.product-card__discount {
  position: absolute; top: 10px; right: 44px;
  background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; z-index: 2;
}
.product-card__fav {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; z-index: 2;
  transition: all 0.15s;
}
.product-card__fav:hover { background: #fff; transform: scale(1.1); }
.product-card__fav.active { color: #ef4444; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.product-card__rating { font-size: 0.75rem; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.product-card__rating i { color: var(--gold); }
.product-card__desc {
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.product-card__price-group { display: flex; flex-direction: column; }
.product-card__old-price { font-size: 0.75rem; text-decoration: line-through; color: var(--ink-soft); }
.product-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.selos-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.selo-badge { font-size: 0.62rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #f0f0f0; color: #555; text-transform: uppercase; letter-spacing: 0.3px; }
.selo-badge--vegetariano { background: #e8f5e9; color: #2e7d32; }
.selo-badge--vegano { background: #e8f5e9; color: #1b5e20; }
.selo-badge--sem_gluten { background: #fff3e0; color: #e65100; }
.selo-badge--sem_lactose { background: #e3f2fd; color: #0d47a1; }
.selo-badge--zero_acucar { background: #fce4ec; color: #c62828; }
.selo-badge--zero_lactose { background: #f3e5f5; color: #6a1b9a; }
.selo-badge--low_carb { background: #fff8e1; color: #f57f17; }
.selo-badge--integral { background: #efebe9; color: #4e342e; }
.selo-badge--apimentado { background: #fbe9e7; color: #bf360c; }
.selo-badge--artesanal { background: #fce4ec; color: #880e4f; }
.selo-badge--premium { background: #fff8e1; color: #b8860b; }

.add-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.add-btn:hover { transform: scale(1.08); }
.add-btn.added { background: var(--green); }

/* ===== COMBO CARDS ===== */
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.combo-card {
  background: var(--surface); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; cursor: pointer;
}
.combo-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.combo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.combo-card__off {
  position: absolute; top: 10px; left: 10px;
  background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px;
}
.combo-card__body {
  padding: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex: 1;
}
.combo-card__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.combo-card__desc {
  font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.combo-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.combo-card__old { font-size: 0.78rem; text-decoration: line-through; color: var(--ink-soft); }
.combo-card__now { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }

/* ===== PRODUCT LIST ===== */
.product-list { display: flex; flex-direction: column; gap: 14px; }
.list-item {
  display: flex; gap: 14px; align-items: center; background: var(--surface);
  border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow); cursor: pointer;
}
.list-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.list-item__rating { font-size: 0.75rem; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.list-item__rating i { color: var(--gold); }
.list-item__desc { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.list-item__action { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0 12px; }
.list-item__old-price { font-size: 0.75rem; text-decoration: line-through; color: var(--ink-soft); }
.list-item__price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-size: 1rem; }

/* ===== UPSELL ===== */
.upsell-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.upsell-row::-webkit-scrollbar { display: none; }
.upsell-card { flex: 0 0 160px; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.upsell-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.upsell-card__body { padding: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.upsell-card__title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.upsell-card__price { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; margin-top: 4px; }

/* ===== SPLIT (About + Reviews) ===== */
.split { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
.about-card, .reviews-card { background: var(--surface); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow); }
.about-card h3, .reviews-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.about-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.about-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.about-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.about-list i { color: var(--green); font-size: 1.1rem; }
.about-photo { margin-top: 14px; border-radius: var(--radius-sm); width: 100%; height: 150px; object-fit: cover; }
.reviews-head { display: flex; justify-content: space-between; align-items: center; }
.reviews-score { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; flex-wrap: wrap; }
.reviews-score__num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.reviews-score__stars i { color: var(--gold); font-size: 1rem; }
.reviews-score__count { font-size: 0.78rem; color: var(--ink-soft); }
.reviews-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.review { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.review__name { font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.review__stars i { color: var(--gold); font-size: 0.75rem; }
.review__time { font-size: 0.72rem; color: var(--ink-soft); font-weight: 400; }
.review__text { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }

/* ===== INFO BAR ===== */
.info-bar {
  margin-top: 34px; background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px;
}
.info-bar > div { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; }
.info-bar i { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.info-bar strong { display: block; font-size: 0.85rem; }
.info-bar span { color: var(--ink-soft); font-size: 0.78rem; }

/* ===== CART BAR ===== */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--accent); color: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,0.2); z-index: 20;
}
.cart-bar__free-shipping { padding: 10px 20px 6px; font-size: 0.75rem; }
.cart-bar__progress { height: 4px; background: rgba(255,255,255,0.3); border-radius: 999px; margin-bottom: 6px; overflow: hidden; }
.cart-bar__progress-fill { height: 100%; background: #fff; width: 0%; transition: width 0.3s ease; }
.cart-bar__main { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 16px; }
.cart-bar__summary { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; }
.cart-bag-icon {
  position: relative; background: rgba(255,255,255,0.2); width: 38px; height: 38px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.cart-count {
  position: absolute; top: -6px; right: -6px; background: #fff; color: var(--accent);
  font-size: 0.7rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-text { display: flex; flex-direction: column; }
.cart-items-count { font-size: 0.8rem; opacity: 0.9; }
.cart-total { font-family: var(--font-display); font-weight: 700; }

/* ===== CART BAR — página de categoria (cv-cart-bar) =====
   Mesma identidade visual do .cart-bar da vitrine; estrutura própria da
   view cardapio/vitrine/categoria.php (__left/__icon/__count/__text/
   __label/__total/__cta). */
.cv-cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--accent); color: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,0.2); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px 14px; text-decoration: none;
}
.cv-cart-bar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cv-cart-bar__icon {
  position: relative; background: rgba(255,255,255,0.2); width: 38px; height: 38px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.cv-cart-bar__count {
  position: absolute; top: -6px; right: -6px; background: #fff; color: var(--accent);
  font-size: 0.7rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cv-cart-bar__text { display: flex; flex-direction: column; min-width: 0; }
.cv-cart-bar__label { font-size: 0.85rem; font-weight: 700; }
.cv-cart-bar__total { font-size: 0.78rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-cart-bar__cta {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}

/* ===== TOAST ===== */
.cv-toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; z-index: 9999; opacity: 0;
  transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.cv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== PRODUCT MODAL — Premium Delivery UX ===== */
@keyframes cvModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cvModalScaleIn { from { opacity: 0; transform: scale(0.92) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes cvModalSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cvFadeScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.cv-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  animation: cvModalFadeIn .2s ease;
  backdrop-filter: blur(2px);
}

/* ── Desktop modal ── */
.cv-modal-dialog {
  background: var(--surface); border-radius: 20px;
  width: 100%; max-width: 1000px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: cvModalScaleIn .28s cubic-bezier(.22,1,.36,1);
  position: relative;
}

/* Mobile header (hidden on desktop) */
.cv-modal-mobile-header {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 5;
}
.cv-modal-mobile-header__back,
.cv-modal-mobile-header__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: none; cursor: pointer; font-size: 1.1rem; color: var(--ink);
}
.cv-modal-mobile-header__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}

/* Two-column content */
.cv-modal-content {
  display: flex; flex: 1; min-height: 0; overflow: hidden;
}

/* ── Left column: Image ── */
.cv-modal-left {
  width: 40%; flex-shrink: 0; display: flex; flex-direction: column;
  background: #f5f5f5; position: relative; overflow: hidden;
}
.cv-modal-main-img-wrap {
  flex: 1; position: relative; overflow: hidden; display: flex;
  align-items: center; justify-content: center; min-height: 300px;
}
.cv-modal-main-img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease;
  cursor: zoom-in;
}
.cv-modal-main-img-wrap:hover .cv-modal-main-img {
  transform: scale(1.08);
}
.cv-modal-close-desktop {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 50%; width: 34px; height: 34px;
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: background .15s, transform .15s, color .15s;
}
.cv-modal-close-desktop:hover { background: var(--accent-light); color: var(--accent); transform: scale(1.08); }

/* Thumbnails */
.cv-modal-thumbs {
  display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto;
  scrollbar-width: none; flex-shrink: 0;
}
.cv-modal-thumbs::-webkit-scrollbar { display: none; }
.cv-modal-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; flex-shrink: 0;
  transition: border-color .15s, opacity .15s; opacity: .65;
}
.cv-modal-thumb.active { border-color: var(--accent); opacity: 1; }
.cv-modal-thumb:hover { opacity: 1; }
.cv-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Right column: Details ── */
.cv-modal-right {
  flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  position: relative;
}
.cv-modal-right-scroll {
  flex: 1; overflow-y: auto; padding: 24px 28px 100px;
  scroll-behavior: smooth;
}
.cv-modal-right-scroll::-webkit-scrollbar { width: 4px; }
.cv-modal-right-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* Product header */
.cv-modal-product-header { margin-bottom: 16px; }
.cv-modal-product-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  line-height: 1.2; margin-bottom: 6px;
}
.cv-modal-product-category {
  font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .3px;
}
.cv-modal-product-rating {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 10px;
}
.cv-modal-product-rating .stars { color: var(--gold); letter-spacing: 1px; }
.cv-modal-product-rating .score { color: var(--ink); font-weight: 700; }
.cv-modal-product-rating .count { color: var(--ink-soft); font-weight: 400; }
.cv-modal-product-desc {
  font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55;
}
.cv-modal-product-price-tag {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--accent);
}

/* ── Modifier groups (Accordions) ── */
.cv-modal-group {
  border-top: 1px solid var(--line); padding: 0;
}
.cv-modal-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer; user-select: none;
  transition: background .15s;
}
.cv-modal-group-header:hover { background: rgba(0,0,0,.015); }
.cv-modal-group-title {
  font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 6px;
}
.cv-modal-group-title .required {
  color: var(--accent); font-size: 0.85rem;
}
.cv-modal-group-badge {
  font-size: 0.68rem; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: var(--accent-light); color: var(--accent);
}
.cv-modal-group-badge--optional { background: var(--bg); color: var(--ink-soft); }
.cv-modal-group-chevron {
  color: var(--ink-soft); transition: transform .25s ease; font-size: 1.1rem;
  flex-shrink: 0; margin-left: 8px;
}
.cv-modal-group.open .cv-modal-group-chevron { transform: rotate(180deg); }
.cv-modal-group-body {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.cv-modal-group.open .cv-modal-group-body { max-height: 600px; }
.cv-modal-group-body-inner { padding: 0 0 12px; }
.cv-modal-group-hint {
  font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px;
}

/* Validation error */
.cv-modal-group.error .cv-modal-group-title { color: var(--accent); }
.cv-modal-group.error { background: rgba(232,56,74,.03); }
.cv-modal-group-error-msg {
  display: none; font-size: 0.78rem; color: var(--accent); font-weight: 500;
  padding: 4px 0 4px 2px;
}
.cv-modal-group.error .cv-modal-group-error-msg { display: block; }

/* ── Radio / Checkbox items ── */
.cv-mod-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; cursor: pointer; border-radius: 12px;
  transition: border-color .15s, background .15s;
  border: 1.5px solid var(--line); gap: 10px;
}
.cv-mod-option:hover { border-color: #d8d8dc; }
.cv-mod-option.selected { background: var(--accent-light); border-color: var(--accent); }
.cv-mod-option.disabled { opacity: .4; pointer-events: none; cursor: not-allowed; }
.cv-mod-option__left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

/* Custom radio */
.cv-mod-radio {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid #C9C9CF; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.cv-mod-option.selected .cv-mod-radio { border-color: var(--accent); }
.cv-mod-option.selected .cv-mod-radio::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}

/* Custom checkbox */
.cv-mod-checkbox {
  width: 19px; height: 19px; border-radius: 5px;
  border: 2px solid #C9C9CF; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.cv-mod-option.selected .cv-mod-checkbox {
  border-color: var(--accent); background: var(--accent);
}
.cv-mod-option.selected .cv-mod-checkbox::after {
  content: '\2713'; color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}

.cv-mod-option__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cv-mod-option__price {
  font-size: 13.5px; font-weight: 700; color: var(--green); white-space: nowrap; flex-shrink: 0;
}
.cv-mod-option__price--free { color: var(--ink-soft); font-weight: 600; }

/* ── Observation textarea ── */
.cv-modal-obs-wrap { padding: 0 0 12px; }
.cv-modal-textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 0.85rem; font-family: var(--font-body); color: var(--ink);
  resize: none; min-height: 80px; outline: none; transition: border-color .15s;
}
.cv-modal-textarea:focus { border-color: var(--accent); }
.cv-modal-textarea::placeholder { color: #bbb; }
.cv-modal-obs-counter {
  text-align: right; font-size: 0.72rem; color: var(--ink-soft); margin-top: 4px;
}

/* ── Fixed bottom bar ── */
.cv-modal-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; z-index: 5;
}
.cv-modal-qty-group {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.cv-modal-qty-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 1.2rem; color: var(--accent);
  cursor: pointer; transition: background .12s;
}
.cv-modal-qty-btn:hover { background: var(--accent-light); }
.cv-modal-qty-btn:active { background: var(--line); }
.cv-modal-qty-val {
  font-size: 1rem; font-weight: 800; min-width: 32px; text-align: center;
  font-family: var(--font-display);
}
.cv-modal-total-price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink);
  white-space: nowrap; transition: transform .15s ease, color .15s ease;
}
.cv-modal-total-price.pulse {
  transform: scale(1.08); color: var(--accent);
}
.cv-modal-add-btn {
  background: var(--accent); color: #fff;
  border: none; border-radius: 14px; padding: 14px 28px;
  font-size: 0.92rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(232,56,74,.3);
  flex-shrink: 0;
}
.cv-modal-add-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,56,74,.4); }
.cv-modal-add-btn:active { transform: translateY(0); }

/* ── Peso (weight) control inside modal ── */
.cv-modal-peso-group {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
}
.cv-modal-peso-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.cv-modal-peso-input {
  width: 100px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-weight: 600; text-align: center; outline: none;
  font-family: var(--font-body); transition: border-color .15s;
}
.cv-modal-peso-input:focus { border-color: var(--accent); }
.cv-modal-peso-unit { font-size: 0.82rem; color: var(--ink-soft); }

/* ═══ RESPONSIVE — Mobile Bottom Sheet ═══ */
@media (max-width: 768px) {
  .cv-modal-overlay {
    align-items: flex-end; justify-content: center;
    animation: none;
  }
  .cv-modal-dialog {
    max-width: 100%; max-height: 95vh;
    border-radius: 20px 20px 0 0;
    animation: cvModalSlideUp .3s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.2);
  }
  .cv-modal-mobile-header { display: flex; }
  .cv-modal-content { flex-direction: column; }
  .cv-modal-left { width: 100%; max-height: 280px; }
  .cv-modal-main-img-wrap { min-height: 200px; max-height: 240px; }
  .cv-modal-thumbs { padding: 8px 12px; }
  .cv-modal-thumb { width: 48px; height: 48px; }
  .cv-modal-right-scroll { padding: 16px 16px 120px; }
  .cv-modal-product-name { font-size: 1.2rem; }
  .cv-modal-bottom-bar { padding: 12px 16px; }
  .cv-modal-add-btn { padding: 14px 20px; font-size: 0.88rem; }
  .cv-modal-total-price { font-size: 1.1rem; }
  .cv-modal-close-desktop { display: none; }
  .cv-mod-option { padding: 10px 12px; }
}

/* ── Zoom overlay (desktop) ── */
.cv-modal-zoom-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.85); align-items: center; justify-content: center;
  cursor: zoom-out; backdrop-filter: blur(4px);
}
.cv-modal-zoom-overlay.active { display: flex; }
.cv-modal-zoom-overlay img {
  max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px;
  animation: cvFadeScale .2s ease;
}

/* ===== FEEDBACK MODAL ===== */
.cv-feedback-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
}
.cv-feedback-sheet {
  background: var(--surface); border-radius: 20px;
  padding: 32px 24px 24px; text-align: center;
  width: 90%; max-width: 380px; animation: fadeScale .2s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.cv-feedback-check {
  width: 64px; height: 64px; background: var(--green);
  border-radius: 50%; color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cv-feedback-sheet h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.cv-feedback-sheet p { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }

/* ===== CLOSED OVERLAY ===== */
.cv-closed { text-align: center; padding: 80px 20px; }
.cv-closed__icon { font-size: 4rem; margin-bottom: 20px; }
.cv-closed h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.cv-closed p { font-size: 0.92rem; color: var(--ink-soft); max-width: 360px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .combo-grid { grid-template-columns: repeat(2, 1fr); }
  .info-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
  .header { min-height: auto; }
  .header__inner { padding: 0; }
  .header__bg { position: relative; height: 200px; }
  .header__bg-img { height: 200px; }
  .header__bg-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,10,10,0.92) 0%, rgba(30,15,15,0.85) 40%, rgba(30,15,15,0.4) 70%, rgba(30,15,15,0.1) 100%); }
  .header__top { padding: 0 16px 12px; flex-direction: column; gap: 12px; background: var(--surface); margin: 0; border-radius: 0; color: var(--ink); }
  .header__actions { width: 100%; flex-wrap: wrap; gap: 6px; }
  .header__actions .btn { font-size: 0.75rem; padding: 7px 10px; flex: 1; justify-content: center; }
  .header__actions .btn--outline-dark { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .header__actions .btn--outline-dark:hover { border-color: var(--accent); color: var(--accent); }
  .header__meta { padding: 0 16px 10px; background: var(--surface); margin-top: 0; font-size: 0.8rem; color: var(--ink); }
  .header__categories-top { padding: 0 16px 12px; background: var(--surface); margin-top: 0; font-size: 0.8rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
  .hero { display: none; }
  .promo { padding: 14px 40px; margin: 16px; border-radius: var(--radius-md); min-height: 140px; }
  .promo__slide img { width: 80px; height: 80px; }
  .promo__tag { font-size: 0.95rem; }
  .promo__price strong { font-size: 1.1rem; }
  .promo__off { width: 50px; height: 50px; font-size: 0.75rem; }
  .search-row { padding: 0 16px; flex-direction: column; gap: 8px; }
  .search-row__input { min-width: 0; }
  .search-row .btn { justify-content: center; }
  .categories-wrap { padding: 10px 16px; }
  .categories { gap: 8px; }
  .chip { padding: 8px 14px; font-size: 0.8rem; }
  .layout { padding: 12px 16px; }
  .section { margin-top: 24px; }
  .section__head h3 { font-size: 1.05rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card__body { padding: 12px; gap: 4px; }
  .product-card__title { font-size: 0.85rem; }
  .product-card__desc { font-size: 0.75rem; }
  .product-card__price { font-size: 0.95rem; }
  .combo-grid { grid-template-columns: 1fr; }
  .combo-card__body { padding: 12px; }
  .list-item { padding: 10px; gap: 10px; }
  .list-item img { width: 70px; height: 70px; }
  .list-item__title { font-size: 0.88rem; }
  .list-item__desc { font-size: 0.72rem; }
  .list-item__price { font-size: 0.9rem; margin: 0 8px; }
  .upsell-card { flex: 0 0 140px; }
  .split { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .about-card, .reviews-card { padding: 16px; }
  .info-bar { grid-template-columns: 1fr; gap: 12px; padding: 16px; margin-top: 24px; }
  .info-bar > div { font-size: 0.78rem; }
  .info-bar i { font-size: 1.2rem; }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1.3fr 1fr; }
}

/* ===== CHECKOUT STEPPER ===== */
.cv-stepper {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 16px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none;
}
.cv-stepper::-webkit-scrollbar { display: none; }
.cv-stepper__item { display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.cv-stepper__icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.cv-stepper__label { font-size: 12px; font-weight: 600; }
.cv-stepper__separator { margin: 0 8px; color: var(--ink-soft); font-size: 14px; flex-shrink: 0; }
.cv-stepper__item--pending .cv-stepper__icon { background: var(--bg); color: var(--ink-soft); border: 1.5px solid var(--line); }
.cv-stepper__item--pending .cv-stepper__label { color: var(--ink-soft); }
.cv-stepper__item--active .cv-stepper__icon { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.cv-stepper__item--active .cv-stepper__label { color: var(--accent); font-weight: 700; }
.cv-stepper__item--done .cv-stepper__icon { background: var(--green); color: #fff; border: 1.5px solid var(--green); }
.cv-stepper__item--done .cv-stepper__label { color: var(--green); }

/* ===== Flash Messages ===== */
.prem-flash {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; z-index: 9999; max-width: 90vw;
}
.prem-flash--success { background: #e6f7e9; color: #166534; border: 1px solid #bbf7d0; }
.prem-flash--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
