/* ESTILOS v35 */
:root { --fp-bg:#fff; --fp-text:#202020; --fp-accent:#6A0316; --fp-border:#e5e5e5; --fp-shadow:0 10px 40px rgba(0,0,0,0.08); --fp-gold: #D4AF37; --fp-green-promo: #2e7d32; }
.fp35-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; font-family: Helvetica, Arial, sans-serif; position: relative; scroll-margin-top: 100px; }

.fp35-search-bar { background: #ffffff; border: none; padding: 18px 22px !important; border-radius: 12px; margin-bottom: 25px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: relative; }
.fp35-search-input { border: none; outline: none; width: 100%; font-size: 14px; color: #333; background: transparent; padding: 8px 0 !important; }
.fp35-search-results { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--fp-shadow); border: 1px solid #f0f0f0; z-index: 120; display: none; max-height: 280px; overflow-y: auto; }
.fp35-search-item { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; color: #333; text-decoration: none; }
.fp35-search-item:hover { background: #fafafa; }
.fp35-search-title { font-weight: 600; font-size: 13px; }
.fp35-search-meta { font-size: 11px; color: #888; }
.fp35-search-empty { padding: 12px 16px; font-size: 12px; color: #999; }

.fp35-filters-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; align-items: center; }
.fp35-dropdown { position: relative; font-size: 13px; min-width: 140px; flex-grow: 1; }
.fp35-dd-trigger { background: #fff; border: 1px solid var(--fp-border); border-radius: 40px; padding: 12px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--fp-text); font-weight: 500; transition:0.2s; }
.fp35-dd-trigger:hover { border-color: var(--fp-accent); }
.fp35-dd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%; }
.fp35-dd-menu { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: var(--fp-shadow); z-index: 100; display: none; max-height: 280px; overflow-y: auto; border: 1px solid #f0f0f0; }
.fp35-dropdown.open .fp35-dd-menu { display: block; animation: fadeIn 0.2s; }
.fp35-dd-opt { padding: 10px 20px; cursor: pointer; color: #555; }
.fp35-dd-opt:hover { background: #f9f9f9; color: var(--fp-accent); }
.fp35-dd-opt.selected { color: var(--fp-accent); font-weight: 700; background: #fff5f6; }
.fp35-dd-opt.hidden { display: none; }

.fp35-bestseller-toggle { background: #fff; border: 1px solid var(--fp-gold); color: var(--fp-gold); padding: 10px 20px; border-radius: 40px; cursor: pointer; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: 0.2s; user-select: none; }
.fp35-bestseller-toggle:hover { background: #fffdf5; }
.fp35-bestseller-toggle.active { background: var(--fp-gold); color: #fff; border-color: var(--fp-gold); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.fp35-bs-icon { font-size: 16px; }

.fp35-reset { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fp-border); background: #fff; color: #999; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition:0.2s; }
.fp35-reset:hover { border-color:var(--fp-accent); color:var(--fp-accent); }

.fp35-tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; min-height: 0; }
.fp35-tag { background: #fff; border: 1px solid var(--fp-accent); color: var(--fp-accent); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; animation: fadeIn 0.3s; }
.fp35-tag-remove { cursor: pointer; font-weight: bold; font-size: 14px; line-height: 1; }

/* GRID */
.fp35-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
@media (max-width: 768px) {
    .fp35-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fp35-card { border-radius: 12px; }
    .fp35-info { padding: 10px; }
    .fp35-title { font-size: 13px !important; margin-bottom: 6px !important; height: 34px; overflow: hidden; }
    .fp35-tags { display: block; }
    .fp35-price-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .fp35-price { font-size: 14px; align-self: flex-start; }
    .fp35-qty-ctrl { width: 100%; justify-content: space-between; background: #fff; }
    .fp35-qty-val { flex-grow: 1; }
    .fp35-badge-pill { font-size: 9px; padding: 2px 6px; }
    .fp35-dropdown { min-width: 100px; flex-grow: 1; }
    .fp35-dd-trigger { padding: 10px 15px; font-size: 12px; }

    /* MOBILE BAR (VERTICAL STACK) */
    .fp35-bar { 
        padding: 15px; border-radius: 20px; width: 95%; bottom: 20px; 
        flex-direction: column; gap: 10px; /* Apilado vertical */
        max-width: 100%; /* Full width en móvil */
    }
    .fp35-bar-inner { flex-direction: column; gap: 10px; align-items: stretch; }
    .fp35-bar-info { text-align: center; } /* Info centrada */
    .fp35-bar-actions { 
        flex-direction: column; /* Botones uno debajo de otro */
        gap: 8px; 
        width: 100%; 
    }
    .fp35-btn-buy { width: 100%; padding: 14px; font-size: 14px; }
    .fp35-btn-text { width: 100%; text-align: center; margin-bottom: 0; font-size: 12px; order: -1; /* Texto arriba */ }
    .fp35-price-row { flex-direction: column; align-items: flex-start; }
    .fp35-bar .fp35-promo-tag { width: 100%; }
    .fp35-bar-inner { flex-wrap: wrap; }
    .fp35-bar-actions { width: 100%; justify-content: center; }
}

.fp35-card { background: #fff; border-radius: 20px; border: 1px solid #f0f0f0; overflow: hidden; display: flex; flex-direction: column; position: relative; cursor: pointer; transition: 0.2s; }
.fp35-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.fp35-card.is-selected { border: 1px solid var(--fp-accent); box-shadow: 0 0 0 1px var(--fp-accent); }
.fp35-img-box { position: relative; padding-top: 100%; background: #ffffff; }
.fp35-img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; }

.fp35-quick-view { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid #eee; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; color: #555; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.fp35-quick-view:hover { background: var(--fp-accent); color: #fff; border-color: var(--fp-accent); }
.fp35-quick-view svg { width: 16px; height: 16px; fill: currentColor; }

.fp35-badges-container { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; gap: 6px; align-items: center; flex-wrap:wrap; }
.fp35-badge-pill { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; backdrop-filter: blur(4px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.fp35-gender { background: rgba(255, 255, 255, 0.9); color: #333; border: 1px solid rgba(0,0,0,0.05); }
.fp35-bestseller { background: var(--fp-gold); color: #fff; border: 1px solid var(--fp-gold); box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25); }

.fp35-check { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: rgba(255,255,255,0.9); border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; z-index: 10; color: transparent; }
.fp35-card.is-selected .fp35-check { background: var(--fp-accent); border-color: var(--fp-accent); color: #fff; }
.fp35-check::after { content: '✓'; font-weight: bold; }

.fp35-info { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.fp35-brand { font-size: 11px; text-transform: uppercase; color: #888; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.fp35-logo { width: 22px; height: 22px; object-fit: contain; }
.fp35-title { font-size: 15px; color: #202020 !important; margin: 0 0 8px 0; font-weight: 600; line-height: 1.35; }
.fp35-tags { font-size: 11px; color: #999; margin-bottom: 12px; height: 30px; overflow: hidden; }
.fp35-rating { font-size: 12px; color: #c2a13d; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.fp35-rating-stars { letter-spacing: 1px; font-size: 12px; }
.fp35-card .fp35-card-link { font-size: 11px; color: #9a9a9a !important; text-decoration: none; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.fp35-card-link:hover { opacity: 0.8; }

.fp35-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; flex-wrap: wrap; gap: 5px; }

/* PRECIO EN TARJETA */
.fp35-price { font-size: 16px; color: var(--fp-accent); font-weight: 700; white-space: nowrap; transition: color 0.3s ease; }
.fp35-price.promo-active { color: var(--fp-green-promo) !important; }

.fp35-qty-ctrl { display: flex; align-items: center; background: transparent; padding: 0; gap: 4px; }
.fp35-qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #e0e0e0; background: #fff; color: #666; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition:0.2s; }
.fp35-qty-btn:hover { background: #f5f5f5; color: #333; border-color: #ccc; }
.fp35-qty-val { font-size: 12px; font-weight: 600; width: 20px; text-align: center; color: #333; }

.fp35-load-area { grid-column: 1/-1; text-align: center; margin-top: 40px; color: #999; font-size: 13px; }
.fp35-btn-more { background: transparent; border: 2px solid #ddd; color: #666; padding: 12px 30px; border-radius: 40px; font-weight: 600; cursor: pointer; transition:0.2s; }
.fp35-btn-more:hover { border-color:var(--fp-accent); color:var(--fp-accent); }
.fp35-spin { display: inline-block; width: 20px; height: 20px; border: 2px solid #ccc; border-top-color: var(--fp-accent); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { to {transform: rotate(360deg);} }
@keyframes fadeIn { from {opacity:0;transform:translateY(-5px);} to {opacity:1;transform:translateY(0);} }

/* BARRA - DISEÑO MODERNO (Radius 20px para Móvil, 30px Desktop) */
.fp35-bar { 
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); 
    width: 90%; max-width: 850px; 
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); 
    border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 30px; /* Radius Desktop */
    padding: 12px 30px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); z-index: 9999; opacity: 0; transition: 0.4s; 
    display: flex; justify-content: center; 
}
.fp35-bar.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.fp35-bar-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; gap:20px; flex-wrap: nowrap; }
.fp35-bar-info { display: flex; flex-direction: column; gap: 6px; }
.fp35-bar-actions { display: flex; gap: 20px; align-items: center; white-space: nowrap; }

.fp35-count-row { font-size: 12px; color: #666; margin-bottom: 2px; }
.fp35-badge { background: #202020; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }

.fp35-price-row { font-size: 15px; color: #202020; font-weight: 500; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fp35-bar .fp35-price-row { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.fp35-bar .fp35-promo-tag { flex-basis: 100%; }
.fp35-total { font-weight: 800; font-size: 18px; }

.fp35-promo-tag { background: #e8f5e9; color: #2e7d32; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; display: none; margin-left: 0; }
.fp35-bar .fp35-promo-tag { font-size: 12px; padding: 6px 10px; border-radius: 8px; line-height: 1.3; max-width: 100%; white-space: normal; }
.fp35-bar .fp35-bar-info { flex: 1 1 65%; min-width: 220px; }
.fp35-bar .fp35-bar-actions { flex: 0 0 auto; justify-content: flex-end; }

.fp35-btn-buy { background: var(--fp-accent); color: #fff; border: none; padding: 14px 28px; border-radius: 30px; font-weight: 600; cursor: pointer; transition:0.2s; white-space:nowrap; }
.fp35-btn-buy:hover { transform:scale(1.02); }

/* BOTÓN TEXTO SIMPLE (COLOR FORZADO #333) */
.fp35-btn-text { 
    background: transparent !important; 
    color: #333 !important; 
    border: none; 
    padding: 5px; 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
    white-space: nowrap; 
    text-decoration: underline; 
}
.fp35-btn-text:hover { color: #000 !important; opacity: 0.8; }

.fp35-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.fp35-modal.open { display: flex; animation: fadeIn 0.2s; }
.fp35-modal-content { background-color: #fff; margin: auto; padding: 30px; border-radius: 20px; width: 90%; max-width: 500px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2); text-align: left; }
.fp35-close-modal { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; position: absolute; top: 15px; right: 20px; transition: 0.2s; }
.fp35-close-modal:hover { color: #000; }
#fp35-modal-title { margin-top: 0; color: #202020; font-size: 22px; margin-bottom: 15px; padding-right: 20px; }
#fp35-modal-desc { font-size: 15px; line-height: 1.6; color: #555; max-height: 60vh; overflow-y: auto; }
