/**
 * Sabrina — Brand landing (/marca/{slug}/), Etsy-style shop page.
 *
 * Solo se carga en is_singular('marca'). El casco compartido de la card
 * (.brand-landing__grid / .brand-landing__card*, usado también por
 * /marcas/ y sabrina_brand_cross_sell()) sigue viviendo en style.css.
 *
 * @package Sabrina
 */

/* =============================================================================
   1. Root + layout tokens
   Paleta neutra tipo Etsy para toda la interfaz interactiva. El color de marca
   (--brand-color / --brand-accent) sigue definido pero sólo lo usa la identidad
   (banner sin imagen); pestañas, buscador, chips y paginación son neutros.
   ============================================================================= */

.brand-landing {
    --brand-color: #16C172;
    --brand-accent: #001D36;
    --bl-ink: #222222;
    --bl-muted: #595959;
    --bl-line: #E1E3DF;
    --bl-soft: #F5F5F5;
    background: #ffffff;
    color: var(--bl-ink);
    padding-bottom: 80px;
    min-height: 100vh;
    overflow-x: clip;
}

.brand-landing__container {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    padding: 0 var(--shop-gutter, 40px);
}

/* =============================================================================
   2. Banner (contenido en el ancho de la tienda, esquinas redondeadas)
   ============================================================================= */

.brand-landing__banner-wrap {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    padding: 20px var(--shop-gutter, 40px) 0;
    box-sizing: border-box;
}
/* Marco 4:1 en escritorio (3:1 en móvil): lo que el emprendedor recorta en el
   panel es lo que se ve. */
.brand-landing__banner {
    width: 100%;
    aspect-ratio: 4 / 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.brand-landing__banner.no-image {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-accent) 100%);
}
.brand-landing__banner.no-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(0,0,0,0.16), transparent 50%);
    pointer-events: none;
}
.brand-landing__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* =============================================================================
   3. Shop header (logo + name + credibility + actions)
   ============================================================================= */

.brand-landing__shop-header {
    background: #ffffff;
    position: relative;
}
.brand-landing__shop-header-inner {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    /* El padding izquierdo deja sitio al logo (88px) que se solapa con el banner. */
    padding: 18px var(--shop-gutter, 40px) 16px calc(var(--shop-gutter, 40px) + 108px);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}
.brand-landing__avatar {
    position: absolute;
    top: -32px;
    left: var(--shop-gutter, 40px);
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.brand-landing__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand-landing__avatar-initial {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--bl-ink);
    line-height: 1;
}
.brand-landing__shop-meta {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
}
.brand-landing__name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--bl-ink);
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.brand-landing__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--bl-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}

/* ★ 4.9 (12) · 35 ventas · Ciudad · En Impronta desde 2026 */
.brand-landing__credibility {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bl-muted);
}
.brand-landing__cred {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.brand-landing__cred + .brand-landing__cred::before {
    content: "·";
    margin: 0 8px;
    color: #9A9A9A;
}
.brand-landing__cred--rating strong { color: var(--bl-ink); font-weight: 700; }
.brand-landing__cred-icon { color: var(--bl-ink); font-size: 14px; }
.brand-landing__badges { margin: 10px 0 0; }
.brand-landing__cred-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bl-soft);
    color: var(--bl-ink);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
}

/* ---------- Actions (Seguir / Contactar / Compartir) ---------- */
.brand-landing__shop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-top: 4px;
}
.brand-landing__follow-btn,
.brand-landing__contact-btn,
.brand-landing__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--bl-ink);
    background: #fff;
    color: var(--bl-ink);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    line-height: 1;
    white-space: nowrap;
}
.brand-landing__follow-btn:hover,
.brand-landing__share-btn:hover {
    background: var(--bl-soft);
}
.brand-landing__follow-btn svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand-landing__follow-btn.is-following {
    background: var(--bl-ink);
    color: #fff;
    border-color: var(--bl-ink);
}
.brand-landing__follow-btn.is-following svg { fill: currentColor; }
.brand-landing__follow-btn.is-following:hover { background: #000; }
.brand-landing__contact-btn {
    background: var(--bl-ink);
    border-color: var(--bl-ink);
    color: #fff;
}
.brand-landing__contact-btn:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
.brand-landing__share-btn svg { flex: 0 0 auto; width: 16px; height: 16px; }
.brand-landing__share-feedback {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bl-ink);
    margin-left: 4px;
    opacity: 0;
    transition: opacity .2s ease;
}
.brand-landing__share-feedback.is-visible { opacity: 1; }

/* =============================================================================
   4. Announcement card (caja gris discreta)
   ============================================================================= */

.brand-landing__announcement-card {
    max-width: var(--shop-container, 1520px);
    margin: 4px auto 8px;
    padding: 0 var(--shop-gutter, 40px);
    box-sizing: border-box;
}
.brand-landing__announcement-card-inner {
    background: var(--bl-soft);
    border-radius: 12px;
    padding: 14px 18px;
}
.brand-landing__announcement-card-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bl-muted);
    margin: 0 0 6px;
}
.brand-landing__announcement-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--bl-ink);
}
.brand-landing__announcement-card-text p { margin: 0 0 8px; }
.brand-landing__announcement-card-text p:last-child { margin-bottom: 0; }
.has-js .brand-landing__announcement-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.has-js .brand-landing__announcement-card.is-expanded .brand-landing__announcement-card-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.brand-landing__announcement-toggle {
    display: none;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bl-ink);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.has-js .brand-landing__announcement-toggle {
    display: inline-flex;
}

/* =============================================================================
   5. Sticky tabs (subrayado negro de 2px en la activa)
   ============================================================================= */

.brand-landing__tabs-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--bl-line);
    background: #ffffff;
    margin-top: 8px;
    width: 100%;
    overflow: hidden;
}
.brand-landing__tabs {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    padding: 0 var(--shop-gutter, 40px);
    box-sizing: border-box;
    display: flex;
    gap: 32px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.brand-landing__tabs::-webkit-scrollbar { display: none; }
.brand-landing__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--bl-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}
.brand-landing__tab:hover { color: var(--bl-ink); }
.brand-landing__tab.is-active {
    color: var(--bl-ink);
    font-weight: 700;
    border-bottom-color: #000;
}
.brand-landing__tab:focus-visible {
    outline: 2px solid var(--bl-ink);
    outline-offset: 4px;
    border-radius: 2px;
}
.brand-landing__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bl-soft);
    color: var(--bl-muted);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
}
.brand-landing__tab.is-active .brand-landing__tab-count {
    background: var(--bl-line);
    color: var(--bl-ink);
}

/* Anchor offsets so sticky bar doesn't cover the section heading */
#articulos, #resenas, #sobre, #politicas, #anuncio, #faqs {
    scroll-margin-top: 64px;
}

/* =============================================================================
   6. Articles: sidebar + featured row + grid
   ============================================================================= */

.brand-landing__articles {
    padding: 32px 0 0;
}
.brand-landing__articles-inner {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    padding: 0 var(--shop-gutter, 40px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.brand-landing__articles-inner > * { min-width: 0; }

/* ---------- Sidebar ---------- */
.brand-landing__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.brand-landing__sidebar-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #BDBDBD;
    border-radius: 999px;
    padding: 3px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brand-landing__sidebar-search:focus-within {
    border-color: var(--bl-ink);
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.12);
}
.brand-landing__sidebar-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 6px 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--bl-ink);
    outline: none;
    height: 38px;
    line-height: 38px;
    box-shadow: none;
}
.brand-landing__sidebar-search input[type="search"]::placeholder { color: var(--bl-muted); }
.brand-landing__sidebar-search button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: var(--bl-ink);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
}
.brand-landing__sidebar-search button:hover { background: #000; }

.brand-landing__sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--bl-ink);
    margin: 0 0 10px;
}
.brand-landing__sections-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand-landing__section-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--bl-ink);
    text-decoration: none;
    transition: background 0.15s ease;
}
.brand-landing__section-link:hover { background: var(--bl-soft); }
.brand-landing__section-link.is-active {
    background: var(--bl-soft);
    font-weight: 700;
}
.brand-landing__section-link:focus-visible { outline: 2px solid var(--bl-ink); outline-offset: 2px; }
.brand-landing__section-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--bl-muted);
    flex: 0 0 auto;
}
.brand-landing__section-link.is-active .brand-landing__section-count { color: var(--bl-ink); }

/* Chips de secciones: sólo en móvil/tablet (ver media query). */
.brand-landing__chips { display: none; }

.brand-landing__sidebar-contact {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--bl-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.brand-landing__sidebar-contact:hover { color: #000; }

/* ---------- Main column ---------- */
.brand-landing__main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.brand-landing__main-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bl-ink);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.brand-landing__main-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--bl-muted);
    font-weight: 400;
}
.brand-landing__sort-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--bl-muted);
}
.brand-landing__sort-form select {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 36px 9px 16px;
    border-radius: 999px;
    border: 1px solid #BDBDBD;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bl-ink);
    cursor: pointer;
}
.brand-landing__sort-form select:hover { border-color: var(--bl-ink); }
.brand-landing__sort-form noscript button {
    margin-left: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #BDBDBD;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Fila de destacados ---------- */
.brand-landing__featured {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--bl-line);
}
.brand-landing__main .brand-landing__grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* ---------- Grilla ---------- */
/* 4 por fila como en Etsy. La regla base compartida (auto-fill, minmax 220px)
   vive en style.css y la usan /marcas/ y la venta cruzada, por eso todo va
   acotado a .brand-landing__main. */
.brand-landing__main .brand-landing__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

/* ---------- Tarjeta de producto ----------
   Sin marco ni fondo de caja: la foto redondeada hace de tarjeta y el texto va
   suelto debajo, como en Etsy. */
.brand-landing__main .brand-landing__card {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}
.brand-landing__main .brand-landing__card:hover {
    border-color: transparent;
    box-shadow: none;
}
.brand-landing__main .brand-landing__card-thumb {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bl-soft);
}
.brand-landing__main .brand-landing__card-thumb img {
    transition: transform .35s ease;
}
.brand-landing__main .brand-landing__card:hover .brand-landing__card-thumb img {
    transform: scale(1.03);
}
.brand-landing__main .brand-landing__card-body {
    padding: 10px 0 0;
    gap: 4px;
}
.brand-landing__main .brand-landing__card-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--bl-ink);
    line-height: 1.4;
}
.brand-landing__main .brand-landing__card-link:hover .brand-landing__card-title {
    text-decoration: underline;
}
.brand-landing__card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bl-ink);
    line-height: 1.2;
}
.brand-landing__card-rating-star { font-size: 12px; }
.brand-landing__card-rating-count { font-weight: 400; color: var(--bl-muted); }
.brand-landing__main .brand-landing__card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--bl-ink);
}
.brand-landing__main .brand-landing__card-price ins {
    text-decoration: none;
    font-weight: 700;
    background: transparent;
}
.brand-landing__main .brand-landing__card-price del {
    color: var(--bl-muted);
    font-weight: 400;
    font-size: 0.9em;
    margin-right: 6px;
}
.brand-landing__card--featured .brand-landing__card-title { font-size: 15px; }
.brand-landing__card--featured .brand-landing__card-price { font-size: 16px; }

/* ---------- Badges + wishlist heart over thumbnail ---------- */
.brand-landing__card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}
.brand-landing__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.96);
    color: var(--bl-ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}
/* Discretas: sólo la oferta lleva color (texto), el resto es informativo. */
.brand-landing__badge--sale { color: #B42318; font-weight: 700; }
.brand-landing__badge--bestseller { color: var(--bl-ink); }
.brand-landing__badge--new { color: var(--bl-ink); }
.brand-landing__badge--low-stock { color: var(--bl-muted); }

/* Reveal the wishlist heart on card hover/focus (wishlist.css only wires the
   generic WooCommerce loop selector, not our own card class). */
.brand-landing__card:hover .sabrina-wishlist-btn--card,
.brand-landing__card:focus-within .sabrina-wishlist-btn--card {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Empty state ---------- */
.brand-landing__main .brand-landing__grid--empty { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------- Paginación: ‹ 1 2 … 8 9 › ---------- */
.brand-landing__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}
.brand-landing__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--bl-ink);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.brand-landing__page-link:hover { background: var(--bl-soft); }
.brand-landing__page-link.is-active {
    background: var(--bl-ink);
    color: #fff;
    font-weight: 700;
}
.brand-landing__page-link--arrow {
    border: 1px solid var(--bl-line);
    font-size: 20px;
    line-height: 1;
}
.brand-landing__page-link.is-disabled { opacity: 0.35; pointer-events: none; }
.brand-landing__page-gap {
    min-width: 24px;
    text-align: center;
    color: var(--bl-muted);
    font-family: 'Inter', sans-serif;
}

/* =============================================================================
   7. Reviews
   ============================================================================= */

.brand-landing__reviews {
    border-top: 1px solid #EEF2F6;
    margin-top: 56px;
    padding: 56px 0 0;
}
.brand-landing__reviews-inner {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    padding: 0 var(--shop-gutter, 40px);
}
.brand-landing__section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}
.brand-landing__reviews-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
.brand-landing__reviews-summary {
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 16px;
    padding: 24px;
}
.brand-landing__reviews-score {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #222;
    line-height: 1;
}
.brand-landing__reviews-stars {
    color: #F59E0B;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 8px 0 4px;
}
.brand-landing__reviews-stars span { color: #E5E7EB; }
.brand-landing__reviews-count {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 18px;
}
.brand-landing__rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.brand-landing__rating-row {
    display: grid;
    grid-template-columns: 46px 1fr 30px;
    align-items: center;
    gap: 8px;
}
.brand-landing__rating-stars {
    font-size: 11px;
    color: #F59E0B;
    white-space: nowrap;
    line-height: 1;
}
.brand-landing__rating-bar {
    position: relative;
    height: 7px;
    background: #E9EEF3;
    border-radius: 999px;
    overflow: hidden;
}
.brand-landing__rating-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: #222;
    border-radius: 999px;
}
.brand-landing__rating-count {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #4B5563;
    text-align: right;
}

.brand-landing__testimonials { margin-bottom: 28px; }
.brand-landing__testimonials-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #595959;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}
.brand-landing__testimonials-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.brand-landing__testimonial {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-left: 3px solid #222;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.brand-landing__review-rating {
    color: #222;
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1;
}
.brand-landing__review-rating span { color: #E5E7EB; }
.brand-landing__review-body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.55;
}
.brand-landing__review-author {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #222;
}

.brand-landing__reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.brand-landing__review {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #EEF2F6;
}
.brand-landing__review:last-child { border-bottom: 0; }
.brand-landing__review-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #F4F6F8;
    flex: 0 0 auto;
}
.brand-landing__review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-landing__review-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.brand-landing__review-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #94A3B8;
}
.brand-landing__review-product {
    display: inline-block;
    margin: 4px 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #595959;
    text-decoration: none;
}
.brand-landing__review-product:hover { color: #000; }

.brand-landing__reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    background: #FAFBFC;
    border: 1px dashed #E5E7EB;
    border-radius: 12px;
    color: #9CA3AF;
    text-align: center;
}
.brand-landing__reviews-empty p { margin: 0; font-family: 'Inter', sans-serif; font-size: 15px; color: #6B7280; max-width: 420px; }

/* =============================================================================
   8. About
   ============================================================================= */

.brand-landing__about {
    border-top: 1px solid #EEF2F6;
    margin-top: 56px;
    padding: 56px 0 0;
}
.brand-landing__about-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.brand-landing__about-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 48px;
    align-items: start;
}
.brand-landing__about-side { display: flex; flex-direction: column; gap: 18px; }
.brand-landing__about-figure {
    margin: 0;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #F4F6F8;
    border: 1px solid #EEF2F6;
}
.brand-landing__about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-landing__about-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -0.01em;
}
.brand-landing__about-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #595959;
}
.brand-landing__about-facts strong { color: #222; }
.brand-landing__about-intro {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.45;
    margin: 0 0 16px;
}
.brand-landing__about-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}
.brand-landing__about-text p { margin: 0 0 12px; }
.brand-landing__about-text p:last-child { margin-bottom: 0; }

/* =============================================================================
   9. Policies + FAQs
   ============================================================================= */

.brand-landing__policies {
    border-top: 1px solid #EEF2F6;
    margin-top: 56px;
    padding: 56px 0 0;
}
.brand-landing__policies-inner {
    max-width: var(--shop-container, 1520px);
    margin: 0 auto;
    padding: 0 var(--shop-gutter, 40px);
}
.brand-landing__policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.brand-landing__policy {
    background: #ffffff;
    border: 1px solid #EEF2F6;
    border-radius: 14px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-landing__policy:hover {
    border-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 29, 54, 0.06);
}
.brand-landing__policy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F5F5F5;
    color: #222;
}
.brand-landing__policy-title {
    margin: 4px 0 2px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.brand-landing__policy p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4B5563;
    line-height: 1.55;
}
.brand-landing__policy-pay-logos {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
}
.brand-landing__policy-pay-logos img { display: block; max-height: 22px; width: auto; }
.brand-landing__policy-contact-btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 9px 16px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
}
.brand-landing__policy-contact-btn:hover { background: #128C7E; color: #fff; }

/* ---------- FAQs ---------- */
.brand-landing__faqs { margin-top: 48px; padding-top: 40px; border-top: 1px solid #EEF2F6; }
.brand-landing__faqs-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.brand-landing__faq details {
    background: #fff;
    border: 1px solid #EEF2F6;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brand-landing__faq details[open] {
    border-color: #BDBDBD;
    box-shadow: 0 4px 14px rgba(0, 29, 54, 0.05);
}
.brand-landing__faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}
.brand-landing__faq summary::-webkit-details-marker { display: none; }
.brand-landing__faq-icon { flex-shrink: 0; color: #6B7280; transition: transform 0.2s ease; }
.brand-landing__faq details[open] .brand-landing__faq-icon { transform: rotate(180deg); color: #222; }
.brand-landing__faq-a { padding: 0 20px 18px; font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.65; color: #4B5563; }
.brand-landing__faq-a p { margin: 0 0 10px; }
.brand-landing__faq-a p:last-child { margin-bottom: 0; }

/* =============================================================================
   10. Brand review submission form (verified buyers)
   ============================================================================= */

.brand-review-flash {
    margin: 24px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}
.brand-review-flash--ok { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.brand-review-flash--err { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.brand-review-form {
    margin: 32px 0 0;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
}
.brand-review-form__title { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #222; }
.brand-review-form__sub { margin: 0 0 24px; font-size: 14px; color: #64748B; }
.brand-review-form__field { display: block; margin: 0 0 16px; }
.brand-review-form__field > span { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #334155; }
.brand-review-form__field select,
.brand-review-form__field textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #222;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.brand-review-form__field select:focus,
.brand-review-form__field textarea:focus { outline: none; border-color: #222; background: #FFFFFF; }
.brand-review-form__field textarea { resize: vertical; min-height: 100px; }
.brand-review-form__rating { border: 0; padding: 0; margin: 0 0 16px; }
.brand-review-form__rating legend { font-size: 13px; font-weight: 600; color: #334155; padding: 0; margin: 0 0 6px; }
.brand-review-form__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.brand-review-form__stars input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.brand-review-form__stars label { font-size: 32px; line-height: 1; color: #CBD5E1; cursor: pointer; transition: color 0.1s ease, transform 0.1s ease; }
.brand-review-form__stars label:hover,
.brand-review-form__stars label:hover ~ label,
.brand-review-form__stars input:checked ~ label { color: #F59E0B; }
.brand-review-form__stars input:focus-visible + label { outline: 2px solid #222; outline-offset: 2px; border-radius: 4px; }
.brand-review-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #222;
    color: #FFFFFF;
    border: 0;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.brand-review-form__submit:hover { background: #000; transform: translateY(-1px); }
.brand-review-form-prompt {
    margin: 24px 0 0;
    padding: 20px 24px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    text-align: center;
}
.brand-review-form-prompt p { margin: 0 0 12px; font-size: 14px; color: #475569; }
.brand-review-form-prompt__btn {
    display: inline-block;
    padding: 10px 20px;
    background: #222;
    color: #FFFFFF;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.brand-review-form-prompt__btn:hover { background: #000; }

/* =============================================================================
   11. Responsive
   ============================================================================= */

/* 3 columnas entre tablet y escritorio estrecho. */
@media (max-width: 1199px) {
    .brand-landing__main .brand-landing__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet / móvil: el sidebar pasa arriba y las secciones son chips con scroll. */
@media (max-width: 899px) {
    .brand-landing__articles-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .brand-landing__sidebar { gap: 14px; }
    .brand-landing__sections { display: none; }
    .brand-landing__chips {
        display: flex;
        position: relative; /* offsetParent para centrar el chip activo (JS) */
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 calc(var(--shop-gutter, 16px) * -1);
        padding: 2px var(--shop-gutter, 16px);
    }
    .brand-landing__chips::-webkit-scrollbar { display: none; }
    .brand-landing__chip {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        padding: 9px 16px;
        border-radius: 999px;
        border: 1px solid var(--bl-line);
        background: #fff;
        color: var(--bl-ink);
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }
    .brand-landing__chip.is-active {
        background: var(--bl-ink);
        border-color: var(--bl-ink);
        color: #fff;
    }
    /* El contacto ya está en la cabecera y en el botón flotante. */
    .brand-landing__sidebar-contact { display: none; }

    .brand-landing__main-head { margin-bottom: 18px; }
    .brand-landing__main .brand-landing__grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}

@media (max-width: 599px) {
    .brand-landing__main .brand-landing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}

@media (max-width: 768px) {
    .brand-landing__banner-wrap { padding: 12px var(--shop-gutter, 16px) 0; }
    .brand-landing__banner { aspect-ratio: 3 / 1; border-radius: 10px; }

    .brand-landing__shop-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px var(--shop-gutter, 16px) 18px;
    }
    .brand-landing__avatar {
        position: relative;
        top: auto;
        left: auto;
        width: 72px;
        height: 72px;
        margin-top: -34px;
    }
    .brand-landing__shop-meta { padding-top: 0; width: 100%; }
    .brand-landing__shop-actions {
        width: 100%;
        flex-wrap: nowrap;
        padding-top: 0;
    }
    .brand-landing__follow-btn,
    .brand-landing__contact-btn { flex: 1 1 auto; min-width: 0; padding-left: 12px; padding-right: 12px; }
    /* Mismo alto para los tres botones. */
    .brand-landing__follow-btn,
    .brand-landing__contact-btn,
    .brand-landing__share-btn { min-height: 42px; }
    /* Compartir queda como ícono para que los tres entren en una fila. El texto
       sigue ahí para lectores de pantalla. */
    .brand-landing__share-btn { flex: 0 0 42px; width: 42px; padding: 0; }
    .brand-landing__share-btn > span {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
    .brand-landing__share-feedback { display: none; }

    .brand-landing__tabs { padding: 0 var(--shop-gutter, 16px); gap: 22px; }
    .brand-landing__tab { padding: 14px 0; font-size: 14px; }

    .brand-landing__pagination { margin-top: 32px; }

    .brand-landing__reviews,
    .brand-landing__policies { margin-top: 36px; padding-top: 36px; }
    .brand-landing__reviews-grid { grid-template-columns: 1fr; gap: 24px; }

    .brand-landing__about-grid { grid-template-columns: 1fr; gap: 24px; }
    .brand-landing__about-figure { max-width: 220px; }
}
