:root {
  --t-primary: #e51b24;
  --t-accent: #111111;
  --t-bg: #f8fafc;
  --t-surface: #ffffff;
  --t-ink: #0f172a;
  --t-muted: #64748b;
  --t-border: rgba(15, 23, 42, 0.09);
  --t-soft: rgba(229, 27, 36, 0.09);
  --t-radius: 16px;
  --t-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --t-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.12);
  --t-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-radio="compacto"] { --t-radius: 10px; }
[data-radio="medio"]    { --t-radius: 16px; }
[data-radio="suave"]    { --t-radius: 24px; }

[data-tema="justo"] {
  --t-bg: #f8fafc;
  --t-surface: #ffffff;
  --t-ink: #0f172a;
  --t-muted: #64748b;
  --t-border: #e2e8f0;
}

[data-tema="bistro"] {
  --t-bg: #faf6f0;
  --t-surface: #ffffff;
  --t-ink: #1f1916;
  --t-muted: #6b625c;
  --t-border: rgba(31, 25, 22, 0.1);
}

[data-tema="express"] {
  --t-bg: #f8fafc;
  --t-surface: #ffffff;
  --t-ink: #0f172a;
  --t-muted: #64748b;
  --t-border: #e2e8f0;
}

[data-tema="nocturno"] {
  --t-bg: #100e16;
  --t-surface: #1b1824;
  --t-ink: #f8fafc;
  --t-muted: #a8a2b3;
  --t-border: rgba(255, 255, 255, 0.12);
  --t-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6);
}

[data-tema="cafe"] {
  --t-bg: #fdfbf7;
  --t-surface: #ffffff;
  --t-ink: #1b2a22;
  --t-muted: #5c6e64;
  --t-border: rgba(27, 42, 34, 0.11);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.t-body {
  margin: 0;
  font-family: var(--t-font);
  background: var(--t-bg);
  color: var(--t-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.t-body[data-tema="justo"] {
  background-color: var(--t-bg);
  background-image:
    radial-gradient(ellipse 120% 700px at 50% -100px, rgba(229, 27, 36, 0.045) 0%, rgba(248, 250, 252, 0) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 40a40 40 0 0 1 40-40 40 40 0 0 1 40 40M0 32a32 32 0 0 1 32-32 32 32 0 0 1 32 32M0 24a24 24 0 0 1 24-24 24 24 0 0 1 24 24M0 16a16 16 0 0 1 16-16 16 16 0 0 1 16 16M0 8a8 8 0 0 1 8-8 8 8 0 0 1 8 8' fill='none' stroke='%230f172a' stroke-width='1.1' stroke-opacity='0.025'/%3E%3C/svg%3E");
}
body.t-body.dk-cart-bar-active { padding-bottom: 84px; }

img { max-width: 100%; display: block; }
a { color: inherit; }
.t-container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.dk-price, .dk-cart-total, .t-step-val, .t-cart-count, .dk-cart-header-count { font-variant-numeric: tabular-nums; }

/* ================= PROMO BAR (FULL OR FLOATING FOR JUSTO) ================= */
.t-promo-bar {
  background: var(--t-accent);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 14px;
}
[data-tema="nocturno"] .t-promo-bar { background: var(--t-primary); color: #100e16; }

.dk-top-announcement {
  width: min(1200px, 100% - 32px);
  margin: 14px auto 12px;
  background: linear-gradient(90deg, var(--t-accent) 0%, #222226 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 10px 18px;
  text-align: center;
  border-radius: calc(var(--t-radius) - 2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ================= HEADERS POR TEMA ================= */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--t-surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t-border);
}
.t-nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}

/* Header Card estilo Dark Kitchen */
.dk-brand-header {
  width: min(1200px, 100% - 32px);
  margin: 0 auto 20px;
  background: var(--t-surface);
  border-radius: calc(var(--t-radius) + 4px);
  padding: 14px 24px;
  border: 1px solid var(--t-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dk-header-center-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.dk-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: dkPulse 2.2s infinite;
  display: inline-block;
}
@keyframes dkPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.dk-status-highlight { font-weight: 800; color: #065f46; }
.dk-status-sub { font-weight: 600; color: var(--t-muted); }

.dk-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--t-bg);
  color: var(--t-ink);
  border: 1px solid var(--t-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.dk-location-pill:hover { border-color: var(--t-primary); transform: translateY(-1px); }

.dk-header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--t-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}
.dk-cart-header-count {
  background: var(--t-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dk-zona-widget-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius);
  padding: 12px 16px;
}

/* Cafe centered header */
[data-tema="cafe"] .t-nav-in { flex-wrap: wrap; padding: 10px 0; }

.t-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 1 1 0; min-width: 0; }
.t-brand-logo {
  width: 48px; height: 48px; border-radius: 12px; background: var(--t-primary); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 48px; overflow: hidden;
}
[data-tema="justo"] .t-brand-logo { width: 56px; height: 56px; flex-basis: 56px; border-radius: 14px; }
.t-brand-logo.has-img, [data-tema="justo"] .t-brand-logo.has-img {
  width: auto; max-width: 170px; height: 58px; flex: 0 0 auto; background: transparent; border-radius: 10px;
}
.t-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.t-brand-logo.has-img img { width: auto; max-width: 170px; height: 100%; object-fit: contain; border-radius: 10px; }
.t-brand-txt { min-width: 0; flex: 1; }
.t-brand-txt strong { display: block; font-size: 1.04rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-brand-txt small { display: block; font-size: 0.76rem; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-nav-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.t-chip-info {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
  color: var(--t-muted); background: var(--t-bg); border: 1px solid var(--t-border);
  border-radius: 999px; padding: 6px 12px;
}
.t-cart-trigger {
  display: inline-flex; align-items: center; gap: 8px; background: var(--t-primary); color: #fff;
  border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 0.86rem; cursor: pointer;
}
[data-tema="nocturno"] .t-cart-trigger { color: #100e16; }
.t-cart-count { background: rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 1px 8px; font-size: 0.78rem; }

/* ================= HERO VARIATIONS POR TEMA ================= */
.t-hero { padding: 24px 0 22px; }
.t-hero-box {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 28px; align-items: center;
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: calc(var(--t-radius) + 4px); padding: 32px; box-shadow: var(--t-shadow);
}
.t-hero-box.is-nocturno-center {
  grid-template-columns: 1fr;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.16), transparent 60%), var(--t-surface);
  padding: 46px 28px;
}
.t-hero-box.is-nocturno-center p { margin-inline: auto; }
.t-hero-box.is-nocturno-center .t-hero-ctas,
.t-hero-box.is-nocturno-center .t-hero-meta { justify-content: center; }

.t-hero-box.is-cafe-minimal {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 36px 28px;
  border-style: dashed;
}
.t-hero-box.is-cafe-minimal p { margin-inline: auto; }
.t-hero-box.is-cafe-minimal .t-hero-ctas,
.t-hero-box.is-cafe-minimal .t-hero-meta { justify-content: center; }

/* Banner Hero Justo (Full-width promo card) */
.dk-hero-promo-card {
  width: min(1200px, 100% - 32px);
  margin: 0 auto 22px;
  border-radius: calc(var(--t-radius) + 4px);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
  background: linear-gradient(125deg, #111111 0%, #241819 55%, var(--t-primary) 140%);
  color: #fff;
}
.dk-hero-promo-banner-img { width: 100%; height: auto; object-fit: contain; display: block; }
.dk-hero-promo-copy {
  padding: 34px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dk-hero-promo-copy h1 { margin: 8px 0 8px; font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.12; }
.dk-hero-promo-copy p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 58ch; }
.dk-hero-promo-copy .t-hero-badge { background: rgba(255, 255, 255, 0.14); color: #ffffff; }

.t-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--t-soft); color: var(--t-primary);
  border-radius: 999px; padding: 5px 13px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
.t-hero h1 { margin: 0 0 10px; font-size: clamp(1.65rem, 3.1vw, 2.55rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.t-hero p { margin: 0 0 18px; color: var(--t-muted); font-size: 0.98rem; max-width: 56ch; }
.t-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.t-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--t-primary); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 22px; font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer;
}
[data-tema="nocturno"] .t-btn-primary { color: #100e16; }
.t-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--t-ink); border: 1px solid var(--t-border);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 0.88rem; text-decoration: none; cursor: pointer;
}
.t-hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--t-border); font-size: 0.82rem; color: var(--t-muted);
}
.t-hero-media {
  border-radius: var(--t-radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--t-soft), rgba(0, 0, 0, 0.05)); display: grid; place-items: center;
}
.t-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.t-hero-fallback { text-align: center; padding: 24px; color: var(--t-primary); }
.t-hero-fallback i { font-size: 3rem; display: block; margin-bottom: 8px; }

/* ================= SECTIONS ================= */
.t-sec { padding: 22px 0; }
.t-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.t-sec-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.t-sec-head p { margin: 4px 0 0; font-size: 0.88rem; color: var(--t-muted); }

/* Featured row */
.t-featured-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 275px);
  gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity;
}

/* ================= BUSCADOR 0MS + STICKY CATEGORIES BAR (JUSTO) ================= */
.dk-menu-search-wrapper { margin-bottom: 18px; }
.dk-search-input-box { position: relative; max-width: 620px; margin: 0 auto; }
.dk-search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
#tSearchInput {
  width: 100%; padding: 13px 44px 13px 44px; border-radius: 999px;
  border: 1px solid var(--t-border); background: var(--t-surface); color: var(--t-ink);
  font-size: 0.92rem; font-weight: 600; font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); outline: none;
}
#tSearchInput:focus { border-color: var(--t-primary); box-shadow: 0 0 0 3px var(--t-soft); }
.dk-search-clear-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--t-bg); color: var(--t-muted); display: grid; place-items: center; cursor: pointer;
}
.dk-search-clear-btn[hidden] { display: none !important; }

.dk-sticky-categories-bar {
  position: sticky;
  top: 0;
  z-index: 38;
  background: color-mix(in srgb, var(--t-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-radius: var(--t-radius);
  padding: 10px 14px;
  margin-bottom: 24px;
  border: 1px solid var(--t-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.dk-category-scroll-container { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.dk-category-scroll-container::-webkit-scrollbar { display: none; }
.dk-cat-pill {
  white-space: nowrap; display: inline-flex; align-items: center; padding: 9px 17px;
  background: var(--t-bg); color: var(--t-muted); border-radius: 999px; font-size: 0.84rem; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; transition: all 0.16s var(--t-ease);
}
.dk-cat-pill:hover { background: var(--t-soft); color: var(--t-ink); }
.dk-cat-pill.active { background: var(--t-primary); color: #fff; box-shadow: 0 4px 12px var(--t-soft); }

.dk-category-section { margin-bottom: 36px; scroll-margin-top: 84px; }
.dk-section-header { margin-bottom: 14px; }
.dk-section-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.025em; margin: 0; }

/* ================= PRODUCT CARDS: HORIZONTAL JUSTO / SIDEBAR EXPRESS / EDITORIAL CAFE / VERTICAL ================= */
.dk-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 16px; }
.dk-product-card {
  background: var(--t-surface); border-radius: var(--t-radius); border: 1px solid var(--t-border);
  padding: 15px; display: flex; justify-content: space-between; gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025); transition: transform 0.18s var(--t-ease), box-shadow 0.18s ease;
}
.dk-product-card:hover { transform: translateY(-2px); box-shadow: var(--t-shadow); }
.dk-product-card.is-agotado { opacity: 0.6; }
.dk-card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.dk-card-header-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.dk-card-title { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.28; }
.dk-card-desc {
  font-size: 0.82rem; color: var(--t-muted); line-height: 1.42; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dk-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.dk-price { font-size: 1rem; font-weight: 900; }
.dk-price del { color: var(--t-muted); font-weight: 500; font-size: 0.82rem; margin-right: 4px; }
.dk-card-image {
  width: 112px; height: 112px; flex: 0 0 112px; border-radius: calc(var(--t-radius) - 4px);
  overflow: hidden; background: var(--t-soft);
}
.dk-card-image img { width: 100%; height: 100%; object-fit: cover; }

.dk-offer-tag {
  background: #dc2626; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; flex-shrink: 0;
}
.dk-rating-badge {
  background: #fefce8; color: #854d0e; font-size: 0.72rem; font-weight: 800; padding: 2px 7px;
  border-radius: 8px; border: 1px solid #fef08a; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
}

/* Inline Stepper [-] 1 [+] */
.t-add-wrap { display: inline-flex; align-items: center; }
.t-inline-stepper {
  display: inline-flex; align-items: center; gap: 6px; background: var(--t-primary); color: #fff;
  border-radius: 999px; padding: 4px 8px; font-weight: 800; font-size: 0.84rem;
}
[data-tema="nocturno"] .t-inline-stepper { color: #100e16; }
.t-inline-stepper[hidden] { display: none !important; }
.t-inline-stepper button {
  width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.22);
  color: inherit; font-weight: 900; cursor: pointer; display: grid; place-items: center;
}
.t-add-btn {
  border: 0; background: var(--t-primary); color: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 0.82rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.t-add-btn[hidden] { display: none !important; }
.t-add-btn:disabled { background: #94a3b8; cursor: not-allowed; }
[data-tema="nocturno"] .t-add-btn { color: #100e16; }

/* Express Sidebar Layout */
.t-express-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.t-express-side {
  position: sticky; top: 86px; background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--t-radius); padding: 14px; display: grid; gap: 6px;
}
.t-express-side-title { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; color: var(--t-muted); padding: 4px 8px; }
.t-express-side .t-cat { display: flex; justify-content: space-between; align-items: center; width: 100%; border-radius: 10px; text-align: left; }

/* Cafe Editorial Menu Layout */
.t-cafe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; }
.t-cafe-row {
  display: flex; gap: 14px; align-items: center; background: var(--t-surface);
  border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 14px;
}
.t-cafe-thumb {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; overflow: hidden;
  background: var(--t-soft); display: grid; place-items: center; color: var(--t-primary); font-size: 1.5rem;
}
.t-cafe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-cafe-info { flex: 1; min-width: 0; }
.t-cafe-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.t-cafe-dots { flex: 1; border-bottom: 1px dashed var(--t-border); }
.t-cafe-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Classic Vertical Cards & Filter Bar (Bistro & Nocturno) */
.t-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 12px 14px; background: var(--t-surface);
  border: 1px solid var(--t-border); border-radius: var(--t-radius);
}
.t-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.t-cat {
  border: 1px solid var(--t-border); background: var(--t-bg); color: var(--t-ink);
  border-radius: 999px; padding: 7px 14px; font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.t-cat small { opacity: 0.65; margin-left: 4px; }
.t-cat.active { background: var(--t-primary); color: #fff; border-color: var(--t-primary); }
[data-tema="nocturno"] .t-cat.active { color: #100e16; }

.t-search { position: relative; flex: 1 1 230px; max-width: 300px; }
.t-search i.bi-search { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--t-muted); }
.t-search input {
  width: 100%; background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-border);
  border-radius: 999px; padding: 8px 36px 8px 34px; font-size: 0.88rem; font-family: inherit;
}

.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.t-card {
  background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius);
  overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.t-card:hover { transform: translateY(-2px); box-shadow: var(--t-shadow); }
.t-card.is-agotado { opacity: 0.62; }
.t-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--t-soft); overflow: hidden; }
.t-card-media img { width: 100%; height: 100%; object-fit: cover; }
.t-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.1rem; color: var(--t-primary); }
.t-badge { position: absolute; top: 10px; left: 10px; border-radius: 999px; padding: 3px 10px; font-size: 0.72rem; font-weight: 800; color: #fff; }
.t-badge-sale { background: #dc2626; }
.t-badge-star { background: #f59e0b; color: #1c1614; }
.t-badge-sold { left: auto; right: 10px; background: #1e293b; }
.t-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.t-card-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--t-primary); }
.t-card-title { margin: 4px 0 6px; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.t-card-desc { margin: 0 0 12px; font-size: 0.83rem; color: var(--t-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-price { font-size: 1.05rem; font-weight: 800; display: block; }
.t-price-old { font-size: 0.78rem; color: var(--t-muted); text-decoration: line-through; }

.dk-search-no-results {
  text-align: center; padding: 42px 20px; background: var(--t-surface);
  border: 1px dashed var(--t-border); border-radius: var(--t-radius); margin-top: 12px;
}
.dk-search-no-results[hidden] { display: none !important; }
.dk-no-results-ico { font-size: 2.2rem; color: var(--t-primary); margin-bottom: 8px; }

/* Story & Info */
.t-story-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 26px;
}
.t-story-media { border-radius: calc(var(--t-radius) - 4px); overflow: hidden; aspect-ratio: 16 / 10; background: var(--t-soft); }
.t-story-media img { width: 100%; height: 100%; object-fit: cover; }

.t-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.t-info-card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 18px; }
.t-info-card i { font-size: 1.3rem; color: var(--t-primary); margin-bottom: 8px; display: block; }
.t-info-card strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.t-info-card span { font-size: 0.84rem; color: var(--t-muted); }

/* ================= FOOTER + LOGOS OFICIALES YAPE / PLIN ================= */
.t-footer { margin-top: 28px; padding: 22px 0 44px; border-top: 1px solid var(--t-border); font-size: 0.84rem; color: var(--t-muted); }
body.t-body.dk-cart-bar-active .t-footer { padding-bottom: 84px; }
.t-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-right: 76px; }
.dk-wallet-badges { display: inline-flex; align-items: center; gap: 8px; }
.dk-wallet-logo-badge {
  background: #fff; border: 1px solid var(--t-border); border-radius: 8px; padding: 4px 8px;
  display: inline-flex; align-items: center; height: 32px;
}
.dk-wallet-logo-badge img { height: 22px; width: auto; object-fit: contain; }

/* ================= BOTTOM BAR SINCRONIZADA + FLOATING WHATSAPP ================= */
.dk-bottom-cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 42;
  background: var(--t-accent); color: #fff; padding: 12px 16px;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(0); transition: transform 0.25s var(--t-ease);
}
.dk-bottom-cart-bar.dk-bar-hidden { transform: translateY(110%); pointer-events: none; }
.dk-cart-bar-inner {
  width: min(1200px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.dk-cart-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dk-cart-badge { font-size: 0.86rem; color: rgba(255, 255, 255, 0.8); }
.dk-cart-total { font-size: 1.15rem; font-weight: 900; }
.dk-checkout-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--t-primary); color: #fff;
  border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 0.88rem; cursor: pointer;
}

.dk-floating-whatsapp-container {
  position: fixed; right: 20px; bottom: 22px; z-index: 44; width: 56px; height: 56px;
  transition: bottom 0.28s var(--t-ease);
}
.dk-floating-whatsapp-container.is-lifted { bottom: 86px; }
.dk-wa-float-btn {
  display: block; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: transparent;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dk-wa-float-btn:hover { transform: scale(1.07); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55); }
.dk-wa-float-btn img { width: 100%; height: 100%; object-fit: contain; display: block; }

.dk-wa-chat-bubble {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(0.88);
  background: #fff; color: #0f172a; padding: 8px 14px; border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16); display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; font-size: 0.8rem; font-weight: 700; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; text-decoration: none;
}
.dk-wa-chat-bubble[hidden] { display: none; }
.dk-wa-chat-bubble.is-visible,
.dk-floating-whatsapp-container:hover .dk-wa-chat-bubble:not([hidden]) {
  opacity: 1; visibility: visible; transform: translateY(-50%) scale(1);
}
.dk-wa-bubble-dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; flex-shrink: 0; }

/* ================= NATIVE <DIALOG> CART DRAWER & MODALS ================= */
dialog.t-drawer {
  --drawer-width: min(420px, 88dvw);
  inset: 0; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--t-ink);
}
dialog.t-drawer::backdrop { background: rgba(10, 10, 12, 0.55); backdrop-filter: blur(2px); }
.t-drawer-scroller {
  display: grid; grid-template-columns: 100% var(--drawer-width);
  overflow-x: scroll; overscroll-behavior: none; scrollbar-width: none; scroll-snap-type: x mandatory;
}
@media (prefers-reduced-motion: no-preference) { .t-drawer-scroller { scroll-behavior: smooth; } }
.t-drawer-scroller::before { content: ''; scroll-snap-align: start; scroll-initial-target: nearest; }
.t-drawer-sheet {
  height: 100svh; background: var(--t-surface); color: var(--t-ink);
  display: grid; grid-template-rows: auto 1fr auto; scroll-snap-align: end; box-shadow: -12px 0 36px rgba(0, 0, 0, 0.24);
}
.t-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--t-border); }
.t-drawer-head h3 { margin: 0; font-size: 1.06rem; font-weight: 800; }
.t-icon-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--t-border);
  background: var(--t-bg); color: var(--t-ink); display: grid; place-items: center; cursor: pointer;
}
.t-drawer-body { overflow-y: auto; padding: 16px 20px; }
.t-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--t-border); background: var(--t-bg); }
.t-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--t-border); }
.t-cart-item img, .t-cart-item .t-ci-ph {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 56px;
  background: var(--t-soft); display: grid; place-items: center; color: var(--t-primary);
}
.t-qty-ctrl {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--t-border);
  border-radius: 999px; padding: 2px 8px; background: var(--t-bg);
}
.t-qty-ctrl button { border: 0; background: transparent; color: var(--t-ink); font-weight: 800; cursor: pointer; padding: 2px 5px; }

dialog.t-modal {
  width: min(620px, 94vw); max-height: 90svh; border: 1px solid var(--t-border); border-radius: var(--t-radius);
  padding: 0; background: var(--t-surface); color: var(--t-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
dialog.t-modal::backdrop { background: rgba(10, 10, 14, 0.56); backdrop-filter: blur(2px); }
.t-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--t-border); }
.t-modal-head h3 { margin: 0; font-size: 1.06rem; font-weight: 800; }
.t-modal-body { padding: 18px 20px; overflow-y: auto; max-height: 70svh; }

.t-zona-list { display: grid; gap: 10px; }
.t-zona-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  border: 1px solid var(--t-border); background: var(--t-bg); color: var(--t-ink);
  border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; font-family: inherit;
}
.t-zona-opt.active { border-color: var(--t-primary); background: var(--t-soft); }

.t-field { margin-bottom: 13px; }
.t-field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; }
.t-field input, .t-field select, .t-field textarea {
  width: 100%; border: 1px solid var(--t-border); border-radius: 12px; padding: 10px 12px;
  background: var(--t-bg); color: var(--t-ink); font-family: inherit; font-size: 0.9rem;
}
.t-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.t-seg-btn { border: 1px solid var(--t-border); background: var(--t-bg); color: var(--t-ink); border-radius: 12px; padding: 10px; font-weight: 700; cursor: pointer; }
.t-seg-btn.active { background: var(--t-soft); border-color: var(--t-primary); color: var(--t-primary); }
.t-sum-line { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.t-sum-total { font-size: 1.12rem; font-weight: 800; border-top: 1px solid var(--t-border); padding-top: 8px; margin-top: 8px; }

/* ================= BLOQUES UTILITARIOS CONSTRUCTOR PRO ================= */
.t-adv-hero { padding: 54px 20px; background: var(--t-accent); color: #fff; text-align: center; }
.t-adv-hero-in { max-width: 720px; margin: 0 auto; }
.t-adv-pill { display: inline-block; background: var(--t-primary); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.t-adv-btn { display: inline-block; background: var(--t-primary); color: #fff; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; margin-top: 14px; }
.wb-row { display: grid; gap: 18px; }
.wb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wb-cols-60-40 { grid-template-columns: 1.4fr 1fr; }
.wb-card-box { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.wb-spacer { height: 28px; }
.wb-divider { border: 0; border-top: 1px solid var(--t-border); margin: 22px 0; }
.wb-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wb-check-list li { display: flex; align-items: center; gap: 8px; }
.wb-check-list i { color: var(--t-primary); }
.wb-cta-banner { background: var(--t-accent); color: #fff; border-radius: var(--t-radius); padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.wb-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wb-feat-card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 20px; }
.wb-feat-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--t-soft); color: var(--t-primary); display: grid; place-items: center; margin-bottom: 10px; font-size: 1.2rem; }
.wb-test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wb-test-card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 20px; }
.wb-video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--t-radius); overflow: hidden; }
.wb-video-wrap iframe { width: 100%; height: 100%; border: 0; }

.t-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; background: var(--t-surface); border: 1px dashed var(--t-border); border-radius: var(--t-radius); color: var(--t-muted); }

@media (max-width: 960px) {
  .dk-header-center-status { display: none; }
  .t-express-shell { grid-template-columns: 1fr; }
  .t-express-side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .wb-cols-2, .wb-cols-3, .wb-cols-4, .wb-cols-60-40, .wb-feat-grid, .wb-test-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .t-hero-box, .t-story-box { grid-template-columns: 1fr; padding: 22px; }
  .t-chip-info { display: none; }
  .dk-product-grid, .t-cafe-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .t-row2 { grid-template-columns: 1fr; }
  .dk-brand-header { padding: 11px 14px; }
  .dk-header-inner { gap: 8px; }
  .t-brand { min-width: 110px; gap: 9px; }
  [data-tema="justo"] .t-brand-logo, .t-brand-logo { width: 40px; height: 40px; flex: 0 0 40px; font-size: 1.1rem; }
  .t-brand-logo.has-img, [data-tema="justo"] .t-brand-logo.has-img { width: auto; height: 40px; max-width: 96px; flex: 0 0 auto; }
  .dk-brand-header .t-brand-txt small { display: none; }
  .dk-location-pill { padding: 7px 11px; font-size: 0.78rem; gap: 5px; }
  .dk-location-lbl-txt { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .t-wa-lbl { display: none; }
  .t-cart-lbl { display: none; }
  .t-cart-trigger, .dk-header-cart-btn { padding: 7px 11px; font-size: 0.8rem; gap: 6px; }
  .dk-card-image { width: 96px; height: 96px; flex-basis: 96px; }
  .t-footer-in { padding-right: 0; }
}
