/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-elementor/
Description: Hello Elementor Child is a child theme of Hello Elementor, created for customization.
Author: Jahidul Hoqe
Author URI: https://www.facebook.com/jahidul.hoqe.860232
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles below this line */ 

/* Custom Product Card Styles */
.custom-product-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.custom-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.custom-product-card .product-card-inner {
    padding: 15px;
    position: relative;
}

/* Product image styling */
.custom-product-card .product-image-wrapper {
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.custom-product-card .product-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.custom-product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Lightbox icon indicator */
.custom-product-card .product-image-wrapper a:after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d3961;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-product-card:hover .product-image-wrapper a:after {
    opacity: 1;
}

/* Sale badge styling */
.custom-product-card .sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #1d3961;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hide any other sale badges that might be displayed by default */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    display: none !important;
}

/* Product title styling */
.custom-product-card .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: #1d3961;
    line-height: 1.4;
    min-height: 52px;
}

/* Price and discount row styling */
.custom-product-card .product-price-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Price column styling - 50% width */
.custom-product-card .product-price-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
}

/* Stacked price display */
.custom-product-card .price-stack {
    display: flex;
    flex-direction: column;
}

.custom-product-card .old-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.custom-product-card .current-price {
    color: #d71a1a;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* Discount column styling - 50% width */
.custom-product-card .discount-wrapper {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

/* Discount badge */
.custom-product-card .discount-badge {
    background-color: #1d3961;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

/* Action buttons wrapper */
.custom-product-card .action-buttons-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10%; /* This creates the 10% gap between buttons */
}

/* Add to cart icon button */
.custom-product-card .cart-action-button {
    width: 20%; /* Takes 20% of the space */
}

.custom-product-card .cart-action-button .add-to-cart-icon {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid #d71a1a;
    color: #d71a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.custom-product-card .cart-action-button .add-to-cart-icon:hover {
    background: rgba(215, 26, 26, 0.1);
    color: #d71a1a;
}

/* Add to cart loading and added states */
.custom-product-card .cart-action-button .add-to-cart-icon.loading {
    opacity: 0.5;
    pointer-events: none;
}

.custom-product-card .cart-action-button .add-to-cart-icon.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(215, 26, 26, 0.3);
    border-top-color: #d71a1a;
    animation: cart-loading 0.8s infinite linear;
}

.custom-product-card .cart-action-button .add-to-cart-icon.added {
    background: #d71a1a;
    color: white;
    border-color: #d71a1a;
}

@keyframes cart-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Order Now button */
.custom-product-card .order-now-wrapper {
    width: 70%; /* Takes 70% of the space */
}

.custom-product-card .order-now-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: #d71a1a;
    color: white !important;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.custom-product-card .order-now-button:hover {
    background: #b51515;
}

/* Force show Elementor cart when needed */
body.wc-cart-opened .elementor-menu-cart__container,
body.elementor-menu-cart--shown .elementor-menu-cart__container {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    z-index: 999999;
}

body.wc-cart-opened .elementor-menu-cart__main,
body.elementor-menu-cart--shown .elementor-menu-cart__main {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Cart button count */
.elementor-menu-cart__toggle .elementor-button-icon {
    position: relative;
}

/* Fancybox customization */
.fancybox__container {
    z-index: 100000 !important;
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.9) !important;
}

.fancybox__content {
    padding: 0 !important;
}

/* Responsive product grid styling */
/* Default: 4 products per row on desktop */
.woocommerce.custom-products-container {
    width: 100%;
    max-width: 100%;
}

.woocommerce.custom-products-container ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    list-style: none;
}

/* Fix for the first item space issue */
.woocommerce.custom-products-container ul.products::before,
.woocommerce.custom-products-container ul.products::after {
    display: none !important;
}

/* Override default WooCommerce columns setting */
.woocommerce.custom-products-container ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
}

/* Remove any float that might be causing the space issue */
.woocommerce ul.products li.product {
    float: none !important;
}

/* Tablet responsive: 3 products per row */
@media only screen and (max-width: 992px) {
    .woocommerce.custom-products-container ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablet responsive: 2 products per row */
@media only screen and (max-width: 768px) {
    .woocommerce.custom-products-container ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-product-card .woocommerce-loop-product__title {
        font-size: 16px;
        min-height: 44px;
    }
    
    .custom-product-card .sale-badge {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }
    
    /* Hide lightbox icon on mobile */
    .custom-product-card .product-image-wrapper a:after {
        display: none;
    }
}

/* Mobile phone responsive: 2 products per row */
@media only screen and (max-width: 576px) {
    .woocommerce.custom-products-container ul.products {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
    
    .custom-product-card .product-card-inner {
        padding: 10px;
    }
    
    .custom-product-card .woocommerce-loop-product__title {
        font-size: 14px;
        margin: 5px 0;
        min-height: 38px;
    }
    
    .custom-product-card .old-price {
        font-size: 12px;
    }
    
    .custom-product-card .current-price {
        font-size: 14px;
    }
    
    /* Mobile-specific discount badge styling with stacked layout */
    .custom-product-card .discount-wrapper {
        width: 50%;
    }
    
    .custom-product-card .discount-badge {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3px 5px;
        text-align: center;
        /* Hide the original text to avoid duplication */
        font-size: 0;
        line-height: 0;
    }
    
    .custom-product-card .discount-badge::before {
        content: attr(data-discount);
        font-size: 13px;
        font-weight: bold;
        line-height: 1.2;
    }
    
    .custom-product-card .discount-badge::after {
        content: 'OFF';
        font-size: 10px;
        line-height: 1;
        margin-top: 2px;
    }
    
    .custom-product-card .cart-action-button .add-to-cart-icon {
        width: 100%;
        height: 30px;
    }
    
    .custom-product-card .order-now-button {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .custom-product-card .sale-badge {
        width: 30px;
        height: 30px;
        font-size: 10px;
        top: 10px;
        right: 10px;
    }
}

/* Ajax Pagination Styles */
.custom-products-container {
    position: relative;
    min-height: 200px; /* Ensures there's room for the loading spinner */
}

.custom-products-container.loading {
    opacity: 0.6;
}

.products-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.products-loading .spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(29, 57, 97, 0.2);
    border-top-color: #1d3961;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pagination Styling - Updated */
.ajax-pagination.products-pagination {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ajax-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 5px 10px;
    margin: 0 5px;
    text-decoration: none;
    color: #ffffff;
    background: #1d3961;
    border-radius: 4px;
    border: 1px solid #1d3961;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ajax-pagination .page-numbers:hover {
    background: #15304f;
    transform: translateY(-2px);
}

.ajax-pagination .page-numbers.current {
    background: #ffffff;
    color: #1d3961;
    border-color: #1d3961;
    font-weight: 700;
}

.ajax-pagination .prev.page-numbers,
.ajax-pagination .next.page-numbers {
    padding: 5px 15px;
}

/* Mobile responsive styles for pagination */
@media only screen and (max-width: 576px) {
    .ajax-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 5px 10px;
        margin: 0 3px;
        font-size: 14px;
    }
    
    .ajax-pagination .prev.page-numbers,
    .ajax-pagination .next.page-numbers {
        padding: 5px 10px;
    }
    
    /* Hide page numbers on very small screens - keep only prev/next */
    @media only screen and (max-width: 380px) {
        .ajax-pagination .page-numbers:not(.prev):not(.next):not(.current) {
            display: none;
        }
    }
}

/* Pagination Styles */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #1d3961;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0;
    border: 2px solid #1d3961;
    margin: 0 5px;
}

.products-pagination .page-numbers.current {
    background-color: #ffffff;
    color: #1d3961 !important;
    border: 2px solid #1d3961;
}

.products-pagination .page-numbers:hover:not(.current) {
    background-color: #15304f;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.products-pagination .prev.page-numbers,
.products-pagination .next.page-numbers {
    padding: 0 15px;
}

@media (max-width: 576px) {
    .products-pagination {
        gap: 5px;
    }
    
    .products-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 0 3px;
    }
    
    .products-pagination .prev.page-numbers,
    .products-pagination .next.page-numbers {
        padding: 0 10px;
    }
}

/* WooCommerce Pagination Styles */
.woocommerce nav.woocommerce-pagination,
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    background-color: #1d3961;
    color: #ffffff !important;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid #1d3961;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #ffffff;
    color: #1d3961 !important;
    border: 2px solid #1d3961;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #15304f;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
    padding: 0 15px;
}

@media (max-width: 576px) {
    .woocommerce nav.woocommerce-pagination ul {
        gap: 5px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next {
        padding: 0 10px;
    }
}

/* Elementor Product Image Widget Custom Styles */
.elementor-widget-woocommerce-product-images {
    overflow: hidden;
}

/* Main Product Image */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__wrapper {
    overflow: hidden;
    text-align: center;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image {
    position: relative;
    transition: transform 0.5s ease;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img {
    margin: 0 auto;
    display: block;
}

/* Sale Badge */
.elementor-widget-woocommerce-product-images .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: #1d3961;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

/* Thumbnail Navigation */
.elementor-widget-woocommerce-product-images .flex-control-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.elementor-widget-woocommerce-product-images .flex-control-nav li {
    width: 70px;
    height: 70px;
    overflow: hidden;
    cursor: pointer;
}

.elementor-widget-woocommerce-product-images .flex-control-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zoom Icon */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__trigger::before {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .elementor-widget-woocommerce-product-images .flex-control-nav {
        gap: 8px;
    }
    
    .elementor-widget-woocommerce-product-images .flex-control-nav li {
        width: 60px;
        height: 60px;
    }
    
    .elementor-widget-woocommerce-product-images .onsale {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .elementor-widget-woocommerce-product-images .flex-control-nav li {
        width: 50px;
        height: 50px;
    }
    
    .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__trigger {
        width: 30px;
        height: 30px;
    }
    
    .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__trigger::before {
        font-size: 14px;
    }
}

/* Custom Price Styling */
.custom-product-card .price-stack .price del,
.custom-product-card .price-stack .price del .woocommerce-Price-amount.amount {
    font-size: 10px !important; /* Even smaller font size for regular price */
    color: #999 !important; /* Grey color for regular price */
    opacity: 0.8; /* Make it slightly faded */
}

.custom-product-card .price-stack .price ins,
.custom-product-card .price-stack .price ins .woocommerce-Price-amount.amount {
    font-size: 24px !important; /* Even larger font size for sale price */
    color: #d71a1a !important; /* Red color for sale price */
    font-weight: bold !important; /* Make sale price bold */
    text-decoration: none !important; /* Ensure no underline for sale price */
    display: block !important; /* Put it on new line */
    margin-top: 2px !important; /* Add some space between prices */
}

/* Ensure variable product price ranges are styled correctly if they are on sale */
.custom-product-card .price-stack .price > .woocommerce-Price-amount.amount {
    font-size: 24px !important; /* Match the sale price size */
    color: #1d3961 !important; /* Default color for non-sale prices */
    font-weight: bold !important;
}

/* If a variable product's main display is a sale (e.g. "From $10 $5") */
.custom-product-card .price-stack .price del {
    margin-right: 5px; /* Add some space between old and new price */
}

/* Additional specificity for WooCommerce price elements */
.woocommerce .custom-product-card .price del,
.woocommerce .custom-product-card .price del span {
    font-size: 10px !important;
    text-decoration: line-through !important;
}

.woocommerce .custom-product-card .price ins,
.woocommerce .custom-product-card .price ins span {
    font-size: 24px !important;
    text-decoration: none !important;
} 



/* single product page custome add  */
.woocommerce .elementor-element.elementor-products-grid ul.products li.product, .woocommerce div.product .elementor-element.elementor-products-grid .related.products ul.products li.product, .woocommerce div.product .elementor-element.elementor-products-grid .upsells.products ul.products li.product {
    margin-bottom: 10px !important;
   
}

.elementor-2062 .elementor-element.elementor-element-d24dbff.elementor-wc-products ul.products {
    grid-row-gap: 20px !important;
}


.related.products ul.products {
    padding: 0 !important;
}




/* cheek out Page desdin  */

p#billing_country_field {
    display: none;
}




