/*
Theme Name: Besa Child
Theme URI: https://elementor.thembay.com/besa/
Author: Thembay
Description: This is a child theme for Besa
Version: 1.0
Author URI: https://thembay.com/
Template: besa
Text Domain: besa-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */

/* Move main-filter before woof_products_top_panel and reduce top spacing */
.tbay-filter {
    display: flex;
    flex-direction: column;
}
.wp-block-woocommerce-checkout-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
    display: none;
}
.woocommerce-cart .cart-bottom{
    display: none;
}
.woocommerce-cart .cart-collaterals .cart_totals table th {
    width: 50%;
}
small.includes_tax {
    position: relative;
    left: -190px;
    width: 223%;
}
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message, .woocommerce .woocommerce-error {
    padding: 6px 20px;
}
.woocommerce .woocommerce-cart-form {
    padding: 10px 0px 10px 0px;
}
.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) {
    border-radius: 0%;
    width: 10%;
}
.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) .variable-item-span{
    border-radius: 0%;
}
/* Refined compare styling */
.tbay-compare-grid th,
.tbay-compare-grid td {
    padding: 20px;
}
.tbay-compare-grid .feature-column {
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #222;
}
.compare-product-card {
    position: relative;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    background: #fff;
    box-shadow: 0 15px 40px rgba(15, 20, 40, 0.12);
}
.compare-product-card .image-wrap {
    margin-bottom: 15px;
}
.compare-product-card .compare-price {
    color: #ff5a00;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}
.compare-product-card .compare-actions .add_to_cart_wrap .button {
    width: 100%;
    background: #ff5a00;
    border: none;
    border-radius: 30px;
    color: #fff;
    padding: 12px 20px;
    text-transform: uppercase;
    font-weight: 600;
}
.compare-product-card .compare-actions .add_to_cart_wrap .button:hover {
    opacity: .9;
}
.compare-product-card .remove a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff5f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5a00;
    box-shadow: 0 8px 18px rgba(255, 90, 0, 0.2);
}
.compare-product-card .remove i.tb-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    color: inherit;
}
.tbay-compare-grid .compare-row:nth-child(even) td {
    background: #fcfcfc;
}
.tbay-compare-grid .compare-row.different td {
    background: rgba(255, 90, 0, 0.06);
}
.tbay-compare-grid .compare-row td {
    text-align: center;
}
.tbay-compare-grid .stock.in-stock {
    color: #21a243;
    font-weight: 600;
}
.tbay-compare-grid .compare-row td .woocommerce-product-rating {
    justify-content: center;
}
.tbay-compare-grid .compare-row td .woocommerce-product-rating .star-rating {
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .tbay-compare-grid,
    .tbay-compare-grid tbody,
    .tbay-compare-grid th,
    .tbay-compare-grid td,
    .tbay-compare-grid tr {
        display: block;
    }
    .tbay-compare-grid .feature-column,
    .tbay-compare-grid .product-column {
        width: 100% !important;
    }
    .compare-product-card {
        margin-bottom: 15px;
    }
}

.main-filter.d-flex.justify-content-end {
    order: 1;
    margin-top: 10px;
    top: 0 !important;
    position: relative;
}

.woof_products_top_panel {
    order: 0;
    margin-top: 10px !important;
}

/* When woof_products_top_panel is visible, adjust main-filter margin */
.woof_products_top_panel:not([style*="display: none"]) ~ .main-filter.d-flex.justify-content-end,
.tbay-filter:has(.woof_products_top_panel:not([style*="display: none"])) .main-filter.d-flex.justify-content-end {
    margin-top: -34px;
}

/* Hide shipping options section on checkout page */
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #shipping_method,
.woocommerce-checkout .woocommerce-shipping-methods,
.woocommerce-checkout h3:contains("Shipping options"),
.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-totals,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-totals {
    display: none !important;
}

/* Hide shipping options heading and methods on checkout */
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals.shipping {
    display: none !important;
}

/* Hide shipping methods list on checkout page */
.woocommerce-checkout fieldset#shipping-option {
    display: none;
}
@media (max-width: 768px) {
    small.includes_tax {
        width: 100%;
        left: 0px;
    }
    .cart_totals .wc-proceed-to-checkout {
        gap: 0px;
        margin: 0;
        padding: 0;
    }
    .product-block.vertical-v2 .product-content {
        flex-direction: column;
    }
    .product-block.vertical-v2 .product-content .block-inner {
        max-width: 100%;
    }
    .product-block.vertical-v2 .product-content .caption {
        max-width: 100%;
    }
    .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
        display: none;
    }
    /* Hide 2 child elements of payment method on mobile */
    .wc-block-components-form .wc-block-components-checkout-step:first-of-type {
        display: none !important;
    }
    .wc-block-components-form .wc-block-components-checkout-step {
        margin-bottom: 0px !important;
    }
    .wc-block-checkout__actions {
        padding-top: 0px !important;
    }
}

/* Social Media Icons Shortcode - Right to Left Horizontal Layout for Mobile */
.besa-social-icons-mobile {
    display: none; /* Desktop par hide */
}

.tbay-quick-view {
    display: none;
}
#yith-woocompare-preview-bar {
    background: rgb(118 13 73 / 80%);
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button{
    color: #760d49;
}
.yith-woocompare-popup-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    background: rgba(12, 14, 22, 0.7);
    padding: 40px 60px;
    box-sizing: border-box;
    overflow-y: auto;
}
body.yith-woocompare-popup-open {
    overflow: hidden;
}
body.yith-woocompare-popup {
    background: transparent !important;
}
body.yith-woocompare-popup #yith-woocompare {
    padding: 0 !important;
}
body.yith-woocompare-popup, .yith-woocompare-table-scroll-wrapper {
    padding: 0% !important;
}
img.attachment-yith-woocompare-image.size-yith-woocompare-image {
    height: 130px;
}
.yith-woocompare-table-wrapper {
    background: #fff !important;
    width: min(1250px, 100%);
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 35px 80px rgba(9, 12, 32, 0.4);
    padding: 38px 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.yith-woocompare-table-wrapper .dataTables_scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.yith-woocompare-table-wrapper .dataTables_scrollHead {
    flex: 0 0 auto;
}
.yith-woocompare-table-wrapper .dataTables_scrollBody {
    flex: 1;
    overflow: auto !important;
}
.yith-woocompare-table-wrapper #yith-woocompare,
.yith-woocompare-table-wrapper table.compare-list {
    width: 100% !important;
}
.yith-woocompare-table-wrapper table.compare-list {
    border-spacing: 0;
    background: #fff;
    border: none;
}
.yith-woocompare-table-wrapper table.compare-list th,
.yith-woocompare-table-wrapper table.compare-list td {
    border: 1px solid #edf0f5;
    padding: 18px;
    vertical-align: top;
}
.yith-woocompare-table-wrapper table.compare-list th {
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    background: #f8f9fb;
}
.yith-woocompare-table-wrapper table.compare-list td {
    font-size: 15px;
}
.yith-woocompare-table-wrapper table.compare-list .product_info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.yith-woocompare-table-wrapper table.compare-list .image-wrap {
    margin-bottom: 10px;
}
.yith-woocompare-table-wrapper table.compare-list .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    background: var(--tbay-primary-color, #6a1b41);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 28px;
    box-shadow: 0 6px 14px rgba(107, 27, 65, 0.25);
}
.yith-woocompare-table-wrapper table.compare-list .button:hover {
    opacity: .92;
}
.yith-woocompare-popup-container .yith-woocompare-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f4f5f7;
    border-radius: 999px;
    color: #0d0d0d;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 18px;
}
.yith-woocompare-popup-container .yith-woocompare-table-scrollWrapper {
    padding: 0;
}
.yith-woocompare-table-wrapper .yith-woocompare-table-scrollWrapper {
    height: 100%;
}
.yith-woocompare-popup-container .dataTables_scroll {
    overflow: hidden;
}
.yith-woocompare-popup-container .dataTables_scrollBody {
    overflow: auto !important;
    max-height: calc(85vh);
}
.yith-woocompare-popup-container .dataTables_scrollBody::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.yith-woocompare-popup-container .dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: #c5c7d1;
    border-radius: 10px;
}
.yith-woocompare-table-wrapper h1,
.yith-woocompare-table-wrapper h2 {
    margin-top: 0;
}
#besa-wcfm-info-vendor-wrapper.has-wcfm-enquiry{
    padding: 0px !important;
}
@media (max-width: 768px) {
    .yith-woocompare-table-wrapper {
        padding: 20px;
        width: 100%;
    }
    .yith-woocompare-popup-container {
        padding: 20px;
    }
}
.yith-woocompare-popup-container .dataTables_scrollHead table {
    width: 100% !important;
}
.yith-woocompare-table-wrapper #yith-woocompare-table_wrapper {
    margin: 0 !important;
    width: 100% !important;
}
.singular-shop div.product .product_meta {
    padding-top: 0px;
    margin-top: 14px;
}
@media (max-width: 768px) {
    .woocommerce-wishlist #yith-wcwl-form {
        position: relative;
        top: 50px;
    }
    .wishlist_table.mobile .product-add-to-cart .add-cart a {
        background: #760e49 !important;
        justify-content: center;
    }
    .wishlist_table.mobile li table.additional-info {
        display: none;
    }
    
    
    .archive-shop>.tbay-filter .SumoSelect {
        background: #9e9e9e30;
        border-radius: 20px !important;
    }
    p.CaptionCont.SelectBox.orderby span::before {
        content: "Sort by : ";
        display: inline-block;
        margin-right: 2px;
        color: #000;
        font-weight: 600;
    }

    .archive-shop>.tbay-filter .woocommerce-ordering {
        left: 29%;
        bottom: 20px;
        width: 70%;
    }
    button.button-filter-mobile.hidden-lg.hidden-md {
        position: relative;
        top: 30px;
        left: 6px;
    }
    .besa-social-icons-mobile {
        display: block;
    }
    
    .besa-social-icons-mobile .social-icons-list {
        display: flex;
        justify-content: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 0px;
    }
    
    .besa-social-icons-mobile .social-icons-list li {
        display: inline-flex;
        margin: 0;
        padding: 0;
    }
    
    .besa-social-icons-mobile .social-icons-list .social-icon {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: inherit;
        padding: 6px 10px;
        transition: all 0.3s ease;
    }
    
    .besa-social-icons-mobile .social-icons-list .social-icon img {
        width: 25px;
        height: 25px;
        object-fit: contain;
        display: block;
    }
    
    .besa-social-icons-mobile .social-icons-list .social-icon .social-text {
        font-size: 12px;
    }
    
    .besa-social-icons-mobile .social-icons-list .social-icon:hover {
        opacity: 0.8;
    }
    
    .besa-social-icons-mobile .social-icons-list .social-icon:hover img {
        transform: scale(1.1);
    }
    /* Hide dots and show arrows on mobile for all sliders */
    .owl-carousel.slick-slider .slick-dots,
    .slick-slider .slick-dots,
    .owl-carousel .slick-dots,
    .slick-dots {
        display: none !important;
    }
    
    /* Show arrows on mobile - Force arrows to be visible */
    .owl-carousel.slick-slider .slick-arrow,
    .slick-slider .slick-arrow,
    .owl-carousel .slick-arrow,
    .slick-arrow {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .owl-carousel.slick-slider .slick-prev,
    .slick-slider .slick-prev,
    .owl-carousel .slick-prev,
    .slick-prev {
        left: 10px !important;
        z-index: 2;
    }
    
    .owl-carousel.slick-slider .slick-next,
    .slick-slider .slick-next,
    .owl-carousel .slick-next,
    .slick-next {
        right: 10px !important;
        z-index: 2;
    }

    /* Ensure arrows are always visible (no hover needed) */
    .slick-slider .slick-arrow,
    .owl-carousel .slick-arrow {
        opacity: 1 !important;
        filter: none !important;
        transition: none !important;
    }
    #yith-woocompare-preview-bar {
        position: fixed;
        bottom: 50px;
    }
    .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
        font-size: 12px;
        padding: 0px;
    }
    
    .wc-block-components-form .wc-block-components-checkout-step {
        padding-top: 0px !important;
    }
    .wc-block-components-form .wc-block-checkout__order-notes.wc-block-components-checkout-step {
        margin-bottom: 0px !important;
    }
}

/* Custom compare table layout */
.tbay-compare-table .tbay-compare-heading {
    margin-bottom: 25px;
}
.tbay-compare-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}
.compare-product-card .compare-price {
    display: flex;
    gap: 10px;
    text-align: center;
    justify-content: center;
}
.tbay-compare-grid-wrapper::-webkit-scrollbar {
    height: 8px;
}
.tbay-compare-grid-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.tbay-compare-grid {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    --feature-col: 220px;
    --compare-columns: 3;
    --product-col-min: 260px;
    min-width: calc(var(--feature-col, 220px) + var(--compare-columns, 3) * var(--product-col-min, 260px));
}
.tbay-compare-grid th,
.tbay-compare-grid td {
    border: 1px solid #edf0f5;
    padding: 18px;
    vertical-align: top;
    background: #fff;
}
.tbay-compare-grid thead th {
    background: #f9fafc;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #111;
}
.tbay-compare-grid .product-column {
    width: calc((100% - var(--feature-col, 220px)) / var(--compare-columns, 3));
}
.tbay-compare-grid .feature-column {
    width: var(--feature-col, 220px);
    background: #fbfbfb;
    font-weight: 600;
}
.compare-product-card {
    position: relative;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 28px 24px 32px;
    text-align: center;
    background: #fff;
    box-shadow: 0 22px 55px rgba(14, 18, 40, 0.12);
    min-height: 100%;
}
.compare-product-card .image-wrap {
    margin-bottom: 18px;
}
.compare-product-card .product_title {
    font-size: 18px;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compare-product-card .compare-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff5a00;
    margin-bottom: 15px;
}
.compare-product-card .compare-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.compare-product-card .compare-actions .add_to_cart_wrap .button {
    width: 100%;
    background: #760d49;
    border: none;
    border-radius: 30px;
    color: #fff;
    padding: 12px 20px;
    text-transform: uppercase;
    font-weight: 600;
}
.compare-product-card .compare-actions .add_to_cart_wrap .button:hover {
    opacity: .92;
}
.compare-product-card .compare-actions .add_to_cart_wrap .button i.tb-icon.tb-icon-zt-shopping-cart {
    margin-right: 6px;
}
.compare-product-card .remove {
    position: absolute;
    top: 10px;
    right: 11px;
}
.compare-product-card .remove a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff5f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5a00;
    box-shadow: 0 8px 18px rgba(255, 90, 0, 0.2);
}
.compare-product-card .remove a:hover {
    background: #ff5a00;
    color: #fff;
}
.tbay-compare-grid .compare-row:nth-child(even) {
    background: #fcfcfc;
}
.tbay-compare-grid .compare-row.different {
    background: rgba(118, 14, 73, 0.04);
}
.tbay-compare-grid .feature-label {
    font-weight: 600;
}
.tbay-compare-grid .feature-value {
    text-align: center;
}
@media (max-width: 991px) {
    .yith-woocompare-popup-container {
        padding: 20px;
    }
    .yith-woocompare-table-wrapper {
        padding: 24px;
        border-radius: 18px;
    }
    .compare-product-card {
        padding: 20px 18px 24px;
        border-radius: 16px;
    }
    .compare-product-card .product_title {
        font-size: 16px;
    }
    .compare-product-card .compare-price {
        font-size: 14px;
    }
    .compare-product-card .add_to_cart_wrap .button {
        font-size: 12px;
        padding: 10px 16px;
    }
    .tbay-compare-grid {
        min-width: calc(var(--feature-col, 200px) + min(var(--compare-columns, 3), 2) * var(--product-col-min, 240px));
    }
}

@media (max-width: 576px) {
    .yith-woocompare-popup-container {
        padding: 12px;
    }
    .yith-woocompare-table-wrapper {
        padding: 16px;
        border-radius: 16px;
    }
    .compare-product-card {
        padding: 16px 12px 18px;
    }
    .compare-product-card .product_title {
        font-size: 15px;
    }
    .compare-product-card .compare-price {
        font-size: 13px;
    }
    .compare-product-card .add_to_cart_wrap .button {
        font-size: 11px;
        padding: 9px 12px;
    }
    .compare-product-card .add_to_cart_wrap .button i {
        display: none;
    }
    .tbay-compare-grid {
        min-width: calc(var(--feature-col, 170px) + min(var(--compare-columns, 3), 2) * 200px);
    }
}

@media (max-width: 767px) {
    .tbay-compare-grid {
        min-width: calc(var(--feature-col, 200px) + var(--compare-columns, 3) * var(--product-col-min, 240px));
    }
    .tbay-compare-grid tr {
        display: grid;
        grid-template-columns: var(--feature-col, 200px) repeat(var(--compare-columns, 3), var(--product-col-min, 240px));
        width: max-content;
    }
    .tbay-compare-grid .feature-column,
    .tbay-compare-grid .product-column,
    .tbay-compare-grid th,
    .tbay-compare-grid td {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
.wcfmmp-product-geolocate-search-form div.wcfm_radius_slidecontainer {
        width: 70% !important;
    }
}

.yith-wcwl-add-to-wishlist-button:is(button):not(.yith-wcwl-theme-button-style):hover {
    background-color: #fff;
}

/* Continue Shopping Button */
.cart_totals .wc-proceed-to-checkout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.wc-proceed-to-checkout .continue-shopping-button {
    text-align: start;
    background: transparent !important;
    color: #b20062;
    border-radius: 6px;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.wc-proceed-to-checkout .continue-shopping-button:hover {
    background-color: rgba(178, 0, 98, 0.08);
    border-color: rgba(178, 0, 98, 0.3);
    color: #880049;
}

/* Hide wishlist icon for logged-out users */
body:not(.logged-in) .button-wishlist,
body:not(.logged-in) .device-wishlist-header,
body:not(.logged-in) .tbay-wishlist,
body:not(.logged-in) .yith-wcwl-add-to-wishlist,
body:not(.logged-in) .yith-wcwl-add-to-wishlist-button {
    display: none !important;
}

/* Change "Discount" to "Promotion Applied" using CSS */
.wc-block-components-totals-discount .wc-block-components-totals-item__label,
.cart-discount th,
.woocommerce-checkout-review-order-table .cart-discount th {
    font-size: 0 !important;
}

.wc-block-components-totals-discount .wc-block-components-totals-item__label::before,
.cart-discount th::before,
.woocommerce-checkout-review-order-table .cart-discount th::before {
    content: "Promotion Applied";
    font-size: 1rem;
}

/* Hide discount description */
.wc-block-components-totals-item__description {
    display: none !important;
}

/* Checkout action buttons styling - Only for mobile (below 786px) */
@media (max-width: 786px) {
    body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
        width: 100%;
    }
    .wc-block-components-checkout-return-to-cart-button {
        left: -116px;
    }
    .wc-block-components-form .wc-block-components-checkout-step:after {
        opacity: 0 !important;
    }
    .wc-block-checkout__sidebar {
        margin-bottom: 0px !important;
    }
    .wc-block-checkout__terms.wc-block-checkout__terms--with-separator {
        padding-top: 20px !important;
    }
    .wc-block-checkout__terms {
        margin-bottom: 16px !important;
    }
    .woocommerce-checkout body:not(.tbay-homepage-demo) #main-container {
        padding-bottom: 0px !important;
    }
}