/* ═══════════════════════════════════════════════════
   DIGISHOP v7 — Static Edition (cPanel ready)
   Diseño moderno · Sin Node.js · Directo a Pagaya
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #f0f2f5;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 64px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, button, select, textarea { font-family: inherit; outline: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ───────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-row {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.header-logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.logo-dot { color: #ff4b4b; font-size: 24px; }
.logo-green { color: #2d6a4f; }

/* ─── Search Bar ─────────────────────────────── */
.header-search {
  flex: 1; max-width: 480px; position: relative;
  display: none;
}
.header-search.open { display: block; }
@media (min-width: 768px) {
  .header-search { display: block; }
  .search-toggle { display: none !important; }
}
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: #999;
  transition: color 0.2s;
}
.header-search:focus-within .search-icon { color: #ff4b4b; }
.header-search input {
  width: 100%; height: 42px;
  padding: 0 44px 0 42px;
  border: 2px solid #e8e8ec;
  border-radius: 12px;
  font-size: 14px;
  background: #f5f6f8;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  caret-color: #ff4b4b;
}
.header-search input::placeholder {
  color: #b0b0b8;
  font-weight: 400;
}
.header-search input:focus {
  border-color: #ff4b4b;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,75,75,0.1);
}
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 18px; color: #999; cursor: pointer;
  display: none; width: 28px; height: 28px; border-radius: 50%;
  align-items: center; justify-content: center;
  transition: all 0.2s;
}
.search-clear.show { display: flex; }
.search-clear:hover { background: #eee; color: #333; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-icon-btn {
  width: 38px; height: 38px; border: none; background: transparent;
  border-radius: 10px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #555;
  transition: all 0.2s; position: relative;
}
.header-icon-btn:hover { background: #f0f0f3; color: #1a1a2e; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: #ff4b4b; color: #fff; font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Navigation */
.header-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0;
  display: none;
}
@media (min-width: 768px) {
  .header-nav { display: block; }
}
.nav-list {
  display: flex; gap: 4px; height: 44px; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: #666; border-radius: 8px; white-space: nowrap;
  transition: all 0.2s;
}
.nav-list a:hover { background: #f0f0f3; color: #1a1a2e; }
.nav-list a.nav-active {
  background: #ff4b4b; color: #fff; font-weight: 600;
}

/* ─── Mobile Search overlay ────────────────── */
@media (max-width: 767px) {
  .header-search {
    position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; padding: 12px 16px 16px;
    border-bottom: 1px solid #eee;
    display: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .header-search.open { display: block !important; }
  .header-search input { height: 44px; font-size: 16px; }
}

/* ─── Mobile Menu ────────────────────────────── */
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: #333; border-radius: 2px; transition: 0.3s; }
@media (max-width: 767px) {
  .mobile-menu-btn { display: flex; }
}

/* ─── Hero ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 48px 0 36px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,75,75,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(45,106,79,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(26px, 5vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.hero p { font-size: 15px; color: rgba(255,255,255,0.65); margin-top: 6px; }

/* Hero category pills */
.hero-cats {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px;
}
.hero-cat {
  padding: 8px 20px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
  white-space: nowrap;
  text-decoration: none;
}
.hero-cat:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.hero-cat:active { transform: scale(0.96); }
.hero-cat.nav-active {
  color: #fff;
  background: #ff4b4b;
  border-color: #ff4b4b;
  box-shadow: 0 4px 16px rgba(255,75,75,0.3);
}
.hero-cat.jbl-cat {
  border-color: rgba(255,75,75,0.4);
  color: #ff6b6b;
  font-weight: 700;
}
.hero-cat.jbl-cat.nav-active {
  background: #ff4b4b;
  color: #fff;
}

/* ═══ FEATURED CAROUSEL ═══════════════════════════ */
.featured-section {
  margin-bottom: 28px;
}
.featured-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.featured-title {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #ff4b4b, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.featured-nav {
  display: flex; gap: 8px;
}
.feat-nav-btn {
  width: 36px; height: 36px; border: 1.5px solid #e0e0e5;
  background: #fff; border-radius: 50%; cursor: pointer;
  font-size: 20px; color: #555;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.feat-nav-btn:hover {
  border-color: #ff4b4b; color: #ff4b4b;
  background: #fff5f5;
}
.feat-nav-btn:active { transform: scale(0.92); }

/* Full-width carousel — one product at a time */
.featured-carousel {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.featured-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.feat-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  min-height: 280px;
  cursor: pointer;
}
.feat-slide:hover .feat-img-wrap img { transform: scale(1.05); }
.feat-img-wrap {
  flex: 0 0 45%;
  background: #fafbfc;
  height: 280px;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  position: relative;
}
.feat-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.feat-disc {
  position: absolute; top: 12px; left: 12px;
  background: #ff4b4b; color: #fff;
  padding: 4px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
}
.feat-body {
  flex: 1;
  padding: 28px 32px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.feat-badge {
  display: inline-block;
  background: #fef0f0; color: #ff4b4b;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}
.feat-name {
  font-size: 22px; font-weight: 700; color: #1a1a2e;
  line-height: 1.3;
}
.feat-spec {
  font-size: 14px; color: #777;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 4px;
}
.feat-price {
  font-size: 28px; font-weight: 800; color: #ff4b4b;
}
.feat-old-price {
  font-size: 16px; color: #bbb;
  text-decoration: line-through;
}
.feat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
  padding: 12px 24px;
  background: #ff4b4b; color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}
.feat-btn:hover {
  background: #e63939;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,75,75,0.3);
}
.feat-btn:active { transform: scale(0.97); }
.feat-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 14px 0 18px;
}
.feat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ddd; cursor: pointer;
  transition: all 0.3s;
}
.feat-dot.active {
  background: #ff4b4b;
  width: 24px; border-radius: 4px;
}

@media (max-width: 767px) {
  .featured-title { font-size: 18px; }
  .feat-slide {
    flex-direction: column;
    min-height: auto;
  }
  .feat-img-wrap {
    flex: none;
    height: 200px;
    width: 100%;
    padding: 20px;
  }
  .feat-body {
    padding: 16px 20px 20px;
    gap: 6px;
  }
  .feat-name { font-size: 18px; }
  .feat-price { font-size: 22px; }
  .feat-btn { width: 100%; justify-content: center; }
  .feat-img-wrap { height: 180px; } /* reduce height */
}

/* ─── QV Slide Description ───────────────────── */
.qv-slide-desc {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 40px 16px 14px;
  text-align: center;
  pointer-events: none;
}
.qv-slide-desc p {
  font-size: 13px; line-height: 1.4; margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.qv-slide-num {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px; opacity: 0.6;
  background: rgba(0,0,0,0.3);
  padding: 2px 8px; border-radius: 10px;
}

/* ─── Filters Bar ───────────────────────────────── */
.filters-bar {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  border-radius: 20px; border: 1.5px solid #e0e0e5;
  background: #fff; color: #555; cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: #ff4b4b; color: #ff4b4b;
  transform: translateY(-1px);
}
.filter-chip:active { transform: scale(0.96); }
.filter-chip.active {
  background: #ff4b4b; border-color: #ff4b4b; color: #fff;
}
.filter-chip.jbl-chip {
  border-color: #ff4b4b; color: #ff4b4b; font-weight: 600;
}

/* ─── Product Grid ────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ─── Product Card ─────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,75,75,0.03), transparent);
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(255,75,75,0.12);
}
.product-card:hover::after { opacity: 1; }
.product-card-img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: contain; padding: 20px;
  background: #fafbfc;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-img { transform: scale(1.06); }
.product-card-body { padding: 14px 16px 16px; }
.product-card-name {
  font-size: 14px; font-weight: 600; color: #1a1a2e;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; min-height: 39px;
}
.product-card-spec {
  font-size: 12px; color: #999; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-price {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
}
.product-card-price .current {
  font-size: 20px; font-weight: 800; color: #1a1a2e;
}
.product-card-price .orig {
  font-size: 13px; color: #999; text-decoration: line-through;
}
.product-card-price .discount {
  font-size: 11px; font-weight: 700; color: #fff;
  background: #ff4b4b; padding: 2px 8px; border-radius: 6px;
}
.product-card-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.product-card-actions .btn {
  flex: 1; font-size: 12px; padding: 10px;
}
.btn-buy {
  background: #ff4b4b; color: #fff; border: none;
  border-radius: 10px; cursor: pointer; font-weight: 600;
  transition: all 0.2s;
  position: relative; overflow: hidden;
}
.btn-buy:hover { background: #e63939; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,75,75,0.25); }
.btn-buy:active { transform: scale(0.97); }
.btn-cart-add {
  background: #f0f0f5; color: #1a1a2e; border: none;
  border-radius: 10px; cursor: pointer; font-weight: 600;
  transition: all 0.2s;
}
.btn-cart-add:hover { background: #e0e0e8; transform: translateY(-1px); }
.product-card-stock {
  font-size: 11px; color: #2d6a4f; margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}

/* ─── Quick View Modal ──────────────────────────── */
.qv-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.qv-overlay.open { opacity: 1; pointer-events: auto; }
.qv-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.95);
  z-index: 2001; max-width: 800px; width: 92%; max-height: 90vh;
  background: #fff; border-radius: 20px; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.qv-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.qv-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 36px; height: 36px; border: none; background: #f0f0f3;
  border-radius: 50%; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qv-close:hover { background: #e0e0e5; transform: rotate(90deg); }
.qv-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
@media (max-width: 640px) {
  .qv-content { grid-template-columns: 1fr; }
}
.qv-image {
  background: #fafbfc; display: flex; align-items: center;
  justify-content: center; padding: 32px; min-height: 300px;
}
.qv-image img { max-width: 100%; max-height: 350px; object-fit: contain; }
.qv-info { padding: 28px; }
.qv-category {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: #ff4b4b; margin-bottom: 6px;
}
.qv-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.qv-spec { font-size: 14px; color: #888; margin-top: 6px; }
.qv-price {
  display: flex; align-items: center; gap: 10px; margin: 16px 0;
}
.qv-price .current { font-size: 28px; font-weight: 800; }
.qv-price .orig { font-size: 16px; color: #999; text-decoration: line-through; }
.qv-price .discount { font-size: 12px; background: #ff4b4b; color: #fff; padding: 3px 10px; border-radius: 6px; font-weight: 700; }
.qv-sku { font-size: 12px; color: #aaa; margin-bottom: 12px; }
.qv-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.qv-actions .btn { flex: 1; min-width: 140px; }
.qv-stock { font-size: 13px; color: #2d6a4f; margin-top: 10px; }

/* ─── Cart Modal ────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-modal {
  position: fixed; top: 0; right: -420px; z-index: 3001;
  width: 400px; max-width: 100vw; height: 100vh;
  background: #fff; overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -4px 0 40px rgba(0,0,0,0.1);
}
.cart-modal.open {
  right: 0;
}
.cart-modal::-webkit-scrollbar { width: 4px; }
.cart-modal::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f3;
}
.cart-header h2 { font-size: 18px; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px; border: none; background: #f0f0f3;
  border-radius: 50%; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #666; line-height: 1;
  transition: all 0.2s;
}
.cart-close:hover { background: #ff4b4b; color: #fff; transform: rotate(90deg); }
.cart-items { padding: 16px 24px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f5f5f8;
}
.cart-item-img {
  width: 60px; height: 60px; object-fit: contain;
  background: #fafbfc; border-radius: 10px; padding: 6px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-sku { font-size: 11px; color: #aaa; }
.cart-item-price { font-size: 14px; font-weight: 700; margin-top: 4px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.cart-item-qty button {
  width: 26px; height: 26px; border: 1.5px solid #e0e0e5;
  border-radius: 6px; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty button:hover { background: #f5f5f8; border-color: #ccc; }
.cart-item-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-empty {
  text-align: center; padding: 60px 20px; color: #999;
}
.cart-empty svg { width: 48px; height: 48px; stroke: #ddd; margin-bottom: 12px; }
.cart-footer {
  border-top: 1px solid #f0f0f3; padding: 20px 24px;
  position: sticky; bottom: 0; background: #fff;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cart-total span:first-child { font-size: 14px; color: #666; }
.cart-total span:last-child { font-size: 22px; font-weight: 800; }
.cart-checkout-btn {
  width: 100%; padding: 14px; border: none;
  background: linear-gradient(135deg, #ff4b4b, #cc0000);
  color: #fff; font-size: 15px; font-weight: 700; border-radius: 12px;
  cursor: pointer; transition: all 0.2s;
}
.cart-checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,75,75,0.3); }

/* ─── QR Modal ──────────────────────────────────── */
.qr-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.qr-overlay.open { opacity: 1; pointer-events: auto; }
.qr-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.95);
  z-index: 4001; max-width: 480px; width: 92%;
  background: #fff; border-radius: 20px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.qr-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.qr-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 32px; height: 32px; border: none; background: #f0f0f3;
  border-radius: 50%; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qr-close:hover { background: #e0e0e5; transform: rotate(90deg); }
.qr-header {
  text-align: center; padding: 24px 20px 0;
}
.qr-header-icon { font-size: 32px; margin-bottom: 4px; }
.qr-header h3 { font-size: 18px; font-weight: 700; }
.qr-content {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px; gap: 16px;
}
.qr-left {
  display: flex; flex-direction: column; align-items: center;
}
#qrContainer {
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px;
  border: 2px solid #f0f0f3; padding: 8px;
}
#qrContainer img { max-width: 100%; max-height: 100%; }
.qr-hint { font-size: 12px; color: #999; margin-top: 8px; text-align: center; }
.qr-right { width: 100%; }
.qr-detail {
  background: #f8f9fa; border-radius: 12px; padding: 16px;
}
.qr-detail-item {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 13px;
}
.qr-detail-label { color: #888; }
.qr-detail-value { font-weight: 600; text-align: right; }
.qr-amount-big { font-size: 24px; font-weight: 800; color: #ff4b4b; }
#qrSpinner { text-align: center; padding: 12px; }
#qrSpinner .qr-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid #f0f0f3; border-top-color: #ff4b4b;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.qr-status-msg { text-align: center; font-size: 12px; color: #666; min-height: 18px; }
.qr-footer-actions {
  display: flex; gap: 8px; padding: 0 20px 20px;
}
.qr-footer-actions .qr-btn {
  flex: 1; padding: 12px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.qr-btn-primary { background: #ff4b4b; color: #fff; }
.qr-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,75,75,0.3); }
.qr-btn-secondary { background: #f0f0f5; color: #1a1a2e; }
.qr-btn-secondary:hover { background: #e5e5ea; }

/* ─── WhatsApp Button ──────────────────────────── */
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 12px 24px;
  background: #25D366; color: #fff;
  border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 15px;
  transition: all 0.2s; border: none; cursor: pointer;
}
.wa-btn:hover { background: #1ebe5a; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.wa-icon { width: 20px; height: 20px; fill: #fff; }

/* ─── Payment Confirmed ────────────────────────── */
.payment-confirmed { text-align: center; padding: 10px 0; }
.payment-check { font-size: 52px; margin-bottom: 6px; }
.payment-title { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.payment-pedido { font-size: 13px; color: #888; margin-top: 2px; }

/* ─── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 9999; background: #1a1a2e; color: #fff;
  padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-icon { font-size: 18px; }

/* ─── Cart badge pulse ─────────────────────────── */
@keyframes badgePulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.5); }
  50% { transform: scale(0.85); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cart-badge.pulse {
  animation: badgePulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Cart item right (price + remove) ───────── */
.cart-item-right {
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; min-width: 80px;
}
.ci-total {
  font-size: 16px; font-weight: 700; color: #1a1a2e;
  white-space: nowrap;
}
.ci-remove {
  width: 28px; height: 28px; border: none;
  background: #f0f0f3; border-radius: 50%;
  cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #999; transition: all 0.2s;
}
.ci-remove:hover { background: #ff4b4b; color: #fff; }

/* ─── Cart item qty disabled ───────────────── */
.cart-item-qty button:disabled {
  opacity: 0.3; cursor: not-allowed;
}

/* ─── Cart item slide-in ───────────────────────── */
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-item {
  animation: cartItemIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ─── Product card entrance ───────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.product-card {
  animation: cardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.product-card:nth-child(1) { animation-delay: 0.02s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.08s; }
.product-card:nth-child(4) { animation-delay: 0.11s; }
.product-card:nth-child(5) { animation-delay: 0.14s; }
.product-card:nth-child(6) { animation-delay: 0.17s; }
.product-card:nth-child(7) { animation-delay: 0.20s; }
.product-card:nth-child(8) { animation-delay: 0.23s; }
.product-card:nth-child(9) { animation-delay: 0.26s; }
.product-card:nth-child(10) { animation-delay: 0.28s; }

/* ─── Add to cart click ripple ────────────────── */
@keyframes addRipple {
  0% { box-shadow: 0 0 0 0 rgba(255,75,75,0.4); }
  100% { box-shadow: 0 0 0 12px rgba(255,75,75,0); }
}
.btn-buy:active {
  animation: addRipple 0.4s ease-out;
}

/* ─── Payment confirmed checkmark ─────────────── */
@keyframes checkDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes checkBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}
.payment-check-anim svg {
  width: 64px; height: 64px;
  animation: checkBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.payment-check-anim svg polyline {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: checkDraw 0.4s ease-out 0.15s forwards;
}

/* ─── Confetti ───────────────────────────────── */
.confetti-piece {
  position: fixed; width: 8px; height: 8px; border-radius: 2px;
  z-index: 99999; pointer-events: none;
}

/* Remove duplicate mobile search media query — already defined above */

/* ─── Empty state ───────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px; color: #999;
  grid-column: 1 / -1;
}
.empty-state svg { width: 56px; height: 56px; stroke: #ddd; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 639px) {
  body { padding-top: 60px; }
  .header-row { height: 60px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: 12px; }
  .product-card-img { padding: 12px; }
  .product-card-body { padding: 10px 12px 12px; }
  .product-card-name { font-size: 13px; min-height: 34px; }
  .product-card-price .current { font-size: 17px; }
  .product-card-actions { flex-direction: column; gap: 6px; }
  .qv-content { grid-template-columns: 1fr; }
  .qv-image { min-height: 200px; padding: 20px; }
  .qv-info { padding: 20px; }
  .qv-title { font-size: 18px; }
  .qv-price .current { font-size: 22px; }
  .cart-modal { width: 100vw; }
  .qr-modal { max-width: 100vw; border-radius: 16px; }
  #qrContainer { width: 180px; height: 180px; }
  .hero { padding: 32px 16px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
