/* ══════════════════════════════════════════
   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;
}

/* Public storefront only: make product photos slightly more dominant without
   changing admin, PDF, or TV export card geometry. */
.storefront-page .tc-product-visual img {
  width: 106%;
  height: 106%;
  max-width: 106%;
  max-height: 106%;
  object-fit: contain;
  object-position: center center;
}

.storefront-page .tc-card-name,
.storefront-page .tc-title,
.storefront-page .product-title,
.storefront-page .tc-product-name {
  font-size: clamp(10px, 2.95cqw, 19px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.25px !important;
  max-height: 2.08em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ── 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 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;
}

/* Product card styles live in assets/product-card.css. */

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

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

.dt-flip-stage {
  position: relative;
  width: min(92vw, 420px);
  aspect-ratio: 63.333 / 92.333;
  transform: translateY(14px) scale(.98);
  transform-origin: center center;
  transform-style: preserve-3d;
  opacity: 0;
  transition:
    transform .52s cubic-bezier(.22,1,.36,1),
    opacity .16s ease;
  will-change: transform, opacity;
}
.dt-flip-stage.dt-in {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.dt-flip-stage.dt-out {
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition-duration: .28s;
}

.dt-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    transform .28s cubic-bezier(.22,1,.36,1),
    opacity .18s ease;
}
.dt-card-front {
  background: white;
  transform: rotateY(0deg);
  opacity: 1;
}
.dt-card-front .tc-card {
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: none !important;
  box-shadow: none;
}
.dt-card-back {
  transform: rotateY(-90deg);
  opacity: 0;
  background: white;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}

.dt-flip-stage.dt-in .dt-card-front {
  transform: rotateY(90deg);
  opacity: 0;
}

.dt-flip-stage.dt-in .dt-card-back {
  transform: rotateY(0deg);
  opacity: 1;
  transition-delay: .22s;
}

.dt-flip-stage.dt-out .dt-card-front {
  transform: rotateY(0deg);
  opacity: 1;
  transition-delay: .18s;
}

.dt-flip-stage.dt-out .dt-card-back {
  transform: rotateY(-90deg);
  opacity: 0;
}

.dt-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: none;
}

@media (min-width: 701px) {
  #detailOverlay {
    padding: 24px;
  }

  .dt-flip-stage {
    width: min(74vh * .685921, 420px);
    max-height: 74vh;
  }
}

/* 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;
}

.cart-badge-pulse {
  animation: cartBadgePulse .62s ease;
}

@keyframes cartBadgePulse {
  0% { transform: scale(1); }
  38% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.cart-fly-image {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform .76s cubic-bezier(.2,.78,.18,1),
    opacity .76s ease;
  will-change: transform, opacity;
}

.cart-fly-image.is-flying {
  opacity: 0;
  transform: translate3d(var(--cart-fly-x), var(--cart-fly-y), 0) scale(.18);
}

.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 — defined above in card section ── */

/* ── 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; }
  .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; }

  #detailOverlay {
    align-items: flex-end;
    padding: 12px;
    perspective: none;
  }

  .dt-flip-stage,
  .dt-flip-stage.dt-in,
  .dt-flip-stage.dt-out {
    width: 100%;
    max-width: 420px;
    height: min(88vh, 720px);
    aspect-ratio: auto;
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: opacity .18s ease;
  }

  .dt-card-front {
    display: none;
  }

  .dt-card-back {
    transform: none;
    border-radius: 22px 22px 18px 18px;
  }

  .dt-card-face {
    border-radius: 22px 22px 18px 18px;
  }

  .dt-panel {
    border-radius: 22px 22px 18px 18px;
  }

  .dt-header {
    padding-top: 20px;
  }
}
