/* ==========================================================
   WARNEKE MINORISTA - CAPA UI/UX (Brandbook 2026)
   Se carga DESPUÉS de minoristas-fm.css. Aplica la paleta oficial:
   Hunter Green #386641, Sage Green #6A994E, Vainilla Cream #F2E8CF,
   Yellow Green #A7C957, Golden Apricot #EEA243.
   ========================================================== */

:root {
    --ux-green: #386641;
    --ux-green-dark: #2D5334;
    --ux-green-soft: rgba(167, 201, 87, 0.22);
    --ux-sage: #6A994E;
    --ux-cream: #F2E8CF;
    --ux-lime: #A7C957;
    --ux-gold: #EEA243;
    --ux-gold-soft: #fae4c4;
    --ux-ink: #386641;
    --ux-muted: #527957;
    --ux-line: rgba(56, 102, 65, 0.16);
    --ux-radius: 14px;
    --ux-shadow-sm: 0 2px 6px rgba(24, 54, 34, .07);
    --ux-shadow-md: 0 8px 22px rgba(24, 54, 34, .12);
    --ux-shadow-lg: 0 16px 36px rgba(24, 54, 34, .18);
    --ux-ease: cubic-bezier(.2, .7, .2, 1);
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Familjen Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body.retail-body {
    background: var(--ux-cream);
    font-family: var(--font-body);
    color: var(--ux-ink);
    -webkit-font-smoothing: antialiased;
}

body.retail-body h1,
body.retail-body h2,
body.retail-body h3,
body.retail-body h4,
.fm-navpill,
.fm-slide-cta,
.product-brand,
.add-cart-btn,
.checkout-btn,
.faq-title,
.faq-kicker {
    font-family: var(--font-heading);
}

/* ---------- Topbar ---------- */
.fm-topbar {
    background: #386641;
    border-bottom: 2px solid var(--ux-gold);
}
.fm-topbar-inner { height: 42px; }
.fm-ticker-msg { font-weight: 600; font-size: .82rem; letter-spacing: .1px; color: #F2E8CF; }
.fm-ticker-msg i { color: var(--ux-gold); }
.fm-ticker-msg strong {
    background: var(--ux-lime);
    color: #386641;
    padding: 1px 8px;
    border-radius: 4px;
    letter-spacing: .6px;
}

/* ---------- Header ---------- */
body.retail-body .retail-header.fm-header {
    background: #F2E8CF;
    border-bottom: 1.5px solid var(--ux-line);
    box-shadow: var(--ux-shadow-sm);
    padding: 10px 24px;
}
body.retail-body .retail-header.fm-header.is-scrolled {
    background: rgba(242, 232, 207, 0.95);
    box-shadow: var(--ux-shadow-md);
}

.fm-header .retail-logo-img { height: 56px; width: auto; transition: transform .25s var(--ux-ease); }
.fm-header .retail-logo-wrap:hover .retail-logo-img { transform: scale(1.04); }

.fm-search { max-width: 560px; }
.fm-search .header-search-input {
    background: #FAF4E4;
    border: 1.5px solid var(--ux-line);
    border-radius: 12px;
    padding: 14px 64px 14px 20px;
    font-size: .95rem;
    min-height: 48px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.fm-search .header-search-input:hover { border-color: var(--ux-sage); }
.fm-search .header-search-input:focus {
    background: #FAF4E4;
    border-color: var(--ux-green);
    box-shadow: 0 0 0 4px rgba(56, 102, 65, .16);
}
.fm-search-btn { background: var(--ux-green); border-radius: 10px; width: 40px; height: 40px; right: 5px; }
.fm-search:focus-within .fm-search-btn { background: var(--ux-green-dark); }

.fm-delivery {
    border-radius: 12px;
    border: 1.5px solid var(--ux-line);
    background: #FAF4E4;
    transition: border-color .2s, box-shadow .2s;
}
.fm-delivery:hover { border-color: var(--ux-green); box-shadow: var(--ux-shadow-sm); }
.fm-delivery > i { background: var(--ux-green-soft); color: var(--ux-green); border-radius: 10px; }

.fm-pill-link {
    background: var(--ux-gold);
    color: #386641;
    font-weight: 800;
    border: 1px solid #dc8f2c;
    border-radius: 12px;
    padding: 11px 18px;
    transition: background .2s, transform .2s var(--ux-ease);
}
.fm-pill-link:hover { background: #F7B95E; color: #386641; transform: translateY(-1px); }

body.retail-body .cart-toggle-btn.fm-cart-btn {
    background: var(--ux-green);
    color: #F2E8CF;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(37, 104, 61, .28);
    transition: transform .2s var(--ux-ease), box-shadow .2s;
}
body.retail-body .cart-toggle-btn.fm-cart-btn:hover {
    background: var(--ux-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 104, 61, .36);
}
.fm-cart-btn .cart-badge { background: var(--ux-gold); color: #386641; font-weight: 800; border: 2px solid #F2E8CF; }

/* ---------- Menú de categorías ---------- */
.fm-catnav { background: #e8dcc0; border-bottom: 1px solid var(--ux-line); padding: 0 24px; }
.fm-catnav-inner { padding: 8px 0; gap: 6px; }
.fm-catnav-inner a { border-radius: 10px; font-size: .9rem; font-weight: 700; color: #386641; padding: 9px 14px; }
.fm-catnav-inner a:hover { background: var(--ux-green); color: #F2E8CF; }
.fm-navpill-offers { background: var(--ux-gold) !important; color: #386641 !important; }
.fm-navpill-new { background: var(--ux-lime) !important; color: #386641 !important; }

/* ---------- Hero ---------- */
.fm-hero { margin: 20px auto 24px; border-radius: 16px; box-shadow: var(--ux-shadow-md); }
.fm-hero-track { height: 360px; }
.fm-slide h1, .fm-slide h2 { letter-spacing: -.5px; line-height: 1.08; }
.fm-slide-cta { border-radius: 10px; padding: 13px 26px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }

/* ---------- Beneficios ---------- */
.fm-perks { gap: 14px; margin-bottom: 40px; }
.fm-perk {
    background: #FAF4E4;
    border: 1.5px solid var(--ux-line);
    border-radius: var(--ux-radius);
    box-shadow: var(--ux-shadow-sm);
    justify-content: flex-start;
    padding: 18px 22px;
    transition: transform .25s var(--ux-ease), box-shadow .25s, border-color .25s;
}
.fm-perk:hover { transform: translateY(-3px); box-shadow: var(--ux-shadow-md); border-color: var(--ux-sage); }
.fm-perk i {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ux-green);
    color: var(--ux-cream);
    font-size: 1.4rem;
}

/* ---------- Títulos de sección ---------- */
.fm-section-head h2,
.fm-catalog-title { font-weight: 800; letter-spacing: -.3px; color: var(--ux-ink); }
.fm-catalog-title { position: relative; padding-left: 14px; }
.fm-catalog-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 8px;
    width: 5px;
    border-radius: 4px;
    background: var(--ux-gold);
}

/* ---------- Tarjetas de categoría ---------- */
.fm-cats-track .cat-card { border-radius: var(--ux-radius); border: 1.5px solid rgba(37, 104, 61, 0.14); transition: transform .25s var(--ux-ease), box-shadow .25s, border-color .25s; }

/* ---------- Sidebar de filtros ---------- */
.fm-sidebar {
    background: #FAF4E4;
    border: 1.5px solid var(--ux-line);
    border-radius: var(--ux-radius);
    padding: 12px;
    box-shadow: var(--ux-shadow-sm);
}
.fm-filter summary { background: transparent; border-bottom: 1px solid var(--ux-line); border-radius: 0; padding: 12px 8px; font-size: .9rem; color: var(--ux-ink); }
.fm-filter:last-of-type summary { border-bottom: none; }
body.retail-body .fm-filter-list .tab-btn:hover,
body.retail-body .fm-filter-list .filter-chip:hover,
body.retail-body .fm-filter-list .quick-weight-pill:hover { background: var(--ux-green-soft); }
.fm-box { border-color: #9ca3af; border-radius: 4px; }

.fm-sort { border-radius: 10px; border-color: var(--ux-line); box-shadow: var(--ux-shadow-sm); }

/* ---------- Grilla y tarjetas de producto ---------- */
.fm-products .products-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

body.retail-body .product-card {
    background: #FAF4E4;
    border: 1px solid var(--ux-line);
    border-radius: 14px;
    box-shadow: var(--ux-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s var(--ux-ease), box-shadow .28s, border-color .28s;
}
body.retail-body .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ux-shadow-lg);
    border-color: #d1d5db;
}

body.retail-body .product-image-wrap {
    height: 210px;
    background: radial-gradient(circle at 50% 40%, #FAF4E4 0%, #F2E8CF 85%);
    border-bottom: 1px solid rgba(56, 102, 65, 0.10);
    cursor: pointer;
}
body.retail-body .product-img { transition: transform .45s var(--ux-ease); }
body.retail-body .product-card:hover .product-img { transform: scale(1.07); }

.badge-discount { background: var(--ux-green); border-radius: 0 0 12px 0; }
.badge-top { background: var(--ux-gold); color: #386641; border-radius: 0 0 0 12px; }

body.retail-body .product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
body.retail-body .product-brand { color: var(--ux-green); font-size: .78rem; font-weight: 600; letter-spacing: .8px; }
body.retail-body .product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ux-ink);
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
body.retail-body .product-title:hover { color: var(--ux-green); }

/* Selector de presentación */
body.retail-body .weight-options { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
body.retail-body .weight-btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 6px 10px;
    border: 1.5px solid var(--ux-line);
    border-radius: 8px;
    background: #FAF4E4;
    color: #374151;
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, transform .15s;
}
body.retail-body .weight-btn:hover { border-color: var(--ux-green); color: var(--ux-green); }
body.retail-body .weight-btn.selected {
    background: var(--ux-green-soft);
    border-color: var(--ux-green);
    color: var(--ux-green);
    box-shadow: inset 0 0 0 1px var(--ux-green);
}

body.retail-body .product-footer { margin-top: auto; align-items: flex-end; gap: 10px; }
body.retail-body .product-price { color: var(--ux-ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.5px; }
body.retail-body .price-per-kg { color: var(--ux-muted); font-size: .80rem; font-weight: 500; }

body.retail-body .add-cart-btn {
    background: var(--ux-green);
    color: #FAF4E4;
    border: none;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(56, 102, 65, .25);
    transition: background .2s, transform .15s var(--ux-ease), box-shadow .2s;
}
body.retail-body .add-cart-btn:hover { background: var(--ux-green-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(56, 102, 65, .32); }
body.retail-body .add-cart-btn:active { transform: scale(.96); }

/* ---------- Carrito (drawer) ---------- */
body.retail-body .cart-drawer { box-shadow: -18px 0 48px rgba(16, 24, 40, .22); }
body.retail-body .cart-header { background: #386641; color: #FAF4E4; border-bottom: 3px solid var(--ux-gold); }
body.retail-body .cart-header h3 { color: #FAF4E4; }
body.retail-body .cart-header .close-cart-btn { color: #FAF4E4; border-radius: 10px; min-width: 44px; min-height: 44px; cursor: pointer; }
body.retail-body .cart-header .close-cart-btn:hover { background: rgba(255, 255, 255, .15); }

body.retail-body .cart-section-box { border-radius: var(--ux-radius); border: 1px solid var(--ux-line); box-shadow: var(--ux-shadow-sm); }
body.retail-body .cart-item { border-radius: 10px; transition: background .2s; }
body.retail-body .cart-item:hover { background: #fafafa; }
body.retail-body .qty-btn { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }

body.retail-body .shipping-option-card { border-radius: 10px; transition: border-color .2s, box-shadow .2s, transform .15s; }
body.retail-body .shipping-option-card:hover { transform: translateY(-1px); box-shadow: var(--ux-shadow-sm); }
body.retail-body .shipping-option-card.active { border-color: var(--ux-green); background: var(--ux-green-soft); box-shadow: 0 0 0 1px var(--ux-green); }

body.retail-body .cart-footer { box-shadow: 0 -10px 24px rgba(16, 24, 40, .08); }
body.retail-body .cart-footer .checkout-btn,
body.retail-body .checkout-btn {
    background: var(--ux-gold);
    color: #386641;
    border-radius: 12px;
    min-height: 52px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(238, 162, 67, .4);
    transition: transform .15s var(--ux-ease), box-shadow .2s, background .2s;
}
body.retail-body .cart-footer .checkout-btn:hover:not(:disabled),
body.retail-body .checkout-btn:hover:not(:disabled) {
    background: #F5B864;
    color: #386641;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(238, 162, 67, .5);
}
body.retail-body .cart-footer .checkout-btn:disabled,
body.retail-body .checkout-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------- Checkout modal ---------- */
.checkout-modal { border-radius: 18px; box-shadow: var(--ux-shadow-lg); }
.checkout-modal-header { background: #386641; border-bottom: 3px solid var(--ux-gold); }
.checkout-modal-header h3 { color: #FAF4E4; }
.checkout-modal .form-control { border-radius: 10px; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
.checkout-modal .form-control:focus { border-color: var(--ux-green); box-shadow: 0 0 0 4px rgba(56, 102, 65, .14); outline: none; }
.btn-wa-confirm, .btn-mp-pay { border-radius: 12px; min-height: 52px; font-weight: 800; transition: transform .15s var(--ux-ease), box-shadow .2s; }
.btn-wa-confirm:hover, .btn-mp-pay:hover { transform: translateY(-2px); box-shadow: var(--ux-shadow-md); }

/* ---------- Quick view ---------- */
.quick-view-modal { border-radius: 18px; box-shadow: var(--ux-shadow-lg); }
.qv-btn-add { background: var(--ux-green); border-radius: 12px; min-height: 52px; font-weight: 800; }
.qv-btn-add:hover { background: var(--ux-green-dark); }

/* ---------- Toast ---------- */
.retail-toast { border-radius: 12px; box-shadow: var(--ux-shadow-lg); }

/* ---------- Footer ---------- */
.retail-footer {
    background: #386641 !important;
    border-top: 4px solid var(--ux-gold) !important;
    color: var(--ux-cream) !important;
}
.retail-footer .footer-block h3 { color: var(--ux-cream) !important; }
.retail-footer .brand-tagline,
.retail-footer .brand-info-item,
.retail-footer .business-block p,
.retail-footer .links-block a { color: #e3d5b3 !important; }
.retail-footer .brand-info-item i,
.retail-footer .links-block a:hover,
.retail-footer .footer-bottom-links a { color: var(--ux-gold) !important; }
.retail-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(242, 232, 207, 0.15) !important;
}
.retail-footer .footer-bottom-container { color: #d5c59f !important; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 3px solid var(--ux-gold) !important; outline-offset: 2px !important; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .fm-perks { grid-template-columns: 1fr; }
    .fm-hero-track { height: 300px; }
}

/* ---------- Celular ---------- */
@media (max-width: 768px) {
    body.retail-body .retail-header.fm-header { padding: 8px 14px; }
    .fm-search { max-width: none; }
    .fm-search .header-search-input { padding: 10px 76px 10px 16px; min-height: 44px; }
    .fm-search-clear { right: 42px; }
    .fm-header .retail-logo-img { height: 42px; }
    .fm-hero { margin: 12px 12px 18px; border-radius: 14px; }
    .fm-hero-track { height: 250px; }
    .fm-catalog { padding: 0 12px; }
    .fm-catalog-title { font-size: 1.3rem; }
    .fm-products .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    body.retail-body .product-image-wrap { height: 150px; }
    body.retail-body .product-body { padding: 10px 10px 12px; }
    body.retail-body .product-title { font-size: .88rem; }
    body.retail-body .product-price { font-size: 1.15rem; }
    body.retail-body .product-footer { flex-direction: column; align-items: stretch; }
    body.retail-body .add-cart-btn { width: 100%; min-height: 46px; }
    body.retail-body .weight-btn { font-size: .75rem; padding: 6px 4px; min-height: 38px; }
    body.retail-body .cart-footer .checkout-btn,
    .checkout-btn { min-height: 54px; }
    /* Evitar superposición entre botón flotante circular y barra sticky inferior */
    body.retail-body .floating-cart-btn { display: none !important; }
    body.retail-body.has-sticky-cart { padding-bottom: 84px; }
}

@media (max-width: 380px) {
    .fm-products .products-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   NUEVAS OPTIMIZACIONES UI/UX PRO MAX
   ========================================================== */

/* 1. Feedback visual en botón Agregar */
body.retail-body .add-cart-btn.is-added {
    background: #A7C957 !important;
    color: #386641 !important;
    box-shadow: 0 4px 14px rgba(167, 201, 87, .45) !important;
    transform: scale(1.02);
}

/* 2. Micro-animación pop en badge del carrito */
@keyframes badgePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart-badge.badge-pop,
.floating-cart-badge.badge-pop,
.mobile-sticky-pill.badge-pop {
    animation: badgePop .35s cubic-bezier(.2, .7, .2, 1);
}

/* 3. Botón para limpiar búsqueda rápida */
.fm-search { position: relative; }
.fm-search-clear {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: .95rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color .15s, background .15s;
    z-index: 2;
}
.fm-search-clear:hover {
    color: #374151;
    background: #e5e7eb;
}

/* 4. Aviso explicativo de botón de Checkout deshabilitado */
.checkout-disabled-hint {
    margin-top: 10px;
    padding: 9px 14px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn .2s ease-out;
}
.checkout-disabled-hint i { font-size: .95rem; color: #dc2626; flex-shrink: 0; }

/* 5. Barra Sticky Inferior de Carrito para Móviles */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: #386641;
    color: #FAF4E4;
    border: 2px solid var(--ux-gold);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(39, 72, 46, .35), 0 2px 8px rgba(0,0,0,.15);
    z-index: 998;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .25s;
}
@media (max-width: 768px) {
    .mobile-sticky-cart:not(.is-hidden) {
        display: flex;
    }
}
.mobile-sticky-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-sticky-pill {
    background: rgba(255, 255, 255, .15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .84rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FAF4E4;
}
.mobile-sticky-pill i { color: var(--ux-gold); }
.mobile-sticky-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FAF4E4;
    letter-spacing: -.3px;
}
.mobile-sticky-action {
    background: var(--ux-gold);
    color: #386641;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: .86rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(245, 184, 0, .4);
    transition: transform .15s;
}
.mobile-sticky-cart:active .mobile-sticky-action {
    transform: scale(.96);
}

/* 6. Badges de Confianza y Seguridad en Checkout */
.checkout-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0 14px;
    padding: 12px 8px;
    background: #f8fafc;
    border: 1px solid var(--ux-line);
    border-radius: 12px;
}
.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: .74rem;
    font-weight: 600;
    color: #374151;
}
.trust-badge-item i {
    font-size: 1.15rem;
    color: var(--ux-green);
}
.trust-badge-item i.fa-whatsapp {
    color: #25d366;
}

/* ============================================================
   7. SECCIÓN DE PREGUNTAS FRECUENTES (FAQ ACCORDION)
   ============================================================ */
.retail-faq-section {
    max-width: 960px;
    margin: 60px auto 40px;
    padding: 0 20px;
}
.faq-header {
    text-align: center;
    margin-bottom: 32px;
}
.faq-kicker {
    display: inline-block;
    background: rgba(22, 101, 52, 0.1);
    color: var(--ux-green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.faq-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #386641;
    margin: 0 0 10px;
}
.faq-subtitle {
    font-size: 0.98rem;
    color: #4b5563;
    max-width: 580px;
    margin: 0 auto;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #FAF4E4;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
    border-color: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08);
}
.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    -webkit-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    list-style: none;
    transition: color 0.15s;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary:hover {
    color: var(--ux-green);
}
.faq-icon-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #6b7280;
    transition: transform 0.25s ease, background 0.2s, color 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item[open] .faq-icon-chevron {
    transform: rotate(180deg);
    background: var(--ux-green);
    color: #FAF4E4;
}
.faq-content {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}
.faq-content p {
    margin: 0;
}
.faq-content strong {
    color: #386641;
}
.faq-content a {
    color: #166534;
    font-weight: 700;
    text-decoration: underline;
}
.faq-cta-box {
    margin-top: 36px;
    padding: 24px;
    background: #FAF4E4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.faq-cta-text h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #166534;
    font-weight: 700;
}
.faq-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}
.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #FAF4E4;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}
.faq-cta-btn:hover {
    background: #1ebc59;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #FAF4E4;
}

/* ============================================================
   8. MEJORAS DE CHECKOUT, PAGOS Y VALIDACIÓN INLINE
   ============================================================ */
.checkout-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}
.checkout-error-banner i {
    font-size: 1.15rem;
    flex-shrink: 0;
}
.banner-shake {
    animation: wk-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes wk-shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.form-control.is-invalid {
    border-color: #ef4444 !important;
    background-color: #FAF4E4;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: wk-shake 0.35s ease;
}

/* Grilla de selección interactiva de método de pago en el modal */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.payment-option-card {
    background: #FAF4E4;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    box-sizing: border-box;
}
.payment-option-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.payment-option-card.active {
    border-color: #166534;
    background: #f0fdf4;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.12);
}
.payment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}
.payment-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.payment-badge-pill.mp {
    background: rgba(0, 158, 227, 0.15);
    color: #007bb5;
}
.payment-badge-pill.transfer {
    background: rgba(22, 101, 52, 0.15);
    color: #166534;
}
.payment-badge-pill.cash {
    background: rgba(245, 184, 0, 0.2);
    color: #92400e;
}
.payment-discount-tag {
    background: #22c55e;
    color: #FAF4E4;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.payment-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #386641;
}
.payment-card-sub {
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.3;
}

/* ============================================================
   9. CORRECCIONES DE AUDITORÍA UI/UX & ACCESIBILIDAD WCAG 2.2
   ============================================================ */

/* Contraste WCAG AA (4.5:1+) en placeholder de búsqueda */
.fm-search .header-search-input::placeholder {
    color: #64748b;
}

/* Estado activo en menú horizontal de categorías y navegación clara */
.fm-catnav-inner a.active-cat-nav:not(.fm-navpill) {
    background: var(--ux-green-soft);
    color: var(--ux-green);
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px var(--ux-green);
}

/* Accesibilidad teclado y visibilidad en Vista Rápida (Quick View) */
.quick-view-overlay {
    visibility: hidden;
}
.quick-view-overlay.open {
    visibility: visible;
}
.product-card:focus-within .quick-view-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Cupón colapsable compacto en el Drawer del Carrito */
details.cart-coupon-box {
    padding: 0;
    overflow: hidden;
}
details.cart-coupon-box summary.coupon-label {
    list-style: none;
    cursor: pointer;
    padding: 11px 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-user-select: none;
    user-select: none;
    transition: background .15s, color .15s;
}
details.cart-coupon-box summary.coupon-label::-webkit-details-marker {
    display: none;
}
details.cart-coupon-box summary.coupon-label:hover {
    background: #f1f5f9;
    color: var(--ux-green);
}
details.cart-coupon-box summary.coupon-label > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
details.cart-coupon-box .coupon-chevron {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.2s ease;
}
details.cart-coupon-box[open] .coupon-chevron {
    transform: rotate(180deg);
    color: var(--ux-green);
}
details.cart-coupon-box .coupon-body {
    padding: 2px 14px 12px;
    border-top: 1px solid #e2e8f0;
}

/* Banner de respaldo por si el navegador bloquea la apertura de WhatsApp */
.wa-fallback-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #064e3b;
    color: #FAF4E4;
    border: 2px solid var(--ux-gold);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    z-index: 4500;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(520px, 92vw);
    font-size: 0.9rem;
    animation: fadeIn .25s ease-out;
}
.wa-fallback-toast a {
    background: #25d366;
    color: #052e16;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wa-fallback-toast button {
    background: transparent;
    border: none;
    color: #a7f3d0;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}


/* ==========================================================
   MEJORAS FINALES PRE-ENTREGA (Filtros Activos + Toast + Mobile)
   ========================================================== */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #FAF4E4;
    border: 1px solid rgba(56, 102, 65, 0.16);
    border-radius: 12px;
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F2E8CF;
    color: #386641;
    border: 1px solid rgba(56, 102, 65, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 34px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.active-filter-pill:hover {
    background: #EEA243;
    border-color: #EEA243;
    color: #386641;
}

.active-filter-clear-all {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #386641;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}

.retail-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #386641;
    color: #FAF4E4;
    border: 1.5px solid #EEA243;
}

.retail-toast .toast-msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retail-toast .toast-msg i {
    color: #A7C957;
}

.toast-cart-btn {
    background: #EEA243;
    color: #386641;
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.toast-cart-btn:hover {
    background: #F5B864;
}

@media (max-width: 768px) {
    .fm-topbar-inner {
        height: auto;
        min-height: 42px;
        padding: 6px 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .fm-topbar-tabs {
        gap: 8px !important;
        width: 100%;
        justify-content: space-between;
    }
    .fm-ticker {
        display: none;
    }
    .fm-ticker-arrows {
        display: none;
    }
    .b2b-link-banner > div {
        padding: 1.35rem 1.25rem !important;
    }
}

/* Clases extraídas de minoristas.html (sin inline-styles) */
.fm-topbar-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #F2E8CF !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(242, 232, 207, 0.12);
}

.fm-topbar-back i {
    color: #EEA243;
}

.fm-topbar-badge {
    background: #EEA243;
    color: #386641;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
}

.fm-topbar-b2b {
    color: #A7C957 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.b2b-link-banner {
    max-width: 1280px;
    margin: 0 auto 2.5rem auto;
    padding: 0 24px;
}

.b2b-link-card {
    background: #386641;
    border: 2px solid #EEA243;
    border-radius: 20px;
    padding: 1.8rem 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: #F2E8CF;
    box-shadow: 0 10px 30px rgba(56, 102, 65, 0.16);
    flex-wrap: wrap;
}

.b2b-link-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1 1 320px;
}

.b2b-link-avatar {
    width: 76px;
    height: 76px;
    object-fit: contain;
    flex-shrink: 0;
}

.b2b-link-kicker {
    display: inline-block;
    background: #EEA243;
    color: #386641;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.b2b-link-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #FAF4E4;
    margin: 0.4rem 0 0.25rem 0;
}

.b2b-link-desc {
    font-size: 0.92rem;
    color: #F2E8CF;
    margin: 0;
}

.b2b-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #EEA243;
    color: #386641;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.94rem;
    padding: 0.85rem 1.7rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(238, 162, 67, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.b2b-link-cta:hover {
    transform: scale(1.04);
    background: #F5B864;
}


/* ==========================================================
   UPGRADE VISUAL MARKETPLACE (Nuts.com / The Food Market)
   ========================================================== */

/* Botón Agregar protagonista en Golden Apricot (#EEA243) */
body.retail-body .add-cart-btn {
    background: #EEA243;
    color: #386641;
    box-shadow: 0 4px 12px rgba(238, 162, 67, 0.32);
}

body.retail-body .add-cart-btn:hover {
    background: #F5B864;
    color: #386641;
    box-shadow: 0 8px 18px rgba(238, 162, 67, 0.42);
}

/* Stepper en vivo [- qty +] en tarjeta de producto */
.card-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #FAF4E4;
    border: 2px solid #EEA243;
    border-radius: 10px;
    min-height: 44px;
    min-width: 108px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(238, 162, 67, 0.22);
}

.card-qty-stepper.compact {
    min-height: 36px;
    min-width: 92px;
    border-radius: 8px;
}

.card-qty-stepper .stepper-btn {
    background: transparent;
    border: none;
    color: #386641;
    font-weight: 800;
    font-size: 1.1rem;
    width: 34px;
    height: 100%;
    min-height: 36px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s ease;
}

.card-qty-stepper .stepper-btn:hover {
    background: #EEA243;
}

.card-qty-stepper .stepper-val {
    font-weight: 800;
    font-size: 0.95rem;
    color: #386641;
    padding: 0 6px;
}

/* Hero Carrusel Editorial más amplio + Sello de Prueba Social */
@media (min-width: 1025px) {
    .fm-hero-track {
        height: 390px !important;
    }
}

.fm-hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 244, 228, 0.16);
    border: 1px solid rgba(250, 244, 228, 0.35);
    color: #FAF4E4;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    width: fit-content;
}

.fm-hero-trust i {
    color: #EEA243;
}

/* Promo Cards más limpias y con elevación sutil */
.promo-card {
    box-shadow: 0 8px 24px rgba(56, 102, 65, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(56, 102, 65, 0.16);
}

/* Riel Curado: Los Más Elegidos */
.bestsellers-rail-section {
    max-width: 1280px;
    margin: 0 auto 2.5rem auto;
    padding: 0 24px;
}

.bestsellers-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bestsellers-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(167, 201, 87, 0.26);
    color: #386641;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.bestsellers-kicker i {
    color: #EEA243;
}

.bestsellers-head h2 {
    font-size: 1.55rem;
    color: #386641;
    margin: 0;
}

.bestsellers-all-link {
    font-weight: 800;
    font-size: 0.88rem;
    color: #386641;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #FAF4E4;
    border: 1.5px solid rgba(56, 102, 65, 0.18);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bestsellers-all-link:hover {
    background: #EEA243;
    border-color: #EEA243;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bestseller-card {
    background: #FAF4E4;
    border: 1.5px solid rgba(56, 102, 65, 0.14);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(56, 102, 65, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bestseller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(56, 102, 65, 0.14);
}

.bestseller-img-wrap {
    position: relative;
    height: 155px;
    background: radial-gradient(circle at 50% 45%, #FAF4E4 0%, #F2E8CF 88%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: pointer;
}

.bestseller-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bestseller-card:hover .bestseller-img-wrap img {
    transform: scale(1.06);
}

.bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #EEA243;
    color: #386641;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}

.bestseller-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bestseller-info h3 {
    font-size: 0.96rem;
    color: #386641;
    margin: 0 0 2px 0;
    line-height: 1.25;
    cursor: pointer;
}

.bestseller-weight {
    font-size: 0.78rem;
    color: #6A994E;
    font-weight: 700;
    margin-bottom: 10px;
}

.bestseller-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bestseller-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #386641;
}

.add-cart-btn.compact {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .bestsellers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bestsellers-rail-section {
        padding: 0 12px;
    }
    .bestsellers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 6px;
    }
    .bestseller-card {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }
    .card-qty-stepper {
        width: 100%;
    }
}


/* ==========================================================
   PACKS EN 1 CLIC, FAVORITOS, VISTOS RECIENTEMENTE Y QUICK VIEW
   ========================================================== */

/* Packs / Combos */
.packs-section,
.recently-viewed-section {
    max-width: 1280px;
    margin: 0 auto 2.5rem auto;
    padding: 0 24px;
}

.packs-sub-note {
    font-size: 0.84rem;
    font-weight: 700;
    color: #6A994E;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pack-card {
    background: #FAF4E4;
    border: 1.5px solid rgba(56, 102, 65, 0.16);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(56, 102, 65, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(56, 102, 65, 0.14);
    border-color: #EEA243;
}

.pack-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pack-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(167, 201, 87, 0.28);
    color: #386641;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.pack-thumbs {
    display: flex;
    align-items: center;
}

.pack-thumbs img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #F2E8CF;
    border: 2px solid #FAF4E4;
    margin-left: -10px;
    box-shadow: 0 2px 6px rgba(56, 102, 65, 0.12);
}

.pack-thumbs img:first-child {
    margin-left: 0;
}

.pack-title {
    font-size: 1.15rem;
    color: #386641;
    margin: 0;
}

.pack-desc {
    font-size: 0.86rem;
    color: #527957;
    margin: 0;
    line-height: 1.45;
}

.pack-items-list {
    list-style: none;
    padding: 10px 12px;
    margin: 0;
    background: #F2E8CF;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: #386641;
    font-weight: 600;
}

.pack-items-list li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pack-items-list i {
    color: #6A994E;
    font-size: 0.76rem;
}

.pack-footer {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pack-price-wrap {
    display: flex;
    flex-direction: column;
}

.pack-price-label {
    font-size: 0.72rem;
    color: #6A994E;
    font-weight: 700;
}

.pack-price-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #386641;
}

.btn-add-pack {
    background: #EEA243;
    color: #386641;
    border: none;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 16px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(238, 162, 67, 0.3);
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-add-pack:hover {
    background: #F5B864;
    transform: translateY(-1px);
}

/* Botón Favoritos en Tarjeta y Filtro en Toolbar */
.fav-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 102, 65, 0.15);
    background: rgba(250, 244, 228, 0.94);
    color: #386641;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fav-toggle-btn:hover {
    transform: scale(1.08);
    border-color: #EEA243;
}

.fav-toggle-btn.is-fav {
    background: #EEA243;
    border-color: #EEA243;
    color: #386641;
}

.fm-favs-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(56, 102, 65, 0.2);
    background: #FAF4E4;
    color: #386641;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fm-favs-filter-btn:hover {
    border-color: #EEA243;
}

.fm-favs-filter-btn.active {
    background: #EEA243;
    border-color: #EEA243;
    color: #386641;
}

.fav-count-pill {
    background: #386641;
    color: #FAF4E4;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
}

/* Vistos Recientemente */
.recent-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.recent-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
    background: #FAF4E4;
    border: 1.5px solid rgba(56, 102, 65, 0.14);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.recent-card:hover {
    transform: translateY(-2px);
    border-color: #EEA243;
}

.recent-card img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    background: #F2E8CF;
    flex-shrink: 0;
}

.recent-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.recent-info strong {
    font-size: 0.84rem;
    color: #386641;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-info span {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6A994E;
}

/* Ficha de Usos y Conservación en Vista Rápida */
.qv-usage-box {
    background: #F2E8CF;
    border: 1px solid rgba(56, 102, 65, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qv-usage-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.83rem;
    color: #386641;
    line-height: 1.4;
}

.qv-usage-row i {
    color: #6A994E;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .packs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .packs-section,
    .recently-viewed-section {
        padding: 0 12px;
    }
}
