/* ══ BARATELY Tienda pública — Light theme ══════════════════════ */

/* ── Variables base tienda (se sobreescriben por el <style> inline) */
:root {
  --tp:      #7c6aff;
  --tp-light:#7c6aff18;
  --tp-mid:  #7c6aff33;
  --tfondo:  #f8f7ff;
  --ttexto:  #1a1a2e;
  --tsup:    #ffffff;
  --tsup2:   #f1f0fb;
  --tborde:  #e4e2f5;
  --tmuted:  #6b6680;
  /* alias para carrito/mis-pedidos que usan vars de app.css */
  --accent:  var(--tp);
  --text:    var(--ttexto);
  --muted:   var(--tmuted);
  --surface: var(--tsup);
  --surface2:var(--tsup2);
  --border:  var(--tborde);
  --border2: #ccc9e0;
  --bg:      var(--tfondo);
  --danger:  #dc2626;
  --success: #059669;
}

/* ── Top bar ──────────────────────────────────────────────────── */
.t-topbar {
  background: var(--ttexto);
  color: rgba(255,255,255,.75);
  font-size: 11.5px;
  padding: 0 20px;
  line-height: 1;
}
.t-topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; gap: 16px;
}
.t-topbar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; overflow: hidden; }
.t-topbar-left span { white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.t-topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.t-topbar-link { color: inherit; text-decoration: none; }
.t-topbar-link:hover { color: #fff; }
.t-topbar-promo { color: rgba(255,255,255,.9); font-weight: 500; white-space: nowrap; }
.t-topbar-wa {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; text-decoration: none; font-weight: 600;
  background: #25D366; padding: 4px 10px; border-radius: 99px;
  font-size: 11px; transition: opacity .2s;
}
.t-topbar-wa:hover { opacity: .88; }
.t-topbar-hide-sm { display: none; }
@media(min-width:900px) { .t-topbar-hide-sm { display: flex; } }

/* ── Header ──────────────────────────────────────────────────── */
.t-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--tsup);
  border-bottom: 1px solid var(--tborde);
  transition: box-shadow .2s;
}
.t-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.t-header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 20px; height: 68px;
  display: flex; align-items: center; gap: 16px;
}

/* Logo */
.t-logo { text-decoration: none; flex-shrink: 0; display: flex; align-items: center; }
.t-logo-img { height: 40px; max-width: 140px; object-fit: contain; }
.t-logo-text {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: .08em; color: var(--tp);
}

/* Search */
.t-search-wrap {
  flex: 1; max-width: 560px; margin: 0 auto; position: relative;
}
.t-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--tmuted); pointer-events: none;
}
.t-search-wrap input[type="search"] {
  width: 100%;
  background: var(--tsup2); border: 1.5px solid var(--tborde);
  border-radius: 12px; padding: 11px 44px 11px 44px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--ttexto); outline: none; transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.t-search-wrap input:focus {
  border-color: var(--tp); background: var(--tsup);
  box-shadow: 0 0 0 3px var(--tp-light);
}
.t-search-wrap input::placeholder { color: var(--tmuted); }
.t-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--tmuted);
  font-size: 14px; cursor: pointer; padding: 4px;
  line-height: 1;
}
.t-search-clear:hover { color: var(--ttexto); }

/* Actions */
.t-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.t-btn-login {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--tborde);
  border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-weight: 500; color: var(--ttexto);
  cursor: pointer; transition: all .2s; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.t-btn-login:hover { border-color: var(--tp); color: var(--tp); background: var(--tp-light); }
.t-btn-login-txt { display: none; }
@media(min-width:680px) { .t-btn-login-txt { display: inline; } }

.t-btn-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--tp); border: none; border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; color: #fff;
  transition: opacity .2s;
}
.t-btn-cart:hover { opacity: .88; }
.t-cart-badge {
  position: absolute; top: -7px; right: -7px;
  background: #dc2626; color: #fff; border: 2px solid var(--tsup);
  font-size: 10px; font-weight: 700; border-radius: 99px;
  padding: 1px 5px; min-width: 19px; text-align: center; display: none;
}
.t-cart-badge.show { display: block; }

.t-hamburger {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1.5px solid var(--tborde);
  border-radius: 9px; width: 40px; height: 40px; cursor: pointer; color: var(--ttexto);
}
@media(min-width:680px) { .t-hamburger { display: none; } }

/* ── User wrap / session bar ──────────────────────────────── */
.t-user-wrap { position: relative; }
.t-session-bar {
  display: flex; align-items: center; gap: 4px;
  background: var(--tsup2); border: 1.5px solid var(--tborde);
  border-radius: 10px; padding: 5px 6px 5px 10px;
}
.t-session-name {
  font-size: 13px; font-weight: 600; color: var(--ttexto);
  white-space: nowrap; padding-right: 4px;
}
.t-session-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--tmuted);
  text-decoration: none; padding: 5px 9px; border-radius: 7px;
  transition: background .15s, color .15s; white-space: nowrap;
}
.t-session-link:hover { background: var(--tsup); color: var(--tp); }
.t-session-logout:hover { color: #dc2626; }
@media(max-width:500px) {
  .t-session-name { display: none; }
  .t-session-link span, .t-session-link svg + * { display: none; }
}

/* Mobile search bar */
.t-mobile-search {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  border-top: 0 solid var(--tborde); background: var(--tsup);
}
.t-mobile-search.open { max-height: 64px; border-top-width: 1px; }
.t-mobile-search input {
  width: 100%; padding: 12px 20px; border: none; outline: none;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--ttexto); background: transparent;
  -webkit-appearance: none;
}

/* ── Categorías nav ──────────────────────────────────────────── */
.t-cat-nav {
  position: sticky; top: 68px; z-index: 90;
  background: var(--tsup); border-bottom: 1px solid var(--tborde);
  box-shadow: 0 1px 0 var(--tborde);
}
.t-cat-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 20px; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.t-cat-inner::-webkit-scrollbar { display: none; }
.t-cat-chip {
  flex-shrink: 0; background: none; border: none;
  padding: 14px 18px; font-size: 13px; font-weight: 500;
  color: var(--tmuted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap; font-family: 'DM Sans', sans-serif;
  position: relative; top: 1px;
}
.t-cat-chip:hover { color: var(--ttexto); }
.t-cat-chip.active { color: var(--tp); border-bottom-color: var(--tp); font-weight: 600; }
.t-cat-chip--oferta { color: #dc2626; }
.t-cat-chip--oferta:hover { color: #b91c1c; }
.t-cat-chip--oferta.active { color: #dc2626; border-bottom-color: #dc2626; }
.t-cat-chip--catalog { color: var(--tp); font-weight: 600; }
.t-cat-chip--catalog:hover { color: var(--tp); opacity: .8; }
.t-oferta-badge {
  display: inline-block; background: #dc2626; color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 99px;
  padding: 1px 5px; margin-left: 4px; vertical-align: middle;
  line-height: 1.4;
}

/* ── Banner ──────────────────────────────────────────────────── */
.t-banner { position: relative; cursor: pointer; max-height: 380px; overflow: hidden; }
.t-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 380px; }
.t-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, transparent 70%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 60px;
}
.t-banner-titulo { font-family: 'Syne', sans-serif; font-size: clamp(22px,4vw,42px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.t-banner-sub { font-size: 16px; color: rgba(255,255,255,.85); }

/* ── Hero sin banner ─────────────────────────────────────────── */
.t-hero-simple {
  background: linear-gradient(135deg, var(--tp-light) 0%, rgba(255,255,255,0) 60%);
  border-bottom: 1px solid var(--tborde);
  padding: 36px 20px 32px;
}
.t-hero-simple-inner { max-width: 640px; margin: 0 auto; }
.t-hero-simple-slogan {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--tp); margin-bottom: 10px;
}
.t-hero-simple-title {
  font-family: 'Syne', sans-serif; font-size: clamp(26px,5vw,44px);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: var(--ttexto);
}
.t-hero-simple-title span { color: var(--tp); }
.t-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; border-radius: 10px;
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.t-btn-wa:hover { opacity: .9; }

/* ── Main / Sort ─────────────────────────────────────────────── */
.t-main { max-width: 1400px; margin: 0 auto; padding: 28px 20px 60px; }
.t-sort-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.t-product-count { font-size: 13px; color: var(--tmuted); }
.t-sort-select {
  background: var(--tsup); border: 1.5px solid var(--tborde);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
  color: var(--ttexto); cursor: pointer; outline: none;
  font-family: 'DM Sans', sans-serif;
}

/* ── Product grid ────────────────────────────────────────────── */
.t-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.t-product-card {
  background: var(--tsup); border: 1px solid var(--tborde);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.t-product-card:hover {
  box-shadow: 0 6px 24px rgba(124,106,255,.12);
  transform: translateY(-3px);
  border-color: var(--tp-mid);
}
.t-prod-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; letter-spacing: .04em; text-transform: uppercase;
  pointer-events: none;
}
.t-prod-tag--oferta { background: #dc2626; color: #fff; }
.t-prod-tag--nuevo  { background: var(--tp); color: #fff; }
.t-product-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}
.t-product-img-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--tsup2);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--tmuted);
}
.t-product-info { padding: 12px 14px 14px; }
.t-product-cat {
  font-size: 10px; color: var(--tp); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 4px; font-weight: 600;
}
.t-product-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; color: var(--ttexto); }
.t-product-price { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 700; color: var(--tp); margin-bottom: 8px; }
.t-product-tallas { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.t-talla-chip {
  font-size: 10px; background: var(--tsup2);
  border: 1px solid var(--tborde); border-radius: 4px;
  padding: 2px 6px; color: var(--tmuted);
}
.t-btn-agregar {
  width: 100%; padding: 10px; border-radius: 9px;
  background: var(--tp); border: none;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
  font-family: 'DM Sans', sans-serif;
}
.t-btn-agregar:hover { opacity: .85; }
.t-btn-agregar:disabled { background: var(--tsup2); color: var(--tmuted); cursor: default; }

/* ── Skeletons ───────────────────────────────────────────────── */
@keyframes t-shimmer { to { background-position: 200% center; } }
.t-skeleton {
  background: var(--tsup); border: 1px solid var(--tborde); border-radius: 14px; overflow: hidden;
}
.t-skel-img {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(90deg, var(--tsup2) 25%, var(--tsup) 50%, var(--tsup2) 75%);
  background-size: 200%; animation: t-shimmer 1.4s infinite;
}
.t-skel-line {
  height: 14px; margin: 12px 14px 6px;
  background: linear-gradient(90deg, var(--tsup2) 25%, var(--tsup) 50%, var(--tsup2) 75%);
  background-size: 200%; border-radius: 4px; animation: t-shimmer 1.4s infinite;
}
.t-skel-short { width: 50%; }

/* ── Product modal ───────────────────────────────────────────── */
.t-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
}
.t-modal-overlay.open { display: flex; }
.t-modal {
  background: var(--tsup); border: 1px solid var(--tborde);
  border-radius: 18px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  animation: t-modalIn .22s ease;
}
@keyframes t-modalIn { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.t-modal-hdr {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 20px 0;
}
.t-modal-cat { font-size: 11px; color: var(--tp); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; font-weight: 600; }
.t-modal-nombre { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--ttexto); }
.t-modal-close {
  background: var(--tsup2); border: 1px solid var(--tborde);
  border-radius: 8px; padding: 7px 11px; color: var(--tmuted);
  cursor: pointer; flex-shrink: 0; margin-left: 12px; font-size: 14px;
}
.t-modal-close:hover { background: var(--tborde); }
.t-modal-img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.t-modal-img-placeholder {
  width: 100%; height: 160px; background: var(--tsup2);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--tmuted);
}
.t-modal-body { padding: 16px 20px 24px; }
.t-modal-price { font-family: 'DM Mono', monospace; font-size: 24px; font-weight: 700; color: var(--tp); margin-bottom: 16px; }
.t-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tmuted); margin-bottom: 8px; }
.t-talla-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.t-talla-opt {
  background: var(--tsup2); border: 1.5px solid var(--tborde);
  border-radius: 8px; padding: 9px 16px;
  font-size: 13px; color: var(--ttexto); cursor: pointer; transition: all .15s;
}
.t-talla-opt:hover { border-color: var(--tp); color: var(--tp); }
.t-talla-opt.selected { background: var(--tp); border-color: var(--tp); color: #fff; }
.t-talla-opt.sin-stock { opacity: .35; cursor: default; text-decoration: line-through; }

/* Talla rows — multi-selección */
.t-talla-options { flex-direction: column; gap: 6px; }
.t-talla-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid var(--tborde); background: var(--tsup2);
  transition: border-color .15s, background .15s;
}
.t-talla-row--selected { border-color: var(--tp); background: var(--tp-light); }
.t-talla-row--disabled { opacity: .4; pointer-events: none; }
.t-talla-row--colors { flex-direction: column; align-items: flex-start; gap: 8px; }
.t-talla-name { font-size: 14px; font-weight: 600; min-width: 36px; color: var(--ttexto); }
.t-talla-qty-ctrl { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.t-talla-qty-num { font-size: 15px; font-weight: 700; min-width: 22px; text-align: center; color: var(--ttexto); }
.t-talla-stock { font-size: 11px; color: var(--tmuted); min-width: 50px; text-align: right; }
.t-color-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 8px; border: 1.5px solid var(--tborde); background: var(--tsup); width: 100%;
  transition: border-color .15s, background .15s; }
.t-color-row--selected { border-color: var(--tp); background: var(--tp-light); }
.t-color-row--disabled { opacity: .4; }
.t-stock-hint { font-size: 10px; font-weight: 700; color: var(--danger); margin-left: 4px; }
.t-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.t-qty-btn {
  background: var(--tsup2); border: 1.5px solid var(--tborde);
  border-radius: 8px; width: 38px; height: 38px;
  font-size: 18px; cursor: pointer; color: var(--ttexto);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.t-qty-btn:hover { border-color: var(--tp); }
.t-qty-val { font-size: 18px; font-weight: 700; min-width: 24px; text-align: center; color: var(--ttexto); }
.t-stock-info { font-size: 12px; color: var(--tmuted); }
.t-btn-add {
  width: 100%; padding: 14px; border-radius: 11px;
  background: var(--tp); border: none;
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .2s; font-family: 'DM Sans', sans-serif;
}
.t-btn-add:hover { opacity: .85; }
.t-btn-add:disabled { background: var(--tsup2); color: var(--tmuted); cursor: default; }
.t-modal-err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 16px; }

/* ── Cart sidebar ────────────────────────────────────────────── */
.t-cart-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300;
}
.t-cart-overlay.open { display: block; }
.t-cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 100vw);
  background: var(--tsup); border-left: 1px solid var(--tborde);
  z-index: 310; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.t-cart-sidebar.open { transform: translateX(0); }
.t-cart-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--tborde); flex-shrink: 0;
}
.t-cart-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--ttexto); }
.t-cart-close {
  background: var(--tsup2); border: 1px solid var(--tborde);
  border-radius: 8px; padding: 7px 11px; color: var(--tmuted); cursor: pointer;
}
.t-cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.t-cart-empty { text-align: center; color: var(--tmuted); padding: 40px 20px; font-size: 14px; }
.t-cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--tborde);
}
.t-cart-item:last-child { border-bottom: none; }
.t-cart-item-img {
  width: 62px; height: 72px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0; background: var(--tsup2);
}
.t-cart-item-info { flex: 1; }
.t-cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; color: var(--ttexto); }
.t-cart-item-meta { font-size: 11px; color: var(--tmuted); margin-bottom: 4px; }
.t-cart-item-price { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--tp); }
.t-cart-item-remove {
  background: none; border: none; color: var(--tmuted);
  cursor: pointer; padding: 2px 6px; font-size: 14px; flex-shrink: 0;
}
.t-cart-item-remove:hover { color: var(--danger); }
.t-cart-footer { padding: 16px; border-top: 1px solid var(--tborde); flex-shrink: 0; }
.t-cart-subtotal {
  display: flex; justify-content: space-between;
  font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--ttexto);
}
.t-btn-ir-carrito {
  display: block; width: 100%; padding: 14px;
  background: var(--tp); color: #fff;
  text-align: center; text-decoration: none;
  border-radius: 11px; font-size: 14px; font-weight: 700;
  margin-bottom: 8px; transition: opacity .2s;
}
.t-btn-ir-carrito:hover { opacity: .85; }
.t-btn-seguir {
  display: block; width: 100%; padding: 11px;
  background: transparent; border: 1.5px solid var(--tborde);
  color: var(--tmuted); border-radius: 10px;
  font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.t-btn-seguir:hover { border-color: var(--tp); color: var(--ttexto); }

/* ── Toast ───────────────────────────────────────────────────── */
.t-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ttexto); color: #fff; border-radius: 10px;
  padding: 12px 22px; font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .3s; pointer-events: none;
  z-index: 500; white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.t-toast.show { opacity: 1; }
.t-toast.err { background: var(--danger); }

/* ── Footer ──────────────────────────────────────────────────── */
.t-footer {
  background: var(--ttexto); color: rgba(255,255,255,.7);
  margin-top: 60px;
}
.t-footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 52px 20px 36px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.t-footer-brand {}
.t-footer-logo { height: 42px; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 12px; display: block; }
.t-footer-logo-text {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: .08em; margin-bottom: 12px;
}
.t-footer-slogan { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 18px; line-height: 1.5; }
.t-footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.t-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: background .2s, color .2s;
}
.t-social-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.t-social-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.t-footer-heading {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: #fff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .08em;
}
.t-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.t-footer-links li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.5; }
.t-footer-links a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.t-footer-links a:hover { color: #fff; }
.t-footer-links svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.t-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 8px;
}
.t-footer-admin-link { color: rgba(255,255,255,.3); text-decoration: none; font-size: 11px; }
.t-footer-admin-link:hover { color: rgba(255,255,255,.6); }

/* ── Responsive ──────────────────────────────────────────────── */
@media(max-width:1100px) {
  .t-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media(max-width:700px) {
  .t-header-inner { padding: 0 14px; gap: 10px; }
  .t-search-wrap { display: none; }
  .t-topbar-promo { display: none; }
  .t-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .t-main { padding: 18px 12px 50px; }
  .t-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 24px; }
  .t-banner-overlay { padding: 0 24px; }
  .t-cat-chip { padding: 12px 14px; font-size: 12px; }
}
@media(max-width:400px) {
  .t-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ══════════════════════════════════════════════════════════════
   CARRITO PAGE
   ══════════════════════════════════════════════════════════════ */
.c-main {
  min-height: calc(100vh - 100px);
  padding: 32px 20px 60px;
  max-width: 1080px;
  margin: 0 auto;
}
.c-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.c-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.c-section-title {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin: 0;
}
.c-link-seguir { color: var(--tp); font-size: 13px; text-decoration: none; }
.c-link-seguir:hover { text-decoration: underline; }
.c-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--tborde);
}
.c-item:last-child { border-bottom: none; }
.c-item-img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
  background: var(--tsup2); border: 1px solid var(--tborde);
}
.c-item-info { flex: 1; min-width: 0; }
.c-item-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-item-meta { font-size: 12px; color: var(--tmuted); margin: 3px 0 6px; }
.c-item-price { font-family: 'DM Mono', monospace; font-size: 14px; color: var(--tp); }
.c-item-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.c-qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--tborde);
  border-radius: 6px; background: var(--tsup); color: var(--ttexto);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.c-qty-btn:hover { background: var(--tsup2); }
.c-qty-val { font-size: 14px; min-width: 20px; text-align: center; }
.c-remove-btn {
  width: 28px; height: 28px; border: 1px solid transparent;
  border-radius: 6px; background: transparent; color: var(--tmuted);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.c-remove-btn:hover { background: rgba(220,38,38,.08); color: var(--danger); }
.c-empty { text-align: center; padding: 60px 20px; color: var(--tmuted); font-size: 15px; }
.c-aside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.c-summary {
  background: var(--tsup); border: 1px solid var(--tborde);
  border-radius: 14px; padding: 20px;
}
.c-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--tborde); color: var(--tmuted);
}
.c-summary-row:last-child { border-bottom: none; }
.c-summary-total { font-weight: 700; font-size: 16px; padding-top: 12px; margin-top: 6px; }
.c-summary-total span:last-child { font-family: 'DM Mono', monospace; color: var(--tp); }
.c-form {
  background: var(--tsup); border: 1px solid var(--tborde);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.c-form-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.c-label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--tmuted); }
.c-input, .c-select, .c-textarea {
  background: var(--tsup2); border: 1.5px solid var(--tborde); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; color: var(--ttexto);
  font-family: 'DM Sans', sans-serif; outline: none; transition: border .2s;
  width: 100%; box-sizing: border-box;
}
.c-input:focus, .c-select:focus, .c-textarea:focus { border-color: var(--tp); }
.c-textarea { resize: vertical; min-height: 60px; }
.c-radio-group { display: flex; gap: 14px; margin-top: 6px; }
.c-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.c-err { font-size: 13px; color: var(--danger); min-height: 16px; }
.c-btn-confirmar {
  background: var(--tp); color: #fff;
  border: none; border-radius: 10px;
  padding: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .15s; width: 100%;
  font-family: 'DM Sans', sans-serif;
}
.c-btn-confirmar:hover { opacity: .88; }
.c-btn-confirmar:disabled { opacity: .4; cursor: not-allowed; }
@media(max-width:760px) {
  .c-wrap { grid-template-columns: 1fr; }
  .c-aside { position: static; }
  .c-main { padding: 20px 12px 50px; }
}

/* ══════════════════════════════════════════════════════════════
   MIS PEDIDOS
   ══════════════════════════════════════════════════════════════ */
.mp-hdr { margin-bottom: 28px; }
.mp-card {
  background: var(--tsup); border: 1px solid var(--tborde);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.mp-card:hover { border-color: var(--tp); box-shadow: 0 0 0 2px var(--tp-light); }
.mp-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mp-numero { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 600; }
.mp-card-mid { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mp-fecha { font-size: 13px; color: var(--tmuted); }
.mp-total { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 700; color: var(--tp); }
.mp-card-bot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.mp-entrega-tag { color: var(--tmuted); }
.mp-empty { text-align: center; padding: 60px 20px; color: var(--tmuted); font-size: 15px; }
