/*
Theme Name: Shoptimizer Child Theme
Theme URI:
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI:
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/**
 * Brand Image Overlay on Product Gallery
 */
#commercegurus-pdp-gallery-wrapper {
    position: relative;
}

.brand-image-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 999;
    max-width: 140px;
    padding: 5px;
    border-radius: 4px;
}

.brand-image-overlay img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 140px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .brand-image-overlay {
        top: 10px;
        right: 10px;
        max-width: 100px;
        padding: 8px;
    }

    .brand-image-overlay img {
        max-width: 100px;
    }
}

/**
 * Brand Image Overlay on Product Archive Pages
 */
.woocommerce ul.products li.product .col-image,
.woocommerce-page ul.products li.product .col-image {
    position: relative;
}

.brand-image-overlay-archive {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 99;
    max-width: 80px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    border-radius: 3px;
}

.brand-image-overlay-archive img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 80px;
}

/* Mobile responsive for archive */
@media (max-width: 768px) {
    .brand-image-overlay-archive {
        top: 8px;
        right: 8px;
        max-width: 60px;
        padding: 5px;
    }

    .brand-image-overlay-archive img {
        max-width: 60px;
    }
}

/**
 * Chanel Product Customizations
 */

/* Hide stock status for Chanel products */
.chanel-product .stock,
.chanel-product .out-of-stock,
.chanel-product .in-stock {
    display: none !important;
}

/* Hide notify me button for Chanel products */
.chanel-product .xoo-wsc-notify-btn,
.chanel-product button[name="xoo-wsc-notify"] {
    display: none !important;
}

/* Hide CommerceKit add to cart form for Chanel products */
.chanel-product .commercekit-pdp-simple-form {
    display: none !important;
}

/* Hide CommerceKit wishlist button for Chanel products */
.chanel-product .ckwtl-button2 {
    display: none !important;
}

/* Hide default add to cart button for Chanel products */
.chanel-product .cart .single_add_to_cart_button:not(.chanel-quote-button) {
    display: none !important;
}

/* Hide empty add to cart form if button text is empty */
.chanel-product form.cart button:empty {
    display: none;
}

/* Custom Quote Button Styling */
.chanel-quote-button-wrapper {
    margin: 20px 0;
}

.chanel-quote-button {
    width: 100%;
    display: block;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.chanel-quote-button:hover {
    opacity: 0.9;
}

/* Ensure button matches add to cart styling */
.single-product .chanel-quote-button {
    margin-bottom: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chanel-quote-button-wrapper {
        margin: 15px 0;
    }
}

/**
 * Mobile Header - WLS Search Visibility
 * Make WLS search trigger visible on mobile and position before cart
 */
@media (max-width: 992px) {
    /* Override parent theme that hides search on mobile */
    .main-header .site-search {
        display: block !important;
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    /* Ensure search button has proper height */
    .main-header .site-search button,
    .main-header .site-search .wls-search-trigger {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust cart position to make room for search icon */
    .main-header .site-header-cart {
        right: 15px;
    }

    /* If My Account icon is enabled, adjust positions accordingly */
    body.display-myaccount-icon .main-header .site-search {
        right: 105px;
    }

    body.display-myaccount-icon .main-header .site-header-cart {
        right: 60px;
    }

    body.display-myaccount-icon .main-header .shoptimizer-myaccount {
        right: 15px;
    }
}

/* Licznik stron */

.page-numbers {
font-size: 18px;
}

.page-numbers .current {
font-weight: 800;
}
