/* Tienda Isla (islamascotas.com.ar y /tienda): la cara para el público, arriba de lo de la lista.
   Todo cuelga de body.ti (la lista de los comercios no lo carga). 19-nov-2026. */

/* --- cabecera más corta: la portada reemplaza los 3 pasos --- */
.ti .info-bar { display: none; }
.ti .header { padding: 22px 0 14px; }
.ti .header-logo { height: 76px; }
.ti .header-logo-wrap { margin-bottom: 8px; }

/* --- portada --- */
.ti-hero { max-width: 900px; margin: 4px auto 0; padding: 0 24px; display: none; }
.ti[data-vista="landing"] .ti-hero { display: block; }
.ti-hero-card { position: relative; overflow: hidden; background: var(--purple); color: #fff; border-radius: 24px; padding: 26px 26px 22px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; box-shadow: 0 10px 30px rgba(33,61,78,0.22); }
.ti-hero-card::before { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(250,164,111,0.35), rgba(250,164,111,0) 70%); pointer-events: none; }
.ti-kicker { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; color: var(--purple); background: var(--teal); padding: 4px 10px; border-radius: 999px; }
.ti-h1 { font-size: 30px; line-height: 1.12; font-weight: 900; margin: 12px 0 8px; letter-spacing: -0.3px; }
.ti-h1 em { font-style: normal; color: var(--teal); }
.ti-lead { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.86); font-weight: 600; margin: 0 0 16px; }
.ti-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--pink-strong); color: #fff; border: none; border-radius: 14px; padding: 13px 22px; font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 18px rgba(217,99,34,0.4); transition: transform 0.15s, background 0.2s; text-decoration: none; }
.ti-cta:hover { background: #c4561b; transform: translateY(-1px); }
.ti-cta:active { transform: scale(0.97); }
.ti-collage { position: relative; height: 230px; }
.ti-collage img { position: absolute; background: #fff; border-radius: 18px; object-fit: contain; padding: 8px; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.ti-collage .f1 { width: 58%; height: 78%; left: 21%; top: 2%; z-index: 2; }
.ti-collage .f2 { width: 42%; height: 46%; left: 0; bottom: 0; transform: rotate(-6deg); z-index: 1; }
.ti-collage .f3 { width: 40%; height: 54%; right: 0; bottom: 4%; transform: rotate(5deg); z-index: 3; }
.ti-firma { grid-column: 1 / -1; font-size: 12.5px; font-style: italic; color: var(--pink); font-weight: 700; text-align: center; border-top: 1px solid rgba(248,188,151,0.25); padding-top: 12px; margin-top: 2px; }
.ti-confianza { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ti-confianza div { background: #fff; border: 1px solid var(--beige-dark); border-radius: 14px; padding: 10px 8px; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--purple); line-height: 1.3; }
.ti-confianza b { display: block; font-size: 20px; margin-bottom: 2px; }

/* --- buscador y orden en una fila; rubros fijos arriba --- */
.ti .controls-bar { margin-top: 14px; }
.ti-nav { position: sticky; top: 0; z-index: 60; margin-top: 10px; background: rgba(253,249,240,0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.ti-nav.pegada { border-bottom-color: var(--beige-dark); box-shadow: 0 4px 14px rgba(33,61,78,0.08); }
.ti-chips { max-width: 900px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ti-chips::-webkit-scrollbar { display: none; }
.ti-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--beige-dark); background: #fff; color: var(--purple); border-radius: 999px; padding: 4px 14px 4px 4px; min-height: 38px; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.ti-chip:hover { border-color: var(--pink-strong); }
.ti-chip-foto, .ti-chip-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--beige-dark); }
.ti-chip-foto { object-fit: contain; padding: 2px; }
.ti-chip-ic { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--beige); color: var(--purple); }
.ti-chip.activo { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; box-shadow: 0 4px 12px rgba(217,99,34,0.28); }
.ti-chip.activo .ti-chip-foto, .ti-chip.activo .ti-chip-ic { border-color: #fff; }
.ti-chip.activo .ti-chip-ic { background: #fff; color: var(--pink-strong); }
/* hay más rubros a la derecha */
.ti-nav::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; pointer-events: none; background: linear-gradient(90deg, rgba(253,249,240,0), rgba(253,249,240,0.97)); opacity: 0; transition: opacity 0.2s; }
.ti-nav.hay-mas::after { opacity: 1; }
.ti .back-bar { display: none; }

/* --- tarjetas: dos por fila en el celu, tres en la compu --- */
.ti .cards-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ti .card { flex-direction: column; border: 1.5px solid var(--beige-dark); border-radius: 18px; }
.ti .card:hover { transform: translateY(-2px); }
.ti .card.selected { border-color: var(--pink-strong); box-shadow: 0 4px 18px rgba(217,99,34,0.2); }
.ti .card.featured { border-color: var(--beige-dark); }
.ti .card.featured.selected { border-color: var(--pink-strong); }
.ti .card-photo { flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; background: #fff; border-right: none; border-bottom: 1px solid var(--beige-dark); }
.ti .card-photo img { max-width: 86%; max-height: 86%; }
.ti .card-body { flex: 1; padding: 12px 12px 12px; justify-content: flex-start; }
.ti .card-top { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.ti .card-name { font-size: 14.5px; line-height: 1.25; font-weight: 800; color: var(--purple); }
.ti .card-pricing { align-self: flex-start; }
.ti .price-current { font-size: 20px; font-weight: 900; color: var(--purple); letter-spacing: -0.2px; }
.ti .card-desc { font-size: 12px; line-height: 1.4; color: #6b6b6b; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ti .card-desc.abierta { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ti-vermas { display: none; align-self: flex-start; background: none; border: none; padding: 0 0 6px; font-family: inherit; font-size: 12px; font-weight: 800; color: var(--pink-strong); cursor: pointer; }
.ti-vermas.ver { display: inline-block; }
.ti .tag-code { display: none; }
.ti .card-tags { margin-bottom: 8px; }
.ti .card-tags:empty { display: none; }
.ti .variant-row { margin-bottom: 8px; }
.ti .card-qty { align-self: stretch; margin-top: auto; justify-content: space-between; border-radius: 12px; }
.ti .qty-btn { flex: 1; width: auto; height: 40px; font-size: 20px; }
.ti .qty-value { flex: none; width: 44px; line-height: 40px; font-size: 17px; }
/* sin cantidad: un solo botón «Agregar» (es el mismo «+», así el carrito y las pruebas no cambian) */
.ti .card:not(.selected) .qty-btn[data-delta="-1"],
.ti .card:not(.selected) .qty-value { display: none; }
.ti .card:not(.selected) .card-qty { background: var(--purple); border-color: var(--purple); }
.ti .card:not(.selected) .qty-btn[data-delta="1"] { background: var(--purple); color: #fff; font-size: 0; gap: 6px; }
.ti .card:not(.selected) .qty-btn[data-delta="1"]::before { content: '+'; font-size: 18px; font-weight: 900; }
.ti .card:not(.selected) .qty-btn[data-delta="1"]::after { content: 'Agregar'; font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.ti .card:not(.selected) .qty-btn[data-delta="1"]:hover { background: var(--pink-strong); }

/* etiquetas con los colores de la marca */
.ti .badge { border-radius: 999px; padding: 3px 9px; }
.ti .share-btn { transform: scale(0.9); transform-origin: top right; }

/* destacados de la portada: sin el borde naranja en todas */
.ti .nv-wrap .card { border: 1.5px solid var(--beige-dark) !important; box-shadow: var(--shadow) !important; }
.ti .nv-wrap .card.selected { border-color: var(--pink-strong) !important; }
.ti .nv-head { margin-bottom: 12px; }
@media (min-width: 641px) { .ti .nv-wrap .cards-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ti .nv-h { font-size: 17px; font-weight: 900; }

/* rubros de la portada */
.ti .landing { margin-top: 18px; }
.ti .landing-title { font-size: 22px; font-weight: 900; }
.ti .landing-btn-photo { height: 150px; }
.ti .landing-btn-cta { color: var(--teal); }

/* --- el carrito --- */
.ti .cart-bar { left: 10px; right: 10px; bottom: 10px; max-width: 880px; margin: 0 auto; border-top: none; border-radius: 20px; box-shadow: 0 12px 34px rgba(33,61,78,0.35); transform: translateY(calc(100% + 24px)); overflow: hidden; }
.ti .cart-bar.visible { transform: translateY(0); }
.ti .cart-summary { padding: 10px 12px 10px 14px; }
.ti .cart-summary-inner { flex-wrap: nowrap; justify-content: space-between; }
.ti .cart-info { width: auto; gap: 10px; min-width: 0; }
.ti-fotitos { display: flex; flex: none; }
.ti-fotitos img { width: 34px; height: 34px; border-radius: 10px; background: #fff; object-fit: contain; padding: 2px; border: 2px solid var(--purple); margin-left: -10px; }
.ti-fotitos img:first-child { margin-left: 0; }
.ti-cuenta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ti .cart-count { font-size: 11.5px; }
.ti .cart-total { font-size: 19px; }
.ti .cart-toggle { width: auto; margin-top: 0; background: var(--pink-strong); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.ti .cart-toggle:hover { background: #c4561b; }
.ti .cart-item { justify-content: flex-start; }
.ti .cart-item img { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #fff; object-fit: contain; padding: 2px; }
.ti .cart-item-price { min-width: 0; }
.ti .cart-whatsapp { border-radius: 14px; font-size: 16px; }

@media (max-width: 640px) {
  .ti .header { padding: 16px 0 10px; }
  .ti .header-logo { height: 58px; }
  .ti .header-title-wrap { padding: 8px 22px; }
  .ti-hero { padding: 0 16px; }
  .ti-hero-card { grid-template-columns: 1fr; padding: 22px 18px 16px; gap: 10px; border-radius: 22px; }
  .ti-h1 { font-size: 25px; margin-top: 10px; }
  .ti-lead { font-size: 13.5px; margin-bottom: 14px; }
  .ti-cta { width: 100%; justify-content: center; }
  .ti-collage { height: 170px; margin-top: 4px; }
  .ti-confianza div { font-size: 10.5px; padding: 9px 4px; }
  .ti .controls-bar { flex-direction: row; padding: 0 16px; margin-top: 12px; gap: 8px; }
  .ti .controls-bar { flex-wrap: nowrap; }
  .ti .controls-bar .search-input { flex: 1 1 auto; min-width: 0; font-size: 14px; }
  .ti .controls-bar .sort-select { flex: none; width: 126px; font-size: 12px; padding: 10px 4px; }
  .ti-chips { padding: 8px 16px; }
  .ti .content { padding: 12px; }
  .ti .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ti .card-body { padding: 10px 10px 10px; }
  .ti .card-name { font-size: 13.5px; }
  .ti .price-current { font-size: 18px; }
  .ti .card-desc { font-size: 11.5px; }
  .ti .qty-btn { height: 40px; font-size: 20px; width: auto; }
  .ti .qty-value { width: 36px; line-height: 40px; font-size: 17px; }
  .ti .card:not(.selected) .qty-btn[data-delta="1"]::after { font-size: 13px; }
  .ti .variant-btn { font-size: 11px; padding: 5px 8px; }
  .ti .badge { font-size: 9px; padding: 3px 7px; }
  .ti .landing { padding: 12px 16px; margin: 14px auto; }
  .ti .landing-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ti .landing-btn-wide { grid-column: span 2; }
  .ti .landing-btn { border-radius: 16px; }
  .ti .landing-btn-photo { height: 112px; padding: 10px; }
  .ti .landing-btn-wide .landing-btn-photo { height: 150px; }
  .ti .landing-btn-body { padding: 10px 12px 11px; }
  .ti .landing-btn-title { font-size: 15px; }
  .ti .landing-btn-desc { font-size: 11px; }
  .ti .landing-btn-cta { font-size: 11px; margin-top: 5px; }
  .ti .cart-summary-inner { flex-wrap: nowrap; }
  .ti .cart-total { font-size: 17px; }
}
@media (max-width: 370px) {
  .ti-fotitos img:nth-child(3) { display: none; }
  .ti .cart-toggle { padding: 9px 11px; font-size: 12px; }
  .ti-h1 { font-size: 23px; }
}
@media print {
  .ti-hero, .ti-nav { display: none !important; }
}
.ti .card { scroll-margin-top: 72px; }

/* === 19-nov, segunda vuelta: cards, encabezados y cabecera === */
/* variantes: un selector compacto (tienda-ui.js lo arma cuando hay 3 o más, o nombres largos) */
.ti .variant-row.ti-con-select { display: none; }
.ti-variante { display: block; width: 100%; margin: 2px 0 8px; padding: 8px 30px 8px 10px; border: 1.5px solid var(--beige-dark); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23213D4E' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font-family: inherit; font-size: 12.5px; font-weight: 800; color: var(--purple); cursor: pointer; text-overflow: ellipsis; }
.ti-variante:focus { outline: none; border-color: var(--pink-strong); }
.ti .variant-btn { padding: 5px 10px; font-size: 11.5px; border-color: var(--beige-dark); }
.ti .variant-btn.active { background: var(--purple); border-color: var(--purple); }

/* compartir: se va de la tarjeta y queda en la foto ampliada */
.ti .card .share-btn, .ti .card .zoom-hint { display: none !important; }
.ti-lb-share { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 11px 16px; border: 1.5px solid var(--beige-dark); border-radius: 12px; background: #fff; color: var(--purple); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.ti-lb-share:hover { border-color: var(--pink-strong); color: var(--pink-strong); }
.ti .lightbox-price { color: var(--purple); }

/* «Destacado» no suma en la Tienda (los destacados tienen su lugar en la portada) */
.ti .badge-feat { display: none; }

/* encabezado del rubro: título limpio, sin la barra azul */
.ti .catalog-title { margin-top: 10px; }
.ti .catalog-title-inner { background: none; color: var(--purple); padding: 4px 4px 0; border-radius: 0; gap: 8px; }
.ti .catalog-title-icon { font-size: 26px; }
.ti .catalog-title-text { font-size: 24px; font-weight: 900; letter-spacing: 0.2px; text-transform: none; }
.ti .section { margin-bottom: 26px; }
.ti .section-header { flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; }
.ti .section-header h2 { font-size: 15px; letter-spacing: 0.6px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ti .section-icon { font-size: 20px; }
.ti .section-count { order: 0; width: auto; flex: none; margin-left: auto; background: #fff; border: 1px solid var(--beige-dark); color: var(--purple); }

/* cabecera compacta dentro de los rubros y en la búsqueda */
.ti:not([data-vista="landing"]) .header { padding: 10px 0 4px; }
.ti:not([data-vista="landing"]) .header-logo { height: 46px; }
.ti:not([data-vista="landing"]) .header-logo-wrap { margin-bottom: 0; vertical-align: middle; }
.ti:not([data-vista="landing"]) .header-title-wrap { padding: 6px 20px; vertical-align: middle; }
.ti:not([data-vista="landing"]) .header-title { font-size: 15px; letter-spacing: 1px; }
.ti:not([data-vista="landing"]) .header-subtitle { font-size: 10px; margin-top: 0; }
.ti:not([data-vista="landing"]) .controls-bar { margin-top: 6px; }

@media (max-width: 640px) {
  .ti .catalog-title { padding: 0 16px; }
  .ti .catalog-title-text { font-size: 21px; }
  .ti .section-line { display: none; }
  .ti .section-header h2 { font-size: 13.5px; }
  .ti .section-count { font-size: 10.5px; padding: 3px 9px; }
}

/* === La lista de los comercios (body.ti.co, 19-nov): la misma cara, con lo que necesita el que compra por mayor === */
/* códigos a la vista (piden por código) y compartir en cada tarjeta (los vendedores mandan links con su ?v=) */
.ti.co .tag-code { display: inline-block; }
.ti.co .card .share-btn { display: flex !important; }
/* los 3 pasos, en una línea y solo en el inicio */
.ti.co .info-bar { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 16px 0; }
.ti.co .info-pill { font-size: 11.5px; padding: 4px 11px; }
.ti.co:not([data-vista="landing"]) .info-bar { display: none; }
.ti.co:not([data-vista="landing"]) .empresa-pill, .ti.co:not([data-vista="landing"]) .suplepet-pill { display: none; }
/* «Vista lista»: filas compactas encima de la grilla */
.ti.vista-lista .cards-list { display: flex; flex-direction: column; gap: 8px; }
.ti.vista-lista .card-photo { aspect-ratio: auto; }
.ti.vista-lista .qty-btn { flex: none; }
.ti.vista-lista .card:not(.selected) .qty-btn[data-delta="1"] { width: auto; padding: 0 14px; }
.ti.vista-lista .card-qty { align-self: flex-end; }
.ti.co.vista-lista .card .share-btn { display: none !important; }
@media (max-width: 640px) {
  /* «Conocé Isla» y «Conocé Suplepet» en una fila arriba del logo (en el celu se encimaban con el título) */
  .ti.co .header { text-align: center; padding-top: 10px; }
  .ti.co .empresa-pill, .ti.co .suplepet-pill { position: relative; top: auto; right: auto; display: inline-block; margin: 0 3px 8px; vertical-align: middle; }
  .ti.co .info-pill { font-size: 10.5px; padding: 4px 8px; }
  .ti.co .info-pill .step-num { width: 15px; height: 15px; font-size: 9px; margin-right: 4px; }
  .ti.co .controls-bar { flex-wrap: wrap; }
  .ti.co .controls-bar .search-input { flex: 1 1 100%; }
  .ti.co .controls-bar .sort-select { flex: 1 1 auto; width: auto; }
}
.ti.vista-lista .ti-vermas { justify-self: start; text-align: left; }

/* «¿Dudas? Escribinos»: WhatsApp para consultar sin carrito (solo la Tienda) */
.ti-consulta { position: fixed; right: 16px; bottom: 18px; z-index: 880; display: inline-flex; align-items: center; gap: 7px; background: var(--green); color: #fff; text-decoration: none; font-weight: 900; font-size: 14px; padding: 11px 16px 11px 13px; border-radius: 999px; box-shadow: 0 8px 22px rgba(37,211,102,0.35); transition: bottom 0.3s ease, transform 0.15s, opacity 0.2s; }
.ti-consulta:hover { background: var(--green-dark); transform: translateY(-1px); }
.ti-con-carrito .ti-consulta { bottom: 92px; }
.ti-carrito-abierto .ti-consulta { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .ti-consulta { right: 12px; bottom: 14px; font-size: 13px; padding: 10px 14px 10px 11px; }
  .ti-consulta .tc-largo { display: none; }
  .ti-con-carrito .ti-consulta { bottom: 84px; }
}
@media print { .ti-consulta { display: none !important; } }
.ti:not(.co) .footer { padding-bottom: 78px; }
