/***************************************************
 * TEMPLATE NAME: Techmarket JW glue
 * VERSION      : 1.0
 ***************************************************/

/* ------------------------------------------------------------------ */
/* Base (all viewports)                                               */
/* ------------------------------------------------------------------ */
#noscriptAlert { padding: 1rem; background: #fff3cd; }

/* SIP only (layout.php data-theme-version=1). DES keeps pack Rubik. */
body[data-theme-version="1"],
body[data-theme-version="1"] button,
body[data-theme-version="1"] input,
body[data-theme-version="1"] textarea,
body[data-theme-version="1"] select {
    font-family: "Lexend", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.button:not(.button-not-glass) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.button:not(.button-not-glass):hover, .button:not(.button-not-glass):focus {
    background-color: #1F2E4F !important;
    box-shadow: none !important;
}
.wc-proceed-to-checkout .button {display: inline-block; min-width: 100px;}

.site-branding img { max-height: 50px !important; width: auto !important; }
.site-header .custom-logo-link span { color: #fff; font-size: 22px; font-weight: 500; }
.sidebar-account { margin-bottom: 1.5rem; }
#navbar-search-modal .modal-dialog { width: 800px; max-width: 100%; }
.page-link { border: none; }
.banner.text-in-right .banner-bg {padding-left: 2em;}

#secondary .widget_product_categories ul.product-categories li.product_cat ul li.cat-item ul.children ul.children {
    padding-left: 1.2em;
    padding-top: 0.2em;
    padding-bottom: 0.4em;
}

/* Variant picker uses pack table.variations; keep qty + Add to cart on one row (fullwidth cart chrome). */
.single-product .product-actions form.cart.variations_form {
    width: 100%;
}
.single-product .product-actions form.cart.variations_form table.variations,
.single-product .product-actions form.cart.variations_form .single_variation_wrap {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}
.single-product .product-actions form.cart.variations_form table.variations {
    margin-bottom: 1em;
    border: 0;
}

.yamm-content .kc_single_image { text-align: right; }
.yamm-content .kc_single_image img { max-width: 30%; display: inline-block; }
.blog-calendar-table table, #calendar { width: 100%; }
#calendar th, #calendar td { padding: 0.5rem; text-align: center; border: 1px solid #eee; }

/* .products .product .price { padding-bottom: 15px; position: relative; }
.products .product .price del { display: block; position: absolute; bottom: 0; width: 100%; text-align: center; font-size: 0.65em !important; } */
.products .product .woocommerce-product-details__short-description { font-size: 0.857em; line-height: 1.4; color: #7a7a7a; margin: 0 1em 0.5em; max-height: 2.8em; overflow: hidden;}

/* home-features: pack widget stacks items vertically + icon beside text; force horizontal row with icon above text */
.widget_techmarket_features_widget .features-list .features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    padding: 1.5em 0;
}
.widget_techmarket_features_widget .features-list .features .feature {
    flex: 1 1 0;
    max-width: 100%;
    margin: 0;
    padding: 1em 1.25em;
    border-bottom: none;
    border-left: 1px solid #ddd;
}
.widget_techmarket_features_widget .features-list .features .feature:first-child {
    border-left: none;
}
.widget_techmarket_features_widget .features-list .features .feature + .feature {
    border-left: 1px solid #ddd;
    padding-top: 1em;
}
.widget_techmarket_features_widget .features-list .features .feature .media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}
.widget_techmarket_features_widget .features-list .features .feature .media .feature-icon {
    margin: 0 0 0.5em 0 !important;
}
.widget_techmarket_features_widget .features-list .features .feature .media .media-body,
.widget_techmarket_features_widget .features-list .features .feature .feature-text {
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
}

.checkout .page {display: none;}
.checkout .page.active {display: block;}

.footer-logo img { max-height: 28px; width: auto; }
body[data-theme-version="1"] .footer-widgets { border-top: 1px solid #bebebe; margin-top: 30px; padding-top: 30px; }
body[data-theme-version="1"] .footer-widgets .columns:last-child { border-left: none; }
.site-footer .brands-carousel { margin-bottom: 0; }

.fa-tiktok:before {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* ------------------------------------------------------------------ */
/* max-width: 575px — phone                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 575px) {
    .widget_techmarket_features_widget .features-list .features {
        flex-direction: column;
    }
    .widget_techmarket_features_widget .features-list .features .feature {
        flex: 0 0 100%;
        max-width: 100%;
        border-left: none !important;
        border-top: none;
        border-bottom: 1px solid #ddd;
        padding: 1em 0;
    }
    .widget_techmarket_features_widget .features-list .features .feature:last-child {
        border-bottom: none;
    }
    .widget_techmarket_features_widget .features-list .features .feature:nth-child(n+3) {
        border-top: none;
    }
}

/* ------------------------------------------------------------------ */
/* max-width: 1024px — handheld / tablet                              */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    /* SIP header-v4 search is an icon that opens #navbar-search-modal.
       DES header-v5 keeps the inline field, so do not shrink that slot. */
    .widget_techmarket_features_widget .features-list .features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .widget_techmarket_features_widget .features-list .features .feature {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .widget_techmarket_features_widget .features-list .features .feature:nth-child(odd) {
        border-left: none;
    }
    .widget_techmarket_features_widget .features-list .features .feature:nth-child(n+3) {
        border-top: 1px solid #ddd;
    }
    .site-header.header-v4 .handheld-header .site-search {
        flex-grow: 0;
        flex-basis: auto;
        max-width: 50px;
        margin-left: auto;
        padding-left: 0;
        padding-right: 8px;
        text-align: center;
    }
    .site-header.header-v4 .handheld-header-search-link {
        background: transparent;
        border: 0;
        padding: 0;
        line-height: 1;
        color: #fff;
    }
    .site-header.header-v4 .handheld-header-search-link i {
        font-size: 20px;
        color: #fff;
        text-shadow: #fff 0 1px 0;
    }
    #navbar-search-modal .search-categories {
        display: none;
    }
    .checkout > .row { display: block; }
    .checkout > .row > .content-area, .checkout > .row > .cart-collaterals { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* min-width: 992px — account / order layout                          */
/* ------------------------------------------------------------------ */
@media (min-width: 992px) {
    .sidebar-account { width: 25%; float: left; }
    .woocommerce-order .content-area,
    .woocommerce-account .content-area { width: 72%; float: right; }
    .checkout .page {padding-right: 15px;}
    form.woocommerce-checkout.checkout {margin-right: 0 !important; margin-left: 0 !important;}
}

/* ------------------------------------------------------------------ */
/* min-width: 1025px — desktop header                                 */
/* ------------------------------------------------------------------ */
@media (min-width: 1025px) {
    .site-header.header-v4 .navbar-search-slot {
        position: relative;
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .site-header.header-v4 .navbar-search-toggle {
        background: transparent;
        border: 0;
        padding: 0;
        min-width: 0;
        line-height: 1;
        color: #fff;
    }
    .site-header.header-v4 .navbar-search-toggle i {
        font-size: 20px;
        color: #fff;
    }

    .top-bar .col-full {flex-direction: row;}
}

/* ------------------------------------------------------------------ */
/* min-width: 1200px — homepage-v6 departments / full-width primary   */
/* ------------------------------------------------------------------ */
@media (min-width: 1200px) {
    /* Home (homepage-v6) pack CSS forces the departments menu open. Toggle like other pages. */
    .page-template-template-homepage-v6 .header-v4 .departments-menu > .dropdown-menu {
        display: none;
    }
    .page-template-template-homepage-v6 .header-v4 .departments-menu > .dropdown-menu.show {
        display: block;
    }
    .page-template-template-homepage-v6 #content .home-no-banner-sidebar #primary {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body[data-theme-version="1"] .footer-widgets { border-top: none; margin-top: 0; padding-top: 0; }
    body[data-theme-version="1"] .site-footer .footer-widgets-block .footer-widgets  { padding-left: 30px; }
    body[data-theme-version="1"] .footer-widgets .columns:first-child { border-left: 1px solid #bebebe; padding-left: 30px; }

    /* Footer WhatsApp form: title/desc | input+button as two columns */
    body[data-theme-version="1"] .footer-newsletter .media-body > .clearfix {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 1.5em;
    }
    body[data-theme-version="1"] .footer-newsletter .newsletter-header,
    body[data-theme-version="1"] .footer-newsletter .newsletter-body {
        float: none;
    }
    body[data-theme-version="1"] .footer-newsletter .newsletter-header {
        flex: 1 1 0;
        min-width: 0;
        margin-right: 0;
        text-align: left;
    }
    body[data-theme-version="1"] .footer-newsletter .newsletter-body {
        flex: 1 1 0;
        min-width: 0;
    }
    body[data-theme-version="1"] .footer-newsletter .newsletter-body form {
        display: flex;
        align-items: stretch;
        width: 100%;
    }
    body[data-theme-version="1"] .footer-newsletter input[type="text"] {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }
}

/* ------------------------------------------------------------------ */
/* 1400px–1589px — header-v5 primary-nav wrap gap                     */
/* ------------------------------------------------------------------ */
/* landing-page-v1 header-v5 has no primary-nav basis from 1400px to 1589px, so the menu wraps under the logo. */
@media (min-width: 1400px) and (max-width: 1589px) {
    .site-header.header-v5 .primary-navigation {
        flex: 0 0 50%;
        max-width: 50%;
        width: auto;
    }
}

/* ------------------------------------------------------------------ */
/* DES only (layout-v2.php data-theme-version=2)                      */
/* ------------------------------------------------------------------ */
body[data-theme-version="2"] .pagination .page-numbers li .page-numbers.current,
body[data-theme-version="2"] .woocommerce-pagination .page-numbers li .page-numbers.current,
body[data-theme-version="2"] .site-content .landing-v1-slider .slider-1,
body[data-theme-version="2"] #secondary .widget.widget_price_filter .price_slider .ui-slider-range {
    background-color: #ec1c24;
}
body[data-theme-version="2"] #secondary .widget.widget_price_filter .price_slider .ui-slider-handle {
    background: #ec1c24;
}
body[data-theme-version="2"] #secondary .widget.widget_layered_nav ul li a:hover:before,
body[data-theme-version="2"] #secondary .widget.widget_layered_nav ul li.chosen a:before {
    color: #ec1c24;
}

body[data-theme-version="2"] .site-header.header-v5,
body[data-theme-version="2"] .header-v5 .sticky-wrapper .techmarket-sticky-wrap.stuck {
    background-color: #fff;
    color: #242424;
    box-shadow: 0 1px 0 #e5e5e5;
}
body[data-theme-version="2"] .site-header.header-v5 .navbar-primary .nav > li > a,
body[data-theme-version="2"] .site-header.header-v5 .primary-navigation .nav > li > a,
body[data-theme-version="2"] .site-header.header-v5 .handheld-navigation .btn,
body[data-theme-version="2"] .site-header.header-v5 .handheld-navigation button,
body[data-theme-version="2"] .site-header.header-v5 .handheld-header-cart-link,
body[data-theme-version="2"] .site-header.header-v5 .header-wishlist .nav-link,
body[data-theme-version="2"] .site-header.header-v5 .departments-menu button,
body[data-theme-version="2"] .site-header.header-v5 .site-branding .cls-1,
body[data-theme-version="2"] .site-header.header-v5 .site-branding .cls-2 {
    color: #242424;
    fill: #242424;
}

/* Slick rows blows a package column to thousands of px. Keep each column a quarter of the row. */
body[data-theme-version="2"] .products-4-column-widgets > .section-landscape-products-widget-carousel {
    flex: 1 1 0;
    min-width: 0;
    max-width: 25%;
    overflow: hidden;
}
@media (max-width: 1199px) {
    body[data-theme-version="2"] .products-4-column-widgets > .section-landscape-products-widget-carousel {
        flex-basis: 50%;
        max-width: 50%;
    }
}
@media (max-width: 575px) {
    body[data-theme-version="2"] .products-4-column-widgets > .section-landscape-products-widget-carousel {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* Pack sizes .section-brands .item at 50%. DES carousel is 1 brand per slide. */
body[data-theme-version="2"] .section-products-carousel-widget-with-tabs .section-brands .brands .item {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 1024px) {
    body[data-theme-version="2"] .banners.home4-banner.techmarket-banner > .row {
        flex-direction: column;
    }
    body[data-theme-version="2"] .home4-banner.techmarket-banner .banner {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* About team: WhatsApp contact cue when bgal_url is set */
.team-member-wrapper .team-member-contactable > a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.team-member-wrapper .team-member-wa {
    display: inline-block;
    margin-left: 0.35em;
    color: #25d366;
    font-size: 0.85em;
    vertical-align: middle;
}

/* About clients: 4-col row, 1:1 image */
.about-clients {
    margin: 2em 0 3em;
}
.about-clients .about-clients-title {
    margin: 0 0 1.25em;
}
.about-clients .about-client-item {
    margin-bottom: 1.5em;
    text-align: center;
}
.about-clients .about-client-item > a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.about-clients .about-client-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}
.about-clients .about-client-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.about-clients .about-client-name {
    margin-top: 0.75em;
    font-size: 0.9em;
}
