.woocommerce .columns-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-product-card .sold-out-text {
    opacity: 0;
    display: none;
    transition: opacity 0 ease;
}

.custom-product-card:hover .sold-out-text {
    opacity: 1;
    display: block;
}


.woocommerce ul.products {
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    flex: 1 0 calc(25% - 1rem);
    min-width: 200px;
    margin: 0;
}

.custom-product-card {
    position: relative;
    /* overflow: hidden; removing it to see the border-top*/ 
}

.custom-product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    transform: scale(0.90);
    padding: 1rem;
}

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

.custom-infos-product-card {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0.5rem 0.2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5000;
}

.custom-product-card:hover .custom-infos-product-card {
    opacity: 1;
    border-top: 0.5px solid #000000;
    width: 60%;
    margin: 0 auto;
}

.woocommerce-loop-product__title {
    font-size: 1rem;
    margin: 0;
    display: none;
}

.custom-product-price,
.custom-product-cart {
    display: none;
}

.custom-product-card:hover .custom-product-price,
.custom-product-card:hover .custom-product-cart {
    display: block;
}

.custom-product-price,
.price {
    order: -1; /* Move price to the left */
    font-size: 12px;
    font-weight: 100;
}

.custom-product-cart {
    order: 1; /* Move cart icon to the right */
}

.add-to-cart-icon {
    height: 24px;
    width: 24px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
    .woocommerce ul.products li.product {
        flex: 1 0 calc(50% - 1rem);
    }

    .custom-product-price,
    .custom-product-cart {
        display: block;
    }

    .sold-out-text {
        font-size: 12px;
    }

    .custom-product-price,
    .price {
        font-size: 11px;
    }

    .add-to-cart-icon {
        height: 32px;
        width: 32px;
    }

    .custom-product-card:hover .custom-infos-product-card {
        transform: none;
    }

    .custom-product-card .sold-out-text {
        opacity: 1;
        display: block;
    }

    .custom-infos-product-card {
        border-top: 0.5px solid #000000;
        width: 70%;
        transform: none;
        padding: 0.5rem;
        margin: 0 auto;
        opacity: 1;
    }

    .custom-infos-product-card:hover {
        width: 70%;
        padding: 0.5rem;
    }

    /* Remove hover effects for mobile */
    .custom-product-card:hover .custom-product-image img {
        transform: none;
    }

    .custom-product-card:hover .sold-out-text {
        opacity: 1;
        display: block;
    }

    .custom-product-card:hover .custom-infos-product-card {
        opacity: 1;
        border-top: 0.5px solid #000000;
        width: 70%;
        transform: none;
    }

    .custom-product-card:hover .custom-product-price,
    .custom-product-card:hover .custom-product-cart {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .woocommerce ul.products li.product {
        flex: 1 0 100%;
    }

    .add-to-cart-icon {
        height: 24px;
        width: 24px;
    }
}

/* 
CART
PAGE
AND
CHECKOUT
PAGE
*/
.wp-block-woocommerce-cart,
.wc-block-checkout {
    max-width: 1024px;
    margin: 0 auto!important;
    padding:2rem;
}

.wc-block-cart__submit-button,
.wc-block-components-button{
    background:none;
    background-color: #F07070;
    padding: 8px 16px;
    color: white;
    border: none;
    cursor: pointer;
}

.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover{
    background-color: #000000;
}

.wc-block-components-quantity-selector {
    display: none!important;
}

/* 
SHOP
CATEGORY
TAG
PAGE
*/

.hide-page-title-for-ux {
    display: none;
}

.woocommerce-products-archive-container {
    padding: 2rem 4rem;
}

.woocommerce .columns-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.woocommerce ul.products {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.empty-product {
    flex: 0 0 calc(25% - 0.75rem);
    margin: 0;
    min-width: 150px; /* Reduced from 200px */
}

.woocommerce ul.products li.empty-product {
    height: 0;
    /* padding-top: calc(100% * 4 / 3);  */
    visibility: hidden;
}

@media screen and (max-width: 768px) {
    .woocommerce-products-archive-container {
        padding: 1.5rem;
    }
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.empty-product {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 120px; /* Added this line */
    }
}

@media screen and (max-width: 480px) {
    .woocommerce-products-archive-container {
        padding: 1rem;
    }
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.empty-product {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 100px; /* Further reduced for mobile */
    }
}

/* .woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    max-width: 100%;
} */


/* my account page design */

.woocommerce-MyAccount-content,
.login-container{
    max-width: 1024px;
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    padding-top: 2rem;
}



/* my account navigation */
.woocommerce-MyAccount-navigation{
    background-color: #F07070;
    padding: 2rem;
    border-radius: 10px;
    flex: 0 0 20%;
    margin-bottom: 4rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    line-height: 4rem;
}
.woocommerce-MyAccount-navigation li a{
    color: #fff;
}

.woocommerce-MyAccount-navigation li a[aria-current="page"] {
    font-weight: bold;
}
@media screen and (max-width: 1024px) {
    .woocommerce-MyAccount-navigation{
        flex: 0 0 40%;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-content{
        padding: 1rem;
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation{
        flex: 0 0 100%;
        height: auto;

    }
}
/* 
registration
and
login
page
design

still
part
of the 
myaccount
*/
/* Login and Register Form Styles */
.login-register-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.form-toggle button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    color: black;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-toggle button.active {
    opacity: 1;
    border-bottom: 2px solid #F07070;
}

.woocommerce-form {
    margin-top: 1rem;
}

.woocommerce-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.woocommerce-form .form-row {
    margin-bottom: 1rem;
}

.woocommerce-form input[type="text"],
.woocommerce-form input[type="email"],
.woocommerce-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.woocommerce-form input[type="password"]#reg_confirm_password {
    margin-top: -0.5rem; /* Adjust spacing between password fields */
}

.woocommerce-form .button {
    width: 100%;
    padding: 0.75rem;
    background-color: #F07070;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce-form .button:hover {
    background-color: #e85555;
}

.lost_password {
    text-align: center;
    margin-top: 1rem;
}

.lost_password a {
    color: #F07070;
    text-decoration: none;
}

.lost_password a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .login-register-container {
        padding: 1rem;
    }
}

/* lost password page */

/* Lost Password Form Styles */
.lost-password-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.woocommerce-ResetPassword {
    margin-top: 1rem;
}

.woocommerce-ResetPassword p:first-child {
    text-align: center;
    margin-bottom: 1.5rem;
}

.woocommerce-ResetPassword .form-row {
    margin-bottom: 1rem;
}

.woocommerce-ResetPassword input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.woocommerce-ResetPassword .button {
    width: 100%;
    padding: 0.75rem;
    background-color: #F07070;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce-ResetPassword .button:hover {
    background-color: #e85555;
}

@media screen and (max-width: 480px) {
    .lost-password-container {
        margin: 32px auto;
        padding: 1rem;
    }
}

/* Password field styles */
.password-field {
    position: relative;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 39%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #333;
}

.password-strength-meter {
    font-size: 0.8em;
    margin-top: 5px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* load more button for infinite scroll */

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    height: 65px;
    width: 65px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 14px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: lowercase;
}

.load-more-button:hover {
    background-color: #333;
}

.load-more-button.loading {
    padding-right: 45px;
    opacity: 0.7;
}

.loading-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}