/* WhatsApp Order Button */
#whatsapp-order-button {
    margin-top: 10px;
    display: inline-block;
    background-color: var(--sb-whatsapp-bg);
    color: var(--sb-whatsapp-text);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.whatsapp_button:hover {
    opacity: 0.9;
}

/* Mobile View - Adjust Button Size */
@media (max-width: 768px) {
    #whatsapp-order-button {
        padding: 10px 8px; /* Smaller padding for mobile */
    }
}


/* Call Now Button Styling */
.call-now-button {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 20px;
    background-color: var(--sb-call-now-bg);
    color: var(--sb-call-now-text) !important;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.call-now-button:hover {
    opacity: 0.9;
}

.back-to-top {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 0;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.2s, bottom 0.3s;
    z-index: 999;
}

.back-to-top.active-to-top {
    bottom: 45px;
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}

html {
    scroll-behavior: smooth;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* buy naw button */
#wpamit-adding-button {
    margin-left: 10px;
    background-color: var(--sb-buy-now-bg);
    color: var(--sb-buy-now-text);
}

/* Buy Now Button (optional styling) */
.buy_now_button:hover {
    opacity: 0.9;
}

/* Ensure the product container is positioned relative */
.product {
    position: relative;
    overflow: hidden; /* Hide elements going outside the container */
}

/* Hover Image Style */
.product .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Show Second Image and Main Image Zoom Effect on Hover */
.woocommerce ul.products li.product:hover .hover-image,
.woocommerce ul.products li.product:hover img {
    opacity: 1;
    transform: scale(1.1); /* Zoom effect */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Premium Save Amount Badge */
.sb-save-amount-box {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%); /* Subtle gradient */
    border: 1px solid #4CAF50;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 50px; /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.15);
    transition: transform 0.2s;
}

.sb-save-amount-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.sb-save-amount-box .amount {
    font-weight: 800;
    margin: 0 3px;
    color: #1b5e20;
}

/* Ensure it works well in Elementor */
.elementor-widget-shortcode .sb-save-amount-box {
    width: auto;
    display: inline-flex;
}

/* Fix for WooCommerce Login/Register Form Layout */
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust the gap as needed */
    margin-bottom: 20px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    float: none !important; /* CRITICAL: Override default float behavior */
    width: 48% !important; /* Set explicit width for desktop */
    min-width: 300px; /* Keep this to prevent columns from becoming too narrow */
}

/* On smaller screens, make columns full width */
@media (max-width: 768px) {
    .woocommerce-account .u-column1,
    .woocommerce-account .u-column2 {
        width: 100% !important; /* Make columns full width on mobile */
        min-width: auto; /* Allow width to shrink below 300px on mobile */
    }
}
