/*
 * Tecnico Movil storefront theme.
 *
 * Header, navigation, product miniature, product page and footer
 * presentation are adapted from the PrestaShop Hummingbird theme:
 *   https://github.com/PrestaShop/hummingbird
 *   Copyright PrestaShop SA and the PrestaShop Community
 *   Licensed under the Academic Free License 3.0
 *   (tienda/licenses/hummingbird-LICENSE.md and NOTICE.md).
 * This file is a modified derivative for the Tecnico Movil PHP POS
 * storefront (our backend, branding, banners and cart). It is not
 * endorsed by PrestaShop SA. Third-party custom CSS from other
 * Hummingbird-based shops was not copied.
 *
 * For the full copyright and license information, please view the
 * LICENSE.md file that was distributed with this source code
 * (Hummingbird AFL-3.0).
 */

/* Técnico Móvil storefront theme — original CSS (Phase 1). */
:root {
  --tm-ink: #20242b;
  --tm-muted: #566170;
  --tm-line: #e1e5eb;
  --tm-soft: #f7f9fc;
  --tm-paper: #ffffff;
  --tm-accent: #1f4e8c;
  --tm-accent-soft: #eef4fb;
  --tm-btn: #17191d;
  --tm-btn-hover: #34383f;
  --tm-green: #188251;
  --tm-green-soft: #e8f6ee;
  --tm-wa: #128c47;
  --tm-radius: 0.5rem;
  --tm-radius-btn: 0.25rem;
  --tm-font: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  --bs-primary: var(--tm-accent);
  --bs-border-radius: 0.5rem;
  --bs-box-shadow-md: 0 0.625rem 1.25rem rgba(0,0,0,.1);
}
html, body { margin: 0; }
body.tm-shop {
  font-family: var(--tm-font);
  color: var(--tm-ink);
  background: var(--tm-soft);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.tm-shop a { color: inherit; text-decoration: none; }
body.tm-shop a.tm-btn-dark,
body.tm-shop a.tm-btn-accent,
body.tm-shop a.tm-btn-wa,
body.tm-shop .tm-btn-dark,
body.tm-shop .tm-btn-accent,
body.tm-shop .tm-btn-wa { color: #fff; }
body.tm-shop a.tm-btn-ghost { color: var(--tm-ink); }
body.tm-shop img { max-width: 100%; display: block; }
.tm-wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.tm-topbar { background: #fff; color: var(--tm-ink); font-size: 13px; border-bottom: 1px solid var(--tm-line); padding: 0.25rem 0; }
.tm-topbar .tm-wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.tm-topbar strong { color: var(--tm-ink); font-weight: 600; }
.tm-topbar a { color: var(--tm-ink); }
.tm-topbar a:hover { color: var(--tm-accent); }

.tm-header { background: #fff; border-bottom: 1px solid var(--tm-line); position: sticky; top: 0; z-index: 40; }
.tm-header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.tm-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tm-brand img { height: auto; width: auto; max-height: 3rem; max-width: 9rem; }
.tm-brand .tm-word { display: flex; flex-direction: column; line-height: 1.05; }
.tm-brand .tm-name { font-weight: 800; letter-spacing: .04em; font-size: 14.5px; }
.tm-brand .tm-place { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--tm-muted); margin-top: 3px; }
.tm-search { flex: 1; display: flex; align-items: center; background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 0.25rem; padding: 0 6px 0 16px; min-height: 44px; }
.tm-search input { border: 0; background: transparent; outline: none; width: 100%; font: inherit; font-size: 14px; }
.tm-search button { border: 0; background: var(--tm-accent); color: #fff; border-radius: 0.25rem; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tm-icon-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; border-radius: 0.25rem; padding: 0.5rem 0.75rem; font-size: 13px; color: var(--tm-ink); position: relative; }
.tm-icon-btn .tm-badge { background: var(--tm-accent); color: #fff; border-radius: 50rem; font-size: 10px; padding: 1px 6px; font-weight: 600; min-width: 1rem; text-align: center; }
.tm-nav { border-top: 1px solid var(--tm-line); }
.tm-nav .tm-wrap { display: flex; gap: 2px; overflow: auto; }
.tm-nav a { padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--tm-ink); white-space: nowrap; border-bottom: 2px solid transparent; }
.tm-nav a:hover, .tm-nav a.is-active { border-bottom-color: var(--tm-accent); color: var(--tm-accent); }

.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--tm-radius-btn, 0.25rem); font-weight: 600; font-size: 14px; border: 0; cursor: pointer; padding: 11px 18px; font-family: inherit; }
.tm-btn-dark { background: var(--tm-btn); color: #fff; }
.tm-btn-dark:hover { background: var(--tm-btn-hover); }
.tm-btn-accent { background: var(--tm-accent); color: #fff; }
.tm-btn-ghost { background: #fff; color: var(--tm-ink); border: 1px solid var(--tm-line); }
.tm-btn-wa { background: var(--tm-wa); color: #fff; }
.tm-btn-block { width: 100%; }

.tm-hero { padding: 28px 0 8px; }
.tm-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.tm-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-accent); font-weight: 700; margin-bottom: 10px; }
.tm-hero h1 { font-size: 38px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.03em; }
.tm-hero .lead { margin: 0 0 20px; font-size: 16.5px; color: var(--tm-muted); max-width: 40ch; }
.tm-hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 0 8px; }
.tm-cat { background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 16px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.tm-cat h3 { margin: 0 0 4px; font-size: 16px; }
.tm-cat p { margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-cat:hover { border-color: #c9d5e6; box-shadow: 0 8px 24px rgba(32,36,43,.06); }

.tm-section { padding: 10px 0 24px; }
.tm-section-head { display: flex; justify-content: space-between; align-items: end; margin: 8px 0 14px; }
.tm-section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tm-card { background: #fff; border: 1px solid var(--tm-line); border-radius: 16px; overflow: hidden; }
.tm-card .tm-photo { background: #f3f5f8; height: 240px; display: flex; align-items: center; justify-content: center; }
.tm-card .tm-photo img { height: 92%; width: auto; max-width: 88%; object-fit: contain; }
.tm-card .tm-body { padding: 14px 16px 16px; }
.tm-card .tm-brand { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tm-muted); font-weight: 700; }
.tm-card h3 { margin: 3px 0 8px; font-size: 17px; }
.tm-card .tm-specs { color: var(--tm-muted); font-size: 13px; margin-bottom: 8px; }
.tm-pill { display: inline-flex; align-items: center; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border: 1px solid #d8dde4; background: #f1f3f5; color: #374151; }
.tm-pill-new { background: var(--tm-green-soft); color: var(--tm-green); border-color: #cfe6d8; }
.tm-price { font-size: 20px; font-weight: 800; margin: 10px 0 12px; }
.tm-price small { font-size: 12px; font-weight: 600; color: var(--tm-muted); }

.tm-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 8px 0 32px; }
.tm-trust-item { background: #fff; border: 1px solid var(--tm-line); border-radius: 14px; padding: 14px 16px; }
.tm-trust-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tm-trust-item span { color: var(--tm-muted); font-size: 12.5px; }

.tm-footer { background: var(--tm-ink); color: #c5c9d1; padding: 40px 0 18px; margin-top: 8px; }
.tm-footer .tm-wrap { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr 1.2fr; gap: 28px 32px; align-items: start; }
.tm-footer h4, .tm-footer-name { color: #fff; margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.tm-footer a, .tm-footer p { color: #c5c9d1; font-size: 13.5px; margin: 0 0 6px; display: block; line-height: 1.45; }
.tm-footer .footer-cookie-link { background: none; border: 0; color: #9aa1ab; cursor: pointer; font: inherit; padding: 0; text-align: right; }
.tm-crumbs { padding: 16px 0 8px; font-size: 13px; color: var(--tm-muted); }
.tm-pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; padding: 8px 0 28px; }
.tm-gallery { background: #fff; border: 1px solid var(--tm-line); border-radius: 20px; padding: 16px; }
.tm-gallery-main { height: 440px; display: flex; align-items: center; justify-content: center; background: #f3f5f8; border-radius: 14px; }
.tm-gallery-main img { max-height: 420px; width: auto; object-fit: contain; }
.tm-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tm-thumbs img, .tm-thumbs button img { height: 70px; width: 62px; object-fit: contain; background: #f3f5f8; border-radius: 10px; border: 1px solid var(--tm-line); padding: 4px; }
.tm-pdp-info h1 { margin: 6px 0 10px; font-size: 30px; letter-spacing: -.03em; }
.tm-pdp-info .tm-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tm-pdp-price { font-size: 32px; font-weight: 800; margin: 8px 0 4px; }
.tm-tax { color: var(--tm-muted); font-size: 13px; margin: 0 0 16px; }
.tm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.tm-fact { background: #fff; border: 1px solid var(--tm-line); border-radius: 12px; padding: 12px 14px; }
.tm-fact label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-muted); font-weight: 700; }
.tm-actions { display: grid; gap: 8px; margin: 0 0 12px; }
.tm-subacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-rebu { font-size: 12.5px; color: #3d3a5c; background: #f4f2fb; border-radius: 12px; padding: 10px 12px; }
.tm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tm-filters a { border: 1px solid var(--tm-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.tm-filters a.is-active { background: var(--tm-btn); color: #fff; border-color: var(--tm-btn); }
.tm-results { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 14px; }
.tm-results h1, .tm-results h2 { margin: 0; font-size: 22px; }
.tm-cart { width: min(960px, calc(100% - 32px)); margin: 20px auto 40px; }
.tm-cart h1 { font-size: 26px; }
.tm-empty { background: #fff; border: 1px solid var(--tm-line); border-radius: 16px; padding: 40px 24px; text-align: center; }
.tm-page { width: min(800px, calc(100% - 32px)); margin: 24px auto 40px; background: #fff; border: 1px solid var(--tm-line); border-radius: 16px; padding: 24px; }

@media (max-width: 820px) {
  .tm-search, .tm-topbar .hide-sm, .tm-icon-btn .label { display: none; }
  .tm-hero-grid, .tm-cats, .tm-grid, .tm-trust, .tm-pdp, .tm-footer .tm-wrap, .tm-facts, .tm-subacts { grid-template-columns: 1fr; }
  .tm-hero h1 { font-size: 28px; }
  .tm-gallery-main { height: 300px; }
}

/* leftover catalog helpers + condition classes from PHP */
.tm-shop .empty-state{text-align:center;padding:48px 16px;color:var(--tm-muted)}
.tm-shop .empty-state i{font-size:2rem;margin-bottom:8px;display:block}
.tm-shop .section-head{font-weight:800;margin:28px 0 12px;font-size:1.15rem}
.tm-shop .spec-tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.tm-shop .spec-tag{font-size:.75rem;background:#eef1f5;border-radius:999px;padding:2px 8px;color:var(--tm-muted)}
.tm-shop .product-estado-row{margin:6px 0}
.tm-shop .tm-pill.cond-nuevo,.tm-shop .tm-pill-new{background:#e8f6ee;color:#166534}
.tm-shop .tm-pill.cond-usado,.tm-shop .tm-pill-used{background:#eef2ff;color:#1f4e8c}
.tm-shop .badge-pill{position:absolute;top:10px;left:10px;font-size:.7rem;font-weight:700;background:#17191d;color:#fff;border-radius:999px;padding:3px 8px}
.tm-shop .tm-photo{position:relative}
.tm-shop .tm-photo-fallback{display:none}
.tm-shop .tm-photo.show-fallback .tm-photo-fallback{display:flex;align-items:center;justify-content:center;height:100%;font-size:2rem}
.tm-shop .tm-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:8px 0 28px}
.tm-shop .tm-trust div{background:#fff;border:1px solid var(--tm-line);border-radius:14px;padding:14px 16px}
.tm-shop .tm-trust strong{display:block;font-size:.92rem}
.tm-shop .tm-trust span{color:var(--tm-muted);font-size:.8rem}
@media(max-width:800px){.tm-shop .tm-trust{grid-template-columns:1fr 1fr}}

/* PDP */
.tm-pdp{display:grid;grid-template-columns:1.05fr .95fr;gap:32px;padding:28px 0 48px}
.tm-gallery{background:#fff;border:1px solid var(--tm-line);border-radius:18px;padding:18px;display:flex;align-items:center;justify-content:center;min-height:360px}
.tm-gallery img{max-width:100%;max-height:460px;object-fit:contain}
.tm-buy .tm-kicker{margin-bottom:6px}
.tm-buy h1{font-size:1.7rem;margin:0 0 8px}
.tm-buy .tm-price{font-size:1.8rem;font-weight:800;margin:10px 0}
.tm-buy .tm-units{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.tm-unit{background:#fff;border:1px solid var(--tm-line);border-radius:14px;padding:12px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.tm-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.tm-facts div{background:#fff;border:1px solid var(--tm-line);border-radius:12px;padding:10px 12px;font-size:.88rem}
@media(max-width:900px){.tm-pdp{grid-template-columns:1fr}}

/* Cart */
.tm-cart{display:grid;grid-template-columns:1.4fr .8fr;gap:24px;padding:28px 0 48px}
.tm-cart-items,.tm-summary{background:#fff;border:1px solid var(--tm-line);border-radius:16px;padding:18px}
.tm-cart-row{display:grid;grid-template-columns:72px 1fr auto auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--tm-line)}
.tm-cart-row img{width:72px;height:72px;object-fit:contain}
.tm-summary h2{margin:0 0 12px}
.tm-sum-row{display:flex;justify-content:space-between;margin:8px 0}
.tm-sum-row.total{font-weight:800;font-size:1.15rem;border-top:1px solid var(--tm-line);padding-top:10px}
@media(max-width:800px){.tm-cart,.tm-cart-row{grid-template-columns:1fr}}

/* Reparaciones */
.tm-landing{padding:36px 0 56px;max-width:760px}
.tm-wrap.tm-landing{padding-left:16px;padding-right:16px}
.tm-landing h1{font-size:2rem;margin:0 0 10px}
.tm-landing .lead{color:var(--tm-muted);font-size:1.05rem}

/* WhatsApp float already in old CSS; keep visible */

/* Map existing PDP / cart markup to the new chrome */
.tm-shop .page-narrow{padding:24px 16px 48px;box-sizing:border-box;width:100%;max-width:960px}
.tm-shop .tm-wrap .page-narrow{padding-left:0;padding-right:0}
.tm-shop .tm-wrap.page-narrow{padding-left:16px;padding-right:16px}
.tm-shop .breadcrumb{font-size:.85rem;color:var(--tm-muted);margin:0 0 16px}
.tm-shop .breadcrumb a{color:var(--tm-accent)}
.tm-shop .pdp-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:32px;padding:8px 0 28px}
.tm-shop .pdp-gallery,.tm-shop .pdp-gallery-wrap{background:#fff;border:1px solid var(--tm-line);border-radius:18px;padding:18px}
.tm-shop .pdp-gallery{display:flex;align-items:center;justify-content:center;min-height:320px}
.tm-shop .pdp-gallery img{max-width:100%;max-height:460px;object-fit:contain}
.tm-shop .pdp-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tm-shop .pdp-thumb{width:64px;height:64px;border:1px solid var(--tm-line);border-radius:10px;overflow:hidden;background:#fff;padding:0}
.tm-shop .pdp-thumb.active{border-color:var(--tm-ink)}
.tm-shop .pdp-thumb img{width:100%;height:100%;object-fit:contain}
.tm-shop .pdp-info .product-cat,.tm-shop .pdp-info .tm-brand{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:var(--tm-muted);font-weight:700}
.tm-shop .pdp-info h1{font-size:1.7rem;margin:4px 0 10px}
.tm-shop .pdp-price,.tm-shop .product-price{font-size:1.7rem;font-weight:800}
.tm-shop .pdp-buy{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;align-items:center}
.tm-shop .grado-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.tm-shop .grado-card{background:#fff;border:1px solid var(--tm-line);border-radius:14px;padding:12px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.tm-shop .grado-card.selected{border-color:var(--tm-ink);box-shadow:0 0 0 1px var(--tm-ink)}
.tm-shop .pdp-garantia-section{margin:20px 0}
.tm-shop .cart-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:24px;max-width:100%}
.tm-shop .cart-lines,.tm-shop .cart-summary{background:#fff;border:1px solid var(--tm-line);border-radius:16px;padding:12px 16px;overflow:visible;box-sizing:border-box;min-width:0}
.tm-shop .cart-line{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  gap:12px 16px;
  align-items:center;
  padding:14px 16px;
  margin:0;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--tm-line);
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  box-sizing:border-box;
  min-width:0;
}
.tm-shop .cart-line:last-child{border-bottom:0;padding-bottom:8px}
.tm-shop .cart-line-img img{width:72px;height:72px;object-fit:contain}
.tm-shop .cart-line-body{min-width:0}
.tm-shop .cart-line-title{overflow-wrap:anywhere;word-break:break-word}
.tm-shop .cart-line-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
  flex-shrink:0;
  padding:0;
  min-width:max-content;
}
.tm-shop .cart-line-actions form{margin:0}
.tm-shop .cart-line-actions strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.tm-shop .cart-line-actions .link-danger{padding:8px;margin:0;line-height:1;border-radius:8px}
.tm-shop .page-title{font-size:1.6rem;margin:0 0 16px}
@media(max-width:900px){
  .tm-shop .pdp-layout,.tm-shop .cart-layout{grid-template-columns:1fr}
  .tm-shop .cart-line{
    grid-template-columns:64px minmax(0,1fr) auto;
    gap:10px 12px;
    padding:14px 12px;
  }
  .tm-shop .cart-line-img img{width:64px;height:64px}
  .tm-shop .cart-lines,.tm-shop .cart-summary{padding:10px 10px}
  .tm-shop .cart-line-actions .link-danger{padding:8px;min-width:36px;min-height:36px}
}

/* Catalog product cards (home + listing) */
.tm-shop .tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm-shop .tm-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(32,36,43,.03);
}
.tm-shop .tm-card-media {
  position: relative;
  display: block;
  background: #f3f5f8;
}
.tm-shop .tm-card .tm-photo {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f5f8;
}
.tm-shop .tm-card .tm-photo img {
  height: 88%;
  width: auto;
  max-width: 86%;
  object-fit: contain;
}
.tm-shop .tm-card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #e6e8ec;
  color: #4b5563;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
}
.tm-shop .tm-card-dto {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #e11d2e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
}
.tm-shop .tm-card-ship {
  position: static;
  background: #188251;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.tm-shop .tm-card-ship i { font-size: 10px; flex-shrink: 0; }
.tm-shop .tm-card .tm-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tm-shop .tm-card-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tm-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.tm-shop .tm-card-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 10px 0 0;
  line-height: 1.15;
}
.tm-shop .tm-card-desde {
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-muted);
  letter-spacing: 0;
}
.tm-shop .tm-card-pvpr {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tm-muted);
}
.tm-shop .tm-card-pvpr-lbl {
  text-decoration: underline;
  font-weight: 600;
  margin-right: 4px;
}
.tm-shop .tm-card-pvpr s {
  color: #e11d2e;
  text-decoration: line-through;
  font-weight: 600;
}
.tm-shop .tm-card .tm-btn-block {
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  width: 100%;
}
@media (max-width: 820px) {
  .tm-shop .tm-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tm-shop .tm-card .tm-photo { height: 190px; }
  .tm-shop .tm-card-price { font-size: 20px; }
  .tm-shop .tm-card-title { font-size: 13.5px; min-height: 3.6em; }
}
@media (max-width: 520px) {
  .tm-shop .tm-grid { grid-template-columns: 1fr; }
  .tm-shop .tm-card .tm-photo { height: 240px; }
}

/* Homepage promo banners */
.tm-banners-hero{position:relative;margin:16px 0 14px;border-radius:18px;overflow:hidden;background:#e8eaee;box-shadow:0 1px 2px rgba(32,36,43,.04)}
.tm-banners-viewport{overflow:hidden}
.tm-banners-track{position:relative}
.tm-banner-slide{display:none;color:inherit}
.tm-banner-slide.is-active{display:block}
.tm-banner-slide img,.tm-banner-promo img{width:100%;height:auto;display:block;object-fit:cover}
.tm-banner-slide img{aspect-ratio:1400/420;object-fit:cover}
.tm-banners-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border:0;border-radius:999px;
  background:rgba(15,23,42,.62);color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;z-index:3;
}
.tm-banners-nav:hover{background:rgba(15,23,42,.85)}
.tm-banners-prev{left:12px}
.tm-banners-next{right:12px}
.tm-banners-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:7px;z-index:3}
.tm-banners-dot{width:8px;height:8px;border-radius:99px;border:0;padding:0;background:rgba(255,255,255,.55);cursor:pointer}
.tm-banners-dot.is-active{background:#fff;width:18px}
.tm-banner-ejemplo{
  position:absolute;top:12px;left:12px;z-index:2;
  background:#fff;color:#b45309;font-size:11px;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;
  border-radius:999px;padding:4px 9px;pointer-events:none;
}
.tm-banner-slide,.tm-banner-promo{position:relative}
.tm-banners-promos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 22px}
.tm-banners-promos-n2{grid-template-columns:repeat(2,1fr)}
.tm-banner-promo{display:block;border-radius:16px;overflow:hidden;background:#e8eaee}
.tm-banner-promo img{aspect-ratio:800/300;object-fit:cover}
@media (max-width:767px){
  .tm-banners-hero{margin:12px 0 10px;border-radius:14px}
  .tm-banner-slide img{aspect-ratio:800/720}
  .tm-banners-promos,.tm-banners-promos-n2{grid-template-columns:1fr;gap:10px}
  .tm-banner-promo img{aspect-ratio:800/400}
  .tm-banners-nav{width:34px;height:34px}
}
@media (prefers-reduced-motion:reduce){
  .tm-banner-slide{transition:none}
}

/* --- Hummingbird-adapted components (TM branding; not a copy of third-party custom CSS) --- */
.tm-header { box-shadow: none; }
.tm-header-row { padding: 0.5rem 0; }
.tm-footer { padding-block: 2.5rem 1.25rem; }
/* Product miniature (structure/pattern from Hummingbird, TM colours) */
.tm-shop .product-miniature { container-type: inline-size; container-name: product-miniature; height: 100%; }
.tm-shop .product-miniature__inner {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: 0.5rem;
  transition: box-shadow .2s, border-radius .2s;
  border: 1px solid var(--tm-line);
  overflow: hidden;
}
@media (hover: hover) {
  .tm-shop .product-miniature__inner:hover { box-shadow: 0 0.625rem 1.25rem rgba(0,0,0,.1); }
  .tm-shop .product-miniature__inner:hover .product-miniature__image { transform: scale(1.08); }
}
.tm-shop .product-miniature__top { position: relative; overflow: hidden; border-radius: 0.5rem 0.5rem 0 0; background: #f3f5f8; }
.tm-shop .product-miniature__image-link { display: block; }
.tm-shop .product-miniature__image-container { height: 250px; display: flex; align-items: center; justify-content: center; background: #f3f5f8; }
.tm-shop .product-miniature__image { height: 88%; width: auto; max-width: 86%; object-fit: contain; transition: transform .2s; }
.tm-shop .product-flags {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  width: calc(100% - 1rem); padding: 0.5rem; margin: 0; list-style: none;
  pointer-events: none;
}
.tm-shop .product-flags .badge {
  display: inline-block; padding: 0.2rem 0.5rem; font-size: 0.75rem; font-weight: 600;
  color: #fff; background: var(--tm-accent); border: 1px solid var(--tm-accent); border-radius: 0.25rem;
}
.tm-shop .product-flags .badge.discount {
  color: var(--tm-accent); background: #fff; border-color: var(--tm-accent);
}
.tm-shop .product-miniature__bottom { display: flex; flex-direction: column; flex-grow: 1; gap: 0.5rem; padding: 1rem 0.75rem 0.75rem; }
.tm-shop .product-miniature__infos { display: grid; gap: 0.5rem; }
.tm-shop .product-miniature__title { font-weight: 500; font-size: 0.95rem; line-height: 1.4; color: var(--tm-ink); }
.tm-shop .product-miniature__prices { display: flex; flex-direction: column; gap: 0.25rem; }
.tm-shop .product-miniature__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.6rem;
  width: 100%;
}
.tm-shop .product-miniature__price { font-weight: 600; font-size: 1.125rem; }
.tm-shop .product-miniature__discount-price,
.tm-shop .product-miniature__regular-price { color: rgba(32,36,43,.65); font-size: 0.875rem; }
.tm-shop .product-miniature__regular-price { text-decoration: line-through; }
.tm-shop .tm-card-pvpr-lbl { text-decoration: underline; font-weight: 600; margin-right: 4px; }
.tm-shop .tm-card-desde { font-size: 0.8rem; font-weight: 500; color: var(--tm-muted); margin-right: 4px; }
.tm-shop .product-miniature__actions { margin-top: auto; }
.tm-shop .product-miniature__add { border-radius: 0.25rem; }
.tm-shop .product-miniature .tm-card-ship,
.tm-shop .tm-card-ship {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  background: #188251;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 1 auto;
}

/* PDP (Hummingbird product page pattern) */
.tm-shop.page-product .pdp-layout,
.page-product .pdp-layout { gap: 2rem; }
.page-product .pdp-gallery,
.page-product .pdp-gallery-wrap { border-radius: 0.5rem; overflow: hidden; }
.page-product .pdp-thumb.active { outline: 0.125rem solid var(--tm-accent); outline-offset: -0.125rem; border-color: transparent; }
.page-product .pdp-price,
.page-product .product-price { font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }
.page-product .pdp-info h1 { font-weight: 600; letter-spacing: 0; }
.page-product .pdp-buy .tm-btn { border-radius: 0.25rem; }

@media (max-width: 820px) {
  .tm-shop .product-miniature__image-container { height: 190px; }
}
@media (max-width: 520px) {
  .tm-shop .product-miniature__image-container { height: 240px; }
}

.tm-shop article.tm-card.product-miniature { background: transparent; border: 0; overflow: visible; }

.tm-shop .product-miniature .tm-btn-block,
.tm-shop .product-miniature__add {
  margin-top: 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
  padding: 0.625rem 1rem;
}
.tm-shop .product-miniature .tm-card-ship {
  background: #188251;
  border-radius: 0.25rem;
  font-weight: 600;
  position: static;
  left: auto;
  bottom: auto;
}

/* PDP: badge next to / under price */
.page-product .pdp-price-row,
.tm-shop .pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem 0.85rem;
  margin: 12px 0;
  width: 100%;
}
.page-product .pdp-price-row .pdp-price,
.tm-shop .pdp-price-row .pdp-price {
  margin: 0;
}
.page-product .pdp-ship,
.tm-shop .pdp-ship {
  position: static;
}


/* --- Footer brand, payments, Wallapop, columns (20261123 polish) --- */
.tm-shop .visually-hidden,
.tm-footer .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.tm-footer-brand { min-width: 0; }
.tm-footer-logo,
.tm-footer a.tm-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.tm-footer-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
}
.tm-footer-foto { display: block; margin: 0 0 12px; }
.tm-footer-foto img {
  display: block;
  height: auto;
  width: auto;
  max-height: 72px;
  max-width: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
}
a.tm-wallapop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  background: #13C1AC;
  color: #fff !important;
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  width: fit-content;
  transition: filter .15s ease, transform .15s ease;
}
a.tm-wallapop:hover { color: #fff !important; filter: brightness(1.07); }
a.tm-wallapop:focus-visible { outline: 2px solid #9ff5ea; outline-offset: 3px; }
.tm-wallapop-mark { width: 26px; height: 26px; flex: 0 0 26px; display: block; }
.tm-wallapop-mark svg { display: block; width: 26px; height: 26px; }
.tm-footer .tm-legal {
  grid-column: 1 / -1;
  border-top: 1px solid #34383f;
  margin-top: 8px;
  padding-top: 16px;
  font-size: 12px;
  color: #9aa1ab;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
}
.tm-legal-copy { min-width: 0; }
.tm-footer-pays {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}
.tm-footer-pays-label { color: #9aa1ab; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin: 0; font-weight: 600; }
.tm-pay-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tm-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  height: 30px;
  padding: 0 9px;
  background: #fff;
  color: #20242b;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  line-height: 1;
}
.tm-pay-badge svg { display: block; height: 16px; width: auto; }
.tm-pay-visa svg { height: 14px; width: 36px; }
.tm-pay-mastercard svg { height: 18px; width: 30px; }
.tm-pay-paypal svg { height: 16px; width: 16px; }
.tm-pay-transferencia svg { height: 15px; width: 15px; }
.tm-pay-bizum { display: inline-flex; align-items: center; gap: 6px; }
.tm-pay-bizum-mark { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.tm-pay-bizum-mark svg { width: 16px; height: 16px; }
.tm-pay-bizum-word {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: lowercase;
  color: #007A86;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
}
.tm-pay-xfer-word {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #334155;
}
.tm-footer-acc { margin: 0; min-width: 0; }
.tm-footer-acc > summary {
  color: #fff;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  list-style: none;
  cursor: default;
}
.tm-footer-acc > summary::-webkit-details-marker,
.tm-footer-acc > summary::marker { display: none; content: ''; }
@media (min-width: 821px) {
  .tm-footer-acc > summary { pointer-events: none; }
  .tm-footer-acc > *:not(summary) { display: block !important; }
  .tm-footer .tm-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px 24px;
  }
  .tm-legal-copy { flex: 1 1 auto; white-space: nowrap; }
  .tm-footer-pays { flex: 0 1 auto; }
  .tm-footer .footer-cookie-link { flex: 0 0 auto; margin-left: auto; }
}
@media (max-width: 820px) {
  .tm-footer-acc {
    border-bottom: 1px solid #34383f;
    padding-bottom: 2px;
  }
  .tm-footer-acc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 0;
    padding: 10px 0;
  }
  .tm-footer-acc > summary::after {
    content: '';
    width: 8px; height: 8px;
    border-right: 2px solid #c5c9d1;
    border-bottom: 2px solid #c5c9d1;
    transform: rotate(45deg);
    transition: transform .15s ease;
    margin-left: 8px;
    flex: 0 0 8px;
  }
  .tm-footer-acc[open] > summary::after { transform: rotate(225deg); }
  .tm-footer-logo { padding: 7px 12px; border-radius: 8px; }
  .tm-footer-logo img { max-height: 56px; max-width: 160px; }
  .tm-footer .tm-legal {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }
  .tm-footer-pays { justify-content: flex-start; }
  .tm-footer .footer-cookie-link { justify-self: start; text-align: left; }
}

/* --- Mobile responsiveness (iPhone / 20261123) --- */
.tm-shop .cms-body img,
.tm-shop .cms-body video,
.tm-shop .cms-body iframe,
.tm-shop .tienda-map-wrap,
.tm-shop .tienda-map-wrap iframe {
  max-width: 100%;
}
.tm-shop .tienda-map-wrap iframe {
  width: 100%;
  display: block;
}
.tm-shop .cms-table,
.tm-shop .cms-body table {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.tm-shop .cms-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 820px) {
  .tm-header-row { justify-content: space-between; }
  .tm-acts { margin-left: auto; }
  .tm-nav .tm-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 0;
    overflow: visible;
    padding: 6px 0 8px;
  }
  .tm-nav a {
    white-space: normal;
    text-align: center;
    padding: 8px 11px;
    font-size: 13px;
    line-height: 1.2;
    border-bottom: 0;
    border-radius: 999px;
  }
  .tm-nav a:hover,
  .tm-nav a.is-active {
    background: var(--tm-soft);
    border-bottom-color: transparent;
    color: var(--tm-accent);
  }
  .tm-shop .cms-table,
  .tm-shop .cms-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12.5px;
  }
  .tm-shop .cms-table th,
  .tm-shop .cms-table td,
  .tm-shop .cms-body table th,
  .tm-shop .cms-body table td {
    padding: 8px 8px;
    word-break: break-word;
  }
  .tm-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tm-footer-brand p,
  .tm-footer-brand a:not(.tm-wallapop):not(.tm-footer-logo) {
    text-align: center;
  }
  .tm-footer a.tm-footer-logo,
  .tm-footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  a.tm-wallapop {
    margin-left: auto;
    margin-right: auto;
  }
  .tm-footer .tm-legal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .tm-legal-copy {
    text-align: center;
    width: 100%;
  }
  .tm-footer-pays,
  .tm-pay-badges {
    justify-content: center;
  }
  .tm-footer .footer-cookie-link {
    justify-self: center;
    text-align: center;
    width: 100%;
  }
}

/* --- Checkout / account address & mobile form (20261124) --- */
.tm-shop .form-grid input:not([type="radio"]):not([type="checkbox"]),
.tm-shop .form-grid select,
.tm-shop .form-grid textarea,
.tm-shop .checkout-form input:not([type="radio"]):not([type="checkbox"]),
.tm-shop .checkout-form select,
.tm-shop .checkout-form textarea,
.tm-shop .auth-card input:not([type="radio"]):not([type="checkbox"]),
.tm-shop .auth-card select,
.tm-shop .auth-card textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.tm-shop .checkout-form input[type="radio"],
.tm-shop .checkout-form input[type="checkbox"],
.tm-shop .form-grid input[type="radio"],
.tm-shop .form-grid input[type="checkbox"],
.tm-shop .auth-card input[type="radio"],
.tm-shop .auth-card input[type="checkbox"] {
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
}
.tm-cp-notice {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.45;
}
.tm-cp-notice.is-visible,
.tm-cp-notice:not([hidden]) {
  display: block;
}
.tm-cp-notice[hidden] { display: none !important; }
.tm-cp-notice p { margin: 0; }
.tm-cp-notice a { color: #9a3412; font-weight: 700; text-decoration: underline; }
.tm-localidad-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tm-localidad-chips[hidden] { display: none !important; }
.tm-localidad-chip {
  border: 1px solid var(--tm-line, #e1e5eb);
  background: #fff;
  color: var(--tm-ink, #20242b);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.tm-localidad-chip:hover { border-color: var(--tm-accent, #1f4e8c); color: var(--tm-accent, #1f4e8c); }
.tm-recogida-lead { margin: 0 0 10px; color: var(--tm-muted, #566170); font-size: 14px; }
.tm-recogida-card {
  background: var(--tm-soft, #f7f9fc);
  border: 1px solid var(--tm-line, #e1e5eb);
  border-radius: 12px;
  padding: 14px 16px;
}
.tm-recogida-card p { margin: 4px 0 0; color: var(--tm-muted, #566170); }
.tm-shop [data-pickup-card][hidden],
.tm-shop [data-address-block][hidden] { display: none !important; }

@media (max-width: 820px) {
  .tm-shop .form-grid input:not([type="radio"]):not([type="checkbox"]),
  .tm-shop .form-grid select,
  .tm-shop .form-grid textarea,
  .tm-shop .checkout-form input:not([type="radio"]):not([type="checkbox"]),
  .tm-shop .checkout-form select,
  .tm-shop .checkout-form textarea,
  .tm-shop .auth-card input:not([type="radio"]):not([type="checkbox"]),
  .tm-shop .auth-card select,
  .tm-shop .auth-card textarea {
    font-size: 16px;
  }
}
@media (max-width: 640px) {
  .tm-shop .form-grid { grid-template-columns: 1fr; }
}
