/* ==========================================================================
   ALUVIDRIOS HEADER – Styles matching design guide
   ========================================================================== */

/* ─── PROMO BAR ─── */
.promo-bar {
    background: var(--orange);
    padding: 4px 0 !important;
    text-align: center;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    font-family: 'Barlow Condensed';
    font-size: 16px;
}

.promo-bar span {
    margin: 0 15px;
    opacity: 0.3;
}

@media(max-width: 600px) {
    .promo-bar {
        padding: 6px 10px;
    }

    .promo-bar span {
        margin: 0 8px;
    }
}

/* ─── HEADER ─── */
#alv-header {
    background: transparent;
    /* Parent is transparent to avoid sticky artifacts */
    position: relative;
    z-index: 9999;
    font-family: 'Barlow', sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow: visible !important;
    height: auto !important;
    min-height: 40px;
}

/* Ensure parents in Divi don't clip the header */
.et_pb_section,
.et_pb_row,
.et_pb_column {
    overflow: visible !important;
}

/* Support for WordPress Admin Bar on sticky nav */
.admin-bar .alv-nav {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .alv-nav {
        top: 46px !important;
    }
}

.header-main-row {
    background: var(--blue, #1a3a5c);
    padding: 12px 0px !important;
}

#alv-header *,
#alv-header *::before,
#alv-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

#alv-header a {
    text-decoration: none;
    color: inherit
}

#alv-header ul {
    list-style: none;
    margin: 0;
    padding: 0
}

#alv-header button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

#alv-header svg {
    display: block;
    color: #ffffff !important;
}

.alv-container {
    width: 80% !important;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0
}

/* ─── Header Inner ─── */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    /* Reduced even more */
}

/* ─── Logo ─── */
.alv-logo {
    flex-shrink: 0
}

.alv-logo a,
.alv-logo a,
.alv-logo .alv-logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.alv-logo .logo-mark {
    width: 34px;
    height: 34px;
    background: var(--orange);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.alv-logo .logo-mark svg {
    width: 20px;
    height: 20px
}

.alv-logo img,
.alv-logo .alv-logo-img {
    height: 44px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.alv-logo .logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.alv-logo .logo-text span {
    color: var(--orange)
}

/* ─── Search (FiboSearch) ─── */
.header-search {
    display: none;
    /* Hidden on mobile by default */
}

@media(min-width:900px) {
    .header-search {
        display: block;
        flex: 1;
        min-width: 160px;
        position: relative;
        order: 0;
        width: auto
    }
}

.header-search .dgwt-wcas-search-wrapp {
    max-width: 100% !important
}

.header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
    border-radius: var(--radius, 4px) !important;
    overflow: hidden;
    display: flex
}

.header-search .dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: var(--radius, 4px) 0 0 var(--radius, 4px) !important;
    background: #fff !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 14px !important;
    color: var(--text, #333) !important
}

.header-search .dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    outline: 2px solid var(--orange) !important
}

.header-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit {
    padding: 0 16px !important;
    background: var(--orange, #f37021) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 var(--radius, 4px) var(--radius, 4px) 0 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif !important;
    white-space: nowrap;
    transition: background .15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide unwanted search icon/triangle if present inside the button */
.header-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit svg,
.header-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier,
.header-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit::before {
    display: none !important;
}

.header-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit:hover {
    background: var(--orange2, #d46f15) !important
}

/* ─── Actions ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0
}

#alv-header .haction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Align labels at the bottom */
    gap: 4px;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .4px;
    transition: all .15s;
    background: none;
    border: none;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    min-height: 44px;
    /* Ensure same height */
}

#alv-header .haction:hover {
    color: #fff
}

#alv-header .haction svg {
    width: 22px;
    /* Uniform size */
    height: 22px;
    display: block;
}

/* CartPops overrides */
.cart-wrap {
    position: relative
}

.cart-custom-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
}

.cart-custom-icon svg {
    width: 22px !important;
    height: 22px !important;
    color: inherit;
    pointer-events: none;
}

/* Hide default shortcode icon but keep it clickable and keep counter visible */
.cart-wrap .cartpops-cart__container-icon i {
    display: none !important;
}

.cart-wrap .cartpops-cart__container-icon {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
    background: transparent !important;
    opacity: 1 !important;
}

.cart-wrap .cartpops-cart__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    gap: 0 !important;
    min-height: auto !important;
}

.cart-wrap .cartpops-cart__container-counter {
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    transform: translate(90%, -30%) !important;
    background: var(--orange, #f37021) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: 'Barlow Condensed', sans-serif;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue, #1a3a5c) !important;
    line-height: 1 !important;
    padding: 0 !important;
    min-width: auto !important;
    z-index: 10;
}

.cart-wrap .cartpops-cart__container-text {
    display: none !important
}

.cart-wrap span {
    pointer-events: none;
    /* The text "Cotizar" shouldn't block the click */
}

/* ─── Hamburger ─── */
.mob-menu-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center
}

.mob-menu-btn svg {
    width: 22px;
    height: 22px
}

@media(min-width:900px) {
    .mob-menu-btn {
        display: none !important;
    }
}

/* ─── NAV ─── */
.alv-nav {
    background: var(--blue-dark, #0a2f57);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9998;
}

/* Sticky Logo hidden by default */
.nav-sticky-logo {
    display: none;
    align-items: center;
    padding: 8px 0px !important;
    margin-right: 20px !important;
}

.nav-sticky-logo img,
.nav-sticky-logo .alv-logo-img {
    height: 22px !important;
    width: auto !important;
}

.nav-sticky-logo .logo-text {
    font-size: 14px !important;
}

.nav-sticky-logo .logo-mark {
    width: 22px !important;
    height: 22px !important;
}

/* Sticky Mode Logic - Desktop */
#alv-header.is-sticky .promo-bar {
    display: none !important;
}

#alv-header.is-sticky .header-main-row {
    display: none !important;
}

#alv-header.is-sticky .alv-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    animation: alvSlideDown 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Sticky Mode Logic - Mobile */
@media (max-width: 899px) {
    #alv-header.is-sticky .header-main-row {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: var(--blue);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        padding: 5px 0;
        animation: alvSlideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .admin-bar #alv-header.is-sticky .header-main-row {
        top: 32px !important;
    }

    /* En mobile no queremos que la nav bar aparezca sticky */
    #alv-header.is-sticky .alv-nav {
        display: none !important;
    }
}

@keyframes alvSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.admin-bar #alv-header.is-sticky .alv-nav {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #alv-header.is-sticky .alv-nav {
        top: 46px !important;
    }
}

#alv-header.is-sticky .nav-sticky-logo {
    display: flex;
}

#alv-header.is-sticky .nav-inner {
    padding: 0 10px;
}

@media(min-width: 900px) {
    .alv-nav {
        position: sticky;
        top: 0;
        z-index: 9998;
    }

    /* Ensure no margins interfere with sticky position */
    .alv-nav {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Subtle shadow when sticky */
    .alv-nav.is-sticky {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

.nav-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

.nav-inner::-webkit-scrollbar {
    display: none
}

/* ─── Categories dropdown ─── */
.nav-cat-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    margin-right: 10px !important;
}

.nav-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    background: var(--orange, #f37021);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
    border: none;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    width: 138px;
    justify-content: flex-start;
    height: 40px;
    border-radius: 0;
}

.nav-cat:hover {
    background: var(--orange2, #d46f15);
}

.nav-cat svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0
}

.nav-cat span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-cat-arrow {
    margin-left: auto;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    transition: transform .3s;
}

.nav-cat-arrow svg {
    width: 100%;
    height: 100%;
    width: 16px !important;
    height: 16px !important;
}

.nav-cat[aria-expanded="true"] .nav-cat-arrow {
    transform: rotate(180deg);
}

/* Categories dropdown panel */
.nav-cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-top: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999999 !important;
    min-height: 50px;
}

.nav-cat-dropdown.is-open {
    display: block !important;
}

.nav-cat-menu {
    padding: 0;
    margin: 0;
    list-style: none !important;
}

.nav-cat-menu li {
    position: relative;
    border-bottom: 1px solid #eeeeee;
    display: block !important;
}

.nav-cat-menu li:last-child {
    border-bottom: none
}

.nav-cat-menu a {
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text) !important;
    transition: all .2s;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 6px 12px !important;
}

.nav-cat-menu a:hover {
    background: #f9f9f9;
    color: var(--blue, #0088ff);
}

/* Flecha derecha en los items */
.nav-cat-menu li>a:after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(-45deg);
    margin-left: auto;
    transition: border-color .2s;
}

.nav-cat-menu li:hover>a:after {
    border-color: var(--blue, #0088ff);
}

.nav-cat-menu .sub-menu {
    display: none;
    padding-left: 12px;
    background: #f9f9f9
}

.nav-cat-menu li:hover>.sub-menu {
    display: block
}

.nav-cat-menu .sub-menu a {
    font-size: 13px;
    padding: 8px 20px 8px 28px
}

/* ─── Primary Nav Links ─── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.nav-links li {
    display: flex;
    align-items: stretch;
    position: relative;
    flex-shrink: 0
}

.nav-links li a {
    font-size: 16px;
    font-weight: 600;
    padding: 6px 14px !important;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: .1px;
    transition: color .15s;
    flex-shrink: 0;
    border: none;
    background: none;
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    color: #fff !important;
}

/* Chevron para items con submenú */
.nav-links li.menu-item-has-children>a:after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-left: 8px;
    margin-top: -3px;
    transition: border-color .15s;
}

.nav-links li a:hover,
.nav-links li.current-menu-item>a,
.nav-links li.current_page_item>a {
    color: #fff
}

.nav-links li:hover>a:after {
    border-color: #fff;
}

.nav-links li.current-menu-item>a,
.nav-links li.current_page_item>a {
    border-bottom: 2px solid var(--orange)
}

/* Primary nav sub-menu */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all .25s;
    z-index: 100;
    padding: 6px 0;
    flex-direction: column
}

.nav-links li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex
}

.nav-links .sub-menu li {
    display: block
}

.nav-links .sub-menu a {
    color: #444;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    display: block;
    white-space: nowrap
}

.nav-links .sub-menu a:hover {
    background: #f5f5f5;
    color: var(--orange);
    padding-left: 24px
}

/* ─── Ofertas ─── */
.nav-promo {
    margin-left: auto;
    color: var(--orange);
    font-size: 12.5px;
    font-weight: 700;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s
}

.nav-promo:hover {
    color: var(--orange2, #d46f15)
}

/* ─── OFF-CANVAS ─── */
.alv-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    pointer-events: none
}

.alv-offcanvas__panel {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

.alv-offcanvas.is-open {
    pointer-events: auto
}

.alv-offcanvas.is-open .alv-offcanvas__panel {
    transform: translateX(0)
}

/* Overlay */
.alv-offcanvas__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px)
}

.alv-offcanvas__overlay.is-visible {
    opacity: 1;
    visibility: visible
}

/* Off-canvas header */
.alv-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--blue);
    flex-shrink: 0
}

.alv-offcanvas__logo a,
.alv-offcanvas__logo .logo {
    display: flex;
    align-items: center;
    gap: 8px
}

.alv-offcanvas__logo img {
    height: 20px !important;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.alv-offcanvas__logo .logo-mark {
    width: 28px;
    height: 28px;
    background: var(--orange);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alv-offcanvas__logo .logo-text {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
}

.alv-offcanvas__close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    transition: all .2s
}

.alv-offcanvas__close svg {
    width: 20px;
    height: 20px
}

.alv-offcanvas__close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg)
}

/* Off-canvas search */
.alv-offcanvas__search {
    padding: 20px;
    background: #ffffff;
}

.alv-offcanvas__search .dgwt-wcas-search-wrapp {
    max-width: 100% !important
}

.alv-offcanvas__search .dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input {
    height: 48px !important;
    font-size: 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    padding: 0 16px !important;
    background: #f8fafc !important;
}

.alv-offcanvas__search .dgwt-wcas-search-submit {
    height: 48px !important;
    padding: 0 20px !important;
    background: var(--orange) !important;
    color: #fff !important;
    border-radius: 0 8px 8px 0 !important;
    font-family: 'Barlow Condensed' !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Hide FiboSearch's default arrow/triangle in mobile search */
.alv-offcanvas__search .dgwt-wcas-search-submit::before,
.alv-offcanvas__search .dgwt-wcas-search-submit::after {
    display: none !important;
}

/* Off-canvas sections */
.alv-offcanvas__section {
    border-bottom: 1px solid #e8e8e8
}

.alv-offcanvas__section-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .2s;
    font-family: 'Barlow Condensed', sans-serif;
    border: none;
    cursor: pointer;
}

.alv-offcanvas__section-toggle .alv-offcanvas__toggle-icon {
    color: #fff;
}

.alv-offcanvas__section-toggle:hover {
    background: #f5f5f5
}

.alv-offcanvas__toggle-icon {
    width: 16px;
    height: 16px;
    color: var(--orange);
    display: flex;
    align-items: center
}

.alv-offcanvas__toggle-icon svg {
    width: 100%;
    height: 100%
}

.alv-offcanvas__arrow {
    width: 12px;
    height: 12px;
    margin-left: auto;
    transition: transform .3s;
    display: flex;
    align-items: center
}

.alv-offcanvas__arrow svg {
    width: 100%;
    height: 100%
}

.alv-offcanvas__section.is-expanded .alv-offcanvas__arrow {
    transform: rotate(180deg)
}

.alv-offcanvas__section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease
}

.alv-offcanvas__section-content--visible,
.alv-offcanvas__section.is-expanded .alv-offcanvas__section-content {
    max-height: 800px
}

/* Off-canvas menu */
.alv-offcanvas__menu {
    padding: 0
}

.alv-offcanvas__menu li {
    border-top: 1px solid #e8e8e8
}

.alv-offcanvas__menu li:first-child {
    border-top: none
}

.alv-offcanvas__menu a {
    display: block;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    transition: all .2s;
    font-family: 'Barlow', sans-serif;
    border-bottom: 1px solid #f1f5f9;
}

.alv-offcanvas__menu a:hover {
    color: var(--orange);
    background: #f8fafc;
    padding-left: 28px;
}

.alv-offcanvas__menu li:last-child a {
    border-bottom: none;
}

.alv-offcanvas__menu .sub-menu {
    padding-left: 12px;
    background: #f5f5f5
}

.alv-offcanvas__menu .sub-menu a {
    font-size: 13px;
    padding-left: 40px
}

.alv-offcanvas__menu .current-menu-item>a,
.alv-offcanvas__menu .current_page_item>a {
    color: var(--orange);
    font-weight: 600
}

/* Off-canvas footer */
.alv-offcanvas__footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid #e8e8e8;
    background: #fcfcfc;
}

.alv-offcanvas__footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all .2s;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
}

.alv-offcanvas__footer-link:hover {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.alv-offcanvas__footer-icon {
    width: 26px;
    height: 26px;
    color: var(--orange);
    display: flex;
    align-items: center
}

.alv-offcanvas__footer-icon svg {
    width: 100%;
    height: 100%
}

/* ─── RESPONSIVE ─── */
@media(max-width:899px) {
    .alv-nav {
        display: none
    }

    .alv-logo img {
        height: 36px;
        max-width: 140px
    }

    .alv-logo .logo-mark {
        width: 28px;
        height: 28px
    }

    .alv-logo .logo-mark svg {
        width: 16px;
        height: 16px
    }


    .alv-logo .logo-text {
        font-size: 17px
    }

    #alv-header .haction span {
        display: block;
        font-size: 10px;
        margin-top: 2px;
    }

    .header-actions {
        gap: 20px
    }
}

@media(max-width:576px) {
    .alv-container {
        width: 100%;
        padding: 0 12px
    }

    .header-inner {
        gap: 8px;
        padding: 8px 0
    }

    .alv-logo img,
    .alv-logo .alv-logo-img {
        height: 20px !important;
        max-width: 100px
    }

    .alv-logo .logo-mark {
        width: 22px;
        height: 22px
    }

    .alv-logo .logo-mark svg {
        width: 15px;
        height: 15px
    }

    .alv-logo .logo-text {
        font-size: 15px
    }

    .header-search .dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input {
        height: 36px !important;
        font-size: 13px !important;
        padding: 0 10px !important
    }

    .header-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit {
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 11px !important
    }

    .header-actions {
        gap: 20px
    }

    /* Solo mostrar Cotizar en mobile */
    #alv-header .haction:first-child {
        display: none;
    }

    #alv-header .haction span {
        font-size: 9px;
    }

    .mob-menu-btn svg {
        width: 20px;
        height: 20px
    }

    .alv-offcanvas {
        width: 280px
    }
}

/* ─── BODY LOCK ─── */
body.alv-offcanvas-open {
    overflow: hidden !important
}

/* ─── Divi compat ─── */
/* ─── Divi clipping fix ─── */
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_code,
.et_pb_code_inner {
    overflow: visible !important;
}

.alv-container {
    overflow: visible !important;
}

#alv-header,
.alv-nav,
.nav-inner,
.nav-cat-wrap {
    overflow: visible !important;
}

/* Sticky Gallery Column - Desktop only */
@media (min-width: 980px) {
    .sp-gallery-column {
        position: sticky !important;
        top: 60px !important;
        /* Distance from top, adjusting for sticky header */
        height: fit-content !important;
        z-index: 10;
    }
}


/* =============================================
   ALV OFF-CANVAS — Aluvidrios
   Match Mockup Design Exactly
   ============================================= */

.alv-offcanvas__panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---- HEADER ---- */
.alv-offcanvas__header {
    background: #1a3a5c;
    padding: 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px !important;
}

.alv-offcanvas__logo .logo-text {
    font-size: 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.alv-offcanvas__close {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
}

.alv-offcanvas__close:hover {
    background: #f37021;
    border-color: #f37021;
}

/* ---- SEARCH ---- */
.alv-offcanvas__search {
    background: #0a2f57;
    padding: 10px !important;
    flex-shrink: 0;
}

.alv-offcanvas__search .dgwt-wcas-search-form {
    background: #ffffff !important;
    border: none !important;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 30px !important;
}

.alv-offcanvas__search .dgwt-wcas-search-input {
    color: #333 !important;
    font-size: 14px !important;
    background: #fff !important;
    border: none !important;
    padding: 0 15px !important;
    height: 100% !important;
}

.alv-offcanvas__search .dgwt-wcas-search-submit {
    background: #1a3a5c !important;
    border: none !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
    padding: 0 10px !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px !important;
    height: 100% !important;
}

/* ---- NAVIGATION LABEL ---- */
.alv-offcanvas__primary-label {
    padding: 16px 16px 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px !important;
}

/* ---- PRIMARY MENU ---- */
.alv-offcanvas__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alv-offcanvas__menu li a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    border-bottom: 0px solid #f1f5f9;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    transition: all 0.2s;
}

.alv-offcanvas__menu li.current-menu-item>a {
    background: #EEF2F7;
    color: #1a3a5c;
}



.alv-offcanvas__section-toggle .alv-offcanvas__toggle-icon {
    color: #f37021;
    margin-right: 12px;
}

.alv-offcanvas__section-toggle:hover {
    background: #000;
}

.alv-offcanvas__section-content {
    display: none;
}



.alv-offcanvas__section.is-expanded .alv-offcanvas__section-content,
.alv-offcanvas__section-content--visible {
    display: block;
}

.alv-offcanvas__section-content .alv-offcanvas__menu li a {
    padding: 12px 20px 12px 45px;
    font-weight: 500;
    font-size: 16px;
    color: #475569;
    position: relative;
    display: block;
    padding: 4px 10px !important;
    color: var(--text) !important;
}



.alv-offcanvas__section-content .alv-offcanvas__menu li a:hover {
    color: #1a3a5c;
    background: #eef2ff;
}

/* ---- FOOTER ---- */
.alv-offcanvas__footer {
    padding: 20px 10px !important;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    margin-top: auto;
}

.alv-offcanvas__footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--text) !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    transition: all .15s;
    background: none;
    border: none;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    min-height: 44px;
    border: 1px solid #e2e8f0;
    padding: 10px !important;
    width: auto !important;
}

#alv-offcanvas .alv-offcanvas__footer-icon svg {
    color: var(--text) !important;
}

.alv-offcanvas__footer-link:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.alv-offcanvas__footer-icon {
    color: #f37021;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.alv-offcanvas__footer-icon svg {
    width: 22px;
    height: 22px;
}

.alv-offcanvas__footer-link span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
}