.woocommerce-cart .entry-summary,
.woocommerce-checkout .entry-summary,
.woocommerce-account .entry-summary {
  width: 100%;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  padding: 60px 0;
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 12px 14px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  background: #4d8f00;
  color: #fff;
  border-radius: 0;
}

.woocommerce .quantity .qty {
  min-height: 42px;
}


.cs-woo-archive .column-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.cs-woo-archive .column.filters {
  width: 280px;
  flex: 0 0 280px;
}

.cs-woo-archive .column.item-list {
  flex: 1;
  min-width: 0;
}

.cs-woo-archive .woocommerce-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.cs-woo-archive ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-woo-archive ul.products li.product,
.cs-woo-archive ul.products li.item {
  list-style: none;
}

.cs-woo-archive .filters-wrapper .woo-widget {
  margin-bottom: 24px;
}

.cs-woo-archive .filters-wrapper .widget-title {
  margin-bottom: 12px;
}

.cs-woo-archive .woocommerce-ordering {
  margin: 0;
}

.cs-woo-archive .woocommerce-result-count {
  margin: 0;
}

.cs-woo-archive {
  padding-bottom: 80px;
}

.cs-woo-archive .column-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.cs-woo-archive .column.filters {
  width: 280px;
  flex: 0 0 280px;
}

.cs-woo-archive .column.item-list {
  flex: 1;
  min-width: 0;
}

.cs-woo-archive .column-wrapper.no-sidebar .column.item-list {
  width: 100%;
  flex: 1 1 100%;
}

.cs-woo-archive .woocommerce-toolbar,
.cs-woo-archive .col-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cs-woo-archive ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-woo-archive ul.products.columns-4,
.cs-woo-archive ul.products.cs-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.cs-woo-archive ul.products li.product,
.cs-woo-archive ul.products li.item {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  list-style: none;
}

.cs-woo-archive .item-inner {
  height: 100%;
}

.cs-woo-archive .img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-woo-archive .woocommerce-result-count,
.cs-woo-archive .woocommerce-ordering {
  margin: 0;
}

.cs-woo-archive .filters-wrapper .woo-widget {
  margin-bottom: 24px;
}

.cs-woo-archive .filters-wrapper .widget-title {
  margin-bottom: 12px;
}

.cs-single-product-wrapper {
  padding-bottom: 80px;
}

.cs-single-product-wrapper .price-button-wrapper form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-single-product-wrapper .price-button-wrapper .quantity {
  margin: 0;
}

.cs-single-product-wrapper .related-products-section {
  margin-top: 80px;
}

@media (max-width: 1199px) {
  .cs-woo-archive ul.products.columns-4,
  .cs-woo-archive ul.products.cs-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .cs-woo-archive .column-wrapper {
    flex-direction: column;
  }

  .cs-woo-archive .column.filters {
    width: 100%;
    flex: 1 1 auto;
  }

  .cs-woo-archive ul.products.columns-4,
  .cs-woo-archive ul.products.cs-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .cs-woo-archive ul.products.columns-4,
  .cs-woo-archive ul.products.cs-products-grid {
    grid-template-columns: 1fr;
  }
}


/* WooCommerce single product only */
body.single-product.cs-woocommerce .product-intro .column:first-child {
  min-width: 0;
}

body.single-product.cs-woocommerce .large-img-carousel,
body.single-product.cs-woocommerce .single-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #f2f2f2;
}

body.single-product.cs-woocommerce .large-img-carousel .owl-stage-outer,
body.single-product.cs-woocommerce .large-img-carousel .owl-stage,
body.single-product.cs-woocommerce .large-img-carousel .owl-item,
body.single-product.cs-woocommerce .large-img-carousel .item {
  height: 100%;
}

body.single-product.cs-woocommerce .large-img-carousel .owl-item {
  display: flex;
}

body.single-product.cs-woocommerce .large-img-carousel .owl-item .item {
  width: 100%;
}

body.single-product.cs-woocommerce .large-img-carousel .item,
body.single-product.cs-woocommerce .single-image-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

body.single-product.cs-woocommerce .large-img-carousel .item img,
body.single-product.cs-woocommerce .single-image-wrapper img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Woo thumbs only */
body.single-product.cs-woocommerce .thumbs-carousel .item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

body.single-product.cs-woocommerce .thumbs-carousel .item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Woo single product: improve price / quantity / add to cart layout */
body.single-product.cs-woocommerce .price-button-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
}

body.single-product.cs-woocommerce .price-button-wrapper .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 110px;
  line-height: 1.2;
}

body.single-product.cs-woocommerce .price-button-wrapper .price del,
body.single-product.cs-woocommerce .price-button-wrapper .price ins {
  display: block;
}

body.single-product.cs-woocommerce .price-button-wrapper .price del {
  font-size: 16px;
  color: #777;
  margin-bottom: 4px;
}

body.single-product.cs-woocommerce .price-button-wrapper .price ins {

  font-weight: 700;
  color: #111;
  text-decoration: none;
}

body.single-product.cs-woocommerce .price-button-wrapper .btn-wrapper {
  flex: 1 1 auto;
}

body.single-product.cs-woocommerce .price-button-wrapper form.cart {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

body.single-product.cs-woocommerce .price-button-wrapper .quantity {
  margin: 0;
}

body.single-product.cs-woocommerce .price-button-wrapper .quantity .qty {
  width: 120px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  font-size: 18px;
}

body.single-product.cs-woocommerce .price-button-wrapper .single_add_to_cart_button {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 0;
  background: #4d8f00;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
}

body.single-product.cs-woocommerce .price-button-wrapper .single_add_to_cart_button:hover {
  background: #3f7600;
}

body.single-product.cs-woocommerce .social-media-container {
  margin-top: 16px;
}

@media (max-width: 767px) {
  body.single-product.cs-woocommerce .price-button-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  body.single-product.cs-woocommerce .price-button-wrapper .btn-wrapper,
  body.single-product.cs-woocommerce .price-button-wrapper form.cart {
    width: 100%;
  }

  body.single-product.cs-woocommerce .price-button-wrapper .quantity .qty {
    width: 100px;
  }
}

/* =========================
   Woo variable product layout
   ========================= */

body.single-product.cs-woocommerce .price-button-wrapper {
  display: grid;
  grid-template-columns: 120px minmax(180px, 220px) minmax(260px, 1fr);
  gap: 18px 18px;
  align-items: start;
  margin: 24px 0 20px;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.15;
  min-width: 0;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price del,
body.single-product.cs-woocommerce .price-button-wrapper > .price ins,
body.single-product.cs-woocommerce .price-button-wrapper > .price .woocommerce-Price-amount,
body.single-product.cs-woocommerce .price-button-wrapper > .price > span {
  display: block;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price del {
  color: #777;
  font-size: 20px;
  margin-bottom: 4px;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price ins {
  color: #111;
  text-decoration: none;
  font-size: 28px;
}

body.single-product.cs-woocommerce .price-button-wrapper .btn-wrapper {
  min-width: 0;
}

/* Variable form main wrapper */
body.single-product.cs-woocommerce .variations_form.cart {
  display: contents;
}

/* Variation table goes in middle column */
body.single-product.cs-woocommerce .variations {
  grid-column: 2;
  margin: 0;
  border: 0;
  width: 100%;
}

body.single-product.cs-woocommerce .variations tbody,
body.single-product.cs-woocommerce .variations tr,
body.single-product.cs-woocommerce .variations td,
body.single-product.cs-woocommerce .variations th {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
}

body.single-product.cs-woocommerce .variations th.label {
  margin: 0 0 8px;
}

body.single-product.cs-woocommerce .variations th.label label {
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

body.single-product.cs-woocommerce .variations td.value {
  position: relative;
}

body.single-product.cs-woocommerce .variations select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #6d9f2d;
  background: #fff;
  font-size: 18px;
}

/* Clear link under dropdown */
body.single-product.cs-woocommerce .reset_variations {
  display: inline-block !important;
  margin-top: 8px;
  font-size: 14px;
  color: #777;
  text-decoration: none;
}

body.single-product.cs-woocommerce .reset_variations:hover {
  color: #111;
}

/* Hide screen-reader alert spacing issues */
body.single-product.cs-woocommerce .reset_variations_alert {
  display: none !important;
}

/* Selected variation area goes in right column */
body.single-product.cs-woocommerce .single_variation_wrap {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body.single-product.cs-woocommerce .woocommerce-variation.single_variation {
  margin: 0;
  min-height: 32px;
}

body.single-product.cs-woocommerce .woocommerce-variation-price .price {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1.15;
}

body.single-product.cs-woocommerce .woocommerce-variation-price .price .woocommerce-Price-amount {
  display: inline-block;
}

/* Quantity + add to cart on same line */
body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 0;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .quantity {
  margin: 0;
  flex: 0 0 92px;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .quantity .qty {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
  font-size: 18px;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  border-radius: 0;
  background: #4d8f00;
  color: #fff;
  box-shadow: none;
  white-space: nowrap;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
  background: #3f7600;
}

/* Keep social icons below */
body.single-product.cs-woocommerce .brand-social-wrapper {
  margin-top: 18px;
}

/* Mobile / tablet */
@media (max-width: 991px) {
  body.single-product.cs-woocommerce .price-button-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.single-product.cs-woocommerce .price-button-wrapper > .price,
  body.single-product.cs-woocommerce .variations,
  body.single-product.cs-woocommerce .single_variation_wrap {
    grid-column: auto;
  }

  body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart {
    flex-wrap: wrap;
  }

  body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 110px;
  }
}

/* --- Variable product: cleaner top pricing + inline size row --- */

body.single-product.cs-woocommerce .price-button-wrapper {
  grid-template-columns: 150px minmax(260px, 1fr) minmax(240px, 320px);
}

/* Range price: one line, smaller than selected price */
body.single-product.cs-woocommerce .price-button-wrapper > .price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
  margin-top: 6px;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price del,
body.single-product.cs-woocommerce .price-button-wrapper > .price ins,
body.single-product.cs-woocommerce .price-button-wrapper > .price .woocommerce-Price-amount,
body.single-product.cs-woocommerce .price-button-wrapper > .price > span {
  display: inline;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price del {
  font-size: 16px;
  color: #777;
  margin: 0;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price ins {
  font-size: 16px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
}

/* Size label + dropdown + clear on one visual row */
body.single-product.cs-woocommerce .variations {
  margin-top: 2px;
}

body.single-product.cs-woocommerce .variations tr {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.single-product.cs-woocommerce .variations th.label {
  margin: 0;
  flex: 0 0 auto;
}

body.single-product.cs-woocommerce .variations th.label label {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  
}

body.single-product.cs-woocommerce .variations td.value {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.single-product.cs-woocommerce .variations select {
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0;
}

body.single-product.cs-woocommerce .reset_variations {
  margin: 0 !important;
  white-space: nowrap;
  align-self: center;
}

/* Selected variation price slightly bigger than range */
body.single-product.cs-woocommerce .woocommerce-variation-price .price {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

@media (max-width: 991px) {
  body.single-product.cs-woocommerce .price-button-wrapper {
    grid-template-columns: 1fr;
  }

  body.single-product.cs-woocommerce .price-button-wrapper > .price {
    margin-top: 0;
  }

  body.single-product.cs-woocommerce .variations tr {
    align-items: flex-start;
  }

  body.single-product.cs-woocommerce .variations td.value {
    width: 100%;
  }
}

/* ===========================
   Variable product final override
   Add this at the VERY END
   =========================== */

body.single-product.cs-woocommerce .price-button-wrapper {
  display: flex !important;
  align-items: flex-start !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

/* Left range price */
body.single-product.cs-woocommerce .price-button-wrapper > .price {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 8px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #555 !important;
  line-height: 1.2 !important;
  min-width: 150px !important;
  margin-top: 10px !important;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price del,
body.single-product.cs-woocommerce .price-button-wrapper > .price ins,
body.single-product.cs-woocommerce .price-button-wrapper > .price .woocommerce-Price-amount,
body.single-product.cs-woocommerce .price-button-wrapper > .price > span {
  display: inline !important;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price del {
  font-size: 18px !important;
  color: #777 !important;
  margin: 0 !important;
}

body.single-product.cs-woocommerce .price-button-wrapper > .price ins {
  font-size: 18px !important;
  color: #555 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* Right side wrapper */
body.single-product.cs-woocommerce .price-button-wrapper .btn-wrapper {
  flex: 1 1 420px !important;
  min-width: 320px !important;
}

/* Stop the form from behaving strangely */
body.single-product.cs-woocommerce .variations_form.cart {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Size row */
body.single-product.cs-woocommerce .variations {
  width: 100% !important;
  margin: 0 0 14px !important;
  border: 0 !important;
}

body.single-product.cs-woocommerce .variations tbody {
  display: block !important;
  width: 100% !important;
}

body.single-product.cs-woocommerce .variations tr {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
}

body.single-product.cs-woocommerce .variations th,
body.single-product.cs-woocommerce .variations td {
  padding: 0 !important;
  border: 0 !important;
}

body.single-product.cs-woocommerce .variations th.label {
  flex: 0 0 auto !important;
  margin: 0 !important;
  text-align: left;
}

body.single-product.cs-woocommerce .variations th.label label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #444 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

body.single-product.cs-woocommerce .variations td.value {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.single-product.cs-woocommerce .variations select {
 flex: 0 1 0px !important;
  width: 260px !important;
  min-width: 89px !important;
  max-width: 100% !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  border: 1px solid #6d9f2d !important;
  background: #fff !important;
  font-size: 18px !important;
  margin: 0 !important;
}

body.single-product.cs-woocommerce .reset_variations {
  display: inline-block !important;
  margin: 0 !important;
  font-size: 14px !important;
  color: #777 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

body.single-product.cs-woocommerce .reset_variations:hover {
  color: #111 !important;
}

/* Hide SR alert spacing */
body.single-product.cs-woocommerce .reset_variations_alert {
  display: none !important;
}

/* Price + qty + button block */
body.single-product.cs-woocommerce .single_variation_wrap {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
}

body.single-product.cs-woocommerce .woocommerce-variation.single_variation {
  margin: 0 0 12px !important;
  min-height: 0 !important;
}

body.single-product.cs-woocommerce .woocommerce-variation-price .price {
  display: block !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #111 !important;
  line-height: 1.15 !important;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .quantity {
  flex: 0 0 96px !important;
  margin: 0 !important;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .quantity .qty {
  width: 100% !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
  border: 1px solid #d9d9d9 !important;
  background: #fff !important;
  font-size: 18px !important;
}

body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  min-height: 48px !important;
  padding: 0 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.single-product.cs-woocommerce .price-button-wrapper {
    flex-direction: column !important;
  }

  body.single-product.cs-woocommerce .price-button-wrapper .btn-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.single-product.cs-woocommerce .variations tr {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  body.single-product.cs-woocommerce .variations td.value {
    width: 100% !important;
  }

  body.single-product.cs-woocommerce .variations select {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  body.single-product.cs-woocommerce .woocommerce-variation-add-to-cart {
    flex-wrap: wrap !important;
  }
}

/* ===== Popular products hard reset ===== */
.top-rated-products.woo.woo-popular-products {
  padding: 56px 0 80px;
}

.top-rated-products.woo.woo-popular-products > .inner-wrapper > .title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 32px;
  color: #222;
}

.top-rated-products.woo.woo-popular-products .products-list {
  width: 100%;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: 100% !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li.item,
.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li.product {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  display: block !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .item-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #f7f7f7 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .item-inner > a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-decoration: none !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .img-wrapper {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #fff !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .img-wrapper img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 18px !important;
  flex: 1 1 auto !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .product-name {
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  color: #111 !important;
  margin: 0 !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .read-more {
  margin-top: auto !important;
  font-size: 14px !important;
  color: #4d8f00 !important;
  text-decoration: underline !important;
}

.top-rated-products.woo.woo-popular-products ul.products.popular-products-grid > li .product-category-name {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  display: inline-block !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  padding: 8px 12px !important;
  border-top-right-radius: 12px !important;
  z-index: 2 !important;
}

@media (max-width: 1199px) {
  .top-rated-products.woo.woo-popular-products ul.products.popular-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .top-rated-products.woo.woo-popular-products ul.products.popular-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 480px) {
  .top-rated-products.woo.woo-popular-products ul.products.popular-products-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ===== Woo archive sort buttons styled like old page-products ===== */

.cs-woo-archive .filters-wrapper .filter-group,
.cs-woo-archive .filters-wrapper .woo-filter-group {
  margin-top: 20px;
}

.cs-woo-archive .filters-wrapper .filter-group .title,
.cs-woo-archive .filters-wrapper .woo-filter-group > label {
  display: block;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button {
  display: block;
  position: relative;
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  margin: 5px;
  padding: 0;
  background: none;
  border: 0;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button input[type="radio"] {
  position: absolute;
  left: -9999px;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button label {
  display: block;
  padding: 10px;
  cursor: pointer;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  background-color: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button label svg {
  position: relative;
  width: 16px;
  height: 16px;
  top: 3px;
  margin-right: 5px;
  fill: #000;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button input[type="radio"]:checked + label {
  background-color: #3b7e00;
  color: #fff;
  border-color: #3b7e00;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button input[type="radio"]:checked + label svg {
  fill: #fff;
}

.cs-woo-archive .filters-wrapper .radio-inputs-list button label:hover {
  border-color: #3b7e00;
}

/* mobile */
@media only screen and (max-width: 575px) {
  .cs-woo-archive .filters-wrapper .radio-inputs-list button {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
