.bi::before,
.bi::before {
    font-size: 24px;
    line-height: 14px;
}

.bi-18px {
    font-size: 1.125rem !important;
}

.bi-24px {
    font-size: 1.5rem !important;
}

.bi-36px {
    font-size: 2.25rem !important;
}

.bi-48px {
    font-size: 3rem !important;
}

@keyframes bi-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bi-spin {
    animation: bi-spin 2s infinite linear;
    display: inline-block;
}

.bi-list {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.nav-item:hover .bi {
    transform: scale(1.2) !important;
}

/* Catalogue icon: keep alignment fix, no extra scale on hover */
.header-catalog-menu .nav-link .bi,
.header-catalog-menu .nav-link:hover .bi {
    transform: translateY(-4px) !important;
}

.menu-open {
    transform: scale(1.3) !important;
}

.nav-item:focus,
.nav-item:active {
    outline: none !important;
    box-shadow: none !important;
}

.btn .bi::before {
    position: relative
}

.btn-xs .bi::before {
    font-size: 18px
}

.btn-sm .bi::before {
    font-size: 18px
}

.dropdown-menu .bi {
    width: 18px
}

.dropdown-menu .bi::before {
    position: relative;
    top: 2px;
    left: -8px
}

.nav .bi::before {
    position: relative;
    top: 4px
}

.navbar .navbar-toggle .bi::before {
    position: relative;
    top: 4px;
    color: #fff
}

.breadcrumb {
    background: transparent;
    padding: 1.5rem 0;
    margin-bottom: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    justify-content: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #ccc;
    padding: 0 1rem;
}

.breadcrumb-item a {
    color: #999;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--theme-main-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--theme-secondary-color);
}

.alert .bi::before {
    position: relative;
    top: 4px;
    margin-right: 2px
}

.input-group-addon .bi::before {
    position: relative;
    top: 3px
}

.navbar-brand .bi::before {
    position: relative;
    top: 2px;
    margin-right: 2px
}

.list-group-item .bi::before {
    position: relative;
    top: 3px;
    left: -3px
}

/* Rediseño Grid Cards — legacy .grid-card for subfam-card compatibility */
.grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    height: 100%;
}

/* Espaciado general del contenido principal */
main {
    margin-bottom: 6rem !important;
}

.pre-header {
    display: flex;
    justify-content: space-around;
    padding: .7rem
}

.pre-header a,
.pre-header span {
    color: #000
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: #fff
}

header.d-tablet {
    box-shadow: 0px 1px 5px #888
}

header>.search {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
}

.search-centered {
    margin: 0 2rem;
}

#search-input {
    background-color: #f8f9fa !important;
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
}

#search-input:focus {
    background-color: #fff !important;
    border-color: var(--theme-secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-secondary-color-rgb), 0.25) !important;
}

@media (max-width: 1200px) {
    .search-centered {
        max-width: 500px !important;
    }
}

header img {
    height: 60px;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

@media(max-width: 767px) {
    header {
        display: block;
        padding: 0
    }

    header>.search {
        padding: 8px 15px;
        width: 100% !important;
    }

    header img {
        height: 45px
    }

    header .content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px
    }

    header .content .btn {
        padding: 0;
        color: #fff
    }

    header .content .btn:hover {
        color: #ff0
    }
}

nav.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    font-size: 16px;
    color: #fff;
    padding: 0.5rem 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 70px;
}

.nav-container-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.modern-search {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.modern-search .form-control:focus {
    background-color: #fff !important;
    box-shadow: none;
}

.modern-search-btn:hover {
    background-color: #e9ecef !important;
}

nav.main-nav .nav-item {
    color: #fff;
    padding: 3px 8px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transition: transform 0.18s ease;
}

nav.main-nav .nav-item:hover {
    color: #fff;
    text-decoration: none;
}

/* Right-side header icons hover lift (Info, SAT, Carrito, Login, etc.) */
.header-right-icons .nav-item {
    transition: transform 0.18s ease;
}

.header-right-icons .nav-item:hover {
    transform: translateY(-3px);
}

/* Header dropdown items: secondary color text + underline on hover, no background change */
.header-right-icons .dropdown-item {
    transition: all 0.2s ease;
}

.header-right-icons .dropdown-item:hover,
.header-right-icons .dropdown-item:focus {
    color: var(--theme-secondary-color) !important;
    background-color: transparent !important;
    text-decoration: underline;
    text-decoration-color: var(--theme-secondary-color);
    text-underline-offset: 3px;
    transform: translateX(5px);
}

nav.main-nav .nav-item i.bi {
    vertical-align: middle
}

nav.main-nav ul {
    padding: 0;
    margin: 0 0 0 4px;
    list-style: none;
    text-transform: none;
    font-size: 15px
}

nav.main-nav .header-right-icons .dropdown-menu {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2)
}

nav.main-nav>a:nth-child(2) {
    display: none;
    position: absolute
}

nav.main-nav.nav-container-sticky>a:nth-child(2) {
    display: block;
    position: inherit
}

nav.main-nav img.logo {
    height: 30px
}

@media(768px <=width <=800px) {
    nav.main-nav {
        font-size: 16px;
        padding: 3px !important
    }
}

.sidebar {
    font: 15px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #767f88;
}

.sidebar .list-group-item {
    background: #fff;
    padding: 10px;
}

.sidebar a {
    font: 13px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000;
    padding: 10px;
}

.sidebar a:hover {
    color: var(--theme-secondary-color);
}

.sidebar .sidebar-products {
    background: transparent;
    padding: 0;
    border: none;
}

.sidebar .sidebar-products div.title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--theme-main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.sidebar .sidebar-products div.name {
    font: 14px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    margin-left: 0px;
    margin-bottom: 4px;
    color: var(--theme-main-color);
    line-height: 1.2;
}

.sidebar .sidebar-products .item {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    position: relative;
    margin-top: 1rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    border-radius: 0.75rem !important;
    border: 2px solid var(--theme-main-color) !important;
}

.sidebar .sidebar-products .item:hover {
    box-shadow: none;
    transform: translateY(-5px);
}

.sidebar .sidebar-products .item a {
    display: grid;
    grid-template-columns: auto 1fr
}

.sidebar .sidebar-products .item a img {
    width: 60px;
    height: 60px;
    margin-right: .5rem !important
}

.sidebar .sidebar-products .item a>div {
    display: flex;
    flex-direction: column
}

.sidebar .sidebar-products .item a .price {
    margin-left: 0px;
    font: 16px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    margin-top: auto !important;
    text-align: left !important;
    color: var(--theme-secondary-color) !important;
}

.sidebar .sidebar-products .item a {
    text-decoration: none;
    color: var(--theme-main-color);
}

.sidebar .sidebar-products .item a:hover {
    color: var(--theme-main-color);
}

.pre-footer {
    background: #313030;
    color: #b0b0b0
}

.pre-footer .container {
    padding-top: 15px
}

.pre-footer a {
    color: var(--theme-secondary-color)
}

.pre-footer a.title>div.title>i.bi {
    line-height: 1.2;
    vertical-align: middle
}

.pre-footer a.title:not(.collapsed)>div.title>i.bi-chevron-down {
    display: none
}

.pre-footer a.title.collapsed>div.title>i.bi-chevron-up {
    display: none
}

.pre-footer div.title {
    font-size: 20px;
    color: #c2c1c1
}

.pre-footer p {
    margin-bottom: 1rem
}

.pre-footer li {
    margin-bottom: 6px
}

.pre-footer dl.f-twitter {
    overflow: hidden;
    margin-bottom: 7px
}

.pre-footer dl.f-twitter dt {
    width: 30px;
    float: left;
    text-align: left;
    padding-top: 2px
}

.pre-footer dl.f-twitter dt i {
    color: var(--theme-secondary-color);
    font-size: 20px
}

.pre-footer dl.f-twitter dd {
    color: #b0b0b0;
    margin-left: 30px
}

.pre-footer dl.f-twitter dd span {
    color: #6b9cab;
    font-size: 12px;
    margin: 0 5px
}

.pre-footer address {
    line-height: 1.7
}

.pre-footer .top-line {
    border-top: solid 1px #535353;
    padding-top: 24px;
    padding-bottom: 17px
}

.pre-footer .form-control,
.pre-footer .form-control:focus {
    border: none
}

.pre-footer .pre-footer-subscribe-box .input-group {
    border: solid 1px #545454;
    padding: 1px 1px 0 0;
    text-align: right;
    margin-right: 0px
}

.pre-footer .pre-footer-subscribe-box input {
    border-radius: 0;
    background: #313030;
    border: solid 1px #313030;
    color: #909090;
    font: 13px Arial, sans-serif
}

.pre-footer .pre-footer-subscribe-box input:focus {
    box-shadow: none;
    border: solid 1px #313030
}

.pre-footer .pre-footer-subscribe-box .btn-primary {
    margin-right: 0px;
    border-bottom: none;
    margin-bottom: 1px
}

.pre-footer>.social-links {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    padding-top: .25rem;
    padding-right: 3rem;
    padding-left: 3rem
}

.pre-footer>.social-links>a {
    margin: auto .5rem
}

.pre-footer>.social-links .bi.bi-youtube.bi-36px::before {
    font-size: 32px
}

@media(min-width: 768px) {
    .pre-footer>.social-links {
        margin-top: 0rem;
        padding-left: 0;
        padding-right: 0
    }
}

.steps-block {
    transition: all 0.3s ease;
}

.steps-block .steps-block-col {
    transition: transform 0.3s ease;
}

.steps-block .steps-block-col:hover {
    transform: translateY(-5px);
}

.steps-block .icon-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-block .icon-wrapper img {
    filter: grayscale(0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.product-item [itemprop="name"] {
    color: var(--theme-main-color) !important;
    transition: color 0.3s ease;
}

.product-item:hover [itemprop="name"] {
    color: var(--theme-secondary-color) !important;
}

.steps-block h5 {
    letter-spacing: 0.5px;
}

.product-list-container {
    display: grid;
    justify-content: center;
    width: calc(100% - 1rem);
    margin-bottom: 1rem;
    padding: 1.5rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 2rem;
}

.product-list-container>div {
    min-width: 280px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.product-list-container .h3 {
    height: 3rem;
    overflow: hidden;
    max-width: 400px
}

.product-list-container .product-quantity,
.product-list-container .product-quantity .input-group {
    width: 90px
}

.product-list-container-2 {
    display: grid;
    justify-content: center;
    width: calc(100% - 1rem);
    margin-bottom: 1rem;
    padding: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
}

.product-list-container-2>div {
    min-width: 200px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.product-list-container-2 .h3 {
    height: 4rem;
    overflow: hidden
}

.product-item {
    background: #fff;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.product-item:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-5px);
}

.product-item:hover .pi-img-wrapper>div {
    display: block
}

.product-item>a {
    flex-grow: 2
}

.product-item:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    font-size: 0;
    line-height: 0
}

.product-item>* {
    width: 100%;
    max-width: 400px
}

.product-item .pi-img-wrapper {
    position: relative;
    text-align: center !important
}

.product-item .pi-img-wrapper div {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, .2);
    display: none
}

.product-item h3 {
    font: 13px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 10px;
    padding-bottom: 4px
}

.product-item h3 a {
    color: #767f88
}

.product-item h3 a:hover {
    color: var(--theme-main-color)
}

.product-item .btn:hover {
    background: #e34f00;
    border-color: #c8c8c8
}

.product-item .add2cart {
    color: #333;
    border: 1px solid;
    padding: 3px 6px;
    background-color: transparent;
    flex-basis: 0
}

.product-item .add2cart:disabled {
    color: #777
}

.product-item .add2cart:not([disabled]):hover {
    color: #fff !important;
    background-color: var(--theme-main-color) !important;
    border-color: var(--theme-main-color)
}

@media(max-width: 576px) {
    .product-item {
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
        padding: .25rem .15rem
    }

    .product-list-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-gap: .5rem;
        width: 100%;
        padding: .15rem
    }

    .product-list-container>div {
        min-width: 150px
    }

    .product-list-container .product-quantity,
    .product-list-container .product-quantity .input-group {
        display: none
    }
}

.add2cart.done,
.add2cart.done:hover {
    background-color: green !important;
    color: #fff !important
}

.pi-price {
    color: var(--theme-secondary-color) !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 1px
}

.product-item .transition-all {
    transition: all 0.3s ease;
}

.product-item .add-item-cart {
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
}

.product-item .add-item-cart:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    background-color: var(--theme-secondary-color) !important;
}

.product-item .add-item-cart:hover .bi-cart-plus::before {
    content: "\f64d";
    /* bi-plus-lg */
}

.add2cart:hover {
    background-color: var(--theme-secondary-color) !important;
}

.product-item .pi-img-wrapper img {
    transition: transform 0.5s ease;
}

.product-item:hover .pi-img-wrapper img {
    transform: scale(1.05);
}

/* Rediseño botón Añadir al Carrito en Página de Producto */
.product-page .add2cart {
    background-color: var(--theme-main-color) !important;
    background-image: none !important;
    /* Eliminar posibles degradados */
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.product-page .add2cart:hover {
    background-color: var(--theme-secondary-color) !important;
    background-image: none !important;
}

.product-page-cart .add2cart::before {
    display: none !important;
    /* Desactivar el degradado del pseudo-elemento */
}

.product-page .add2cart .hover-icon {
    display: none !important;
}

.product-page .add2cart:hover .default-icon {
    display: none !important;
}

.product-page .add2cart:hover .hover-icon {
    display: inline-block !important;
}

/* Precio persistente en color secundario */
.product-page .price .price-value {
    color: var(--theme-secondary-color) !important;
}

/* Alineación y alturas del bloque de compra */
.product-page .product-page-cart {
    width: 100%;
    margin: 1.5rem 0;
}

.product-page .product-quantity {
    height: 48px !important;
    margin-bottom: 0 !important;
}

.product-page .product-quantity .form-control {
    height: 48px !important;
    border-radius: 12px 0 0 12px !important;
    border: 1px solid #dee2e6 !important;
}

.product-page .bootstrap-touchspin .input-group-btn-vertical {
    height: 48px !important;
}

.product-page .bootstrap-touchspin .input-group-btn-vertical .btn {
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dee2e6 !important;
}

.product-page .bootstrap-touchspin .input-group-btn-vertical .btn-default.bootstrap-touchspin-up {
    border-radius: 0 12px 0 0 !important;
    border-bottom: none !important;
}

.product-page .bootstrap-touchspin .input-group-btn-vertical .btn-default.bootstrap-touchspin-down {
    border-radius: 0 0 12px 0 !important;
}

.product-page .add2cart {
    height: 48px !important;
    border-radius: 12px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CASCADE MENU REDESIGN
   ========================================================================== */

.cascade-menu {
    padding: 0 !important;
    min-width: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-top: 5px;
    background-color: #fff;
}

.cascade-cat-item {
    position: relative;
    background-color: transparent;
    margin-bottom: 0;
    border-bottom: 1px solid #eaeaea;
}

.cascade-cat-item > .cascade-link {
    color: #555;
    cursor: default;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 8px 12px !important;
    background-color: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
}

.cascade-cat-item > .cascade-link:hover,
.cascade-cat-item:hover > .cascade-link {
    background-color: var(--theme-main-color);
    color: #fff !important;
}

.cascade-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-right: 15px !important;
}

.cascade-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Hover over category -> keep icon background white */
.cascade-cat-item:hover > .cascade-link .cascade-icon {
    border-color: #fff;
}

/* Sección de Categorías en Portada - Definiciones básicas movidas al bloque principal de diseño */
.categories-section-bg {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 0.5rem;
    padding: 0.2rem 1rem 0.2rem 0.5rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    height: 55px;
    width: auto !important;
    min-width: 160px;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-secondary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-img-wrapper {
    width: 45px;
    height: 45px;
    margin: 0 1rem 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.4s ease;
    padding: 0;
    flex-shrink: 0;
    border-radius: 0.25rem;
}

.category-card:hover .category-img-wrapper {
    background: #fff;
}

.category-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.category-card .category-name {
    color: var(--theme-main-color) !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
    text-align: left !important;
}

.category-card:hover .category-name {
    color: var(--theme-secondary-color) !important;
}

/* Rejillas (Grid) de Categorías y Familias */
.grid-banner {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.grid-banner h1 {
    color: var(--theme-secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.grid-card {
    background: #fff;
    border: 2px solid var(--theme-main-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background-color: #fff;
}

.grid-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 8px;
}

.grid-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.grid-card:hover .grid-card-img img {
    transform: scale(1.1);
}

.grid-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-secondary-color);
    margin: 0;
    text-align: center;
    text-transform: capitalize;
    line-height: 1.3;
}

.grid-description {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--theme-main-color);
    color: #555;
    line-height: 1.6;
}

/* Barra de Navegación Horizontal Desplazable */
.horiz-nav-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}

.horiz-nav-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.75rem;
    padding: 0.5rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    justify-content: center;
}

.horiz-nav-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.horiz-nav-item {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    color: var(--theme-secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.horiz-nav-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--theme-main-color);
}

.horiz-nav-item.active {
    background: var(--theme-main-color);
    color: #fff !important;
    border-color: var(--theme-main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-page {
    background: transparent;
    padding: 2rem 0;
    position: relative;
}

.product-page h1 {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--theme-main-color);
    margin-bottom: 1.5rem;
}

.product-main-image {
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.product-main-image img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.product-sidebar-sticky {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.price-availability-block {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-availability-block .price {
    font-family: 'Montserrat', sans-serif;
}

.price-availability-block .price strong {
    color: var(--theme-main-color);
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.price-availability-block .price strong span[itemprop="priceCurrency"] {
    font-size: 1.5rem;
    margin-left: 0.2rem;
}

.price-availability-block .availability {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-page-cart {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.product-page-cart .add2cart {
    width: 100%;
    border-radius: 1rem;
    height: 56px;
    margin: 0 !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--theme-main-color, #000);
    /* Color base para la transición */
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-page-cart .add2cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--theme-main-color), var(--theme-secondary-color));
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-page-cart .add2cart:hover::before {
    background: linear-gradient(135deg, var(--theme-secondary-color), var(--theme-main-color));
}

.product-page-cart .add2cart>* {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.product-page-cart .add2cart:hover {
    transform: none;
    box-shadow: none;
}

/* Manejo de visibilidad y animaciones */
.product-page-cart .add2cart .cart-icon {
    display: none;
    /* Quitamos el carrito per-instrucción */
}

.product-page-cart .add2cart .btn-text {
    opacity: 1;
}

.product-page-cart .add2cart:hover .btn-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.product-page-cart .add2cart .plus-icon {
    display: inline-block;
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    width: 0;
    margin: 0;
}

.product-page-cart .add2cart:hover .plus-icon {
    opacity: 1;
    transform: scale(1.4) rotate(0deg);
    width: auto;
    margin: 0;
}

.product-quantity {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.product-quantity input.form-control {
    border-radius: 12px !important;
    border: 2px solid #f0f0f0 !important;
    background: #fff !important;
    height: 56px;
    font-size: 1.25rem;
    font-weight: 700;
    padding-right: 3rem !important;
    /* Más espacio para los botones */
    line-height: 52px;
}

/* TouchSpin Premium Styles - Desktop & Global */
.bootstrap-touchspin {
    position: relative;
    height: 56px !important;
    margin: 0 !important;
}

/* TouchSpin Vertical Layout - Tablets and Mobiles (< 992px) */
@media (max-width: 991.98px) {
    .bootstrap-touchspin .input-group-btn-vertical {
        position: absolute !important;
        right: 2px !important;
        top: 2px !important;
        bottom: 2px !important;
        width: 38px !important;
        height: 52px !important;
        background: #f8f9fa !important;
        border-radius: 0 10px 10px 0 !important;
        border-left: 1px solid #f0f0f0 !important;
        display: block !important; /* Block container for absolute children */
        z-index: 5 !important;
        overflow: hidden !important;
    }

    .bootstrap-touchspin .input-group-btn-vertical .btn {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        color: #66b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        font-size: 1rem !important;
        line-height: normal !important;
        min-height: 0 !important;
    }

    .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up {
        top: 0 !important;
        bottom: auto !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 10px 0 0 !important;
    }

    .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
        top: auto !important;
        bottom: 0 !important;
        border-radius: 0 0 10px 0 !important;
    }

    .bootstrap-touchspin .input-group-btn-vertical .btn i {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
    }
}

.bootstrap-touchspin .input-group-btn-vertical .btn:hover {
    color: var(--theme-main-color, #000) !important;
    background: #f0f0f0 !important;
}

.product-other-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.product-other-images a {
    display: block;
    width: 85px;
    height: 85px;
    padding: 16px;
    border: 3px solid #f0f0f0;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    cursor: pointer;
}

.product-other-images a:hover,
.product-other-images a.active {
    border-color: var(--theme-main-color, #000);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-other-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.product-page-content {
    margin-top: 4rem;
    background: #fff;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.product-page-content .nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-page-content .nav-link {
    font-weight: 700;
    color: #999;
    padding: 1rem 0;
    background: transparent !important;
    border: none !important;
    position: relative;
    font-size: 1.1rem;
}

.product-page-content .nav-link.active {
    color: var(--theme-main-color) !important;
}

.product-page-content .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--theme-main-color);
}

.login-form .card {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 350px
}

.login-form .card .card-header {
    background-color: #fff
}

.login-form span.input-group-text {
    border: 0 !important
}

.login-form span.input-group-text>i.bi {
    margin-bottom: -8px
}

.login-form input:focus {
    box-shadow: 0 0 0 0 !important
}

.login-form button[type=submit] {
    margin: 20px 0 20px
}

.loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000
}

.loading-wrapper .loading-bg {
    opacity: .3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2000
}

.loading-wrapper .loading-text-wrapper {
    z-index: 2001;
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 50%;
    color: #f8f8ff
}

.loading-wrapper .spinner {
    font-weight: bold;
    font-size: 100px;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, .5)
}

.loading-wrapper .loading-text {
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .7)
}

table.cart-table>tbody>tr {
    height: 100px;
    border-bottom: 1px solid #aaa
}

table.cart-table thead {
    border-bottom: 1px solid #000
}

table.cart-table td,
table.cart-table th {
    vertical-align: middle
}

table.cart-total td {
    padding-bottom: 0
}

.attr-container {
    padding: 0 8px;
    font-size: .8rem;
    cursor: pointer;
    min-width: 250px
}

.attr-container li {
    border: 0
}

.attr-container a {
    color: #000
}

.attr-container .title {
    white-space: nowrap;
    color: #fff;
    padding: 8px;
    margin-top: 1px;
    font-weight: bolder;
    display: flex;
    justify-content: space-between
}

.attr-container .title:not(.collapsed)>i.bi-chevron-down {
    display: none
}

.attr-container .title.collapsed>i.bi-chevron-up {
    display: none
}

.attr-container .data {
    padding: 8px
}

.attr-container .data .item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center
}

.attr-container .data .item i.bi:before {
    top: 0
}

.attr-container .data .item .badge {
    margin-left: 1rem;
    padding: .5rem;
    color: #fff;
    border-radius: .25rem !important
}

.document-view {
    border: 1px solid #000;
    background-color: #fff
}

.document-view>.row {
    margin-left: 0;
    margin-right: 0
}

.document-view .row.pie>* {
    text-align: right;
    font-weight: bolder
}

.document-view .table td,
.document-view .table th {
    vertical-align: middle
}

.document-view .table tr.observaciones>td {
    padding-top: 0
}

.document-view table.totales td {
    padding-bottom: 0
}

@media(min-width: 768px) {
    .document-view .row.cabecera>* {
        border: 1px solid #aaa;
        margin-bottom: -1px;
        padding: 4px 10px
    }
}

[v-cloak] {
    display: none !important;
}

/* ── Bootstrap Overrides & Global Styles ─────────────────────────── */
/* ── Cookie Consent ─────────────────────────────────────────────── */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.cc-overlay.cc-visible {
    opacity: 1;
}

.cc-overlay.cc-closing {
    opacity: 0;
    pointer-events: none;
}

.cc-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    transform: translateY(30px);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}

.cc-overlay.cc-visible .cc-container {
    transform: translateY(0);
}

.cc-overlay.cc-closing .cc-container {
    transform: translateY(40px);
}

.cc-main,
.cc-preferences {
    background: var(--theme-main-color, #1a2332);
    color: #fff;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.cc-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.cc-header-icon {
    font-size: 1.6rem;
    color: var(--theme-secondary-color, #ffc107);
}

.cc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
}

.cc-body {
    margin-bottom: 1.25rem;
}

.cc-text {
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.cc-link {
    color: var(--theme-secondary-color, #ffc107) !important;
    text-decoration: underline !important;
    font-weight: 600;
}

.cc-link:hover {
    opacity: .85;
}

/* Botones */
.cc-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}

.cc-btn {
    flex: 1 1 0;
    min-width: 140px;
    padding: .7rem 1rem;
    border: 2px solid transparent;
    border-radius: .6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.3;
}

.cc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.cc-btn:active {
    transform: translateY(0);
}

.cc-btn-primary {
    background: var(--theme-secondary-color, #ffc107);
    color: #1a1a1a;
    border-color: var(--theme-secondary-color, #ffc107);
}

.cc-btn-primary:hover {
    filter: brightness(1.08);
}

.cc-btn-secondary {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.cc-btn-secondary:hover {
    background: rgba(255, 255, 255, .25);
}

.cc-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

.cc-btn-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .6);
}

.cc-btn-full {
    flex: 1 1 100%;
}

/* Panel de preferencias */
.cc-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: .25rem;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
}

.cc-back:hover {
    opacity: 1;
}

.cc-categories {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: .5rem;
}

.cc-categories::-webkit-scrollbar {
    width: 4px;
}

.cc-categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 4px;
}

.cc-category {
    background: rgba(255, 255, 255, .08);
    border-radius: .65rem;
    padding: 1rem 1.15rem;
    margin-bottom: .65rem;
    transition: background .2s;
}

.cc-category:hover {
    background: rgba(255, 255, 255, .12);
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.cc-category-info {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.cc-category-title {
    font-weight: 700;
    font-size: .92rem;
}

.cc-badge {
    font-size: .68rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 1rem;
    background: var(--theme-secondary-color, #ffc107);
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.cc-category-desc {
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
    margin: .6rem 0 0;
    line-height: 1.5;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, .2);
    border-radius: 26px;
    transition: background .25s;
}

.cc-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.cc-toggle input:checked+.cc-toggle-slider {
    background: var(--theme-secondary-color, #ffc107);
}

.cc-toggle input:checked+.cc-toggle-slider::before {
    transform: translateX(20px);
}

.cc-toggle input:disabled+.cc-toggle-slider {
    opacity: .6;
    cursor: not-allowed;
}

/* Footer cookie settings link */
.cc-footer-link {
    cursor: pointer;
    color: rgba(255, 255, 255, .5) !important;
    font-size: .85rem;
    transition: color .2s;
}

.cc-footer-link:hover {
    color: #fff !important;
}

@media (max-width: 576px) {
    .cc-container {
        margin: 0 .5rem .75rem;
    }

    .cc-main,
    .cc-preferences {
        padding: 1.25rem 1.15rem;
        border-radius: .75rem;
    }

    .cc-actions {
        flex-direction: column;
    }

    .cc-btn {
        min-width: unset;
        width: 100%;
    }

    .cc-title {
        font-size: 1.05rem;
    }
}

/* ── End Cookie Consent ─────────────────────────────────────────── */

/* ── Premium Mega Menu Redesign ─────────────────────────────────── */

.header-catalog-menu .nav-link:focus,
.header-catalog-menu .nav-link:active,
.header-catalog-menu .nav-link.show {
    outline: none !important;
    box-shadow: none !important;
}

/* Catalogue menu link: hover lift applied to the whole nav-link */
.header-catalog-menu .nav-link {
    transition: transform 0.18s ease;
}

.header-catalog-menu .nav-link:hover {
    transform: translateY(-3px);
}

.header-catalog-menu .nav-link .bi {
    transform: translateY(-4px);
}

.premium-menu {
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 0 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
    min-width: 260px !important;
    overflow: visible !important;
}

.item-menu-cat {
    position: static !important; /* For full-width mega menu */
}

.item-menu-cat > a {
    margin: 0 !important;
    padding: 0.75rem 1.25rem !important;
    background: transparent !important;
    color: #333 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
    border-radius: 0 !important;
}

.item-menu-cat > a:hover {
    background: color-mix(in srgb, var(--theme-main-color, #000), transparent 96%) !important;
    color: var(--theme-main-color) !important;
    padding-left: 1.75rem !important;
}

.cat-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #f1f3f5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.item-menu-cat:hover .cat-icon-wrapper {
    background: var(--theme-main-color);
    color: #fff;
    transform: rotate(8deg);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 15px 15px 45px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
}

.menu-cat {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    padding: 0 !important;
    margin-left: 8px !important;
    visibility: hidden;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000 !important;
    overflow: hidden !important;
    width: max-content !important;
    min-width: 300px !important;
    max-width: 800px; /* Optional, prevents it from getting too wide */
}

.item-menu-cat:hover .menu-cat {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.mega-menu-content {
    min-height: auto;
}

.fam-pane {
    min-width: 250px;
    background: rgba(0, 0, 0, 0.01);
}

.item-menu-fam .fam-link {
    transition: all 0.2s ease;
    color: #555;
    text-decoration: none !important;
}

.item-menu-fam .fam-link:hover,
.item-menu-fam.active .fam-link {
    background: color-mix(in srgb, var(--theme-main-color, #000), transparent 92%) !important;
    color: var(--theme-main-color) !important;
}

.subfam-pane {
    background: #fff;
}

.subfam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.subfam-link-cascading {
    text-decoration: none !important;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.subfam-link-cascading:hover {
    background: #FFFFFF;
    color: var(--theme-main-color);
    padding-left: 1rem !important;
}

.color-theme {
    color: var(--theme-main-color);
}

@media (max-width: 991px) {
    .menu-cat {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        display: none;
    }
    
    .item-menu-cat:hover .menu-cat {
        display: block;
    }
}

/* Breadcrumbs Premium */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: rgba(0, 0, 0, 0.2);
    padding: 0 1rem;
}

.breadcrumb-item a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--theme-main-color, #000);
}

.breadcrumb-item.active {
    color: #222;
}

.share-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.share-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.share-icon.whatsapp {
    background-color: #25d366;
}

.share-icon.facebook {
    background-color: #3b5998;
}

.share-icon.twitter {
    background-color: #000;
}

.share-icon.linkedin {
    background-color: #0077b5;
}

.cat-name-title,
.fam-name-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--theme-main-color);
    text-shadow: 1px 0 1px #ccc, 0 1px 1px #eee, 2px 1px 1px #ccc, 1px 2px 1px #eee, 3px 2px 1px #ccc, 2px 3px 1px #eee, 4px 3px 1px #ccc, 3px 4px 1px #eee, 5px 4px 1px #ccc, 4px 5px 1px #eee
}

.familias-grid-container {
    display: grid;
    justify-content: center;
    width: calc(100% - 1rem);
    margin-bottom: 1rem;
    padding: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: .5rem
}

.familias-grid-container>a>div {
    box-shadow: rgba(0, 0, 0, .24) 0px 3px 8px;
    min-height: 200px;
    margin: 5px;
    padding: 1px;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
}

.familias-grid-container>a>div:hover {
    box-shadow: rgba(0, 0, 0, .35) 0px 5px 15px
}

.familias-grid-container>a>div h2.name {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    color: #fff;
    padding: 0 2px;
    margin-bottom: 5px
}

.subfamilias-grid-container {
    display: grid;
    justify-content: center;
    width: calc(100% - 1rem);
    margin-bottom: 1rem;
    padding: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: .5rem
}

.subfamilias-grid-container>a>div {
    min-height: 120px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.subfamilias-grid-container>a>div h2.name {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    padding: 0 2px;
    margin-bottom: 5px
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left
}

.rating>input {
    display: none
}

.rating.rating-form>label {
    font-size: 2.5rem
}

.rating>label {
    position: relative;
    width: 1em;
    font-size: 2rem;
    color: #ffd600;
    cursor: pointer
}

.rating>label::before {
    content: "★";
    position: absolute;
    opacity: 0
}

.rating>label:hover:before,
.rating>label:hover~label:before {
    opacity: 1 !important
}

.rating>input:checked~label:before {
    opacity: 1
}

.rating:hover>input:checked~label:before {
    opacity: .4
}

.slide-menu {
    position: fixed;
    width: 320px;
    max-width: 100%;
    height: 100vh;
    top: 0;
    right: 0;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 300ms ease-in-out;
    transform: translateX(100%);
    overflow-y: auto;
    will-change: transform;
    z-index: 1000
}

.slide-menu .slide-menu__slider {
    width: 100%;
    transition: transform 300ms ease-in-out;
    transform: translateX(0);
    will-change: transform
}

.slide-menu ul {
    position: relative;
    width: 100%;
    margin: 0;
    padding-left: 0;
    list-style: none
}

.slide-menu ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none
}

.slide-menu ul a {
    display: block
}

.slide-menu a {
    cursor: pointer
}

.icon {
    height: .6rem;
    margin: 0 .1rem
}

.slide-menu {
    width: 340px;
    background-color: #213545
}

.slide-menu,
.slide-menu a {
    color: #fff
}

.slide-menu a {
    padding: .9rem 1.5rem;
    border-bottom: solid 1px #14202a;
    text-decoration: none
}

.slide-menu a:hover {
    background-color: #172531
}

.slide-menu .controls {
    display: flex;
    margin-bottom: 1rem
}

.slide-menu .controls .btn.logo {
    text-align: left;
    padding-left: 0
}

.slide-menu .controls .btn.logo:before {
    content: ""
}

.slide-menu .btn {
    padding: .75rem 1.5rem;
    flex: 1 0 auto;
    color: #fff;
    background-color: #172531;
    text-transform: uppercase
}

.slide-menu .btn:first-of-type {
    text-align: left
}

.slide-menu .btn:first-of-type:before {
    content: "⮜";
    margin-right: .5rem
}

.slide-menu .btn:last-of-type {
    text-align: right
}

.slide-menu .btn:last-of-type:before {
    content: "✕";
    margin-right: .5rem
}

.slide-menu .slide-menu__backlink {
    text-transform: uppercase
}

/* Removed global border-radius reset to allow Bootstrap rounding */


body {
    color: #3e4d5c;
    direction: ltr;
    font: 400 14px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f8f9
}

h3,
h4 {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0 0 10px;
    text-transform: uppercase
}

.h1,
h1 {
    font-size: 23px
}

.h2,
h2 {
    font-size: 20px
}

.font-lg {
    font-size: 1.5em
}

.font-sm {
    font-size: .8em
}

.theme-color {
    color: var(--theme-main-color)
}

.theme-bg {
    background-color: var(--theme-main-color)
}

button.no-box-shadow:focus,
input.no-box-shadow:focus,
select.no-box-shadow:focus {
    box-shadow: 0 0 0 0 !important
}

.input-group.date,
input.date {
    width: 10rem
}

.input-group.date .input-group-text.bi,
input.date .input-group-text.bi {
    padding-top: 0;
    padding-bottom: 0
}

.input-group.date>.input-group-addon>.bi:before,
input.date>.input-group-addon>.bi:before {
    top: 1px
}

.slides p {
    color: #fff;
    text-shadow: 2px 2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, -2px -2px 0 #000, 2px 0px 0 #000, 0px 2px 0 #000, -2px 0px 0 #000, 0px -2px 0 #000;
    font-size: 3rem
}

main.principal {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start
}

main.principal aside.sidebar {
    flex: 0 0 25%;
    min-width: 300px;
    margin-right: 40px;
    position: relative !important;
    height: auto !important;
    z-index: 1
}

main.principal .flex-grow-1 {
    flex: 1;
    min-width: 0
}

.d-mobile {
    display: none
}

@media(max-width: 991px) {
    .d-tablet {
        display: none !important
    }

    .d-mobile {
        display: block
    }
}

.nav-tabs {
    text-transform: uppercase;
    font: 16px/1 "Montserrat", sans-serif
}

.nav-tabs>li.nav-item {
    font-size: 1.25rem
}

.nav-tabs>li.nav-item>a,
.nav-tabs>li.nav-item>a:hover,
.nav-tabs>li.nav-item>a:focus {
    padding: 5px 15px 3px;
    background: #edeff1
}

.nav-tabs>li.nav-item>a.active,
.nav-tabs>li.nav-item>a.active:hover,
.nav-tabs>li.nav-item>a.active:focus {
    background: var(--theme-main-color);
    color: #f7f8f9
}

.header-navigation .dropdown-menu>li:first-child {
    border-top: 0px !important
}

a {
    cursor: pointer
}

a:hover {
    text-decoration: none
}

.shadow-card {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2)
}

#scroll {
    position: fixed;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    text-indent: -9999px;
    display: none;
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important
}

#scroll:hover {
    background-color: #e74c3c;
    opacity: 1;
    filter: "alpha(opacity=100)";
    -ms-filter: "alpha(opacity=100)"
}

#scroll span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -17px;
    height: 0;
    width: 0;
    border: 10px solid transparent;
    border-bottom-color: #fff
}

.pre-footer {
    background-color: var(--theme-main-color);
    color: #fff;
    padding: 60px 0 40px;
    overflow-x: hidden;
}

.pre-footer .container {
    padding-top: 0;
}

.main-footer {
    overflow-x: hidden;
}

.pre-footer .title {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.pre-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.pre-footer a:hover {
    color: #fff;
}

.pre-footer .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pre-footer .social-links a:hover {
    background: #fff;
    transform: translateY(-3px);
}

.pre-footer .social-links a:hover i {
    color: var(--theme-main-color) !important;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 500;
}

.footer-contact-item i {
    font-size: 1.2rem;
}

/* ── Sidebars Premium (Filtros) ────────────────────────────── */
.sidebar-premium-header {
    background: var(--theme-secondary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    /* Changed from 12px for a cleaner look */
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    margin-bottom: 0px;
}

.sidebar-premium-header:hover {
    filter: brightness(1.1);
}

.attr-container {
    background: #fff;
    margin-bottom: 2rem;
}

.filter-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.filter-list-item a {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    color: #1a1a1a;
    text-decoration: none !important;
    transition: background 0.2s;
}

.filter-list-item a:hover {
    background-color: #FFFFFF;
}

.filter-checkbox {
    font-size: 1.25rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.filter-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.filter-name {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.filter-badge {
    color: #888;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* ==========================================================================
   CASCADE MENU REDESIGN
   ========================================================================== */

.cascade-menu {
    padding: 0 !important;
    min-width: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-top: 5px;
    background-color: #fff;
}

.cascade-cat-item {
    position: relative;
    background-color: transparent;
    margin-bottom: 0;
    border-bottom: 1px solid #eaeaea;
}

.cascade-cat-item > .cascade-link {
    color: #555;
    cursor: default;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 8px 12px !important;
    background-color: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    width: 100% !important;
    justify-content: flex-start;
}

.cascade-cat-item > .cascade-link:hover,
.cascade-cat-item:hover > .cascade-link {
    background-color: var(--theme-main-color);
    color: #fff !important;
}

.cascade-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-right: 15px !important;
}

.cascade-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Hover over category -> keep icon background white */
.cascade-cat-item:hover > .cascade-link .cascade-icon {
    border-color: #fff;
}

.cascade-count {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

.cascade-cat-item:hover .cascade-count {
    color: #fff;
}

.cascade-arrow {
    font-size: 1.2rem;
    color: #888;
}

.cascade-cat-item:hover .cascade-arrow {
    color: #fff;
}

/* Panel a la derecha (Familias - Mega Menu) */
.cascade-fam-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: max-content;
    min-width: 300px;
    max-width: 850px;
    min-height: 100%;
    background: #fff;
    border-radius: 0 12px 12px 12px;
    box-shadow: 12px 5px 30px rgba(0,0,0,0.12);
    border-left: 1px solid #eee;
    z-index: 1000;
}

.cascade-cat-item:hover .cascade-fam-panel {
    display: block;
}

/* Título de Cabecera en el Panel */
.cascade-fam-header {
    padding: 0 0 12px 0;
    margin: 24px 32px 0px 24px;
    border-bottom: 2px solid var(--theme-main-color);
}

.cascade-fam-header-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-main-color);
    text-transform: uppercase;
    display: block;
}

.cascade-mega-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Grupo de Familia y sus Subfamilias */
.cascade-fam-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-main-color);
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.cascade-fam-title:hover {
    color: var(--theme-secondary-color);
    border-bottom-color: var(--theme-secondary-color);
    padding-left: 5px;
    text-decoration: none;
}

.cascade-sub-link {
    font-size: 0.9rem;
    color: #495057 !important;
    padding: 4px 0;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cascade-sub-link:hover {
    color: var(--theme-secondary-color) !important;
    padding-left: 6px;
    text-decoration: none;
}

.cascade-sub-link i {
    color: var(--theme-secondary-color);
    opacity: 0.6;
    margin-right: 4px;
}

.cascade-sub-link:hover i {
    opacity: 1;
}

/* ============================================================
   Homepage Category Strip - Premium Design
   ============================================================ */
.categories-section-bg {
    background: linear-gradient(145deg, 
        var(--theme-main-color) 0%, 
        color-mix(in srgb, var(--theme-main-color) 85%, #000) 50%, 
        color-mix(in srgb, var(--theme-main-color) 60%, #000) 100%);
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.4),
        0 15px 30px -10px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.categories-section-bg:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px -10px rgba(0, 0, 0, 0.5),
        0 20px 40px -10px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.categories-section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.categories-section-bg:hover::before {
    opacity: 0.8;
}

.categories-section-bg .categories-section {
    position: relative;
    z-index: 2;
}

/* Category card */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 120px;
}

.category-card:hover {
    transform: translateY(-8px);
}

/* Image wrapper — circular with white ring + glow */
.category-img-wrapper {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.category-card:hover .category-img-wrapper {
    border-color: var(--theme-secondary-color);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255,255,255,0.15);
    transform: scale(1.08);
}

.category-img-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.28s ease;
}

.category-img-wrapper .bi {
    font-size: 2rem;
    color: var(--theme-main-color);
    opacity: 0.5;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.1);
}

/* Category label */
.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    transition: color 0.2s ease;
    max-width: 110px;
}

.category-card:hover .category-name {
    color: var(--theme-secondary-color);
}

/* Custom Redesign for Cart Success Modal */
#modal-cart-add-ok .modal-content {
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

#modal-cart-add-ok .modal-header {
    border-bottom: none;
    padding: 2rem 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

#modal-cart-add-ok .btn-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

#modal-cart-add-ok .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1b !important;
    margin-top: 1rem;
}

#modal-cart-add-ok .cart-success-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

#modal-cart-add-ok .modal-body {
    padding: 1.5rem 2rem;
}

#modal-cart-add-ok .cart-product-card {
    display: flex;
    gap: 1.5rem;
    background: #f8f9fa;
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: center;
    border: 1px solid #eee;
}

#modal-cart-add-ok .cart-product-img {
    width: 110px;
    height: 110px;
    min-width: 110px;
    background: #fff;
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

#modal-cart-add-ok .cart-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#modal-cart-add-ok .cart-product-info {
    flex: 1;
}

#modal-cart-add-ok .cart-product-name {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--theme-main-color);
    line-height: 1.3;
}

#modal-cart-add-ok .cart-product-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.25rem;
}

#modal-cart-add-ok .cart-product-meta b {
    color: #333;
}

#modal-cart-add-ok .cart-summary {
    border-top: 1px solid #eee;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

#modal-cart-add-ok .cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

#modal-cart-add-ok .cart-total-label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

#modal-cart-add-ok .cart-total-value {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--theme-secondary-color);
}

#modal-cart-add-ok .cart-promo-box {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border: 1px dashed #fbc02d;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.1);
}

#modal-cart-add-ok .cart-promo-box i {
    font-size: 1.5rem;
    color: #fbc02d;
}

#modal-cart-add-ok .modal-footer {
    border-top: none;
    padding: 0 2rem 2.5rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

#modal-cart-add-ok .btn-modern {
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

#modal-cart-add-ok .btn-continue {
    background: #fff;
    border: 2px solid #eee;
    color: #444;
}

#modal-cart-add-ok .btn-continue:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-2px);
}

#modal-cart-add-ok .btn-checkout {
    background: var(--theme-main-color);
    border: 2px solid var(--theme-main-color);
    color: #fff;
}

#modal-cart-add-ok .btn-checkout:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ====== REDESIGN SHOPPING CART PAGE ====== */
.cart-page-wrap {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.cart-item-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-item-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.cart-item-card .cart-item-img {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cart-item-card:hover .cart-item-img {
    transform: scale(1.05);
}

.cart-item-card .cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-card .cart-item-details {
    flex: 1;
}

.cart-item-card .cart-item-ref {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.25rem;
    display: block;
}

.cart-item-card .cart-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-main-color);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.cart-item-card .cart-item-meta {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-item-card .cart-item-meta b {
    color: #333;
}

.cart-item-card .cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    min-width: 150px;
}

.cart-item-card .cart-item-price-info {
    text-align: right;
}

.cart-item-card .cart-unit-price {
    font-size: 0.85rem;
    color: #999;
    display: block;
}

.cart-item-card .cart-total-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-main-color);
}

.cart-summary-sidebar {
    width: 380px;
    position: sticky;
    top: 90px;
}

.cart-summary-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 2px solid var(--theme-main-color);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.cart-summary-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--theme-main-color);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 1rem;
}

.cart-summary-line.total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-secondary-color);
}

.cart-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.cart-btn-primary {
    background: var(--theme-main-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cart-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: var(--theme-secondary-color);
    color: #fff;
}

.cart-btn-secondary {
    background: #fff;
    color: #cc0000;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 2px solid #ffeeee;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-btn-secondary:hover {
    background: #ffeeee;
    border-color: #ffcccc;
    color: #aa0000;
}

.cart-empty-state {
    padding: 5rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.cart-empty-icon {
    font-size: 4rem;
    color: #eee;
    margin-bottom: 2rem;
    display: block;
}

/* Responsive Cart */
@media (max-width: 1200px) {
    .cart-summary-sidebar {
        width: 320px;
    }
}

@media (max-width: 991px) {
    .cart-page-wrap {
        flex-direction: column;
    }
    .cart-summary-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 576px) {
    .cart-item-card {
        flex-direction: column;
        text-align: center;
    }
    .cart-item-controls {
        width: 100%;
        align-items: center;
    }
    .cart-item-price-info {
        text-align: center;
    }
    #modal-cart-add-ok .modal-footer {
        flex-direction: column-reverse;
    }
    #modal-cart-add-ok .cart-product-card {
        flex-direction: column;
        text-align: center;
    }
    #modal-cart-add-ok .btn-modern {
        width: 100%;
    }
}

