/*
Theme Name: Voip Child
Theme URI: https://cognitocoms.co.za/
Description: Child theme for Voip theme
Author: Cognito Communications
Template: voip
Version: 1.0
*/

/* Product image popup fix */
#custom-product-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

#custom-product-lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.custom-lightbox-close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 1000000;
}

/* Force clean 3-column product layout */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 30px !important;
    row-gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Product images */
.woocommerce ul.products li.product img {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Buttons below images */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
    position: static !important;
    display: block !important;
    width: calc(100% - 24px) !important;
    margin: 12px auto 14px auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #0b78b7 !important;
    color: #ffffff !important;
    text-align: center !important;
}

/* Disable hover overlay */
.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product:hover img,
.woocommerce ul.products li.product:hover .product_thumbnail,
.woocommerce ul.products li.product:hover .product_thumbnail img {
    opacity: 1 !important;
    filter: none !important;
}

.woocommerce ul.products li.product .overlay,
.woocommerce ul.products li.product .product-overlay,
.woocommerce ul.products li.product .product_thumbnail:before,
.woocommerce ul.products li.product .product_thumbnail:after,
.woocommerce ul.products li.product .image:before,
.woocommerce ul.products li.product .image:after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Tablet */
@media (max-width: 980px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Restore bullet points */
.woocommerce div.product .woocommerce-Tabs-panel ul,
.woocommerce div.product .entry-content ul,
.single-product .entry-content ul,
.single-product .summary ul {
    list-style: disc !important;
    padding-left: 25px !important;
}

.woocommerce div.product .woocommerce-Tabs-panel li,
.woocommerce div.product .entry-content li,
.single-product .entry-content li,
.single-product .summary li {
    display: list-item !important;
    margin-bottom: 6px !important;
}

/* Hide cart icon */
header a[href*="cart"],
.header a[href*="cart"],
.site-header a[href*="cart"],
nav a[href*="cart"],
.cart,
.cart-icon,
.cart-contents,
.shopping-cart,
.widget_shopping_cart,
.mini-cart,
.minicart,
.woo-cart,
.wcmenucart,
.fa-shopping-cart,
.fa-shopping-bag,
.icon-cart,
.icon-bag {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Force hide Voip theme cart icon area */
.header-info,
.header-info .cart,
.header-info .shopping-cart,
.header-info .cart-icon,
.header-info .widget_shopping_cart,
.header-info a[href*="cart"],
.right-header,
.right-header .cart,
.right-header a[href*="cart"],
.top-header-right .cart,
.top-header-right a[href*="cart"],
nav.main_menu a[href*="cart"],
.menu-main-menu-container a[href*="cart"],
a[href*="/cart/"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}/* Hide remaining cart/bag icon in Voip header */
header .fa-shopping-bag,
header .fa-shopping-cart,
header .icon-basket,
header .icon-bag,
header .icon-cart,
header .lnr-cart,
header .pe-7s-cart,
header .cart-header,
header .header-cart,
header .cart_area,
header .cart-area,
header .cart_box,
header .cart-box,
header .shopping_bag,
header .shopping-bag,
header .shopping_cart,
header .shopping-cart,
header .widget_shopping_cart,
header .cart_dropdown,
header .cart-dropdown,
header .shopping_cart_dropdown,
header .shopping-cart-dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Hide the empty white cart dropdown */
header .widget_shopping_cart,
header .cart-dropdown,
header .shopping_cart_dropdown,
header .shopping-cart-dropdown {
    display: none !important;
}
/* Single product external quote button */
.cognito-external-product-button-wrap {
    margin: 25px 0 !important;
}

.cognito-external-product-button {
    background: #0b78b7 !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    display: inline-block !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    text-align: center !important;
}

.cognito-external-product-button:hover {
    background: #095f91 !important;
    color: #ffffff !important;
}