/* Fixed header heights. .cc-pr padding-top values: see public/css/variables.css --header-offset-*. */
:root {
    --header-top-height: 80px;   /* first bar: logo + search (padding 15px*2 + content ~50px) */
    --header-nav-height: 56px;   /* second bar: nav links (padding 18px*2 + line-height) */
    --header-total-height: calc(var(--header-top-height) + var(--header-nav-height));
}

.tres-barras {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

.navbar {
    z-index: 1000;
}

.menu_productos {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 900;
    white-space: nowrap;
    width: 210px !important;
    height: 40px !important;
}

.menu_productos span {
    white-space: nowrap;
}

li.menu_productos {
    display: flex;
    align-items: center;
}

li.menu_productos span {
    white-space: nowrap;
}

.bx_button {
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 10px;
    white-space: nowrap;
    z-index: 900;
}

form {
    margin-bottom: 20px;
}

.accesos_er {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100px !important;
}

.accesos_er li {
    width: 100px !important;
}

.accesos_er li a {
    display: block;
    width: 100px !important;
    padding: 3px;
}

.info-user {
    width: 100px !important;
    height: 50px;
}

.dropdown-menu-usuario {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
}

.cart-dropdown .cart_top .list li .img img {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
}

.cart-dropdown .cart_top .list li {
    display: flex;
    align-items: center;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #333 !important;
}

.cart-dropdown .cart_top .list li .img {
    margin-right: 10px;
    flex-shrink: 0;
}

.cart-dropdown .cart_top .list li .name_cant {
    flex-grow: 1;
    font-size: 12px;
}

.cart-dropdown .cart_top .list li .name_cant .precio {
    font-weight: 700 !important;
    color: #173a79 !important;
    margin-top: 5px !important;
}

.cart_top .mini-cart-line__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.cart_top .mini-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cart_top .mini-cart-qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: #f0f4f8;
    color: #09457f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.cart_top .mini-cart-qty-btn:hover:not(:disabled) {
    background: #e2eaf3;
}

.cart_top .mini-cart-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart_top .mini-cart-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.cart_top .mini-cart-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #c00;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cart_top .mini-cart-remove:hover:not(:disabled) {
    background: #fdeaea;
}

.cart_top .mini-cart-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

/* Space between "Vaciar" (outline) and primary "Realizar pedido" (blue) */
.cart_top .mini-cart-footer-actions .mini-cart-btn-checkout {
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.cart_top .mini-cart-clear-all {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 16px 0;
    background: #4a4d52;
    color: #fff;
    border: 1px solid #2f3236;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: none;
    line-height: 1.3;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.cart_top .mini-cart-clear-all:hover:not(:disabled) {
    background: #3d4046;
    color: #fff;
    border-color: #222;
}

.cart_top .mini-cart-clear-all:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cart-section .dropdown-menu.show-viewport,
.cart-dropdown.show-viewport {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    transform: none !important;
    z-index: 9999 !important;
    max-width: 400px !important;
    width: 350px !important;
    max-height: min(85vh, 560px) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    display: block !important;
}

.add-to-cart-btn {
    background: #09457f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.add-to-cart-btn:hover {
    background: #073a6b;
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.added {
    background: #28a745;
}

.mobile-menu-toggle {
    display: none !important;
}

.mobile-menu-toggle .navbar-toggler {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle .navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s ease;
    position: relative;
}

.mobile-menu-toggle .navbar-toggler-icon::before,
.mobile-menu-toggle .navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: 0.3s ease;
    left: 0;
}

.mobile-menu-toggle .navbar-toggler-icon::before {
    top: -8px;
}

.mobile-menu-toggle .navbar-toggler-icon::after {
    top: 8px;
}

.mobile-menu-toggle .navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
}

.mobile-menu-toggle .navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle .navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-right: 30px;
    padding: 0 0 !important;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #09457f;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #09457f;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#main-content {
    transition: margin-left .5s;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99998;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay.active {
    width: 100%;
}

@media screen and (max-width: 1023px) {
    .dropdown-menu-cart {
        z-index: 99999 !important;
    }
}

@media screen and (max-width: 991px) {
    .main-navigation {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .main-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        z-index: 10060;
        border-radius: 0 0 8px 8px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-navigation .nav-menu.mobile-nav-expanded {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .header-nav,
    .header-nav .container {
        overflow: visible !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 1;
    }

    /* Fix for dropdown-menu-right responsiveness */
    .dropdown-menu-right {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: 100% !important;
        transform: none !important;
        min-width: 200px !important;
        max-width: calc(100vw - 40px) !important;
        z-index: 9999 !important;
    }

    /* Header dropdown menus responsive fixes */
    .header-top .dropdown-menu-right {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: 100% !important;
        width: auto !important;
        min-width: 180px !important;
        max-width: 250px !important;
    }

    /* User and access dropdown specific fixes */
    .user-dropdown .dropdown-menu-right,
    .user-access .dropdown-menu-right {
        right: 0 !important;
        left: auto !important;
        width: 200px !important;
        max-width: calc(100vw - 20px) !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-item {
        margin-right: 0;
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 10px;
        font-size: 16px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #09457f;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0px !important;
        border-radius: 4px !important;
        margin-top: 5px !important;
    }

    .dropdown-menu .row {
        flex-direction: column;
    }

    .dropdown-menu .col-md-2 {
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown-menu .col-md-2:last-child {
        margin-bottom: 0;
    }

    .dropdown-menu h6 {
        font-size: 14px;
        margin: 0;
        padding: 8px 0;
    }
}

@media screen and (max-width: 768px) {
    .menu_productos {
        max-width: 100%;
    }

    .bx_button {
        max-width: 50%;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        text-align: left;
    }

    .dropdown-menu-right {
        right: 10px !important;
        left: auto !important;
        max-width: calc(100vw - 20px) !important;
        width: auto !important;
        min-width: 150px !important;
    }

    .header-top .dropdown-menu-right {
        position: fixed !important;
        right: 10px !important;
        top: auto !important;
        max-width: calc(100vw - 20px) !important;
        width: 200px !important;
        z-index: 9999 !important;
    }

    .top-nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Do not hide .cart-count; match ≤991px rule: labels only, badge stays visible */
    .header-top .top-nav-link > span:not(.cart-count) {
        display: none;
    }

    .cart-section .dropdown-menu.show-viewport,
    .cart-dropdown.show-viewport {
        position: fixed !important;
        width: calc(100vw - 20px) !important;
        max-width: 340px !important;
        right: 10px !important;
        top: 70px !important;
        left: auto !important;
        max-height: min(80vh, 520px) !important;
        overflow: hidden !important;
        z-index: 9999 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
        padding: 0 !important;
    }

    .cart-dropdown .cart_top {
        display: flex !important;
        flex-direction: column !important;
        max-height: 100% !important;
        overflow: hidden !important;
        padding: 15px !important;
    }

    .cart-dropdown .cart_top .list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: min(40vh, 280px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 6px 0 0 !important;
    }

    .cart-dropdown .cart_top .list li {
        display: flex !important;
        align-items: flex-start !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        margin-bottom: 0 !important;
    }

    .cart-dropdown .cart_top .list li:last-child {
        border-bottom: none !important;
    }

    .cart-dropdown .cart_top .list li .img {
        margin-right: 12px !important;
        flex-shrink: 0 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #f8f9fa !important;
    }

    .cart-dropdown .cart_top .list li .img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: none !important;
        max-height: none !important;
    }

    .cart-dropdown .cart_top .list li .name_cant {
        flex: 1 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .nombre {
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 4px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .atributos {
        margin-bottom: 6px !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .atributos div {
        margin-bottom: 2px !important;
        font-size: 11px !important;
        color: #666 !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .atributos label {
        font-weight: 500 !important;
        color: #333 !important;
        margin-right: 4px !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .precio {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #09457f !important;
        margin-top: 4px !important;
    }

    .cart-dropdown .cart_top .precio_total {
        border-top: 1px solid #eee !important;
        padding-top: 12px !important;
        margin-top: 8px !important;
    }

    .cart-dropdown .cart_top .precio_total ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cart-dropdown .cart_top .precio_total ul li {
        padding: 4px 0 !important;
        border: none !important;
        font-size: 12px !important;
        color: #666 !important;
    }

    .cart-dropdown .cart_top .precio_total ul li.total {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #333 !important;
    }

    .cart-dropdown .cart_top .precio_total ul li label {
        font-weight: 700 !important;
        color: #09457f !important;
    }

    .cart-dropdown .cart_top .bx_btn {
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #eee !important;
    }

    .cart-dropdown .cart_top .bx_btn .btn:not(.mini-cart-clear-all) {
        width: 100% !important;
        padding: 12px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: #09457f !important;
        border: none !important;
        color: white !important;
        text-decoration: none !important;
        display: block !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
    }

    .cart-dropdown .cart_top .bx_btn .btn:not(.mini-cart-clear-all):hover {
        background: #073a6b !important;
        transform: translateY(-1px) !important;
    }

    .cart-dropdown .cart_top .bx_btn.mini-cart-footer-actions .mini-cart-clear-all {
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        background: #4a4d52 !important;
        color: #fff !important;
        border: 1px solid #2f3236 !important;
        font-weight: 600 !important;
        text-transform: none !important;
    }

    .cart-dropdown .cart_top .bx_btn.mini-cart-footer-actions .mini-cart-clear-all:hover:not(:disabled) {
        background: #3d4046 !important;
        border-color: #222 !important;
    }

    .cart-dropdown .cart_top .bx_btn.mini-cart-footer-actions .mini-cart-btn-checkout {
        margin-top: 14px !important;
    }

    .header-nav .container {
        position: relative;
    }
}

@media screen and (max-width: 480px) {
    .cc-pr {
        padding-top: var(--header-offset-sm, 280px) !important;
    }

    .dropdown-menu-right {
        right: 5px !important;
        max-width: calc(100vw - 10px) !important;
        width: auto !important;
        min-width: 120px !important;
    }

    .header-top .dropdown-menu-right {
        width: 180px !important;
        max-width: calc(100vw - 10px) !important;
    }

    .cart-section .dropdown-menu.show-viewport,
    .cart-dropdown.show-viewport {
        width: calc(100vw - 20px) !important;
        max-width: 340px !important;
        right: 10px !important;
        top: 70px !important;
        max-height: min(75vh, 480px) !important;
        overflow: hidden !important;
    }

    .cart-dropdown .cart_top {
        padding: 16px !important;
    }

    .cart-dropdown .cart_top .list li .img {
        width: 50px !important;
        height: 50px !important;
        margin-right: 12px !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .nombre {
        font-size: 13px !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .atributos div {
        font-size: 10px !important;
    }

    .cart-dropdown .cart_top .list li .name_cant .precio {
        font-size: 14px !important;
    }

    .cart-dropdown .cart_top .bx_btn .btn:not(.mini-cart-clear-all) {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    .cart-dropdown .cart_top .bx_btn.mini-cart-footer-actions .cerbel-mini-cart-vaciar,
    .cart-dropdown .cart_top .bx_btn.mini-cart-footer-actions .mini-cart-clear-all {
        margin-bottom: 16px !important;
    }

    .cart-dropdown .cart_top .precio_total {
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.modern-header {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 1050 !important;
}

/* Keep header fixed at top when scrolling - content scrolls behind it */
.modern-header.navbar-fixed-top,
header.navbar-fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 1050 !important;
}

/* Remove dark blue line below menu on non-home pages */
.header-nav,
.modern-header .header-nav,
header .header-nav {
    border-bottom: none !important;
}

.cc-pr,
.n_menu_categorias,
.cc-pr > * {
    border-top: none !important;
}

/* Prevent specialty banners from overlapping header - removes visible dark blue line at menu bottom */
.cc-pr .fin-specialty-banner,
.cc-pr .specialty-banner,
.cc-pr .gp-specialty-banner,
.cc-pr .er-specialty-banner,
.cc-pr .fa-specialty-banner,
.cc-pr .dp-specialty-banner,
.cc-pr .news-specialty-banner,
.cc-pr .cart-banner,
.cc-pr .b-search-banner {
    margin-top: 0 !important;
}

/* Exception: contact page banner position */
.cc-pr .specialty-banner-contacto {
    margin-top: 0 !important;
}

.header-top,
.search-input {
    background: #173a79 !important;
    color: #fff !important;
}

.header-top {
    padding: 15px 0 !important;
    min-height: var(--header-top-height);
    box-sizing: border-box;
}

.header-top-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
}

.logo-section {
    color: #fff;
}

.logo-section .logo-img {
    height: 50px !important;
    width: auto !important;
}
/* Logo SVG en header (fondo azul): currentColor como img no hereda; filter garantiza contraste blanco */
.header-top .logo-section .logo-img.logo-svg {
    filter: brightness(0) invert(1);
}

.search-section {
    flex: 1 !important;
    max-width: 500px !important;
}

.search-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.search-input {
    width: 100% !important;
    padding: 12px 50px 12px 20px !important;
    border: 2px solid #fff !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    outline: 0 !important;
}

.search-input::placeholder {
    color: #f2f5fa !important;
    opacity: 1 !important;
}

.search-input::-webkit-input-placeholder {
    color: #f2f5fa !important;
    opacity: 1 !important;
}

.search-input::-moz-placeholder {
    color: #f2f5fa !important;
    opacity: 1 !important;
}

.search-input:-ms-input-placeholder {
    color: #f2f5fa !important;
    opacity: 1 !important;
}

.search-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #1e4d8b !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    color: #fff !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.search-btn .fa,
.search-btn .fa-search {
    display: block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
}

.search-btn .fa::before,
.search-btn .fa-search::before {
    display: block !important;
    line-height: 1 !important;
}

/* Profesionales: legacy app.min.css positions .buscador icon with float/top; center it when header.css loads after */
header .logo_search_user .logo_search ul li .buscador {
    position: relative !important;
}

header .logo_search_user .logo_search ul li .buscador i.fa {
    float: none !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    color: #053e77 !important;
}

header .logo_search_user .logo_search ul li .buscador i.fa::before {
    display: block !important;
    line-height: 1 !important;
}

.top-nav-link,
.top-nav-links {
    align-items: center !important;
    display: flex !important;
}

.top-nav-links {
    gap: 25px !important;
}

.top-nav-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px !important;
    gap: 8px !important;
    background: 0 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: color 0.3s !important;
    white-space: nowrap !important;
}

.dropdown-item,
.mega-menu a,
.nav-link {
    transition: background-color 0.3s !important;
}

.top-nav-link:hover {
    color: #f0f6ff !important;
    text-decoration: none !important;
}

.cart-count {
    background: #c0392b !important;
    color: #fff !important;
    border-radius: 50% !important;
    padding: 0px 6px !important;
    font-size: 12px !important;
    margin-left: 5px !important;
    min-width: 20px !important;
    text-align: center !important;
}

.header-nav {
    background: #008ad4 !important;
    padding: 0 !important;
    min-height: var(--header-nav-height);
    box-sizing: border-box;
}

.main-navigation,
.nav-item {
    position: relative !important;
}

.header-nav .nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    text-transform: capitalize !important;
}

.dropdown-item,
.mega-menu a,
.mobile-nav-menu a,
.header-nav .nav-link {
    display: block !important;
    text-decoration: none !important;
}

.header-nav .nav-link {
    padding: 18px 25px !important;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
}

.mega-menu a:hover,
.mobile-nav-menu a:hover,
.header-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.15) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    background: #fff !important;
}

.dropdown-item {
    color: #333 !important;
    padding: 10px 20px !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #1e4d8b !important;
    text-decoration: none !important;
}

.mega-menu {
    width: 250px !important;
    padding: 0 !important;
    background: #008ad4 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.mega-menu .row {
    margin: 0 !important;
    flex-direction: column !important;
}

.mega-menu .col-md-2 {
    width: 100% !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mega-menu .col-md-2:last-child {
    border-bottom: none !important;
}

.mega-menu a {
    color: #fff !important;
    padding: 15px 20px !important;
}

.mega-menu a:hover h6,
.mega-menu h6 {
    color: #fff !important;
}

.mega-menu h6 {
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.mobile-nav-menu {
    list-style: none !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    background: #008ad4 !important;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav-menu a {
    padding: 15px 20px !important;
    color: #fff !important;
}

/* Additional cart dropdown styles that were missing */
.cart-dropdown {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 15px !important;
    min-width: 300px !important;
}

.cart-dropdown .cart_top {
    color: #333 !important;
}

.cart-dropdown .cart_top .list li .name_cant .nombre {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.cart-dropdown .cart_top .list li .name_cant .atributos {
    color: #666 !important;
    font-size: 12px !important;
}

.cart-dropdown .cart_top .list li .name_cant .atributos label {
    color: #333 !important;
    font-weight: 500 !important;
}

.cart-dropdown .precio_total {
    border-top: 1px solid #ddd !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
}

.cart-dropdown .precio_total ul li {
    color: #333 !important;
    font-weight: 600 !important;
}

.cart-dropdown .precio_total ul li label {
    color: #173a79 !important;
    font-weight: 700 !important;
}

.cart-dropdown .bx_btn .btn:not(.mini-cart-clear-all) {
    background-color: #173a79 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    width: 100% !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.cart-dropdown .bx_btn .btn:not(.mini-cart-clear-all):hover {
    background-color: #0f2a5a !important;
    color: #fff !important;
}

.cart-dropdown .bx_btn.mini-cart-footer-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.cart-dropdown .bx_btn.mini-cart-footer-actions .mini-cart-btn-checkout {
    margin-top: 14px !important;
}

.cart-dropdown .bx_btn.mini-cart-footer-actions .mini-cart-clear-all {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    background-color: #4a4d52 !important;
    color: #fff !important;
    border: 1px solid #2f3236 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
    line-height: 1.3 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
}

.cart-dropdown .bx_btn.mini-cart-footer-actions .mini-cart-clear-all:hover:not(:disabled) {
    background-color: #3d4046 !important;
    color: #fff !important;
    border-color: #222 !important;
}

/* Mini cart: scroll line items so the dropdown does not overflow the viewport */
.dropdown-menu-cart .cart_top,
.cart-dropdown .cart_top {
    display: flex;
    flex-direction: column;
    max-height: min(calc(100vh - 100px), 520px);
    overflow: hidden;
}

.dropdown-menu-cart .cart_top .list,
.cart-dropdown .cart_top .list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(45vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding-right: 6px;
    list-style: none;
}

.dropdown-menu-cart .cart_top .list::-webkit-scrollbar,
.cart-dropdown .cart_top .list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu-cart .cart_top .list::-webkit-scrollbar-thumb,
.cart-dropdown .cart_top .list::-webkit-scrollbar-thumb {
    background: #c5ccd6;
    border-radius: 3px;
}

/* Content starts below fixed header; offsets from variables.css */
.cc-pr {
    position: relative !important;
    z-index: 1 !important;
    padding-top: var(--header-offset-xl, 180px) !important;
    margin-top: 0 !important;
}

/* Content starts below fixed nav only (no extra margin); product/contact pages override padding-top */
.page-profesionales .cc-pr {
    margin-top: 0 !important;
}

.page-profesionales #left-panel {
    top: 170px !important;
    height: 40px !important;
}

.page-profesionales .app nav ul li {
    padding: 9px 10px;
}

/* Hero carousel styles that might be used in header area */
.category-card h4,
.view-all-btn {
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
}

.hero-carousel {
    margin: 0 0 30px !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    height: 400px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    background: linear-gradient(145deg, #f8f9fa, #fff) !important;
    transition: 0.3s !important;
}

.hero-carousel:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Image hero (particulares home): hover lift leaves a strip of parent background under the fixed header */
.hero-carousel.hero-with-overlay {
    transition: box-shadow 0.2s ease !important;
}

.hero-carousel.hero-with-overlay,
.hero-carousel.hero-with-overlay:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100% !important;
    border-radius: 0 !important;
}



/* Additional responsive media queries for the new styles */
@media (max-width: 991px) {
    /* Bootstrap .container is 750px/970px fixed above 768px; with padding it exceeds narrow viewports and causes horizontal scroll */
    header.modern-header .container,
    .modern-header > .header-top > .container,
    .modern-header > .header-nav > .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-top-content {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .search-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .header-top .search-container,
    .header-top .search-form {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .top-nav-links {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Text labels + nowrap caused horizontal page overflow on tablet; keep .cart-count visible. */
    .header-top .top-nav-link > span:not(.cart-count) {
        display: none !important;
    }

    .header-nav .nav-menu {
        display: none !important;
    }

    .header-nav .nav-menu.mobile-nav-expanded {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        padding: 20px;
        z-index: 10060;
        border-radius: 0 0 8px 8px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .header-nav .nav-menu.mobile-nav-expanded .nav-link {
        color: #333 !important;
        padding: 12px 16px !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        padding: 15px 0 !important;
    }

    /*
     * Fixed ~312px: tall viewports (Surface Pro) made 38vh+ clamp hit 430px while the real bar is ~300px,
     * which left a huge empty band. Hero uses flow layout ≤991 so copy does not need extra slack from vh.
     */
    .cc-pr {
        padding-top: var(--header-offset-lg, 312px) !important;
    }
}

@media (max-width: 768px) {
    .top-nav-links {
        gap: 15px !important;
    }

    .top-nav-link {
        font-size: 16px !important;
    }

    .logo-section .logo-img {
        height: 35px !important;
    }

    .cc-pr {
        padding-top: var(--header-offset-md, 260px) !important;
    }
}

button,
input,
select,
textarea {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

a:focus,
a:hover {
    color: #216a94 !important;
}

/* Keep readable focus/hover on dark header bars (global a:hover #216a94 is low-contrast on #173a79 / #008ad4).
   Scope header-top to .top-nav-link and logo only so .dropdown-menu a stays on light backgrounds. */
.header-top .top-nav-link:hover,
.header-top .top-nav-link:focus,
.header-top .top-nav-link:focus-visible,
.header-top .logo-section a:hover,
.header-top .logo-section a:focus,
.header-top .logo-section a:focus-visible,
.header-nav .nav-menu:not(.show) a:hover,
.header-nav .nav-menu:not(.show) a:focus,
.mega-menu a:hover,
.mega-menu a:focus,
.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
    color: #ffffff !important;
}

footer .top .info-contact {
    color: #ffffff !important;
}

footer .top .info-contact a {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer .top .info-contact a:hover,
footer .top .info-contact a:focus {
    color: #e3f2ff !important;
}

footer .button,
footer .button .column .contenido,
footer .button .column p {
    color: #d2d2d2 !important;
}

footer .button .column a {
    color: #e8e8e8 !important;
}

footer .button .column ul li a:hover,
footer .button .column ul li a:focus,
footer .button .column a:hover,
footer .button .column a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}

footer .button .column.info_empresa i {
    color: #c8c8c8 !important;
    border-color: #8a8a8a !important;
}

footer .button .column.newsletter input[type='text']::placeholder {
    color: #f2f2f2 !important;
    opacity: 1 !important;
}

footer .button .column.newsletter input[type='text']::-webkit-input-placeholder {
    color: #f2f2f2 !important;
    opacity: 1 !important;
}

.n_menu_categorias .panelL ul a,
#cont-p .menu_fam ul li a {
    color: #333333 !important;
}

.n_menu_categorias .panelL ul a:hover,
.n_menu_categorias .panelL ul a:focus,
#cont-p .menu_fam ul li a:hover,
#cont-p .menu_fam ul li a:focus {
    color: #0a4a7a !important;
}

a:focus,
input[type="checkbox"]:focus,
input[type="file"]:focus,
input[type="radio"]:focus {
    outline: -webkit-focus-ring-color auto 5px !important;
    outline-offset: -2px !important;
}

.bootstrap-datetimepicker-widget .list-unstyled,
.bx_opiniones .listas-opiniones .list li .name_btn h3,
.bx_opiniones .listas-opiniones .list li .name_btn h4,
figure {
    margin: 0 !important;
}

.bx_tipos .lista-tipos li img,
.img-responsive,
.panel-body .detalle_producto .bx_complementarios ul li img,
.panel-body .detalle_producto .bx_similares ul li img,
.panel-body .detalle_producto .galeria_txt .galeria img,
img {
    display: block !important;
    height: 100px !important;
    max-width: 100% !important;
}

.img-thumbnail,
.list-inline>li,
label {
    display: inline-block !important;
}

.img-rounded {
    border-radius: 6px !important;
}

.img-thumbnail {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    height: auto !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    padding: 4px !important;
    transition: 0.2s ease-in-out !important;
}

.img-circle {
    border-radius: 50% !important;
}

hr {
    border: 0 !important;
    border-top: 1px solid #eee !important;
    margin-bottom: 22px !important;
    margin-top: 22px !important;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    clip: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    position: static !important;
    width: auto !important;
}

.app nav li.menu_productos,
.bootstrap-datetimepicker-widget table thead tr:first-child th,
.bx_articles .list .column ul li.crow .color,
.bx_articles .list .column ul li.crow .medida,
.bx_articles .list .column ul li.crow .pvp,
.bx_articles .list .column ul li.head .color,
.bx_articles .list .column ul li.head .medida,
.bx_articles .list .column ul li.head .pvp,
.input-group.date .input-group-addon,
[role="button"] {
    cursor: pointer !important;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.h1 .small,
.h1 small,
.h2 .small,
.h2 small,
.h3 .small,
.h3 small,
.h4 .small,
.h4 small,
.h5 .small,
.h5 small,
.h6 .small,
.h6 small,
h1 .small,
h1 small,
h2 .small,
h2 small,
h3 .small,
h3 small,
h4 .small,
h4 small,
h5 .small,
h5 small,
h6 .small,
h6 small {
    color: #777 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

kbd kbd,
label {
    font-weight: 700 !important;
}

.h1,
.h2,
.h3,
h1,
h2,
h3 {
    margin-bottom: 11px !important;
    margin-top: 22px !important;
}

.h1 .small,
.h1 small,
.h2 .small,
.h2 small,
.h3 .small,
.h3 small,
h1 .small,
h1 small,
h2 .small,
h2 small,
h3 .small,
h3 small {
    font-size: 65% !important;
}

.h4,
.h5,
.h6,
h4,
h5,
h6 {
    margin-bottom: 11px !important;
    margin-top: 11px !important;
}

dl,
ol,
ul {
    margin-top: 0 !important;
}

.h4 .small,
.h4 small,
.h5 .small,
.h5 small,
.h6 .small,
.h6 small,
h4 .small,
h4 small,
h5 .small,
h5 small,
h6 .small,
h6 small {
    font-size: 75% !important;
}

.h1,
h1 {
    font-size: 36px !important;
}

.ficha_articulo .top .informacion .prices .bx_left ul li:last-child span,
.h2,
h2 {
    font-size: 30px !important;
}

header .container {
    width: 100%;
}

/* Bootstrap Button Classes */
.btn {
    display: inline-block !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    text-align: center !important;
    vertical-align: middle !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.42857143 !important;
    border-radius: 4px !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
    outline: -webkit-focus-ring-color auto 5px !important;
    outline-offset: -2px !important;
}

.btn:hover,
.btn:focus {
    color: #333 !important;
    text-decoration: none !important;
}

.btn:active,
.btn.active {
    outline: 0 !important;
    background-image: none !important;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    filter: alpha(opacity=65) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.btn-primary {
    color: #fff !important;
    background-color: #337ab7 !important;
    border-color: #2e6da4 !important;
}

.btn-primary:focus,
.btn-primary.focus {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #122b40 !important;
}

.btn-primary:hover {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #204d74 !important;
}

.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #204d74 !important;
}

/* Bootstrap Form Classes */
.form-control {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.42857143 !important;
    color: #555 !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s !important;
    -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s !important;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s !important;
}

.form-control:focus {
    border-color: #66afe9 !important;
    outline: 0 !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
}

/* Bootstrap Text Utilities */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

.text-muted {
    color: #777 !important;
}

.text-primary {
    color: #337ab7 !important;
}

.text-success {
    color: #3c763d !important;
}

.text-info {
    color: #31708f !important;
}

.text-warning {
    color: #8a6d3b !important;
}

.text-danger {
    color: #a94442 !important;
}

/* FontAwesome Base Classes */
.fa {
    display: inline-block !important;
    font: normal normal normal 14px/1 FontAwesome, sans-serif !important;
    font-size: inherit !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fa-lg {
    font-size: 1.33333333em !important;
    line-height: 0.75em;
    vertical-align: -15% !important;
}

.fa-2x {
    font-size: 2em !important;
}

.fa-3x {
    font-size: 3em !important;
}

.fa-4x {
    font-size: 4em !important;
}

.fa-5x {
    font-size: 5em !important;
}

.fa-fw {
    width: 1.28571429em !important;
    text-align: center !important;
}

/* Common FontAwesome Icons Used in Header */
.fa-search:before {
    content: "\f002" !important;
}

.fa-user:before {
    content: "\f007" !important;
}

.fa-shopping-cart:before {
    content: "\f07a" !important;
}

.fa-chevron-down:before {
    content: "\f078" !important;
}

.fa-question-circle:before {
    content: "\f059" !important;
}

.fa-bars:before {
    content: "\f0c9" !important;
}

.fa-times:before {
    content: "\f00d" !important;
}

/* Bootstrap Media Queries for Grid System */
@media (min-width: 768px) {
    .container {
        width: 750px !important;
    }
    
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12 {
        float: left !important;
    }
    
    .col-sm-12 {
        width: 100% !important;
    }
    
    .col-sm-11 {
        width: 91.66666667% !important;
    }
    
    .col-sm-10 {
        width: 83.33333333% !important;
    }
    
    .col-sm-9 {
        width: 75% !important;
    }
    
    .col-sm-8 {
        width: 66.66666667% !important;
    }
    
    .col-sm-7 {
        width: 58.33333333% !important;
    }
    
    .col-sm-6 {
        width: 50% !important;
    }
    
    .col-sm-5 {
        width: 41.66666667% !important;
    }
    
    .col-sm-4 {
        width: 33.33333333% !important;
    }
    
    .col-sm-3 {
        width: 25% !important;
    }
    
    .col-sm-2 {
        width: 16.66666667% !important;
    }
    
    .col-sm-1 {
        width: 8.33333333% !important;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px !important;
    }
    
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
        float: left !important;
    }
    
    .col-md-12 {
        width: 100% !important;
    }
    
    .col-md-11 {
        width: 91.66666667% !important;
    }
    
    .col-md-10 {
        width: 83.33333333% !important;
    }
    
    .col-md-9 {
        width: 75% !important;
    }
    
    .col-md-8 {
        width: 66.66666667% !important;
    }
    
    .col-md-7 {
        width: 58.33333333% !important;
    }
    
    .col-md-6 {
        width: 50% !important;
    }
    
    .col-md-5 {
        width: 41.66666667% !important;
    }
    
    .col-md-4 {
        width: 33.33333333% !important;
    }
    
    .col-md-3 {
        width: 25% !important;
    }
    
    .col-md-2 {
        width: 16.66666667% !important;
    }
    
    .col-md-1 {
        width: 8.33333333% !important;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 100% !important;
    }
    
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12 {
        float: left !important;
    }
    
    .col-lg-12 {
        width: 100% !important;
    }
    
    .col-lg-11 {
        width: 91.66666667% !important;
    }
    
    .col-lg-10 {
        width: 83.33333333% !important;
    }
    
    .col-lg-9 {
        width: 75% !important;
    }
    
    .col-lg-8 {
        width: 66.66666667% !important;
    }
    
    .col-lg-7 {
        width: 58.33333333% !important;
    }
    
    .col-lg-6 {
        width: 50% !important;
    }
    
    .col-lg-5 {
        width: 41.66666667% !important;
    }
    
    .col-lg-4 {
        width: 33.33333333% !important;
    }
    
    .col-lg-3 {
        width: 25% !important;
    }
    
    .col-lg-2 {
        width: 16.66666667% !important;
    }
    
    .col-lg-1 {
        width: 8.33333333% !important;
    }
}

.container,
.container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Extra-narrow: keep site search and icons inside the viewport (no page-level horizontal scroll). */
@media (max-width: 575px) {
    .modern-header .header-top .container,
    .modern-header .header-nav .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .header-top-content {
        gap: 10px !important;
    }

    .search-input {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .search-btn {
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }
}