/* Tienda Siammo — Bootstrap 4. Color principal por variable: --t-primary */
:root {
    --t-primary: #ffdb00;
    --t-text: #333;
    --t-muted: #999;
    --t-green: #00a650;
    --t-blue: #3483fa;
    --t-bg: #ebebeb;
    --t-radius: 6px;
}

.t-body { background: var(--t-bg); color: var(--t-text); }

/* ---------- Header ---------- */
.t-header { background: var(--t-primary); position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.t-header__row { display: flex; align-items: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.t-logo { font-weight: 700; font-size: 1.25rem; color: #333; text-decoration: none; margin-right: 24px; white-space: nowrap; }
.t-logo:hover { color: #333; text-decoration: none; }

.t-search { flex: 1 1 320px; display: flex; background: #fff; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.2); order: 2; }
.t-search input { flex: 1; border: 0; padding: 10px 14px; font-size: 1rem; background: transparent; outline: none; min-width: 0; }
.t-search button { border: 0; border-left: 1px solid #eee; background: transparent; padding: 0 16px; color: #666; }

.t-cart { margin-left: 20px; color: #333; position: relative; order: 3; display: inline-flex; padding: 4px; }
.t-cart:hover { color: #333; text-decoration: none; }
.t-cart__n { position: absolute; top: -4px; right: -6px; background: #fff; color: #333; border-radius: 10px; font-size: .7rem; line-height: 1; padding: 3px 6px; font-weight: 700; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

.t-logo { order: 1; flex: 1 1 auto; }
@media (min-width: 768px) { .t-logo { flex: 0 0 auto; } }
@media (max-width: 767.98px) {
    .t-search { flex-basis: 100%; margin-top: 8px; order: 4; }
}

.t-nav { background: rgba(255,255,255,.35); font-size: .85rem; }
.t-nav .container { display: flex; overflow-x: auto; white-space: nowrap; }
.t-nav a { color: #333; padding: 8px 14px; text-decoration: none; }
.t-nav a:hover { background: rgba(0,0,0,.06); text-decoration: none; }

/* ---------- Hero ---------- */
.t-hero { background-size: cover; background-position: center; min-height: 220px; display: flex; align-items: center; position: relative; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05)); }
.t-hero__inner { position: relative; color: #fff; padding-top: 32px; padding-bottom: 32px; }
.t-hero h1 { font-size: 1.8rem; font-weight: 700; }
.t-hero__frase { font-size: 1.15rem; margin-bottom: .25rem; }
.t-hero__parrafo { max-width: 520px; opacity: .95; }
.t-btn { background: var(--t-blue); color: #fff; border-radius: var(--t-radius); padding: 8px 20px; }
.t-btn:hover { color: #fff; filter: brightness(.95); }
@media (min-width: 992px) { .t-hero { min-height: 320px; } .t-hero h1 { font-size: 2.4rem; } }

/* ---------- Secciones y carruseles ---------- */
.t-band { background-size: cover; background-position: center; padding: 1px 0; }
.t-section { background: #fff; border-radius: var(--t-radius); box-shadow: 0 1px 2px rgba(0,0,0,.12); margin-top: 20px; margin-bottom: 20px; padding: 18px 16px; }
.t-section__title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.t-section__sub { color: var(--t-muted); margin: 2px 0 0; font-size: .9rem; }
.t-section__head { margin-bottom: 14px; }

.t-scroller-wrap { position: relative; }
.t-scroller { --cols: 2; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.t-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 576px) { .t-scroller { --cols: 3; } }
@media (min-width: 768px) { .t-scroller { --cols: 4; } }
@media (min-width: 992px) { .t-scroller { --cols: 5; } }

.t-arrow { display: none; position: absolute; top: 40%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 1.6rem; line-height: 1; color: var(--t-blue); }
.t-arrow--prev { left: -14px; }
.t-arrow--next { right: -14px; }
@media (min-width: 992px) { .t-arrow { display: block; } }

/* ---------- Tarjeta de producto ---------- */
.t-card { flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); scroll-snap-align: start; background: #fff; border: 1px solid #eee; border-radius: var(--t-radius); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s; }
.t-card:hover { color: inherit; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.t-card__img { aspect-ratio: 1 / 1; background: #f7f7f7; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; }
.t-card__img img { width: 100%; height: 100%; object-fit: contain; }
.t-card__nostock { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 3px; }
.t-card__body { padding: 12px 14px 16px; }
.t-card__old { color: var(--t-muted); text-decoration: line-through; font-size: .85rem; }
.t-card__price { font-size: 1.5rem; line-height: 1.2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.t-card__off { color: var(--t-green); font-size: .85rem; font-weight: 600; }
.t-card__title { margin-top: 6px; font-size: .9rem; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }

/* ---------- Footer ---------- */
.t-footer { background: #333; color: #ccc; padding: 24px 0; margin-top: 32px; font-size: .9rem; }

/* ---------- Tarjeta: enlace + acciones ---------- */
.t-card__link { display: block; flex: 1 1 auto; color: inherit; text-decoration: none; }
.t-card__link:hover { color: inherit; text-decoration: none; }
.t-card__actions { padding: 0 14px 14px; }
.t-card__actions .btn { width: 100%; }
.t-btn-outline { background: #e3edfb; color: var(--t-blue); border-radius: var(--t-radius); font-weight: 600; }
.t-btn-outline:hover { background: #d3e3fa; color: var(--t-blue); }

/* ---------- Header: finalizar compra ---------- */
.t-checkout { order: 3; margin-left: 16px; background: var(--t-blue); color: #fff; border-radius: var(--t-radius); padding: 6px 14px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.t-checkout:hover { color: #fff; text-decoration: none; filter: brightness(.95); }

/* ---------- Páginas internas (carrito, checkout, gracias) ---------- */
.t-page { padding-top: 24px; padding-bottom: 8px; }
.t-page__title { font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; }
.t-box { background: #fff; border-radius: var(--t-radius); box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 18px 20px; margin-bottom: 16px; }
.t-box__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }

.t-line { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; }
.t-line:last-child { border-bottom: 0; }
.t-line__img { flex: 0 0 80px; height: 80px; background: #f7f7f7; border: 1px solid #eee; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t-line__img img { width: 100%; height: 100%; object-fit: contain; }
.t-line__info { flex: 1 1 auto; min-width: 0; }
.t-line__title { color: var(--t-text); font-size: .95rem; }
.t-line__qty { flex: 0 0 72px; }
.t-line__price { flex: 0 0 100px; text-align: right; }
.t-line__subtotal { font-size: 1.15rem; }
@media (max-width: 575.98px) {
    .t-line { flex-wrap: wrap; }
    .t-line__info { flex-basis: calc(100% - 94px); }
    .t-line__qty { margin-left: 94px; }
    .t-line__price { flex: 1 1 auto; }
}

.t-summary { position: sticky; top: 90px; }
.t-summary__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.t-summary__total { font-size: 1.25rem; }
.t-mini { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 4px 0; }
.t-mini__name { min-width: 0; }

.t-ok { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--t-green); color: #fff; font-size: 2rem; }

/* ---------- Listado: filtros, chips y grilla ---------- */
.t-grid .t-card { height: 100%; }
.t-filter { padding: 14px 16px; margin-bottom: 12px; }
.t-filter__title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.t-filter__list { list-style: none; margin: 0; padding: 0; }
.t-filter__list li a { display: block; padding: 3px 0; color: var(--t-text); font-size: .92rem; }
.t-filter__list li a:hover { color: var(--t-blue); text-decoration: none; }
.t-filter__list li a.is-active { font-weight: 700; color: var(--t-blue); }
.t-filter__n { color: var(--t-muted); font-size: .8rem; }
.t-filter .custom-control { margin-bottom: 4px; font-size: .92rem; }
.t-filter__hint { color: var(--t-muted); font-size: .8rem; margin: 8px 0 0; }
.t-price-inputs { display: flex; align-items: center; gap: 6px; }
.t-price-inputs input { min-width: 0; }
.t-sort { width: auto; min-width: 160px; }
.t-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.t-chip { background: #fff; border: 1px solid #ddd; border-radius: 16px; padding: 3px 12px; font-size: .85rem; color: var(--t-text); }
.t-chip:hover { border-color: var(--t-blue); color: var(--t-blue); text-decoration: none; }
.t-chips__clear { font-size: .85rem; margin-left: 4px; }

/* ---------- Ficha de producto ---------- */
.t-bread { font-size: .85rem; color: var(--t-muted); margin-bottom: 12px; }
.t-bread a { color: var(--t-blue); }
.t-bread span { margin: 0 4px; }
.t-bread__actual { color: var(--t-text); }

.t-ficha { padding: 24px; }
.t-ficha__title { font-size: 1.4rem; font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.t-ficha__old { color: var(--t-muted); text-decoration: line-through; font-size: 1rem; }
.t-ficha__priceRow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin-bottom: 18px; }
.t-ficha__price { font-size: 2.2rem; line-height: 1.2; }
.t-ficha__priceRow .t-card__off { font-size: 1rem; }

/* Galería: miniaturas a la izquierda en escritorio, debajo en celular */
.t-gal { display: flex; gap: 12px; }
.t-gal__thumbs { display: flex; flex-direction: column; gap: 8px; flex: 0 0 64px; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
.t-gal__thumbs::-webkit-scrollbar { display: none; }
.t-gal__thumb { width: 64px; height: 64px; padding: 2px; background: #fff; border: 2px solid #e5e5e5; border-radius: 4px; cursor: pointer; flex: 0 0 auto; }
.t-gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.t-gal__thumb.is-active, .t-gal__thumb:hover { border-color: var(--t-blue); }
.t-gal__main { flex: 1 1 auto; min-width: 0; aspect-ratio: 1 / 1; background: #f7f7f7; border-radius: var(--t-radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t-gal__main img { width: 100%; height: 100%; object-fit: contain; }
.t-gal__empty { color: var(--t-muted); }
@media (max-width: 767.98px) {
    .t-gal { flex-direction: column-reverse; }
    .t-gal__thumbs { flex-direction: row; flex: 0 0 auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
}

/* Variantes y stock */
.t-var { margin-bottom: 14px; }
.t-var__label { font-size: .9rem; color: #555; margin-bottom: 6px; }
.t-chipvar { margin: 0 6px 6px 0; padding: 6px 14px; min-width: 44px; background: #fff; border: 1px solid #ccc; border-radius: var(--t-radius); font-size: .9rem; cursor: pointer; }
.t-chipvar:hover:not(:disabled) { border-color: var(--t-blue); }
.t-chipvar.is-active { border: 2px solid var(--t-blue); color: var(--t-blue); font-weight: 600; padding: 5px 13px; }
.t-chipvar.is-off { color: #bbb; text-decoration: line-through; background: #f7f7f7; cursor: not-allowed; }
.t-stock { font-weight: 600; margin: 4px 0 12px; }
.t-stock--poco { color: #e08a00; }
.t-stock--no { color: #d93025; }
.t-qty { max-width: 120px; }
.t-desc { line-height: 1.6; }