body {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
}

.pointer {
    cursor: pointer;
}

#superloading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.99);
    z-index: 9998;
}

.shadow-bottom {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06) !important;
  }

.shadow-bottom-lg {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08) !important;
  }
  
  .shadow-bottom-sm {
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.03) !important;
  }
  
  .shadow-bottom-none {
    box-shadow: none !important;
  }

/* .form-control {
    padding: 15px 20px !important;
}

.form-control:hover {
    border: 2px solid #19355a !important;
    color: #19355a;
} */

#site-title {
    font-size: 12px;
}

@media (min-width: 767px) {
    #site-title {
        font-size: 16px;
        /* Ajustar el tamaño de fuente para sm */
    }
    
}

.first-nav{
    color: #000 !important;
}

@media (min-width: 576px) and (max-width: 1199px) {
    .first-nav {
        font-size: 11px !important;
    }
}

@media (min-width: 576px) and (max-width: 1199px) {
    .navbar-brand img {
        max-height: 32px;
    }
    .nav-icon-circle {
        width: 30px;
        height: 30px;
    }
    .nav-icon-circle i {
        font-size: 13px !important;
    }
}

.first-nav:hover{
    color:var(--bs-primary);
}

@media (max-width: 767px) {
    .first-nav{
        font-size: 14px;
    }
}

.card-hover {
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-hover:hover {
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.08) !important;
    transform: translateY(-2px);
}

/* ********************** */
.chevron {
    transition: transform 0.3s ease;
}

.collapsed .chevron {
    transform: rotate(180deg);
}


.accordion-link {
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.accordion-link {
    text-decoration: none;
    color: var(--bs-dark)
}

.accordion-link.active {
    text-decoration: none;
    color: var(--bs-light);
    background: var(--bs-dark);
    /* border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color); */

}

.accordion-link:hover {
    text-decoration: none;
    color: var(--bs-light);
    background: var(--bs-dark);
}

.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: inherit;
    border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
    box-shadow: inherit;
}

.accordion-button.collapsed {

    border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}


.navbar-brand > img {

    max-height: 40px;

}


@media (min-width: 768px) {

    .navbar-brand > img {

        max-height: 55px;

    }
}


@media (min-width: 576px) {

    .container-sm,
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {

    .container-md,
    .container-sm,
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {

    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {

    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {

    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1600px;
    }
}

#offcanvasCart{
    width: 400px;
}


.offcanvas,
.offcanvas-xxl,
.offcanvas-xl,
.offcanvas-lg,
.offcanvas-md,
.offcanvas-sm {
    --bs-offcanvas-zindex: 1045;
    --bs-offcanvas-width: 250px;
    --bs-offcanvas-height: 30vh;
    --bs-offcanvas-padding-x: 1rem;
    --bs-offcanvas-padding-y: 1rem;
    --bs-offcanvas-color: var(--bs-body- font-family:Metropolis, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji"; font-style:normal; font-weight:400; line-height:1.5; color);
    --bs-offcanvas-bg: var(--bs-body- font-family:Metropolis, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji"; font-style:normal; font-weight:400; line-height:1.5; bg);
    --bs-offcanvas-border-width: var(--bs-border-width);
    --bs-offcanvas-border-color: var(--bs-border-color-translucent);
    --bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);
    --bs-offcanvas-transition: transform 0.3s ease-in-out;
    --bs-offcanvas-title-line-height: 1.5;
}





/* Definir la animación de agitación */
@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(1px, 1px) rotate(1deg);
    }

    50% {
        transform: translate(0, 0) rotate(0eg);
    }

    75% {
        transform: translate(-1px, 1px) rotate(-1);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Aplicar la animación al hacer clic */
.shake {
    animation: shake 0.1s infinite;
}




.whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 10px;
    background-color: #59ce72;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 1px 1px 2px #999;
    z-index: 100;
}



.whatsapp:hover {
    background-color: #ffffff;
    color: #59ce72;

}

.whatsapp>i {
    margin-top: 12px;
}

#offcanvasCart {
    z-index: 9999;
}

.nav-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    transition: background 0.2s ease;
    position: relative;
}

.nav-icon-circle:hover {
    background: #e0e0e0;
}

.navbar-toggler.nav-icon-circle {
    background: #f0f0f0;
}

.container-fluid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    width: 100%;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 1020;
    padding: 0;
    position: sticky;
    top: 56px;
}

.search-bar.search-bar-open {
    max-height: 60px;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mega-menu {
    width: max-content;
    max-width: 90vw;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem !important;
}

.mega-menu .row {
    margin: 0;
}

.mega-menu-header {
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
}

.mega-menu-header a {
    font-size: 13px !important;
}

.mega-menu-col {
    padding: 0.25rem 0.35rem !important;
}

.mega-menu-parent {
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 0.1rem !important;
}

.mega-menu-child {
    font-size: 11px !important;
    line-height: 1.3 !important;
    padding: 0.05rem 0 !important;
}

.nav-item.dropdown:has(.mega-menu) {
    position: static;
}

.nav-item.dropdown:has(.mega-menu) .mega-menu {
    left: 50%;
    transform: translateX(-50%);
}

.mobile-menu-wrapper {
    position: relative;
    overflow: hidden;
}

.mobile-menu-panel {
    transition: transform 0.3s ease;
    width: 100%;
}

.mobile-menu-sub {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-wrapper.show-submenu .mobile-menu-main {
    transform: translateX(-100%);
}

.mobile-menu-wrapper.show-submenu .mobile-menu-sub {
    transform: translateX(0);
}

.producto-descripcion {
    line-height: 1.7;
    font-size: 16px;
}

.producto-descripcion p {
    margin-bottom: 1rem;
}

.producto-descripcion h2,
.producto-descripcion h3,
.producto-descripcion h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.producto-descripcion ul,
.producto-descripcion ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.producto-descripcion img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.card-carousel {
    position: relative;
}

.card-carousel .carousel-inner {
    padding: 0;
}

.card-carousel-prev,
.card-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 12px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.card-carousel:hover .card-carousel-prev,
.card-carousel:hover .card-carousel-next {
    opacity: 1;
}

.card-carousel-prev {
    left: 4px;
}

.card-carousel-next {
    right: 4px;
}

.card-carousel-prev:hover,
.card-carousel-next:hover {
    background: rgba(255,255,255,1);
}

#productoGaleria .carousel-control-prev,
#productoGaleria .carousel-control-next {
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto !important;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
}

#productoGaleria:hover .carousel-control-prev,
#productoGaleria:hover .carousel-control-next {
    opacity: 1;
}

#productoGaleria .carousel-control-prev {
    left: 8px;
}

#productoGaleria .carousel-control-next {
    right: 8px;
}

#productoGaleria .carousel-control-prev i,
#productoGaleria .carousel-control-next i {
    font-size: 14px;
    color: #333;
}

.producto-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
}

.producto-thumb {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    cursor: pointer;
}

.producto-thumb.active {
    border-color: #333;
    opacity: 1;
}

.producto-thumb:hover {
    opacity: 1;
    border-color: #999;
}

.producto-thumb img {
    object-fit: cover;
    height: 100%;
}