.woocommerce .product-image .offer {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 22px;
    border-radius: 6px;
    background-color: var(--uniqo-black);
    color: var(--uniqo-light);
}

/* Products Page */

.woocommerce .product-sorter{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.woocommerce-page .woocommerce-result-count {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
}

@media (min-width: 768px)
{
    .woocommerce-page .woocommerce-result-count {
        margin-bottom: 0;
    }
}

.woocommerce .woocommerce-ordering {
    width: 100%;
    max-width: 288px;
    margin: 0;  
}

.woocommerce .woocommerce-ordering select {
    border: none;
    outline: none;
    display: block;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    background-color: #fff;
    color: var(--uniqo-black);
    padding: 14px 20px;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 400;
    border: 1px solid var(--uniqo-dark-text);
    background-image: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><path fill="rgb(34, 36, 41)" d="M540.1 776.847l472.32-473.63c15.466-15.518 15.44-40.642-0.080-56.134-15.518-15.48-40.656-15.44-56.134 0.080l-444.208 445.438-444.206-445.454c-15.48-15.518-40.602-15.558-56.122-0.080-7.78 7.766-11.67 17.94-11.67 28.114 0 10.148 3.864 20.282 11.59 28.034l472.308 473.632c7.436 7.474 17.556 11.668 28.1 11.668s20.652-4.206 28.102-11.668z"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: .65em auto;
}
.woocommerce .product-sorter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
 .woocommerce ul.uniqo-product-list{
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    margin-left: -15px;
    margin-right: -15px;
}
.woocommerce nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
}
.woocommerce ul.uniqo-product-list li.product {
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}
.woocommerce nav.woocommerce-pagination ul li,.woocommerce nav.woocommerce-pagination ul{
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current{
    background-color: var(--uniqo-black);
    color: var(--uniqo-light);
}

@media (min-width: 992px) {
    .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
        height: 42px;
        width: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--uniqo-light-text);
        border-radius: 100%;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(225, 225, 225);
        border-image: initial;
    }
    .woocommerce ul.uniqo-product-list li.product.col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .woocommerce ul.uniqo-product-list li.product.col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .woocommerce ul.uniqo-product-list li.product.col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (max-width: 1199px) {
    .woocommerce ul.uniqo-product-list li.product[class*="col-"] {
        width: 50%;
    }
}

@media (max-width: 399px) {
    .woocommerce ul.uniqo-product-list li.product[class*="col-"] {
        width: 100%;
    }
}

.woocommerce .product-image img{
    width: 100%;
}
/* Parent product container should allow stacking */
.woocommerce ul.products li.product .product-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Add to Cart button styling (already applied, for reference) */
.woocommerce ul.products li.product .product-image a.button {
    height: 50px;
    border-radius: 6px;
    background-color: var(--uniqo-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uniqo-light);
    font-size: 16px;
    line-height: 50px;
    margin: 0;
    padding: 10px 18px;
    text-align: center;
    font-weight: 400;
    margin-top: 0;
}

/* Style the "View cart" button to appear below with matching design */
.woocommerce ul.products li.product .product-image .added_to_cart.wc-forward {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 6px;
    background-color: var(--uniqo-black);
    color: var(--uniqo-light) !important;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 44px;
}

/* Hover effect to match */
.woocommerce ul.products li.product .product-image .added_to_cart.wc-forward:hover {
    background-color: var(--uniqo-black);
    color: var(--uniqo-light) !important;
}

.wc-block-cart__submit-button{
   background-color: var(--uniqo-black);
    color: var(--uniqo-light) ; 
     border-radius: 6px;
}
.wc-block-checkout__sidebar .wc-block-components-product-name{
    color: var(--uniqo-black) !important;
    font-size: 1.2em !important;
}
.wp-block-woocommerce-checkout{
    margin-top: 0;
}
.woocommerce ul.products li.product .product-image a.added{
    display: none !important;
}

.woocommerce .product-image:hover a,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover{
    background-color: var(--uniqo-black);
    color: var(--uniqo-light);
}

.woocommerce ul.products li.product .product-image span.onsale,.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 22px;
    border-radius: 6px;
    background-color: var(--uniqo-black);
    color: var(--uniqo-light);
    margin: 0;
    min-height: auto;
    width: auto;
    line-height: 18px;
    font-weight: 500;
}
.woocommerce span.onsale{
    left: 15px;
    right: auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size: 22px;
    color: var(--uniqo-dark-text);
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price{
    color: var(--uniqo-light-text);
}
.woocommerce .product-image{
    margin-bottom: 5px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--uniqo-black);
    color: #fff;
}
.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: var(--uniqo-light-text);
}

.product-details-left, .product-details-right {
    position: relative;
}

.woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary{
    width: 100%;
    float: none;
}

.woocommerce .product .product-details-left .images, .woocommerce .product .product-details-right .summary {
    width: 100%;
    float: none;
}

.woocommerce-tabs h2,.related h2{
    font-size: 26px;
}

.woocommerce .product #review_form #respond .comment-form-rating {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.woocommerce #review_form #respond .form-submit input,.woocommerce button.single_add_to_cart_button.button.alt:hover{
    background-color: var(--uniqo-secondary);
    color: var(--uniqo-light);
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.woocommerce #review_form #respond .form-submit input:hover{
    background-color: var(--uniqo-black);
     color: var(--uniqo-light);
}
.woocommerce .single_add_to_cart_button{
    background-color: var(--uniqo-secondary) !important;
    color: var(--uniqo-light) !important;
    font-weight: 400 !important;
    padding: 15px 20px !important;
}
.woocommerce .single_add_to_cart_button:hover{
    background-color: var(--uniqo-black) !important;
    color: var(--uniqo-light) !important;
    font-weight: 400 !important;
    padding: 15px 20px !important;
}
.woocommerce .quantity .qty{
    min-height: 46px;
}


.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #3B444333;
    margin-bottom: 20px;
    padding: 0;
}

ul.tabs .description_tab {
    position: relative;
    background-color: transparent;
    padding: 20px;
    margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li{
    background:transparent;
    border: none;
    padding: 20px 40px;
    font-weight: 500;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
    font-weight:500 ;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before{
    border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
   
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    transition: all 0.5s;
    background-color: var(--uniqo-dark-text);
    border: none;
}    
.woocommerce div.product .woocommerce-tabs ul.tabs li::before{
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after{
    border: none;
    box-shadow: none;
}
.woocommerce div.product .product_title{
    font-size: 34px;
}

.shop-widget {
    padding: 24px 40px;
    background-color: #F9F9F9;
    margin-bottom: 35px;
}

ul.product-categories{
    padding: 0;
    margin: 0;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{
    background-color: var(--uniqo-dark-text);
    top: -9px;
}
.woocommerce .widget_price_filter .ui-slider{
    margin-left: 0;
    margin-right: 0;
}
.woocommerce .widget_price_filter .ui-slider-horizontal{
    height: 1px;
    background: var(--uniqo-dark-text);
}
.woocommerce .widget_price_filter .price_slider_amount .button{
    background-color: var(--uniqo-primary);
    font-weight: 500;
    color: var(--uniqo-black);
}


.woo-widget-area .woocommerce .product_list_widget li,
.woo-widget-area .woocommerce .wc-block-product-categories-list.wc-block-product-categories-list--has-images li.wc-block-product-categories-list-item {
    display: block;
    padding-left: 74px;
    margin-left: 0;
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
}
.woo-widget-area .woocommerce .product_list_widget li .amount,
.woo-widget-area  .widget.woocommerce .product_list_widget li ins .amount {
    padding-left: 0;
    font-weight: 500;
    font-size: 15px;
    color:  var(--uniqo-light-text);
    line-height: 1;
    margin-top: -4px;
}

.woo-widget-area .woocommerce .product_list_widget li .product-title {
    color: var(--uniqo-black);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    display: block;
    position: relative;
    top: -7px;
    font-family: var(--uniqo-heading-font);
}


.woo-widget-area .woocommerce .product_list_widget li img {
    float: none;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    margin: 0;
    margin-right: 20px;
}