/* ══════════════════════════════════════════
   TABACOUDON — Style public
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Age Gate ─────────────────────────── */
.age-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,20,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-gate-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: agePop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes agePop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.age-gate-hide { animation: ageFade .4s ease forwards; }
@keyframes ageFade {
  to { opacity: 0; transform: scale(.95); }
}
.age-gate-logo  { font-size: 52px; margin-bottom: 6px; }
.age-gate-brand { font-size: 22px; font-weight: 900; color: #1a1a2e; margin-bottom: 4px; }
.age-gate-title { font-size: 13px; font-weight: 700; color: #e94560; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.age-gate-text  { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 16px; }
.age-gate-question { font-size: 20px; color: #1a1a2e; margin-bottom: 24px; }
.age-gate-btns  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.age-gate-yes {
  padding: 14px 20px;
  background: #1a1a2e;
  color: #fff;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.age-gate-yes:hover { background: #2d2d4e; }
.age-gate-no {
  padding: 13px 20px;
  background: #fff;
  color: #e94560;
  border: 2px solid #e94560; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.age-gate-no:hover { background: #fff5f5; }
.age-gate-legal { font-size: 11px; color: #bbb; line-height: 1.5; }

:root {
  --primary:   #1a1a2e;
  --accent:    #e94560;
  --green:     #00C896;
  --bg:        #f5f6fa;
  --card:      #ffffff;
  --text:      #1a1a2e;
  --muted:     #888;
  --border:    #e8e8e8;
  --tabac:     #8B6914;
  --gourmand:  #E67E22;
  --fruite:    #E74C3C;
  --fresh:     #2ECC71;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── Header ───────────────────────────────── */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 32px; }
.logo-name  { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.logo-tag   { font-size: 12px; color: rgba(255,255,255,.55); }

.btn-print {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-print:hover  { background: #00a87e; }
.btn-print:active { transform: scale(.97); }

/* ── Category Nav ──────────────────────────── */
/* ── Search bar ── */
.search-wrap {
  max-width: 1300px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 30px;
  padding: 0 16px;
  gap: 10px;
  transition: border-color .2s;
}
.search-box:focus-within {
  border-color: var(--accent, #e94560);
}
.search-icon { font-size: 16px; opacity: .5; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 12px 0;
  background: transparent;
  color: #1a1a2e;
}
.search-box input::placeholder { color: #aaa; }
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #aaa;
  padding: 4px;
  display: flex;
  align-items: center;
}
.search-clear:hover { color: #555; }

.cat-nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 24px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 9px 20px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
}
.cat-btn:hover  { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Catalog Main ──────────────────────────── */
.catalog-main {
  max-width: 1300px;
  margin: 24px auto 60px;
  padding: 0 24px;
}

/* ── Loading ───────────────────────────────── */
.loading-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.spinner {
  width: 44px; height: 44px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
}

/* ── Product Grid ──────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Product Card ──────────────────────────── */
.product-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* Category color stripe on top */
.product-card::before {
  content: '';
  height: 4px;
  display: block;
}
.product-card.cat-tabac::before    { background: var(--tabac); }
.product-card.cat-gourmand::before { background: var(--gourmand); }
.product-card.cat-fruite::before   { background: var(--fruite); }
.product-card.cat-fresh::before    { background: var(--fresh); }

.card-img {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-shrink: 0;
}
.card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card-img .no-img { font-size: 72px; opacity: .25; }

.card-body {
  padding: 14px 16px 0;
  flex: 1;
}

.card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 5px;
}
.cat-tabac    .card-cat { color: var(--tabac); }
.cat-gourmand .card-cat { color: var(--gourmand); }
.cat-fruite   .card-cat { color: var(--fruite); }
.cat-fresh    .card-cat { color: var(--fresh); }

.card-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-flavor {
  font-size: 13px;
  color: var(--muted);
}

.card-desc {
  font-size: 12.5px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.card-footer {
  padding: 12px 16px 16px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
}
.card-price small {
  font-size: 14px;
  font-weight: 600;
}

.card-badge {
  font-size: 11px;
  background: #f0f0f0;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   TRADING CARD — Premium Design
══════════════════════════════════════════ */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* ── Outer card shell ── */
.tc-card {
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  perspective: 900px;
  background: transparent;
  box-shadow: none;
  height: 430px;
}
.tc-card-inner,
.tc-card-front,
.tc-frame {
  height: 100%;
}

/* ── Flip inner ── */
.tc-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .38s cubic-bezier(.4,.2,.2,1);
  border-radius: 18px;
  box-shadow:
    0 6px 24px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 32px -8px var(--cc, #e94560);
}
.tc-card:not(.flipping):hover .tc-card-inner {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 20px 50px rgba(0,0,0,.25),
    0 0 40px -4px var(--cc, #e94560);
}
.tc-card:not(.flipping):active .tc-card-inner { transform: scale(.96); }
.tc-card.flipping .tc-card-inner {
  transform: rotateY(180deg) scale(.9);
}

/* ── Front face ── */
.tc-card-front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  padding: 5px;
  background: var(--cc, #e94560);
}

/* ── Back face ── */
.tc-card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.tc-back-img {
  width: 90px; height: 90px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  padding: 6px;
  margin-bottom: 10px;
}
.tc-back-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .75;
  margin-bottom: 6px;
}
.tc-back-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.tc-back-tags {
  display: flex; flex-wrap: wrap;
  gap: 4px; justify-content: center;
  margin-bottom: 8px;
}
.tc-back-tag {
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}
.tc-back-desc {
  font-size: 11px;
  opacity: .85;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 10px;
  max-height: 54px;
  overflow: hidden;
}
.tc-back-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 8px;
}
.tc-back-chip {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
}
.tc-back-price {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.tc-back-actions {
  display: flex; gap: 8px;
}
.tc-back-btn {
  background: #fff;
  color: #1a1a2e;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.tc-back-btn:active { transform: scale(.95); opacity: .85; }
.tc-back-close {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.tc-back-close:active { background: rgba(255,255,255,.35); }

/* ── Inner white card ── */
.tc-frame {
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

/* ── Category header ── */
.tc-header {
  background: var(--cc, #e94560);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  border-radius: 13px 13px 0 0;
}

/* ── Image zone ── */
.tc-img-wrap {
  background: #fff;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  margin: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.tc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .3s ease;
}
.tc-card:hover .tc-img-wrap img {
  transform: scale(1.06) translateY(-3px);
}
.tc-no-img { font-size: 64px; opacity: .15; }

/* ── Name + price dark bar ── */
.tc-namebar {
  background: linear-gradient(135deg, var(--cc, #e94560), #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  gap: 8px;
  border-radius: 10px;
  margin: 0 6px 6px;
  height: 64px;
  flex-shrink: 0;
}
.tc-name {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  flex: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-price {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  background: rgba(0,0,0,.25);
  padding: 3px 9px;
  border-radius: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ── Bottom info box ── */
.tc-bottom {
  margin: 0 6px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0f0f0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Flavor chips ── */
.tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid #f0f0f0;
  flex: 1;
  align-content: flex-start;
  overflow: hidden;
}
.tc-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: .3px;
}

/* ── Size label ── */
.tc-size-wrap {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.tc-size {
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════
   DETAIL OVERLAY — centred floating card
══════════════════════════════════════════ */
#detailOverlay {
  position: fixed; inset: 0;
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

.dt-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dt-panel {
  position: relative;
  width: 100%; max-width: 420px;
  background: white;
  border-radius: 24px;
  max-height: 88vh;
  overflow-y: auto;
  transform: scale(.3) rotateY(-90deg);
  opacity: 0;
  transition: transform .38s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.dt-panel.dt-in  { transform: scale(1) rotateY(0deg); opacity: 1; }
.dt-panel.dt-out { transform: scale(.3) rotateY(90deg); opacity: 0; transition-duration: .22s; }

/* Header coloré */
.dt-header {
  position: relative;
  padding: 24px 20px 20px;
  display: flex; flex-direction: column; align-items: center;
  color: white;
}
.dt-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.2); border: none;
  border-radius: 50%; color: white; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.dt-img {
  width: 130px; height: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2), inset 0 0 0 1px rgba(0,0,0,.05);
  animation: dtFloat 3s ease-in-out infinite;
  margin-bottom: 10px;
  overflow: hidden;
}
@keyframes dtFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.dt-no-img { font-size: 80px; margin-bottom: 10px; }
.dt-hname  { font-size: 20px; font-weight: 900; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.dt-hbrand { font-size: 12px; opacity: .75; margin-top: 3px; }

/* Body */
.dt-body { padding: 20px 22px 32px; }

.dt-cat {
  display: inline-block; color: white;
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 14px;
}

.dt-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.dt-tag  {
  background: #f5f5f5; color: #555;
  border: 1.5px solid #e8e8e8;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}

.dt-short {
  font-size: 15px; font-style: italic; font-weight: 600;
  color: #333; line-height: 1.5;
  border-left: 4px solid var(--cc,#e94560);
  padding-left: 12px; margin-bottom: 12px;
}
.dt-full {
  font-size: 13px; color: #666;
  line-height: 1.7; margin-bottom: 20px;
}

/* ── YouTube embed ── */
.dt-yt-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #000;
}
.dt-yt-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 12px;
}

.dt-price {
  font-size: 40px; font-weight: 900;
  color: #00C896; text-align: center;
  margin-top: 10px;
}
.dt-price small { font-size: 20px; font-weight: 600; }

/* ── Scan Button ──────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ── Cart button in header ── */
.btn-cart {
  position: relative;
  background: #1a1a2e;
  color: #fff; border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: background .2s;
}
.btn-cart:hover { background: #2d2d4e; }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.btn-scan {
  background: var(--accent);
  color: #fff; border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-scan:hover  { background: #c73652; }
.btn-scan:active { transform: scale(.97); }

/* ── Cart button on card ── */
.tc-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 8px;
  flex-shrink: 0;
}
.tc-cart-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .2s;
  flex-shrink: 0;
}
.tc-cart-btn:active { transform: scale(.88); }

/* ── Cart panel ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 600;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.cart-panel {
  background: #fff;
  width: 360px; max-width: 95vw;
  height: 100%;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
}
.cart-panel.cart-open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-header h2 { margin: 0; font-size: 20px; }
.cart-close {
  background: #f5f5f5; border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: 12px; background: #f8f8f8;
  margin-bottom: 8px; gap: 10px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 700; }
.cart-item-size { font-size: 11px; color: #888; }
.cart-item-price { font-size: 12px; color: #555; margin-top: 2px; }
.cart-item-controls {
  display: flex; align-items: center; gap: 6px;
}
.cart-item-controls button {
  width: 28px; height: 28px;
  border-radius: 50%; border: none;
  background: #e8e8e8; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cart-item-controls span { font-size: 14px; font-weight: 800; min-width: 20px; text-align: center; }
.cart-item-del { background: #ffe5e5 !important; }
.cart-footer { padding: 16px; border-top: 1px solid #f0f0f0; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 900; margin-bottom: 14px;
}
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: #fff;
  text-decoration: none; border-radius: 12px;
  padding: 14px; font-size: 15px; font-weight: 700;
  margin-bottom: 10px;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-clear-cart {
  width: 100%; background: #f5f5f5; border: none;
  border-radius: 10px; padding: 10px;
  font-size: 13px; cursor: pointer; color: #888;
}
.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: #aaa; font-size: 15px;
}

/* ── Scanner Overlay ──────────────────────── */
.scanner-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.scanner-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 501;
}
.scanner-close-btn:hover { background: rgba(255,255,255,.3); }
.scanner-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  padding: 24px;
  width: 100%; max-width: 380px;
}
.scanner-title { color: #fff; font-size: 20px; font-weight: 800; }
.scanner-hint  { color: rgba(255,255,255,.6); font-size: 13px; text-align: center; }
#scannerBox    { width: 320px; max-width: 90vw; border-radius: 12px; overflow: hidden; }
.scanner-status { color: #00C896; font-size: 14px; font-weight: 700; min-height: 20px; }
.btn-close-scan {
  background: var(--accent); color: #fff; border: none;
  padding: 12px 36px; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  margin-top: 8px;
}

/* ── Found Popup ──────────────────────────── */
.found-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.found-inner {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  max-width: 340px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.found-check  { font-size: 40px; }
.found-name   { font-size: 20px; font-weight: 800; color: var(--text); }
.found-flavor { font-size: 14px; color: var(--muted); }
.found-price  { font-size: 32px; font-weight: 900; color: var(--green); }
.found-cat    { margin: 4px 0; }
.btn-close-found {
  margin-top: 12px;
  background: #f5f5f5; border: none;
  padding: 12px 36px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.btn-close-found:hover { background: #e8e8e8; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* ══════════════════════════════════════════
   PRINT / PDF
══════════════════════════════════════════ */
.print-only { display: none; }

@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }

  body { background: white; }

  .site-footer { display: none; }

  .print-header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 30px;
  }
  .print-header h1 {
    font-size: 32px;
    color: var(--primary);
  }
  .print-header p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
  }

  .catalog-main {
    margin: 0;
    padding: 0;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
  }

  .product-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd;
    transform: none !important;
  }

  .loading-state, .empty-state { display: none !important; }
}

/* ── Mobile ────────────────────────────────── */
@media (max-width: 600px) {
  .catalog-main { padding: 0 10px; margin: 12px auto 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .tc-card { height: 400px; }
  .tc-img-wrap { height: 150px; }
  .tc-name { font-size: 11px; }
  .tc-price { font-size: 14px; }
  .tc-namebar { height: 58px; padding: 7px 9px; }
  .header-inner { padding: 12px 16px; }
  .logo-tag { display: none; }
}
