/* ======================================
   🔧 BASE GENERAL
====================================== */
* {
    box-sizing: border-box;
}

body {
    padding-top: 110px !important;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* ======================================
   🔥 CONTENEDOR FULL (SOLUCIÓN IZQUIERDA)
====================================== */
.container {
    max-width: 95% !important;
    margin-left: 20px !important;
    margin-right: auto !important;
}

/* ======================================
   📦 GRID PRODUCTOS MÁS GRANDES
====================================== */
.col-md-4.col-lg-3 {
    flex: 0 0 31% !important;
    max-width: 31% !important;
}

/* ======================================
   🎯 TARJETA PRODUCTO PRO
====================================== */
.product-card {
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

/* ======================================
   🖼️ IMAGEN
====================================== */
.img-container {
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

/* IMAGEN */
.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* EFECTO HOVER */
.product-card:hover .product-img {
    transform: scale(1.08);
}



/*-----------------------------------------------------*/

/* SEPARACIÓN */
.card.shadow-sm .mb-3 {
    margin-bottom: 18px;
}

/* TITULOS */
.card.shadow-sm label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

/* CHECKBOX */
.form-check-input {
    cursor: pointer;
}

.form-check-label {
    font-size: 13px;
    cursor: pointer;
}

/* BOTÓN FILTRO */
.card.shadow-sm .btn-success {
    margin-top: 10px;
    padding: 12px;
    font-size: 14px;
}


/*---------------------------------------------------*/


/* ======================================
   🏷️ MARCAS DESTACADAS
====================================== */

.marcas-container {
    max-width: 97% !important;
    margin-left:25px !important;
}

/* CARD */
.marcas-card {
    border-radius: 20px;
    border: none;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* GRID */
.marcas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ITEM MARCA */
.marca-item {
    flex: 1;
    min-width: 110px;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* HOVER PRO */
.marca-item:hover {
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(13,110,253,0.3);
}

.marca-item img {
    max-height: 30px;
    object-fit: contain;
}


/* ======================================
   🏷️ TEXTO
====================================== */
.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    min-height: 40px;
}

.text-success {
    font-size: 22px;
    font-weight: 800;
    color: #16a34a !important;
}

/* ======================================
   🛒 BOTONES (PERFECTOS EN LÍNEA)
====================================== */
.product-card .mt-auto {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* MITAD Y MITAD */
.product-card form.w-50,
.product-card a.w-50 {
    width: 50% !important;
}

/* BOTONES */
.product-card .btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

/* AGREGAR */
.product-card .btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
}

.product-card .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34,197,94,0.4);
}

/* DETALLES */
.product-card .btn-primary {
    background: linear-gradient(135deg, #111827, #000);
    border: none;
}

.product-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* CLICK */
.product-card .btn:active {
    transform: scale(0.95);
}

/* ======================================
   ❤️ FAVORITO (MEJORADO PERO IGUAL ESTILO)
====================================== */
.btn-favorito {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);

    box-shadow: 0 6px 15px rgba(0,0,0,0.2);

    transition: all .25s ease;
    z-index: 3;
}

.btn-favorito:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-favorito i {
    font-size: 22px;
    color: #9e9e9e;
    transition: all .25s ease;
}

.btn-favorito:hover i {
    color: #ff2e55;
}

.favorito-activo {
    color: #ff2e55 !important;
    animation: likePop .35s ease;
}

@keyframes likePop {
    0% {transform: scale(1);}
    40% {transform: scale(1.4);}
    70% {transform: scale(0.9);}
    100% {transform: scale(1);}
}

/* ======================================
   📊 FILTROS PRO
====================================== */
.card.shadow-sm {
    border-radius: 18px;
    border: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card.shadow-sm h5 {
    font-weight: 700;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

/* ======================================
   📱 RESPONSIVE
====================================== */
@media (max-width: 992px) {
    .col-md-4.col-lg-3 {
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
}

@media (max-width: 576px) {
    .col-md-4.col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}