/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Hide product short description in the grid */
.product-grid-item .wd-product-desc,
.product-grid-item .product-excerpt,
.product-grid-item .hover-content-inner,
.wd-product .wd-product-desc,
.wd-product .product-excerpt {
    display: none !important;
}

/* Styling for Buy Now and Add to Cart buttons in loop */
.batan-loop-buttons-wrap {
    display: flex !important;
    justify-content: space-between !important;
    gap: 5px !important;
    width: 100% !important;
    margin-top: 5px;
    flex-wrap: wrap !important;
}

.batan-loop-buttons-wrap .batan-btn {
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    padding: 0 2px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    letter-spacing: 0px !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    text-decoration: none !important;
    line-height: normal !important;
}

/* Hide Woodmart's loading spinner, action icon, and pseudo elements that push text */
.batan-loop-buttons-wrap .batan-btn::before,
.batan-loop-buttons-wrap .batan-btn::after,
.batan-loop-buttons-wrap .batan-btn .wd-action-icon {
    display: none !important;
}

/* Ensure perfect vertical and horizontal centering for the buttons */
.batan-loop-buttons-wrap .batan-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 1 !important;
}

.batan-loop-buttons-wrap .batan-btn span,
.batan-loop-buttons-wrap .batan-btn .wd-action-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

/* Global Buy Now (Burgundy Red) */
.batan-loop-buttons-wrap .batan-buy-now,
.batan-buy-now-btn-single {
    background-color: #7c0120 !important;
    /* Logo Burgundy Red */
    color: #ffffff !important;
    border: none !important;
}

.batan-loop-buttons-wrap .batan-buy-now:hover,
.batan-buy-now-btn-single:hover {
    background-color: #5e0018 !important;
}

/* Global Add to Cart (Gold) */
.batan-loop-buttons-wrap .batan-add-to-cart,
.single_add_to_cart_button:not(.batan-buy-now-btn-single) {
    background-color: #c69c38 !important;
    /* Logo Gold */
    color: #ffffff !important;
}

.batan-loop-buttons-wrap .batan-add-to-cart:hover,
.single_add_to_cart_button:not(.batan-buy-now-btn-single):hover {
    background-color: #a8822d !important;
}

/* Specific styling for AJAX search dropdown to ensure buttons stack vertically nicely */
.batan-ajax-search-buttons {
    flex-direction: column !important;
}

.batan-ajax-search-buttons .batan-btn {
    width: 100% !important;
    margin-bottom: 5px !important;
}

/* Custom Footer Links Hover Effect */
.batan-custom-footer a:hover {
    color: #ffffff !important;
}

/* Responsive Footer Grid */
.batan-footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

@media (min-width: 992px) {
    .batan-footer-row {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* Custom Premium Checkout Styling */
.woocommerce-checkout h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
    color: #011628 !important;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row input.input-text,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row select {
    border-radius: 6px !important;
    border: 1px solid #e1e1e1 !important;
    padding: 12px 15px !important;
    height: auto !important;
    background-color: #fafafa !important;
    transition: 0.3s;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row select:focus {
    border-color: #c69c38 !important;
    /* Gold */
    box-shadow: 0 0 0 3px rgba(198, 156, 56, 0.15) !important;
    background-color: #fff !important;
}

.woocommerce-checkout #order_review {
    background-color: #fcfcfc !important;
    padding: 30px !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-checkout #place_order {
    background-color: #7c0120 !important;
    /* Burgundy */
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    padding: 18px 20px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: 0.3s !important;
    width: 100% !important;
    margin-top: 15px !important;
}

.woocommerce-checkout #place_order:hover {
    background-color: #5e0018 !important;
    transform: translateY(-2px);
}

/* Force Full Name field to be full width */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_first_name_field {
    width: 100% !important;
    float: none !important;
}

/* Checkout Order Review Quantity & Remove Buttons Enhancement */
.woocommerce-checkout .woocommerce-checkout-review-order-table .quantity {
    border-radius: 6px !important;
    border: 1px solid #e1e1e1 !important;
    overflow: hidden !important;
    display: inline-flex !important;
    height: 32px !important;
    margin-top: 8px !important;
    width: 104px !important;
    max-width: 104px !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .quantity input[type="button"] {
    background-color: #f7f7f7 !important;
    color: #555 !important;
    border: none !important;
    width: 32px !important;
    height: 100% !important;
    font-size: 16px !important;
    transition: 0.3s !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .quantity input[type="button"]:hover {
    background-color: #e5e5e5 !important;
    color: #7c0120 !important;
    /* Burgundy highlight on hover */
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .quantity input[type="number"] {
    border: none !important;
    border-left: 1px solid #e1e1e1 !important;
    border-right: 1px solid #e1e1e1 !important;
    width: 40px !important;
    height: 100% !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #011628 !important;
    padding: 0 !important;
    background: #fff !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .quantity input::-webkit-outer-spin-button,
.woocommerce-checkout .woocommerce-checkout-review-order-table .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove button styling */
.woocommerce-checkout .woocommerce-checkout-review-order-table a.remove {
    color: #ff4d4d !important;
    font-size: 18px !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background-color: #fff5f5 !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    border: 1px solid #ffcccc !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table a.remove:hover {
    background-color: #ff4d4d !important;
    color: #ffffff !important;
    border-color: #ff4d4d !important;
    transform: scale(1.1);
}

/* Hide WooCommerce Privacy Policy Text on Checkout */
.woocommerce-checkout .woocommerce-privacy-policy-text {
    display: none !important;
}

/* Remove extra border/spacing below buttons in product card */
.product-grid-item .wd-add-btn,
.product-grid-item .wd-bottom-actions,
.product-grid-item .product-element-bottom,
.product-grid-item .wd-buttons {
    border: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.product-grid-item .wd-add-btn::after,
.product-grid-item .wd-add-btn::before,
.product-grid-item .wd-bottom-actions::after,
.product-grid-item .wd-bottom-actions::before {
    display: none !important;
}

/* Ensure no outer or inner borders show on product card hover */
.product-grid-item:hover,
.wd-hover-standard:hover,
.wd-product:hover,
.wd-hover-base:hover,
.wd-hover-button:hover,
.wd-hover-info:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.product-grid-item .product-wrapper,
.product-grid-item .wd-product-header {
    border: none !important;
    box-shadow: none !important;
}

/* Custom Slider (Round Shape Floating) */
.batan-fullscreen-wrapper {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    margin-top: -42px !important;
    /* Aggressive negative margin to tuck under header */
    margin-bottom: 30px;
    border-radius: 20px;
    /* Round shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Premium shadow */
}

/* Prevent Search Bar from overlapping Contact Info */
.whb-main-header .whb-column-center {
    max-width: 45% !important;
}

/* Strip top padding from Woodmart/Elementor if this slider is present */
.main-page-wrapper:has(.batan-fullscreen-wrapper) {
    padding-top: 0 !important;
}

.elementor-section:has(.batan-fullscreen-wrapper) {
    padding-top: 0 !important;
}

.batan-slider-container {
    width: 100%;
    height: auto;
    /* Let it scale based on image height */
}

.batan-slide {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.batan-slide-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Slider Overlay Styles */
.batan-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark overlay to make text readable */
    pointer-events: none;
    /* Let clicks pass through if not on button */
}

.batan-slide-content-wrap {
    text-align: center;
    pointer-events: auto;
    /* Enable clicks on content */
    padding: 20px;
}

.batan-slide-text {
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Improve readability */
}

.batan-slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c69c38;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
}

.batan-slide-btn:hover {
    background: #7c0120;
    color: #fff;
}

/* Company Name next to Logo */
.wd-logo a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    overflow: visible !important;
}

.wd-logo a::after {
    content: "BATAN BD.COM" !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #c69c38 !important;
    /* Gold color to match logo */
    margin-left: 15px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
}

.batan-slider-container {
    width: 100%;
    height: auto;
    /* Let it scale based on image height */
}

.batan-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: transparent;
}

.batan-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination Dots */
.batan-slider-container .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.batan-slider-container .swiper-pagination-bullet-active {
    opacity: 1;
    background: #c69c38;
    /* Logo gold */
    transform: scale(1.2);
}

/* Navigation Arrows */
.batan-slider-container .swiper-button-next,
.batan-slider-container .swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: 0.3s;
}

.batan-slider-container .swiper-button-next:hover,
.batan-slider-container .swiper-button-prev:hover {
    background: rgba(124, 1, 32, 0.8);
    /* Burgundy */
}

.batan-slider-container .swiper-button-next:after,
.batan-slider-container .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Mobile responsive slider text */
@media (max-width: 767px) {

    .batan-slide-text,
    .batan-slide-text h1,
    .batan-slide-text h2,
    .batan-slide-text h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .batan-slide-btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
    }
}

/* Hide Compare and Wishlist buttons on single product page */
.single-product .wd-wishlist-btn,
.single-product .wd-compare-btn,
.single-product .woodmart-wishlist-btn,
.single-product .woodmart-compare-btn {
    display: none !important;
}

/* Styling for WhatsApp button on hover */
.batan-whatsapp-btn:hover {
    background-color: #1ebe5d !important;
    color: #fff !important;
}

/* Make buttons round */
.batan-buy-now-btn-single,
.single_add_to_cart_button,
.batan-whatsapp-btn {
    border-radius: 25px !important;
}

/* Hide prefooter globally on all pages */
.wd-prefooter {
    display: none !important;
}

/* Force hide Woodmart Custom/Additional Shipping Tabs on Single Product Page */
#tab-wd_additional_tab,
#tab-wd_custom_tab,
#tab-shipping_delivery,
#tab-shipping,
.wd-accordion-title[data-id="wd_additional_tab"],
.wd-accordion-title[data-id="wd_custom_tab"],
.wd-accordion-title[data-id="shipping_delivery"],
.wd-accordion-title[data-id="shipping"],
.batan-stacked-tab-section#tab-wd_additional_tab,
.batan-stacked-tab-section#tab-wd_custom_tab,
.batan-stacked-tab-section#tab-shipping_delivery,
.batan-stacked-tab-section#tab-shipping {
    display: none !important;
}

/* Force checkout input text color to black */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .form-row input.input-text {
    color: #000000 !important;
}

/* Reduce whitespace by forcing 100% full-width on everything */
@media (min-width: 1200px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure Elementor sections, sliders, and product grids expand fully */
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
    }
    
    /* Force product grid to expand if it's restricted */
    .products, .wd-products {
        max-width: 100% !important;
    }
}