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;
}

/* 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 */
}

/* Wishlist Page Button Alignment */
.bdm-wishlist-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%; /* Ensure it takes full width in the flex container */
}

@media (min-width: 600px) {
    .bdm-wishlist-item-actions {
        width: auto; /* Allow it to shrink on desktop */
    }
}


/* 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 */
    }
}

/* Archive Buttons - One Line Layout */
.sb-archive-buttons-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}
.sb-archive-buttons-wrapper .button,
.sb-archive-buttons-wrapper a.button {
    flex: 1;
    width: auto !important;
    min-width: 0;
    padding: 6px 4px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    float: none !important;
    border-radius: 4px !important;
    height: 38px !important;
}
/* Mobile Fix */
@media (max-width: 768px) {
    .sb-archive-buttons-wrapper .button {
        font-size: 11px !important;
        padding: 5px 2px !important;
        height: 34px !important;
    }
}

/* Single Product Spacing Fix */
.single-product .call-now-button {
    margin-left: 10px !important;
}