/* Layout General */
.fwa-container-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
    font-family: inherit;
}

/* Sidebar Estilizada */
.fwa-sidebar-box {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.fwa-field-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.fwa-title-label {
    font-size: 13px;
    font-weight: 700;
    color: #20325e;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: block;
}

.fwa-input-field, .fwa-select-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.fwa-slider-field {
    width: 100%;
    accent-color: #e34812;
    cursor: pointer;
    margin: 8px 0;
}

.fwa-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4a5568;
}

.fwa-scroll-box {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.fwa-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2d3748;
    cursor: pointer;
    margin: 0;
}

.fwa-check-item input[type="checkbox"] {
    accent-color: #e34812;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.fwa-stars-yellow {
    color: #f39c12;
    font-size: 14px;
}

.fwa-offer-highlight {
    background: #fff5f5;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #fed7d7;
    color: #e53e3e;
    font-weight: 600;
}

.fwa-reset-button {
    width: 100%;
    padding: 12px;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #2d3748;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.fwa-reset-button:hover {
    background: #e2e8f0;
}

/* Grilla de Productos */
.fwa-products-grid-area {
    flex: 1;
    width: 100%;
}

.fwa-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

/* Tarjetas */
.fwa-dp-card {
    background: #ffffff;
    border: 1.5px solid #e35a29;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.fwa-dp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 90, 41, 0.15);
}

.fwa-dp-image-holder {
    position: relative;
    width: 100%;
    padding: 20px 15px 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.fwa-dp-image-holder img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.fwa-dp-sale-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e34812;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.fwa-dp-content-holder {
    padding: 10px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fwa-dp-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.fwa-dp-title a {
    color: #20325e !important;
    text-decoration: none !important;
}

.fwa-dp-stars {
    margin-bottom: 8px;
}

.fwa-dp-stars .star-rating {
    font-size: 13px;
    color: #d3d3d3;
}

.fwa-dp-excerpt {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.fwa-dp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

/* 5. FORMATO DE PRECIO (Imagen 7) */
.fwa-dp-price {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #20325e !important;
}

.fwa-dp-price del {
    font-size: 13px !important;
    color: #999999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    order: 1 !important;
}

.fwa-dp-price ins {
    font-size: 16px !important;
    color: #20325e !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    order: 2 !important;
}

.fwa-dp-price > span:not(del):not(ins) {
    color: #20325e !important;
}

/* 1 y 2. OCULTAR 'VER CARRITO' Y AJUSTAR BOTÓN */
.fwa-dp-btn-wrap .added_to_cart {
    display: none !important;
}

.fwa-dp-btn-wrap .button, 
.fwa-dp-btn-wrap a {
    display: inline-block !important;
    background-color: #e34812 !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 3. ESTADO DESHABILITADO / LOADING EN BOTÓN */
.fwa-dp-btn-wrap .button.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.fwa-dp-btn-wrap .button.added {
    background-color: #20325e !important;
}

/* 4. PAGINACIÓN */
.fwa-pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    width: 100%;
}

.fwa-pagination-wrapper .page-numbers {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #20325e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.fwa-pagination-wrapper .page-numbers.current {
    background: #20325e;
    color: #ffffff;
    border-color: #20325e;
}

.fwa-pagination-wrapper .page-numbers:hover:not(.current) {
    background: #edf2f7;
}

/* Responsividad */
@media (max-width: 1200px) {
    .fwa-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .fwa-container-wrapper {
        flex-direction: column;
    }
    .fwa-sidebar-box {
        width: 100%;
    }
    .fwa-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .fwa-cards-grid {
        grid-template-columns: 1fr;
    }
}