*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', Arial, sans-serif;
    background:#f7f7f7;
    color:#111;
}

.catalog-page{
    width:100%;
}

.catalog-hero{
    width:100%;
    padding:80px 20px 50px;
    background:linear-gradient(135deg,#111,#222);
    color:#fff;
    text-align:center;
}

.catalog-hero-content{
    max-width:900px;
    margin:auto;
}

.catalog-hero span{
    display:inline-block;
    color:#ff8a00;
    text-transform:uppercase;
    font-size:15px;
    font-weight:900;
    letter-spacing:5px;
    margin-bottom:14px;
}

.catalog-hero h1{
    font-size:clamp(36px,5vw,68px);
    line-height:1.05;
    font-weight:950;
    text-transform:uppercase;
    margin-bottom:18px;
}

.catalog-hero p{
    max-width:760px;
    margin:auto;
    color:#e8e8e8;
    font-size:18px;
    line-height:1.7;
}

.catalog-section{
    width:100%;
    max-width:1720px;
    margin:auto;
    padding:45px 28px 70px;
}

.catalog-toolbar{
    display:grid;
    grid-template-columns:
        minmax(320px,2fr)
        minmax(190px,1fr)
        minmax(190px,1fr)
        minmax(190px,1fr)
        minmax(190px,1fr);
    gap:16px;
    align-items:center;
    background:#fff;
    padding:24px;
    border-radius:26px;
    box-shadow:0 8px 35px rgba(0,0,0,.06);
    margin-bottom:28px;
}

.search-box{
    height:56px;
    display:flex;
    align-items:center;
    gap:14px;
    border:1px solid #e4e4e4;
    border-radius:18px;
    padding:0 18px;
    background:#fff;
    transition:.2s ease;
}

.search-box:focus-within{
    border-color:#ff8a00;
    box-shadow:0 0 0 4px rgba(255,138,0,.12);
}

.search-box i{
    color:#ff8a00;
    font-size:18px;
}

.search-box input{
    width:100%;
    height:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    font-weight:500;
}

.catalog-toolbar select{
    height:56px;
    border:1px solid #e4e4e4;
    border-radius:18px;
    padding:0 18px;
    background:#fff;
    font-size:15px;
    font-weight:700;
    outline:none;
    cursor:pointer;
    transition:.2s ease;
}

.catalog-toolbar select:hover{
    border-color:#d2d2d2;
}

.catalog-toolbar select:focus{
    border-color:#ff8a00;
    box-shadow:0 0 0 4px rgba(255,138,0,.12);
}

.catalog-top-info{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:12px 0 28px;
}

.catalog-summary{
    display:flex;
    align-items:baseline;
    gap:8px;
    font-size:18px;
    color:#333;
}

.catalog-summary strong{
    color:#ff8a00;
    font-size:30px;
    font-weight:950;
}

.per-page-box{
    display:flex;
    align-items:center;
    gap:10px;
    color:#333;
    font-size:14px;
    font-weight:800;
}

.per-page-box select{
    height:42px;
    border:1px solid #ddd;
    border-radius:14px;
    padding:0 14px;
    background:#fff;
    font-weight:800;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

.product-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    border:1px solid #eeeeee;
    box-shadow:0 8px 28px rgba(0,0,0,.04);
    transition:.25s ease;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.product-image{
    position:relative;
    height:135px;
    background:#f0f0f0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:10px;
}

.placeholder{
    font-size:44px;
    color:#c6c6c6;
}

.branch-badge{
    position:absolute;
    top:14px;
    left:14px;

    display:flex;
    align-items:center;
    gap:7px;

    padding:10px 16px;

    border-radius:999px;

    font-size:13px;
    font-weight:900;

    z-index:10;

    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.branch-badge i{
    font-size:12px;
}

.branch-alajuela{
    background:#ff8a00;
    color:#fff;
}

.branch-san-jose{
    background:#111827;
    color:#fff;
}

.product-info{
    padding:21px;
}

.product-info h3{
    min-height:54px;
    font-size:17px;
    line-height:1.3;
    font-weight:950;
    margin-bottom:14px;
}

.product-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-height:34px;
    margin-bottom:15px;
}

.product-meta span{
    background:#fff1e2;
    color:#e97800;
    border-radius:999px;
    padding:7px 11px;
    font-size:12px;
    font-weight:900;
}

.stock-status{
    display:flex;
    align-items:center;
    gap:9px;
    color:#555;
    font-size:14px;
    margin-bottom:18px;
}

.stock-status i{
    color:#ff8a00;
}

.add-quote-btn{
    width:100%;
    height:47px;
    border:none;
    border-radius:999px;
    background:#ff8a00;
    color:#fff;
    font-size:15px;
    font-weight:950;
    cursor:pointer;
    transition:.2s ease;
}

.add-quote-btn:hover{
    background:#e67b00;
    transform:translateY(-1px);
}

.pagination-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:42px;
    flex-wrap:wrap;
}

.pagination-box button,
.page-number{
    border:none;
    height:42px;
    min-width:42px;
    padding:0 16px;
    border-radius:999px;
    background:#eeeeee;
    color:#111;
    font-weight:900;
    cursor:pointer;
    transition:.2s ease;
}

.pagination-box button:hover,
.page-number.active{
    background:#ff8a00;
    color:#fff;
}

.pagination-box button:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.pagination-numbers{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    justify-content:center;
}

.page-dots{
    font-weight:950;
    color:#888;
}

.empty-products{
    grid-column:1 / -1;
    text-align:center;
    padding:70px 20px;
    background:#fff;
    border-radius:24px;
    box-shadow:0 18px 45px rgba(0,0,0,.06);
}

.empty-products i{
    font-size:42px;
    color:#ff8a00;
    margin-bottom:16px;
}

.empty-products h3{
    font-size:26px;
    margin-bottom:8px;
}

.empty-products p{
    color:#666;
}

.quote-floating-btn{
    position:fixed;
    right:28px;
    bottom:28px;
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    background:#ff8a00;
    color:#fff;
    font-size:25px;
    cursor:pointer;
    z-index:999;
    box-shadow:0 16px 35px rgba(255,138,0,.35);
}

.quote-floating-btn span{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:26px;
    height:26px;
    padding:0 7px;
    border-radius:999px;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:950;
}

.quote-panel{
    position:fixed;
    top:0;
    right:-430px;
    width:410px;
    max-width:92vw;
    height:100vh;
    background:#fff;
    z-index:1000;
    box-shadow:-14px 0 35px rgba(0,0,0,.12);
    transition:.3s ease;
    display:flex;
    flex-direction:column;
 z-index: 99999 !important;
}

.quote-panel.active{
    right:0;
}

.quote-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:24px;
    border-bottom:1px solid #eee;
}

.quote-header h3{
    font-size:22px;
    font-weight:950;
}

.quote-header button{
    border:none;
    background:#111;
    color:#fff;
    width:38px;
    height:38px;
    border-radius:50%;
    cursor:pointer;
}

.quote-items{
    flex:1;
    overflow:auto;
    padding:20px;
}

.quote-item{
    padding:15px;
    border:1px solid #eee;
    border-radius:18px;
    margin-bottom:13px;
    background:#fafafa;
}

.quote-item strong{
    display:block;
    font-size:14px;
    line-height:1.35;
    margin-bottom:5px;
}

.quote-item span{
    display:block;
    color:#666;
    font-size:13px;
}

.cart-item{
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:center;
}

.cart-qty{
    display:flex;
    align-items:center;
    gap:8px;
    background:#f0f0f0;
    padding:5px 8px;
    border-radius:999px;
}

.cart-qty button{
    width:27px;
    height:27px;
    border:none;
    border-radius:50%;
    background:#ff8a00;
    color:#fff;
    font-weight:950;
    cursor:pointer;
}

.cart-qty span{
    min-width:24px;
    text-align:center;
    font-weight:950;
}

.remove-quote{
    grid-column:1 / -1;
    border:none;
    background:#111;
    color:#fff;
    padding:9px 12px;
    border-radius:999px;
    font-weight:800;
    cursor:pointer;
}

.quote-actions{
    padding:20px;
    border-top:1px solid #eee;
}

.quote-actions select{
    width:100%;
    height:48px;
    border:1px solid #ddd;
    border-radius:14px;
    padding:0 14px;
    margin-bottom:12px;
    font-weight:800;
}

.quote-actions a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    width:100%;
    height:52px;
    background:#25d366;
    color:#fff;
    text-decoration:none;
    border-radius:999px;
    font-weight:950;
}

/* NUEVO DISENO CANTIDAD */

.product-cart-row{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:18px;
}

.product-qty-box{
    width:130px;
    height:50px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:#f7f7f7;
    border:1px solid #e5e5e5;
    border-radius:999px;

    overflow:hidden;
    flex-shrink:0;
}

.product-qty-box button{
    width:42px;
    height:50px;

    border:none;
    background:transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#111;
    font-size:14px;
    font-weight:900;

    cursor:pointer;
    transition:.2s ease;
}

.product-qty-box button:hover{
    background:#ececec;
    color:#ff8a00;
}

.product-qty-box input{
    width:100%;
    height:50px;

    border:none;
    outline:none;
    background:transparent;

    text-align:center;

    font-size:16px;
    font-weight:900;
    color:#111;

    appearance:textfield;
    -moz-appearance:textfield;
}

.product-qty-box input::-webkit-outer-spin-button,
.product-qty-box input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.product-cart-row .add-quote-btn{
    flex:1;
    height:50px;
    margin:0;

    border-radius:999px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    font-size:15px;
    font-weight:950;
}

.product-cart-row .add-quote-btn i{
    font-size:14px;
}

@media(max-width:1400px){

    .catalog-toolbar{
        grid-template-columns:1fr 1fr 1fr;
    }

    .products-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}

@media(max-width:950px){

    .catalog-toolbar{
        grid-template-columns:1fr;
        padding:18px;
    }

    .catalog-top-info{
        align-items:flex-start;
        flex-direction:column;
    }

    .products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

@media(max-width:600px){

    .catalog-hero{
        padding:60px 18px 38px;
    }

    .catalog-section{
        padding:28px 16px 55px;
    }

    .products-grid{
        grid-template-columns:1fr;
    }

    .product-info h3{
        min-height:auto;
    }

    .quote-floating-btn{
        right:18px;
        bottom:18px;
        width:62px;
        height:62px;
    }

    .product-cart-row{
        flex-direction:column;
        align-items:stretch;
    }

    .product-qty-box{
        width:100%;
    }

}
.cart-fly-bubble{
    position:fixed;

    width:54px;
    height:54px;

    border-radius:50%;

    background:linear-gradient(135deg,#ff9800,#ff7a00);

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:20px;

    z-index:999999;
    pointer-events:none;

    box-shadow:
        0 15px 35px rgba(255,138,0,.45),
        0 5px 15px rgba(0,0,0,.12);

    transition:
        transform 1.35s cubic-bezier(.22,.8,.25,1),
        opacity 1.35s ease;

    will-change:transform, opacity;
}

.cart-fly-bubble i{
    transform:translateY(1px);
}

.cart-bounce{
    animation:cartBounce .7s ease;
}

@keyframes cartBounce{

    0%{
        transform:scale(1);
    }

    25%{
        transform:scale(1.22);
    }

    45%{
        transform:scale(.92);
    }

    65%{
        transform:scale(1.12);
    }

    100%{
        transform:scale(1);
    }
}
/* =========================================================
   SMART PRODUCT VISUAL PREMIUM
========================================================= */

.smart-product-visual{
    width:100%;
    height:100%;

    position:relative;
    overflow:hidden;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:flex-start;

    padding:22px;

    color:#fff;

    background:#111827;
}

/* EFECTO SUAVE */
.smart-product-visual::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.08),
            transparent 45%
        );

    opacity:.9;
}

/* CIRCULO DECORATIVO */
.smart-product-visual::after{
    content:"";

    position:absolute;

    width:180px;
    height:180px;

    right:-70px;
    top:-70px;

    border-radius:50%;

    background:rgba(255,255,255,.04);
}

/* ICONO */
.smart-icon{
    width:56px;
    height:56px;

    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(8px);

    margin-bottom:14px;

    position:relative;
    z-index:2;
}

.smart-icon i{
    font-size:24px;
    color:#fff;
}

/* LABEL */
.smart-label{
    position:relative;
    z-index:2;

    padding:7px 14px;

    border-radius:999px;

    background:rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.08);

    font-size:12px;
    font-weight:900;

    letter-spacing:.3px;
}

/* =========================================================
   COLORES
========================================================= */

.visual-aceites{
    background:
    linear-gradient(
        135deg,
        #111827,
        #1f2937,
        #f59e0b
    );
}

.visual-filtros{
    background:
    linear-gradient(
        135deg,
        #1e293b,
        #475569,
        #94a3b8
    );
}

.visual-frenos{
    background:
    linear-gradient(
        135deg,
        #1f2937,
        #7f1d1d,
        #ef4444
    );
}

.visual-bombas{
    background:
    linear-gradient(
        135deg,
        #0f172a,
        #115e59,
        #14b8a6
    );
}

.visual-baterias{
    background:
    linear-gradient(
        135deg,
        #111827,
        #166534,
        #22c55e
    );
}

.visual-suspension{
    background:
    linear-gradient(
        135deg,
        #1e1b4b,
        #4338ca,
        #818cf8
    );
}

.visual-direccion{
    background:
    linear-gradient(
        135deg,
        #172554,
        #2563eb,
        #60a5fa
    );
}

.visual-motor{
    background:
    linear-gradient(
        135deg,
        #111827,
        #3f3f46,
        #a1a1aa
    );
}

.visual-luces{
    background:
    linear-gradient(
        135deg,
        #78350f,
        #f59e0b,
        #fde68a
    );
}

.visual-herramientas{
    background:
    linear-gradient(
        135deg,
        #111111,
        #404040,
        #a3a3a3
    );
}

.visual-radiador{
    background:
    linear-gradient(
        135deg,
        #082f49,
        #0369a1,
        #38bdf8
    );
}

.visual-mangueras{
    background:
    linear-gradient(
        135deg,
        #292524,
        #57534e,
        #a8a29e
    );
}

.visual-general{
    background:
    linear-gradient(
        135deg,
        #111827,
        #374151,
        #6b7280
    );
}
.quote-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:20px 24px;
    border-bottom:1px solid #eee;
}

.quote-header h3{
    margin:0;
    font-size:22px;
    font-weight:900;
}

.quote-close-x{
    width:42px;
    height:42px;
    min-width:42px;
    border:none;
    border-radius:50%;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:18px;
    z-index:20;
}

.quote-close-x:hover{
    background:#fb8e00;
}

.quote-item strong,
.cart-item strong{
    display:block;
    max-width:100%;
    font-size:15px;
    line-height:1.25;
    word-break:break-word;
    overflow-wrap:anywhere;
}

.quote-item span,
.cart-item span{
    display:block;
    margin-top:5px;
    font-size:13px;
    color:#666;
}

.quote-item,
.cart-item{
    overflow:hidden;
}

