/* Tienda: listado, ficha, carrito, checkout, seguimiento y combos.
   Se carga solo en esas páginas (extraCss) para no engordar styles.css.
   Mismo lenguaje que la home: crema cálido, tarjetas blancas con sombra suave,
   Montserrat pesada y el naranja de marca para la acción principal. */

:root {
  --tn-ink: #141210;
  --tn-soft: #6b6159;
  --tn-line: #eadfd6;
  --tn-card: #fff;
  --tn-tint: #fff1e8;
  --tn-ok: #157347;
  --tn-bad: #b42318;
  --tn-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 28px rgba(60, 30, 10, .08);
  --tn-r: 16px;
}

.tn-page [hidden] { display: none !important }
.tn-page { max-width: 1320px; margin: 0 auto; padding: 18px 16px 72px; color: var(--tn-ink) }
.tn-page--narrow { max-width: 1080px }
.tn-muted { color: var(--tn-soft); font-size: .92rem }
.tn-center { text-align: center }
.tn-h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; margin: 0 }
.tn-h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px }
.tn-intro { margin: 8px 0 0; color: var(--tn-soft); max-width: 62ch; line-height: 1.55 }

/* Migas */
.tn-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--tn-soft) }
.tn-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5 }
.tn-crumbs a { color: var(--tn-soft) }
.tn-crumbs a:hover { color: var(--brand) }

/* Encabezado */
.tn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px }
.tn-head--row { align-items: center }
.tn-head-text { flex: 1 1 420px; min-width: 0 }

/* Botones */
.tn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; white-space: nowrap }
.tn-btn:active { transform: translateY(1px) }
.tn-btn:disabled { opacity: .45; cursor: not-allowed }
.tn-btn--primary { background: var(--brand); color: #fff }
.tn-btn--primary:hover:not(:disabled) { background: #d94f00 }
.tn-btn--ghost { background: #fff; color: var(--tn-ink); border-color: var(--tn-line) }
.tn-btn--ghost:hover:not(:disabled) { border-color: var(--tn-ink) }
.tn-btn--light { background: #fff; color: var(--tn-ink) }
.tn-btn--wa { background: #e8f8ee; color: #0b5d2a; border-color: #bfe8cf }
.tn-btn--wa:hover { background: #d6f2e1 }
.tn-btn--icon { padding: 10px 14px; background: var(--tn-tint); color: var(--tn-ink) }
.tn-btn--icon:hover:not(:disabled) { background: #ffe2cf }
.tn-btn--lg { min-height: 52px; font-size: 1rem; padding: 12px 22px }
.tn-btn--block { width: 100% }
.tn-btn .ni { width: 18px; height: 18px }
.tn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--tn-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px }
.tn-link:hover { color: var(--brand) }
.tn-link--danger { color: var(--tn-bad); font-size: .85rem }
.tn-link .ni { width: 16px; height: 16px }

/* Banner promocional */
.tn-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--tn-ink); color: #fff; border-radius: var(--tn-r); padding: 14px 18px; margin-bottom: 16px }
.tn-banner p { margin: 0; font-weight: 700 }

/* Mi moto */
.tn-mybike { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--tn-line); border-radius: 999px; padding: 4px 6px 4px 14px }
.tn-mybike-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; white-space: nowrap; margin: 0 }
.tn-mybike-label .ni { width: 20px; height: 20px; color: var(--brand) }
.tn-mybike select { border: 0; background: var(--tn-tint); border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 700; max-width: 240px; min-height: 36px }

/* Categorías */
.tn-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin }
.tn-cat { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--tn-line); font-weight: 700; font-size: .88rem; color: var(--tn-ink) }
.tn-cat span { color: var(--tn-soft); font-weight: 600 }
.tn-cat:hover { border-color: var(--tn-ink) }
.tn-cat.is-active { background: var(--tn-ink); border-color: var(--tn-ink); color: #fff }
.tn-cat.is-active span { color: #d9cfc7 }
.tn-filter-note { background: var(--tn-tint); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem }
.tn-filter-note a { font-weight: 700; text-decoration: underline }

/* Layout listado */
.tn-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start }
.tn-side { position: sticky; top: calc(var(--header-offset, 100px) + 12px) }
.tn-filters { background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 4px 16px }
.tn-filters summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between }
.tn-filters summary::after { content: '+'; font-weight: 900 }
.tn-filters[open] summary::after { content: '-' }
.tn-filters form { padding-bottom: 14px }
.tn-field { display: grid; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0 }
.tn-field label, .tn-field legend { font-weight: 700; font-size: .88rem; color: var(--tn-ink); padding: 0 }
.tn-field small { color: var(--tn-soft); font-size: .8rem }
.tn-field input, .tn-field select, .tn-field textarea { width: 100%; box-sizing: border-box; font: inherit; background: #fff; border: 1.5px solid var(--tn-line); border-radius: 12px; padding: 11px 12px; color: var(--tn-ink); min-height: 44px }
.tn-field input:focus, .tn-field select:focus, .tn-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 92, 5, .15) }
.tn-field--short { max-width: 220px }
.tn-range { grid-template-columns: 1fr 1fr }
.tn-range legend { grid-column: 1 / -1; margin-bottom: 6px }
.tn-range label { display: block }
.tn-filter-actions { display: flex; gap: 8px; flex-wrap: wrap }
.tn-count { margin: 0 0 12px; color: var(--tn-soft); font-weight: 600; font-size: .9rem }

/* Rejilla y tarjeta */
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px }
.tn-grid--row { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) }
.tn-card { display: flex; flex-direction: column; background: var(--tn-card); border-radius: var(--tn-r); box-shadow: var(--tn-shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; min-width: 0 }
.tn-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 16px 36px rgba(60, 30, 10, .12) }
.tn-card-media { position: relative; display: block; aspect-ratio: 1; background: #f4ede6 }
.tn-card-media img { width: 100%; height: 100%; object-fit: cover; display: block }
.tn-card.is-soldout .tn-card-media img { filter: grayscale(.8); opacity: .7 }
.tn-nophoto { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: #c9b8a9; background: repeating-linear-gradient(135deg, #f6efe8 0 12px, #f1e8df 12px 24px); text-align: center; font-size: .85rem; font-weight: 700; padding: 12px }
.tn-nophoto .ni { width: 44px; height: 44px; stroke-width: 1.5 }
.tn-nophoto--lg .ni { width: 72px; height: 72px }
.tn-tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 900 }
.tn-tag--off { background: var(--brand); color: #fff }
.tn-tag--out { left: auto; right: 10px; background: var(--tn-ink); color: #fff }
.tn-card-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1 }
.tn-card-brand { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 }
.tn-card-title { font-size: 1rem; font-weight: 800; line-height: 1.3; margin: 0 }
.tn-card-title a { color: inherit }
.tn-card-title a::after { content: ''; position: absolute; inset: 0 }
.tn-card { position: relative }
.tn-card-actions { position: relative; z-index: 1 }
.tn-card-note { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--tn-soft); font-weight: 600 }
.tn-card-note .ni { width: 14px; height: 14px; color: var(--brand) }
.tn-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 6px }
.tn-price-now { font-size: 1.08rem; font-weight: 900 }
.tn-price-was { color: var(--tn-soft); font-size: .85rem }
.tn-price-club { flex-basis: 100%; font-size: .8rem; font-weight: 700; color: #7a3d00; background: var(--tn-tint); border-radius: 8px; padding: 3px 8px; justify-self: start; width: fit-content; margin: 0 }
.tn-card-actions { display: flex; gap: 8px; padding: 10px 16px 16px }
.tn-card-actions .tn-btn--primary { flex: 1; min-width: 0 }
.tn-card-actions .tn-btn--ghost { flex: 1 }
.tn-card-actions .tn-btn--icon span { display: none }

/* Vacío y paginación */
.tn-empty { background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 28px; text-align: center }
.tn-empty h2 { font-size: 1.2rem; margin: 0 0 8px }
.tn-empty p { color: var(--tn-soft); margin: 0 auto 16px; max-width: 52ch }
.tn-empty--page { margin: 24px auto; max-width: 560px }
.tn-empty--page > .ni { width: 52px; height: 52px; color: var(--brand); margin-bottom: 8px }
.tn-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.tn-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0 }
.tn-pager a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--tn-line); font-weight: 700 }
.tn-pager a.is-active { background: var(--tn-ink); color: #fff; border-color: var(--tn-ink) }

/* Secciones auxiliares */
.tn-section { margin-top: 40px }
.tn-services, .tn-bikes, .tn-combo-links, .tn-compat { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px }
.tn-services a, .tn-bikes a, .tn-combo-links a, .tn-compat a { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; background: #fff; border: 1.5px solid var(--tn-line); border-radius: 14px; padding: 12px 14px; color: var(--tn-ink) }
.tn-services a:hover, .tn-bikes a:hover, .tn-combo-links a:hover, .tn-compat a:hover { border-color: var(--brand); background: #fffaf6 }
.tn-services span, .tn-bikes span, .tn-combo-links span, .tn-compat span { color: var(--tn-soft); font-size: .85rem }
.tn-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tn-tint); font-weight: 700; font-size: .85rem }

/* Ficha */
.tn-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start }
.tn-gallery { position: sticky; top: calc(var(--header-offset, 100px) + 12px) }
.tn-gallery-main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #f4ede6; box-shadow: var(--tn-shadow) }
.tn-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block }
.tn-thumbs { display: flex; gap: 8px; list-style: none; padding: 10px 0 0; margin: 0; overflow-x: auto }
.tn-thumb { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #f4ede6; cursor: pointer; flex: none }
.tn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.tn-thumb.is-active { border-color: var(--brand) }
.tn-pdp-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 900; line-height: 1.15; margin: 4px 0 8px }
.tn-pdp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tn-soft); font-size: .88rem; margin: 0 0 12px }
.tn-pdp-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--tn-ink); font-weight: 700 }
.tn-stars { --r: 0; display: inline-block; width: 86px; height: 16px; background: linear-gradient(90deg, #f5a524 calc(var(--r) / 5 * 100%), #e4dbd3 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cpath d='M8 0l2.4 5 5.4.6-4 3.7 1.1 5.3L8 11.9 3.1 14.6l1.1-5.3-4-3.7L5.6 5zM25.5 0l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6zM43 0l2.4 5 5.4.6-4 3.7 1.1 5.3L43 11.9l-4.9 2.7 1.1-5.3-4-3.7 5.4-.6zM60.5 0l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6zM78 0l2.4 5 5.4.6-4 3.7 1.1 5.3L78 11.9l-4.9 2.7 1.1-5.3-4-3.7 5.4-.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cpath d='M8 0l2.4 5 5.4.6-4 3.7 1.1 5.3L8 11.9 3.1 14.6l1.1-5.3-4-3.7L5.6 5zM25.5 0l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6zM43 0l2.4 5 5.4.6-4 3.7 1.1 5.3L43 11.9l-4.9 2.7 1.1-5.3-4-3.7 5.4-.6zM60.5 0l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6zM78 0l2.4 5 5.4.6-4 3.7 1.1 5.3L78 11.9l-4.9 2.7 1.1-5.3-4-3.7 5.4-.6z'/%3E%3C/svg%3E") center / contain no-repeat }
.tn-fit { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: .92rem; margin: 0 0 14px }
.tn-fit .ni { width: 18px; height: 18px }
.tn-fit.is-yes { background: #e8f6ee; color: var(--tn-ok) }
.tn-fit.is-unknown { background: #f6f1ec; color: var(--tn-soft) }
.tn-fit a { color: inherit; text-decoration: underline }
.tn-pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px }
.tn-pdp-price .tn-price-now { font-size: 1.9rem }
.tn-pdp-price .tn-price-club { padding: 6px 10px; font-size: .88rem }
.tn-pdp-price .tn-price-club a { text-decoration: underline; margin-left: 6px }
.tn-stock { font-weight: 700; color: var(--tn-ok); margin: 8px 0 16px; font-size: .92rem }
.tn-stock.is-out { color: var(--tn-bad) }
.tn-buy { display: grid; gap: 14px }
.tn-opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px }
.tn-opts legend { font-weight: 800; font-size: .9rem; margin-bottom: 6px; width: 100% }
.tn-opt { position: relative; cursor: pointer }
.tn-opt input { position: absolute; opacity: 0; inset: 0 }
.tn-opt span { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--tn-line); background: #fff; font-weight: 700 }
.tn-opt input:checked + span { border-color: var(--tn-ink); background: var(--tn-ink); color: #fff }
.tn-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 92, 5, .3) }
.tn-opt.is-out span { text-decoration: line-through; opacity: .5 }
.tn-opts-hint { margin: -4px 0 0; font-size: .85rem; color: var(--tn-soft) }
.tn-opts-hint.is-error { color: var(--tn-bad); font-weight: 700 }
.tn-qty { display: flex; align-items: center; gap: 12px }
.tn-qty label { font-weight: 800; font-size: .9rem }
.tn-qty-ctrl { display: inline-flex; align-items: center; border: 1.5px solid var(--tn-line); border-radius: 999px; background: #fff; overflow: hidden }
.tn-qty-ctrl button { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer }
.tn-qty-ctrl button:hover { background: var(--tn-tint) }
.tn-qty-ctrl input, .tn-qty-ctrl output { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 800; background: none; -moz-appearance: textfield }
.tn-qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none }
.tn-addon { display: flex; gap: 12px; align-items: flex-start; background: var(--tn-tint); border: 1.5px solid #ffd9c2; border-radius: 14px; padding: 14px; cursor: pointer }
.tn-addon input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none }
.tn-addon-body { display: grid; gap: 2px }
.tn-addon-body span { color: var(--tn-soft); font-size: .88rem }
.tn-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.tn-assure { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--tn-line); display: grid; gap: 10px; font-size: .9rem }
.tn-assure li { display: flex; gap: 10px; align-items: flex-start }
.tn-assure .ni { width: 18px; height: 18px; color: var(--brand); margin-top: 2px }
.tn-assure a { text-decoration: underline; font-weight: 600 }
.tn-wa-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap }
.tn-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px }
.tn-detail { background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 20px }
.tn-detail p { line-height: 1.6; margin: 0 0 10px }
.tn-specs { margin: 0; display: grid }
.tn-specs div { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--tn-line) }
.tn-specs dt { color: var(--tn-soft); font-weight: 600 }
.tn-specs dd { margin: 0; font-weight: 700 }
.tn-list { margin: 0; padding-left: 18px; line-height: 1.7 }
.tn-compat { grid-template-columns: 1fr }
.tn-admin-note { background: #fff4d6; border-radius: 12px; padding: 10px 14px; font-weight: 700 }

/* Reseñas */
.tn-reviews-sum { display: flex; align-items: center; gap: 10px; margin: 0 0 14px }
.tn-review-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px }
.tn-review-list li { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--tn-shadow) }
.tn-review-list p { margin: 0 0 6px }
.tn-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.tn-review-form { background: #fff; border-radius: var(--tn-r); border: 1.5px solid var(--tn-line); padding: 4px 16px; max-width: 720px }
.tn-review-form summary { cursor: pointer; font-weight: 800; padding: 12px 0 }
.tn-review-form form { padding-bottom: 16px }
.tn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px }
.tn-row--end { align-items: end }
.tn-row--end .tn-btn { margin-bottom: 14px }
.tn-rate { display: flex; flex-wrap: wrap; gap: 8px }
.tn-rate legend { width: 100%; margin-bottom: 6px }
.tn-rate label { position: relative }
.tn-rate input { position: absolute; opacity: 0 }
.tn-rate span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--tn-line); font-weight: 800; cursor: pointer }
.tn-rate input:checked + span { background: #f5a524; border-color: #f5a524; color: #1a1205 }
.tn-rate input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 92, 5, .3) }

/* Barra fija de compra (móvil) */
.tn-sticky-buy { display: none }

/* Carrito */
.tn-cart, .tn-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start }
.tn-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px }
.tn-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 14px }
.tn-line-img { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #f4ede6 }
.tn-line-img img { width: 100%; height: 100%; object-fit: cover }
.tn-line-img .tn-nophoto .ni { width: 28px; height: 28px }
.tn-line-body { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.tn-line-name { font-weight: 800; color: var(--tn-ink) }
.tn-line-unit { font-size: .85rem; color: var(--tn-soft) }
.tn-line-qty { display: flex; align-items: center; gap: 14px; margin-top: 6px }
.tn-line-qty .tn-qty-ctrl button { width: 38px; height: 38px }
.tn-line-install { margin-top: 4px }
.tn-line-total { font-weight: 900; white-space: nowrap }
.tn-chip-ok { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #e8f6ee; color: #0e5532; padding: 6px 10px; border-radius: 10px; font-size: .85rem; font-weight: 700; margin: 0 }
.tn-chip-ok .ni { width: 16px; height: 16px }
.tn-summary { position: sticky; top: calc(var(--header-offset, 100px) + 12px); background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 20px; display: grid; gap: 12px }
.tn-summary .tn-h2 { margin: 0 }
.tn-totals { margin: 0; display: grid; gap: 8px }
.tn-totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem }
.tn-totals dt { color: var(--tn-soft) }
.tn-totals dd { margin: 0; font-weight: 700; text-align: right }
.tn-totals .is-discount dd { color: var(--tn-ok) }
.tn-totals .is-total { border-top: 1px solid var(--tn-line); padding-top: 10px; font-size: 1.1rem }
.tn-totals .is-total dt { color: var(--tn-ink); font-weight: 800 }
.tn-totals .is-total dd { font-weight: 900 }
.tn-savings { margin: 0; background: #e8f6ee; color: #0e5532; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: .9rem }

/* Checkout */
.tn-checkout-main { display: grid; gap: 16px; min-width: 0 }
.tn-step { background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 20px }
.tn-step-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 900; margin: 0 0 14px }
.tn-step-title span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tn-ink); color: #fff; font-size: .85rem }
.tn-choices { display: grid; gap: 10px; margin-bottom: 14px }
.tn-choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--tn-line); border-radius: 14px; padding: 14px; cursor: pointer }
.tn-choice:has(input:checked) { border-color: var(--brand); background: #fffaf6 }
.tn-choice input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; flex: none }
.tn-choice span { display: grid; gap: 2px }
.tn-choice small { color: var(--tn-soft) }
.tn-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; cursor: pointer }
.tn-check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; flex: none }
.tn-check a { text-decoration: underline }
.tn-coupon-msg { margin: -6px 0 12px; font-size: .88rem; color: var(--tn-ok); font-weight: 700 }
.tn-coupon-msg.is-error { color: var(--tn-bad) }
.tn-alert { background: #fdecea; color: #7a1a12; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px }
.tn-alert ul { margin: 6px 0 0; padding-left: 18px }
.tn-sum-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem }
.tn-sum-lines li { display: flex; justify-content: space-between; gap: 10px }
.tn-sum-lines small { display: block; color: var(--tn-soft) }

/* Confirmación y seguimiento */
.tn-done { background: #fff; border-radius: 20px; box-shadow: var(--tn-shadow); padding: 32px; max-width: 680px; margin: 16px auto; display: grid; gap: 14px; text-align: center }
.tn-done .tn-totals { text-align: left }
.tn-done-icon { width: 56px; height: 56px; color: var(--tn-ok); justify-self: center }
.tn-done-code strong { font-size: 1.3rem; letter-spacing: .05em }
.tn-track { background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 20px; margin-bottom: 20px }
.tn-track-result { background: #fff; border-radius: var(--tn-r); box-shadow: var(--tn-shadow); padding: 20px; display: grid; gap: 12px; margin-bottom: 20px }
.tn-steps { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s }
.tn-steps li { counter-increment: s; font-size: .85rem; font-weight: 700; color: var(--tn-soft); display: grid; gap: 6px; text-align: center }
.tn-steps li::before { content: counter(s); justify-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f1e8df; color: var(--tn-soft) }
.tn-steps li.is-done { color: var(--tn-ink) }
.tn-steps li.is-done::before { content: '✓'; background: var(--tn-ok); color: #fff }
.tn-steps li.is-current::before { box-shadow: 0 0 0 4px rgba(21, 115, 71, .2) }

/* Combos */
.tn-combo { margin-top: 28px; background: #fff; border-radius: 20px; box-shadow: var(--tn-shadow); padding: 22px }
.tn-combo-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between }
.tn-tiers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px }
.tn-tiers li { background: var(--tn-tint); border-radius: 999px; padding: 6px 12px; font-size: .88rem }
.tn-combo-cta { margin: 0 0 16px }
.tn-combo .tn-savings { display: inline-block; margin-bottom: 12px }

@media (max-width: 960px) {
  .tn-layout { grid-template-columns: 1fr }
  .tn-side { position: static }
  .tn-pdp { grid-template-columns: 1fr; gap: 20px }
  .tn-gallery { position: static }
  .tn-cart, .tn-checkout { grid-template-columns: 1fr }
  .tn-summary { position: static }
}

@media (max-width: 640px) {
  .tn-page { padding: 12px 16px 96px }
  .tn-head { align-items: stretch }
  .tn-mybike { width: 100%; box-sizing: border-box }
  .tn-mybike select { flex: 1; max-width: none }
  .tn-grid, .tn-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .tn-card-body { padding: 10px 12px 4px }
  .tn-card-title { font-size: .92rem }
  .tn-price-now { font-size: .98rem }
  .tn-card-actions { flex-direction: column; padding: 8px 12px 12px }
  .tn-card-actions .tn-btn { min-height: 40px; font-size: .85rem; padding: 8px 10px }
  .tn-card-actions .tn-btn--icon span { display: inline }
  .tn-cta { grid-template-columns: 1fr }
  .tn-line { grid-template-columns: 64px minmax(0, 1fr); }
  .tn-line-img { width: 64px; height: 64px }
  .tn-line-total { grid-column: 2; }
  .tn-steps { grid-template-columns: 1fr 1fr }
  .tn-sticky-buy:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--mbar-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 150; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .12) }
  body.page-product .whatsapp-fab { bottom: calc(var(--mbar-h, 0px) + 84px) }
}

@media (prefers-reduced-motion: reduce) {
  .tn-card, .tn-btn { transition: none }
  .tn-card:hover { transform: none }
}
