/*
 * Live iqitthemeeditor sets html font-size to 13px (typo_bfont_size).
 * Local compiled theme cache misses this; Bootstrap defaults html to 16px.
 * rem-based UI (megamenu, prices, breadcrumb) was ~23% larger locally.
 */
html {
    font-size: 13px !important;
}

/* Force equal height in swiper carousel */
.swiper-slide .product-miniature {
    min-height: 100%;
}

/* Footer styling - match live site dark footer */
#footer,
#footer-container-main,
.footer-container {
    background-color: #333333 !important;
    font-family: Roboto, sans-serif !important;
    font-size: 13px !important;
    color: #999999 !important;
    text-align: left !important;
}

#footer a,
.footer-container a {
    color: #cccccc !important;
}

#footer a:hover,
.footer-container a:hover {
    color: #ffffff !important;
}

#footer .block-title,
.footer-container .block-title,
.footer-container .h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Copyright bar */
#footer-copyrights,
._footer-copyrights-1 {
    background-color: #333333 !important;
    font-size: 13px !important;
    color: #999999 !important;
}

/* Footer container top spacing */
#footer-container-main {
    padding-top: 20px !important;
}

/* Footer link blocks - column layout */
#footer .block-iqitlinksmanager ul,
.footer-container .block-iqitlinksmanager ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

#footer .block-iqitlinksmanager ul li,
.footer-container .block-iqitlinksmanager ul li {
    padding: 2px 0 !important;
    margin: 0 !important;
}

#footer .block-iqitlinksmanager ul li a,
.footer-container .block-iqitlinksmanager ul li a {
    color: #cccccc !important;
    text-decoration: none !important;
}

#footer .block-iqitlinksmanager ul li a:hover,
.footer-container .block-iqitlinksmanager ul li a:hover {
    color: #ffffff !important;
}

/* Product image rollover/flipper */
.thumbnail-container .product-thumbnail {
    position: relative;
    display: block;
}

.thumbnail-container .product-thumbnail picture {
    display: block;
}

.thumbnail-container .product-thumbnail-second {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: cover;
}

.thumbnail-container:hover .product-thumbnail-second {
    opacity: 1;
}

.thumbnail-container:hover .product-thumbnail-first {
    opacity: 0.3;
}

/* Search bar - override BS5 styles */
#search_widget {
    overflow: visible !important;
    margin: 0 auto !important;
}

#search_widget .form-search-control {
    background: #fff !important;
    border: solid 3px #7bbd42 !important;
    border-radius: 0 !important;
    font-family: Roboto, sans-serif !important;
    font-size: 13px !important;
    color: #2e3a47 !important;
}

#search_widget .search-btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    left: auto !important;
    height: 100% !important;
    color: #2e3a47 !important;
}

/* ===== BS5 Product Card Overrides ===== */

/* Green buttons for add-to-cart / view */
.btn-product-list,
.product-add-cart .add-to-cart,
.product-add-cart .btn-product-list {
    background-color: #7bbd42 !important;
    color: #fff !important;
    font-family: Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 5px 5px !important;
    margin: 0 auto !important;
    text-align: center !important;
    text-transform: none !important;
    line-height: 1.5 !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease-in-out !important;
}

.btn-product-list:hover,
.product-add-cart .add-to-cart:hover,
.product-add-cart .btn-product-list:hover {
    background-color: #6aa839 !important;
}

/* Hide quantity input on product cards */
.product-add-cart .input-group.bootstrap-touchspin,
.product-add-cart .input-qty,
.product-add-cart input[name="qty"] {
    display: none !important;
}

/* Center add-to-cart buttons */
.product-add-cart {
    text-align: center !important;
}

/* Product text styling - grey (#2e3a47), not green */
.product-miniature .product-brand a,
.product-miniature .product-reference a {
    color: rgb(46, 58, 71) !important;
    font-family: Roboto, sans-serif !important;
    font-size: 10.4px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    opacity: 0.8 !important;
    text-align: center !important;
    margin-top: -2.6px !important;
    margin-bottom: 5.2px !important;
    display: block !important;
}

.product-miniature .product-brand,
.product-miniature .product-reference {
    margin: 0 !important;
    padding: 0 !important;
}

.product-miniature .product-title,
.product-miniature .product-title a {
    color: #2e3a47 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: center !important;
}

.product-miniature .product-price-and-shipping {
    text-align: center !important;
}

.product-miniature .product-price {
    color: rgb(46, 58, 71) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.product-miniature .regular-price {
    color: #999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

.product-miniature .product-description-short {
    display: none !important;
}

/* Elementor slider / widget buttons - green styling */
.elementor-button,
.elementor-widget-button .elementor-button,
.elementor-widget-slides .elementor-button {
    background-color: #7bbd42 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: Roboto, sans-serif !important;
}

.elementor-button:hover,
.elementor-widget-button .elementor-button:hover,
.elementor-widget-slides .elementor-button:hover {
    background-color: #6aa839 !important;
}

/* ===== Unified page width shell (matches live wifiworld.ro) ===== */
@media (min-width: 1200px) {
    :root {
        --ww-page-width: 1100px;
        --ww-page-gutter: 15px;
    }

    /* Single aligned column: top bar, header, megamenu, breadcrumb, content, footer */
    #header .header-nav > .container,
    #desktop-header-container,
    .iqit-megamenu-container,
    #wrapper > .container,
    #inner-wrapper.container,
    #footer .container,
    .footer-container .container {
        max-width: var(--ww-page-width) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: var(--ww-page-gutter) !important;
        padding-right: var(--ww-page-gutter) !important;
    }

    /*
     * Megamenu nests .container-iqitmegamenu inside .iqit-megamenu-container.
     * Zero inner padding so menu items align with content gutter (live: x=105).
     */
    .iqit-megamenu-container .container-iqitmegamenu,
    .iqit-megamenu-container #iqitmegamenu-wrapper > .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Live iqitthemeeditor link colors (missing from local compiled theme cache) */
a:link:not(.nav-link):not(.btn),
a:visited:not(.nav-link):not(.btn) {
    color: #2e3a47;
}

a:hover:not(.nav-link):not(.btn) {
    color: #7bbd42;
}

/* Product card hover icons — match live (dark grey, 1.2rem; not global green .fa) */
.product-miniature-grid .product-functional-buttons a,
.products-grid .product-functional-buttons a {
    color: #2e3a47 !important;
}

.product-miniature-grid .product-functional-buttons a:hover,
.products-grid .product-functional-buttons a:hover {
    color: #2e3a47 !important;
    opacity: 0.6;
}

.product-miniature-grid .product-functional-buttons i,
.products-grid .product-functional-buttons i {
    color: inherit !important;
    font-size: 1.2rem !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: inherit !important;
}

/* White hover box + single-row icons (iqitthemeeditor on live) */
.product-miniature-grid .product-functional-buttons,
.products-grid .product-functional-buttons {
    background: #fff !important;
    white-space: nowrap !important;
}

/* Restore wishlist/compare icon toggle (do not force display on all .fa i) */
.product-miniature-grid .product-functional-buttons .btn-iqitwishlist-add .added,
.products-grid .product-functional-buttons .btn-iqitwishlist-add .added,
.product-miniature-grid .product-functional-buttons .btn-iqitcompare-add .added,
.products-grid .product-functional-buttons .btn-iqitcompare-add .added {
    display: none !important;
}

.product-miniature-grid .product-functional-buttons .btn-iqitwishlist-add.iqitwishlist-added .not-added,
.products-grid .product-functional-buttons .btn-iqitwishlist-add.iqitwishlist-added .not-added,
.product-miniature-grid .product-functional-buttons .btn-iqitcompare-add.iqitcompare-added .not-added,
.products-grid .product-functional-buttons .btn-iqitcompare-add.iqitcompare-added .not-added {
    display: none !important;
}

.product-miniature-grid .product-functional-buttons .btn-iqitwishlist-add.iqitwishlist-added .added,
.products-grid .product-functional-buttons .btn-iqitwishlist-add.iqitwishlist-added .added,
.product-miniature-grid .product-functional-buttons .btn-iqitcompare-add.iqitcompare-added .added,
.products-grid .product-functional-buttons .btn-iqitcompare-add.iqitcompare-added .added {
    display: inline-block !important;
}

/* MENIU vertical dropdown panel — white bg from live iqitthemeeditor */
.cbp-vertical-on-top #cbp-hrmenu1-ul {
    background: #fff !important;
    border: solid 1px #e3e3e3 !important;
    box-shadow: 6px 0 30px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Category sidebar (ps_categorytree) — match live collapse toggle styling */
.block-categories .collapse-icons,
.block-categories .collapse-icons .fa,
.block-categories .collapse-icons .fas,
.block-categories .collapse-icons [class*="fa-"] {
    color: #2e3a47 !important;
    font-size: 13px !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Global .fa uses display/visibility !important — restore theme toggle show/hide */
.block-categories .collapse-icons .remove {
    display: none !important;
}

.block-categories .collapse-icons[aria-expanded="true"] .add {
    display: none !important;
}

.block-categories .collapse-icons[aria-expanded="true"] .remove {
    display: inline-block !important;
}

/* Breadcrumb — live iqitthemeeditor styling (missing from local compiled theme cache) */
#wrapper .breadcrumb {
    background: #7bbd42 !important;
    display: block !important;
    text-align: left !important;
    padding: 0.384615rem !important;
    margin-top: -1.92308rem !important;
    margin-bottom: 1.92308rem !important;
    font-size: 0.846154rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: #fff !important;
}

#wrapper .breadcrumb .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0;
    justify-content: flex-start !important;
}

#wrapper .breadcrumb .row > .col,
#wrapper .breadcrumb .row > .col-auto {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

#wrapper .breadcrumb .row > .col {
    flex: 1 1 auto !important;
}

#wrapper .breadcrumb ol {
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#wrapper .breadcrumb li::after {
    color: #fff !important;
}

#wrapper .breadcrumb a,
#wrapper .breadcrumb a span,
#wrapper .breadcrumb li span {
    color: #fff !important;
}

#wrapper .breadcrumb a:hover,
#wrapper .breadcrumb a:hover span {
    color: #fff !important;
    opacity: 0.8;
}

/* ===== Client feedback fixes (2026-05-23) ===== */

/* Point 1: Top bar link styling (Noutati/Promotii live in megamenu bar; top bar optional) */
.wifiworld-topbar-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wifiworld-topbar-links ul > li {
    display: inline-block;
}

.wifiworld-topbar-links a {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    color: #2e3a47;
    text-transform: uppercase;
    padding: 0 8px;
}

.wifiworld-topbar-links a:hover {
    color: #7bbd42;
}

/* Point 2: Body and product title font (matches live at 13px rem base) */
body,
#wrapper,
.page-content,
#products {
    font-size: 13px !important;
}

.product-miniature .product-title,
.product-miniature .product-title a,
h3.product-title,
.product-title.h3 {
    color: #2e3a47 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

/* Point 3 & 9: Megamenu flush with content gutter */
.iqit-megamenu-container .cbp-horizontal > ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/*
 * Live megamenu bar is horizontal-only (NOUTATI at content gutter).
 * Staging/local iqitmegamenu ver_position=2 floats a ~97px MENIU column
 * before horizontal links — hide it in the bar; categories stay in sidebar.
 */
@media (min-width: 992px) {
    .iqit-megamenu-container .cbp-vertical-on-top {
        display: none !important;
    }

    .iqit-megamenu-container #cbp-hrmenu.cbp-horizontal {
        float: none !important;
        width: 100% !important;
    }
}

.iqit-megamenu-container .cbp-hrmenu-tab > a.nav-link {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Point 4: Smaller faceted search filters */
#search_filters .facet-title,
#search_filters .h6.facet-title,
#search_filters .title .h6 {
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

#search_filters .facet-label,
#search_filters .facet-label .magnitude {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

#search_filters .custom-checkbox,
#search_filters .custom-radio {
    min-height: 14px;
    min-width: 14px;
}

#search_filters .custom-checkbox span,
#search_filters .custom-radio span {
    width: 14px !important;
    height: 14px !important;
}

#search_filters .facet {
    margin-bottom: 10px !important;
}

#search_filters .collapse.in,
#search_filters .collapse.show {
    padding-top: 2px;
}

/* Point 7: Ensure pagination visible (disable infinite scroll UI) */
.pagination-wrapper,
.pagination-wrapper-bottom,
nav.pagination {
    display: block !important;
    visibility: visible !important;
}

#js-product-list.-infinity-loading::after {
    display: none !important;
}

/* Point 8: Hide stock qty if rendered elsewhere on product page */
.product-quantities,
.product-details .product-quantities,
.js-product-details .product-quantities {
    display: none !important;
}

/* Point 8: Accessories tab horizontal carousel spacing */
#accessories-tab .swiper-slide {
    height: auto;
}

#accessories-tab .swiper-button-prev,
#accessories-tab .swiper-button-next {
    color: #7bbd42;
}

/* ===== Mobile responsiveness (2026-05-23) ===== */

@media (max-width: 991.98px) {
    .wifiworld-topbar-links ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .wifiworld-topbar-links a {
        font-size: 11px;
        padding: 0 4px;
    }

    #header .header-nav > .container,
    #desktop-header-container,
    .iqit-megamenu-container,
    #inner-wrapper.container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .iqit-megamenu-container .cbp-hrmenu-tab > a.nav-link {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 12px !important;
    }

    #search_filters .facet-title,
    #search_filters .facet-label {
        font-size: 10px !important;
    }

    #products .product-miniature,
    #js-product-list .product-miniature {
        margin-bottom: 12px;
    }

    .product-info-row .col-product-image,
    .product-info-row .col-product-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-information {
        margin-top: 1rem;
    }

    #accessories-tab .swiper-button-prev,
    #accessories-tab .swiper-button-next {
        display: none;
    }
}

@media (min-width: 992px) {
    .product-info-row {
        display: flex;
        flex-wrap: nowrap;
    }

    .product-info-row .col-product-image {
        order: 1;
    }

    .product-info-row .col-product-info {
        order: 2;
    }
}

/* Homepage: category menu lives in header bar, not Elementor sidebar column */
body#index .elementor-element-7a8cd5i {
    display: none !important;
}

body#index .elementor-element-ibmoogp .elementor-element-7b5vuki {
    display: none !important;
}

body#index .elementor-element-ibmoogp .elementor-element-ttste98 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}