/* =========================
   🎨 BOTONES
========================= */
.btn-ficha{
    background-color: #D4AF37 !important; /* color de fondo */
    border-color: #4CAF50 !important;     /* borde */
    color: white !important;              /* texto */
}

.btn-ficha:hover{
    background-color: #9CA3AF !important;
    border-color: #45a049 !important;
}
.btn-compra{
    background-color:#2fe578 !important; /* color de fondo */
    border-color: #4CAF50 !important;     /* borde */
    color: white !important;              /* texto */
}

.btn-compra:hover{
    background-color: #37bad4 !important;
    border-color: #45a049 !important;
}

/* =========================
   🎞️ SLIDER
========================= */
.slide-box{
    overflow: hidden;
    border-radius: 12px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-img{
    max-height: 450px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.slide-out{
    transform: translateX(-60px);
    opacity: 0;
}

.slide-in{
    transform: translateX(60px);
    opacity: 0;
}

.zoom-wrapper{
    position: relative;
    z-index: 1;
}

.thumb-img{
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.thumb-img:hover{
    transform: scale(1.08);
}

/* =========================
   📦 MEGAMENU
========================= */

@media (min-width: 992px) {
    .has-megamenu { position: static !important; }
    .megamenu { left: 0; right: 0; width: 100%; padding: 20px; }
}

/* =========================
   🛒 CARRITO
========================= */

.carrito{
    background: transparent;
    border: 2px solid #00c853;
    color: #00c853;
    border-radius: 30px;
    padding: 6px 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 10px; /* separación del menú */
}

.carrito:hover{
    background: #00c853;
    color: white;
}

.carrito-badge{
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
    background: red;
    color: white;
}

/* =========================
   📦 OFFCANVAS
========================= */

.offcanvas-header {
    border-bottom: 1px solid #ddd;
}

.offcanvas-body {
    padding: 15px;
    overflow-y: auto;
}

.offcanvas-end {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .offcanvas-end { width: 350px; }
}

/* =========================
   🔍 BUSCADOR (GLOBAL)
========================= */
.buscador{
    display: flex;
    width: 100%;
}

.buscador input{
    min-width: 200px;
}

.buscador button{
    white-space: nowrap;
}

/* 🔥 SEPARACIÓN EN ESCRITORIO */
@media (min-width: 992px){
    form[role="search"]{
        width: 800px; /* 🔥 aquí ajustas el tamaño */
    }

    form[role="search"] input{
        width: 100%;
    }
    .navbar-nav{
        gap: 20px;
    }

    form input{
        width: 300px;
    }
}

/* 📱 MÓVIL */
@media (max-width: 991px){

    /* 🛒 + ☰ ARRIBA */
    .carrito{
        order: 1;
        margin-left: auto;
    }

    .toggler{
        order: 2;
    }

    /* 🔍 BUSCADOR */
    .buscador{
        order: 3;
        width: 100%;
        margin-top: 10px;
}

    .buscador input{
        width: 100%;
    }
}
/* =========================
   🔧 GENERALES
========================= */
.toggler{
    margin-left: 5px;
}

.form-control:focus {
    border-color: #00c853;
    box-shadow: 0 0 0 0.2rem rgba(0,200,83,0.25);
}

.is-invalid {
    border-color: #dc3545;
}