/* ==========================================================
   Creemly Shop
   ========================================================== */

.woocommerce-shop,
.post-type-archive-product {

  margin: 0;
  padding: 0;

  color: var(--creemly-text, #17201e);
}


/* ==========================================================
   Shop Container
   ========================================================== */

.woocommerce-shop .site-main,
.post-type-archive-product .site-main {

  width: 100%;
  max-width: 1400px;

  margin: 0 auto;
  padding: 45px 30px 70px;

  box-sizing: border-box;
}


/* ==========================================================
   Page Title
   ========================================================== */

.woocommerce-shop .woocommerce-products-header__title,
.post-type-archive-product .woocommerce-products-header__title {

  margin: 0 0 25px;

  color: var(--creemly-heading, #17201e);

  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;

  letter-spacing: -0.3px;
}


/* ==========================================================
   Shop Description
   ========================================================== */

.woocommerce-shop .woocommerce-products-header__description {

  max-width: 700px;

  margin: 0 0 25px;

  color: var(--creemly-text-muted, #68716e);

  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}


/* ==========================================================
   WooCommerce Ordering
   ========================================================== */

.woocommerce-shop .woocommerce-ordering,
.post-type-archive-product .woocommerce-ordering {

  float: none;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin: 0 0 20px;
  padding: 0;
}

.woocommerce-shop .woocommerce-ordering select,
.post-type-archive-product .woocommerce-ordering select {

  height: 38px;

  padding: 0 32px 0 12px;

  border: 1px solid var(--creemly-border, #dfe4e2);
  border-radius: 7px;

  background: #ffffff;

  color: var(--creemly-text, #17201e);

  font-family: inherit;
  font-size: 12px;
  font-weight: 500;

  outline: none;
}


/* ==========================================================
   Product Grid
   ========================================================== */

.woocommerce-shop ul.products,
.post-type-archive-product ul.products {

  display: grid !important;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;

  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none;

  clear: both;
}


/* ==========================================================
   Product Card
   ========================================================== */

.woocommerce-shop ul.products li.product,
.post-type-archive-product ul.products li.product {

  display: flex;

  flex-direction: column;

  width: auto !important;

  float: none !important;

  margin: 0 !important;
  padding: 0 0 18px !important;

  box-sizing: border-box;

  border: 1px solid var(--creemly-border, #e1e5e3);
  border-radius: 12px;

  background: #ffffff;

  overflow: hidden;

  position: relative;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.woocommerce-shop ul.products li.product:hover,
.post-type-archive-product ul.products li.product:hover {

  transform: translateY(-2px);

  border-color: rgba(255, 107, 53, 0.25);

  box-shadow: 0 8px 24px rgba(23, 32, 30, 0.07);
}


/* ==========================================================
   Product Image
   ========================================================== */

.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link,
.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link {

  display: block;

  width: 100%;

  margin: 0;
  padding: 0;

  text-decoration: none;
}

.woocommerce-shop ul.products li.product img,
.post-type-archive-product ul.products li.product img {

  display: block;

  width: 100% !important;

  height: 240px !important;

  margin: 0 0 14px !important;
  padding: 0;

  object-fit: cover;

  border: 0;

  border-radius: 0;
}


/* ==========================================================
   Sale Badge
   ========================================================== */

.woocommerce-shop ul.products li.product .onsale,
.post-type-archive-product ul.products li.product .onsale {

  position: absolute;

  top: 12px;
  left: 12px;

  z-index: 2;

  min-width: auto;
  min-height: auto;

  margin: 0;
  padding: 5px 9px;

  border-radius: 5px;

  background: var(--creemly-primary, #ff6b35);

  color: #ffffff;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  text-align: center;
}


/* ==========================================================
   Product Content
   ========================================================== */

.woocommerce-shop ul.products li.product>a,
.post-type-archive-product ul.products li.product>a {

  color: inherit;
}


/* ==========================================================
   Product Name
   14px as requested
   ========================================================== */

.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {

  margin: 0 14px 7px !important;
  padding: 0 !important;

  color: var(--creemly-heading, #17201e);

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;

  letter-spacing: 0;
}


/* ==========================================================
   Product Description
   12px as requested
   ========================================================== */

.woocommerce-shop ul.products li.product .product-description,
.woocommerce-shop ul.products li.product .short-description,
.post-type-archive-product ul.products li.product .product-description,
.post-type-archive-product ul.products li.product .short-description {

  margin: 0 14px 9px;

  color: var(--creemly-text-muted, #68716e);

  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}


/* ==========================================================
   Product Rating
   ========================================================== */

.woocommerce-shop ul.products li.product .star-rating,
.post-type-archive-product ul.products li.product .star-rating {

  margin: 0 14px 8px !important;

  font-size: 11px;

  color: var(--creemly-primary, #ff6b35);
}


/* ==========================================================
   Product Price
   ========================================================== */

.woocommerce-shop ul.products li.product .price,
.post-type-archive-product ul.products li.product .price {

  display: block;

  margin: 0 14px 13px !important;

  color: var(--creemly-text, #17201e);

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

.woocommerce-shop ul.products li.product .price del,
.post-type-archive-product ul.products li.product .price del {

  color: #89918e;

  font-size: 12px;
  font-weight: 400;
}

.woocommerce-shop ul.products li.product .price ins,
.post-type-archive-product ul.products li.product .price ins {

  color: var(--creemly-primary, #ff6b35);

  text-decoration: none;
}


/* ==========================================================
   Add To Cart
   ========================================================== */

.woocommerce-shop ul.products li.product .add_to_cart_button,
.post-type-archive-product ul.products li.product .add_to_cart_button {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  align-self: flex-start;

  min-height: 38px;

  margin: auto 14px 0;
  padding: 0 15px;

  box-sizing: border-box;

  border: 1px solid var(--creemly-primary, #ff6b35);
  border-radius: 7px;

  background: var(--creemly-primary, #ff6b35);

  color: #ffffff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  line-height: 1;
  text-align: center;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.woocommerce-shop ul.products li.product .add_to_cart_button:hover,
.post-type-archive-product ul.products li.product .add_to_cart_button:hover {

  background: var(--creemly-primary-hover, #e85b2a);

  border-color: var(--creemly-primary-hover, #e85b2a);

  color: #ffffff;

  transform: translateY(-1px);
}


/* ==========================================================
   View Product / Read More
   ========================================================== */

.woocommerce-shop ul.products li.product .button,
.post-type-archive-product ul.products li.product .button {

  font-family: inherit;
}


/* ==========================================================
   Pagination
   ========================================================== */

.woocommerce-shop .woocommerce-pagination,
.post-type-archive-product .woocommerce-pagination {

  width: 100%;

  margin: 35px 0 0;

  text-align: center;
}

.woocommerce-shop .woocommerce-pagination ul.page-numbers,
.post-type-archive-product .woocommerce-pagination ul.page-numbers {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin: 0;
  padding: 0;

  border: 0;

  list-style: none;
}

.woocommerce-shop .woocommerce-pagination .page-numbers,
.post-type-archive-product .woocommerce-pagination .page-numbers {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 34px;
  height: 34px;

  padding: 0 8px;

  box-sizing: border-box;

  border: 1px solid var(--creemly-border, #dfe4e2);
  border-radius: 6px;

  background: #ffffff;

  color: var(--creemly-text, #17201e);

  font-size: 12px;
  font-weight: 600;

  text-decoration: none;
}

.woocommerce-shop .woocommerce-pagination .page-numbers.current,
.post-type-archive-product .woocommerce-pagination .page-numbers.current {

  background: var(--creemly-primary, #ff6b35);

  border-color: var(--creemly-primary, #ff6b35);

  color: #ffffff;
}


/* ==========================================================
   Remove WooCommerce Default Floats
   ========================================================== */

.woocommerce-shop ul.products::before,
.woocommerce-shop ul.products::after,
.post-type-archive-product ul.products::before,
.post-type-archive-product ul.products::after {

  display: none !important;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 900px) {

  .woocommerce-shop .site-main,
  .post-type-archive-product .site-main {

    padding: 35px 20px 55px;
  }

  .woocommerce-shop ul.products,
  .post-type-archive-product ul.products {

    gap: 18px;
  }

  .woocommerce-shop ul.products li.product img,
  .post-type-archive-product ul.products li.product img {

    height: 210px !important;
  }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {

  .woocommerce-shop .site-main,
  .post-type-archive-product .site-main {

    padding: 28px 14px 45px;
  }

  .woocommerce-shop .woocommerce-products-header__title,
  .post-type-archive-product .woocommerce-products-header__title {

    margin-bottom: 18px;

    font-size: 20px;
  }

  .woocommerce-shop ul.products,
  .post-type-archive-product ul.products {

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .woocommerce-shop ul.products li.product,
  .post-type-archive-product ul.products li.product {

    border-radius: 9px;

    padding-bottom: 13px !important;
  }

  .woocommerce-shop ul.products li.product img,
  .post-type-archive-product ul.products li.product img {

    height: 145px !important;

    margin-bottom: 10px !important;
  }

  .woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
  .post-type-archive-product ul.products li.product .woocommerce-loop-product__title {

    margin: 0 10px 5px !important;

    font-size: 14px !important;

    line-height: 1.35 !important;
  }

  .woocommerce-shop ul.products li.product .product-description,
  .woocommerce-shop ul.products li.product .short-description,
  .post-type-archive-product ul.products li.product .product-description,
  .post-type-archive-product ul.products li.product .short-description {

    margin: 0 10px 7px;

    font-size: 12px;

    line-height: 1.45;
  }

  .woocommerce-shop ul.products li.product .price,
  .post-type-archive-product ul.products li.product .price {

    margin: 0 10px 10px !important;

    font-size: 14px !important;
  }

  .woocommerce-shop ul.products li.product .add_to_cart_button,
  .post-type-archive-product ul.products li.product .add_to_cart_button {

    width: calc(100% - 20px);

    min-height: 36px;

    margin: auto 10px 0;

    padding: 0 8px;

    font-size: 12px;
  }

  .woocommerce-shop ul.products li.product .onsale,
  .post-type-archive-product ul.products li.product .onsale {

    top: 8px;
    left: 8px;

    padding: 4px 7px;

    font-size: 9px;
  }

  .woocommerce-shop .woocommerce-ordering,
  .post-type-archive-product .woocommerce-ordering {

    justify-content: flex-start;

    margin-bottom: 15px;
  }

}


/* ==========================================================
   Small Mobile
   ========================================================== */

@media (max-width: 400px) {

  .woocommerce-shop .site-main,
  .post-type-archive-product .site-main {

    padding-left: 10px;
    padding-right: 10px;
  }

  .woocommerce-shop ul.products,
  .post-type-archive-product ul.products {

    gap: 10px;
  }

  .woocommerce-shop ul.products li.product img,
  .post-type-archive-product ul.products li.product img {

    height: 130px !important;
  }

}