/* WooCommerce Search Bar Styling */
.woocommerce-search {
    width: 90%;
    max-width: 500px;
    text-align: right; /* Align content to the right */
    margin-left: auto; /* Align to the right side */
    margin-right: 0;
}

.woocommerce-search .input-group {
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}

.woocommerce-search .form-control {
    border: none;
    box-shadow: none;
    padding: 10px 20px;
}

.woocommerce-search .btn {
    background: #ff5e62; /* Your theme color */
    color: white;
    border: none;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.woocommerce-search .btn:hover {
    background: #e04a4e; /* Darker shade for hover */
}

/* Override PopupMaker theme background */
.pum-theme-168,
.pum-theme-default-theme {
    background-color: rgba(0, 0, 0, 0.75) !important;
    color: #ffffff; /* Ensure text is visible on dark background */
}

/* Optional: Style the close button to be visible on dark background */
.pum-theme-168 .pum-close,
.pum-theme-default-theme .pum-close {
    color: #ffffff !important;
}

.product-category-page a {
    color: #195148 !important;
    text-decoration: none;
}

.product-category-page a h5 {
    color: #195148 !important;
    text-decoration: none;
}

.product-category-page a:hover {
    text-decoration: none;
}

/* Product Buttons Styling */
.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-buttons a,
.product-buttons .add-to-cart-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fab43c;
    color: #fff;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    height: 50px;
    transition: all 0.3s ease;
}

.product-buttons a:hover,
.product-buttons .add-to-cart-button:hover {
    background: #e5a235;
    color: #fff;
}

.product-buttons .add-to-cart-button .button {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.product-buttons i {
    font-size: 18px;
}

/* Woo Quick View Plugin Button Styling */
.product-buttons .woo-quick-view-button {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fab43c;
    color: #fff;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    height: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-buttons .woo-quick-view-button:hover {
    background: #e5a235;
    color: #fff;
}

/* Quick View Modal Styling */
.custom-quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
}

.custom-quick-view-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-quick-view-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.custom-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Make sure the Woo Quick View modal has proper z-index */
.woo-quick-view-modal {
    z-index: 99999;
}

/* Related Products Styling */
.related.products {
    margin-top: 60px;
    padding: 20px 0;
}

.related.products h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2a2a2a;
    position: relative;
    display: inline-block;
}

.related.products h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ec9046, #ec9046);
    border-radius: 2px;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related.products .product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 0;
}

.related.products .product-buttons a,
.related.products .product-buttons .add-to-cart-button,
.related.products .product-buttons .woo-quick-view-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fab43c;
    color: #fff;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    height: 50px;
    transition: all 0.3s ease;
}

.related.products .product-buttons a:hover,
.related.products .product-buttons .add-to-cart-button:hover,
.related.products .product-buttons .woo-quick-view-button:hover {
    background: #e5a235;
    color: #fff;
}

.related.products .product-buttons i {
    font-size: 18px;
}

/* Make sure the Woo Quick View modal has proper z-index */
.woo-quick-view-modal {
    z-index: 99999;
}

.mysearch{
    margin-bottom: 15px;
    margin-top: 10px;
    z-index: 9;
    position: relative;
}

/* Media Quesry */

/* 768 */
@media (max-width: 768px) {
    .woocommerce-search {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* 767 */
@media all and (max-width : 767px) {
    .woocommerce-search {
        width: 70%;
        max-width: 500px;

    }
}

/* 450 */
@media all and (max-width : 450px) {
    .woocommerce-search {
        width: 50%;
        max-width: 500px;

    }
}

/* Mobile Menu Enhancements */
@media (max-width: 768px) {
    .navbar-menu {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .navbar-menu .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .navbar-menu .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-menu .nav-link {
        color: #fff !important;
        padding: 15px 20px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
    }
    
    .navbar-menu .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }
    
    .navbar-menu .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2) !important;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .navbar-menu .dropdown-menu.active {
        max-height: 1000px;
    }
    
    .navbar-menu .dropdown-menu.nested {
        background-color: rgba(0, 0, 0, 0.3) !important;
        margin-left: 20px;
    }
    
    .navbar-menu .dropdown-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0;
    }
    
    .navbar-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar-menu .dropdown-link {
        color: #fff !important;
        padding: 12px 20px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
    }
    
    .navbar-menu .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }
    
    .navbar-menu .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .navbar-menu .dropdown-icon.active {
        transform: rotate(180deg);
    }
    
    .navbar-menu .dropdown-icon.nested.active {
        transform: rotate(90deg);
    }
    
    /* Ensure proper spacing for nested menus */
    .navbar-menu .dropdown-menu .dropdown-menu {
        margin-left: 20px;
    }
}

/* Desktop Menu Enhancements */
@media (min-width: 769px) {
    .navbar-menu .has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-menu .has-dropdown:hover > .dropdown-menu.nested {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .navbar-menu .dropdown-menu .has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}


.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {

    color: #195148;
    font-size: 1.1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #fab236;  
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #195148;
    font-size: 1.25em;
}   

.woocommerce span.onsale {
    
    background-color: #f3af34;
    color: #fff;

}

.woocommerce a.added_to_cart {
    display: none !important;
    position: relative;
}
.woocommerce ul.products li.product.added .add-to-cart-button:after {
    content: '\2714'; /* Unicode checkmark */
    color: #28a745;
    font-size: 2em;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
    animation: pop-in 0.3s;
}
@keyframes pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__header, table.wc-block-cart-items .wc-block-cart-items__header {
    font-size: 1.25em !important;
    text-transform: uppercase;
}

.is-large.wc-block-cart .wc-block-cart__totals-title {
    font-size: 1.25em !important;
   }

   .wp-block-woocommerce-cart-order-summary-block{
    background: #e5d4a082 !important;
    padding: 10px;
   }

   .wp-block-woocommerce-checkout-order-summary-block {
    color: #fff;
    background: #195148;
    padding: 10px;
}

.footer-social i.fab {
    margin-right: 5px;
    font-size: 26px;
  }
  .footer-social a {
    font-size: 18px;
    color: #b0c4ed !important;
  }

  .is-large.wc-block-cart .wc-block-cart__totals-title {
    padding: 8px 16px 8px 10px !important;
}

.is-medium .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title, .is-mobile .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title, .is-small .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
    padding: 20px 10px;
}


.topprice{
    color: #195148 !important;
    padding: 2px 10px;
    border: 1px solid #ffc107;
    border-radius: 10px;
    background-color: #fab236;
  }

  body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout h4,
body.woocommerce-checkout h5,
body.woocommerce-checkout h6,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block *,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
    text-transform: capitalize !important;
}

/* Move the 'View Cart' button above the 'Add to Cart' button in the product loop */
.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product a.added_to_cart {
    display: block !important;
    position: absolute;
    top: -50px; /* Adjust as needed */
    left: 0;
    right: 0;
    margin: 0 auto 10px auto;
    z-index: 10;
    width: 80%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(250, 180, 60, 0.25);
}

@media (max-width: 600px) {
    .woocommerce ul.products li.product a.added_to_cart {
        width: 95%;
        top: -40px;
    }
}
