/*
Theme Name: Kha Han Store

WooCommerce styles override
*/
.woocommerce-products-header__title {
  text-transform: uppercase;
  font-size: 1.3rem;
  color: #941e1e;
  border-bottom: 1px solid;
}

.price {
  color: red;
  font-weight: bold;
}
.price > del {
  color: #aaa;
  font-weight: normal;
  font-size: 0.9em;
}
.price > ins {
  background: none;
}

.product_title {
  font-size: 1.5em;
  color: #333;
}

.woocommerce-breadcrumb,
.woocommerce-ordering {
  margin: 1em;
}

.woocommerce-breadcrumb {
  color: #757575;
  font-size: 0.9em;
}
.woocommerce-breadcrumb a {
  color: #585858;
}

/**
 * Shop tables
 */
.woocommerce-cart-form {
  margin: 0 1em;
}

.woocommerce button[name=update_cart],
.woocommerce input[name=update_cart] {
  display: none;
}

table.shop_table_responsive thead {
  display: none;
}
table.shop_table_responsive tbody th {
  display: none;
}
table.shop_table_responsive tr td {
  display: block;
  text-align: right;
  clear: both;
}
table.shop_table_responsive tr td::before {
  content: attr(data-title) ": ";
  float: left;
  font-weight: bold;
}
table.shop_table_responsive tr td.product-remove a {
  text-align: left;
  color: #941e1e;
  font-weight: bold;
  font-size: 1.5em;
}
table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.product-thumbnail::before, table.shop_table_responsive tr td.actions::before, table.shop_table_responsive tr td.download-actions::before {
  display: none;
}
table.shop_table_responsive tr td.download-actions .button {
  display: block;
  text-align: center;
}
table.shop_table_responsive tr td.product-price > span {
  color: #941e1e;
}
table.shop_table_responsive tr td.product-subtotal {
  margin-bottom: 1em;
  font-weight: bold;
}
table.shop_table_responsive .wp-element-button {
  margin-top: 1em;
}

.woocommerce-cart-form__cart-item.cart_item {
  border-bottom: 1px solid #eee;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.woocommerce-cart-form__cart-item.cart_item .product-name {
  grid-column: 2/span 2;
  text-align: left;
}
.woocommerce-cart-form__cart-item.cart_item .product-name::before {
  display: none;
}
.woocommerce-cart-form__cart-item.cart_item .product-remove,
.woocommerce-cart-form__cart-item.cart_item .product-price,
.woocommerce-cart-form__cart-item.cart_item .product-quantity,
.woocommerce-cart-form__cart-item.cart_item .product-subtotal {
  grid-column: 1/span 3;
}

.cart_totals {
  margin: 0 1em;
}
.cart_totals .order-total {
  border-top: 1px solid #eee;
}
.cart_totals .order-total .amount {
  font-size: 1.5em;
  color: #f00;
}
.cart_totals .wc-proceed-to-checkout .checkout-button {
  display: block;
  padding: 1em 2em;
  color: #fff;
  text-transform: uppercase;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  background: #8A2387; /* fallback for old browsers */ /* Chrome 10-25, Safari 5.1-6 */
  background: -webkit-gradient(linear, left top, right top, from(#F27121), color-stop(#E94057), to(#8A2387));
  background: -o-linear-gradient(left, #F27121, #E94057, #8A2387);
  background: linear-gradient(to right, #F27121, #E94057, #8A2387); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.cart_totals .wc-proceed-to-checkout .checkout-button:visited {
  color: #fff;
}

ul#shipping_method {
  list-style: none;
  display: block;
  padding: 0;
}

ul#shipping_method li {
  text-align: left;
}

table.shop_table_responsive tr.woocommerce-shipping-totals td::before {
  display: block;
  float: none;
  text-align: left;
}

.shipping_method {
  margin-right: 10px;
}

.woocommerce-checkout-review-order {
  margin: 1em;
}

.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table th,
.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
  padding: 1em 0;
}
.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-table--order-details .product-name,
.woocommerce-table--order-details tfoot th {
  text-align: left;
}
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-table--order-details .product-total,
.woocommerce-table--order-details tfoot td {
  text-align: right;
}
.woocommerce-checkout-review-order-table .amount,
.woocommerce-table--order-details .amount {
  color: #b3321c;
}
.woocommerce-checkout-review-order-table .cart_item,
.woocommerce-checkout-review-order-table .order_item,
.woocommerce-table--order-details .cart_item,
.woocommerce-table--order-details .order_item {
  padding: 1em;
  border-top: 1px solid #eee;
}
.woocommerce-checkout-review-order-table tfoot,
.woocommerce-table--order-details tfoot {
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #eee;
}
.woocommerce-checkout-review-order-table tfoot tr:last-child .amount,
.woocommerce-table--order-details tfoot tr:last-child .amount {
  font-weight: bold;
}

.wc_payment_methods {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}
.wc_payment_methods .payment_box {
  background: #eee;
  margin: 1em;
  padding: 1em;
  border-radius: 8px;
}
.wc_payment_methods .payment_box p {
  margin: 0;
}

.woocommerce-thankyou-order-details {
  background: #b3d3b3;
  padding: 1em;
  border-radius: 8px;
  list-style: none;
  color: #005824;
}

.woocommerce-order-details,
.woocommerce-customer-details {
  margin: 1em;
}
.woocommerce-order-details address,
.woocommerce-customer-details address {
  margin: 1em 0;
  padding: 1em;
  background: #a9d2fa;
  border-radius: 8px;
  color: #004992;
}
.woocommerce-order-details address p,
.woocommerce-customer-details address p {
  margin: 1em 0;
}

@media screen and (min-width: 768px) {
  table.shop_table_responsive thead {
    display: table-header-group;
  }
  table.shop_table_responsive tbody th {
    display: table-cell;
  }
  table.shop_table_responsive tr {
    border-top: 1px solid #eee;
  }
  table.shop_table_responsive tr th,
table.shop_table_responsive tr td {
    text-align: left;
  }
  table.shop_table_responsive tr td {
    display: table-cell;
  }
  table.shop_table_responsive tr td::before {
    display: none;
  }
  .woocommerce-cart-form__cart-item.cart_item {
    display: table-row;
  }
  .cart_totals .wc-proceed-to-checkout .checkout-button {
    max-width: 300px;
  }
}
/**
 * Products
 */
ul.products,
.wc-block-grid__products {
  margin: 0;
  padding: 1em;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

ul.products li.product,
li.wc-block-grid__product {
  list-style: none;
  position: relative;
  background-color: #fff;
  border-radius: 1em;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
          box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

ul.products li.product img,
.wc-block-grid__product-image > img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  border-radius: 1em 1em 0 0;
}

.woocommerce-loop-product__title,
.wc-block-grid__product-title {
  font-size: 1em;
  font-weight: bold;
  padding: 0.5em 0.8em;
  margin: 0;
  color: #333;
}

.onsale,
.wc-block-grid__product-onsale {
  position: absolute;
  top: 5px;
  right: 10px;
  background: red;
  color: #fff;
  padding: 3px 5px;
  border-radius: 1em;
  font-size: 0.9em;
  z-index: 99;
}

.wc-block-grid__product-rating .star-rating,
.woocommerce-loop-product__link .star-rating {
  margin: 0 auto;
}

ul.products li.product .button,
.wp-block-button__link {
  display: inline-block;
  padding: 0.5em 0.8em;
  margin: 1em 0.5em;
  font-size: 0.9em;
  background: #b3321c;
  color: #fff;
  border-radius: 2em;
  white-space: nowrap;
}
ul.products li.product .button:hover, ul.products li.product .button:visited,
.wp-block-button__link:hover,
.wp-block-button__link:visited {
  color: #fff;
}

@media screen and (min-width: 768px) {
  .wc-block-grid__products,
ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
  ul.products.columns-1 {
    grid-template-columns: repeat(1, 1fr);
  }
  ul.products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 	ul.products.columns-4 {
  		grid-template-columns: repeat(4, 1fr);
  	} */
  ul.products.columns-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  ul.products.columns-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}
/**
 * Single product
 */
.single-product div.product {
  position: relative;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.single-product div.product .woocommerce-product-gallery {
  position: relative;
}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 1em;
  right: 1em;
  display: block;
  z-index: 99;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5px;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
  list-style: none;
  cursor: pointer;
  float: left;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  opacity: 0.5;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  opacity: 1;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
  opacity: 1;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
  width: 48.1%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
  margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
  clear: both;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
  width: 30.79667%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
  margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
  clear: both;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
  width: 22.15%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
  margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
  clear: both;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
  width: 16.96%;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
  margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
  clear: both;
}

/* .woocommerce-product-gallery__image img {
    width: 100%;
} */
.woocommerce-product-gallery__image {
  text-align: center;
}

.woocommerce-product-gallery__image img {
  width: auto;
  max-height: 350px;
}

.stock:empty::before {
  display: none;
}

.stock.in-stock {
  color: #0f834d;
}

.stock.out-of-stock {
  color: #e2401c;
}

.woocommerce-product-rating {
  margin: 1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1em;
}

.woocommerce-review-link {
  color: #999;
}

.single-product .onsale {
  left: 22px;
  right: auto;
}
.single-product .summary {
  border-bottom: 10px solid #eee;
}
.single-product .summary .price {
  font-size: 1.5rem;
}
.single-product .summary .price del {
  font-size: 1rem;
}
.single-product form.cart {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 1em;
  gap: 1em;
}
.single-product form.cart .qty {
  width: 80px;
}

.quantity {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: right;
      -ms-flex-pack: right;
          justify-content: right;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.quantity .qty_button {
  border-radius: 0;
  background: #aaa;
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  width: 45px;
}
.quantity .qty {
  width: 55px;
  border-radius: 0;
  text-align: right;
  padding: 0.3em;
}

.product_meta {
  margin: 1em;
  color: #6e7171;
  font-style: italic;
}
.product_meta > span {
  display: block;
  border-top: 1px solid #eee;
  padding: 0.5em 0;
}
.product_meta a {
  border: 1px solid;
  display: inline-block;
  padding: 0.3em 0.5em;
  border-radius: 8px;
  background: #848687;
  margin: 0 0.5em;
  color: #fff;
}
.product_meta a:visited {
  color: #fff;
}

.form-row label {
  color: #6e7171;
}

.woocommerce-input-wrapper {
  display: block;
}
.woocommerce-input-wrapper input {
  width: 100%;
}

.sticky-bottom-bar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  padding: 0.5em 0;
  margin: 0 1em;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.sticky-button {
  background: #8A2387;
  background: -webkit-gradient(linear, left top, right top, from(#F27121), color-stop(#E94057), to(#8A2387));
  background: -o-linear-gradient(left, #F27121, #E94057, #8A2387);
  background: linear-gradient(to right, #F27121, #E94057, #8A2387);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-transform: uppercase;
  font-weight: bold;
  width: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sticky-button:visited {
  color: #fff;
}

.cart-collaterals {
  background: #f5f5f5;
  padding: 1em 0;
}
.cart-collaterals h2 {
  display: none;
}

@media screen and (min-width: 768px) {
  .single-product--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 1em;
  }
  .single-product .summary {
    border-width: 0px;
  }
  .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .sticky-bottom-bar {
    text-align: left;
  }
  .sticky-button {
    max-width: 257px;
  }
  .quantity .qty {
    padding: 0.3em 1em;
  }
  .cart-collaterals {
    background: #fff;
  }
}
/**
 * Checkout
 */
/**
 * General WooCommerce components
 */
/**
 * Header cart
 */
.site-header-cart {
  position: absolute;
  top: 19px;
  right: 15px;
  margin: 0;
  padding: 0;
  display: inline-block;
}
.site-header-cart .cart-contents > span {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #941e1e;
  color: #fff;
  border-radius: 4rem;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  line-height: 1.6;
}
.site-header-cart .cart-contents:before {
  content: "";
  width: 30px;
  height: 30px;
  background: transparent;
  display: block;
  position: absolute;
  top: 0;
}

@media screen and (min-width: 768px) {
  .site-header-cart {
    top: 0;
    right: 0;
    position: relative;
  }
  .site-header-cart .cart-contents:before,
.site-header-cart svg {
    width: 50px;
    height: 50px;
  }
}
@media screen and (min-width: 992px) {
  .site-header-cart {
    top: 10px;
  }
}
/**
 * Star rating
 */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.618em;
  line-height: 1.618;
  width: 5.3em;
  font-family: star;
  font-weight: 400;
}

.star-rating::before {
  content: "SSSSS";
  opacity: 0.25;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: "SSSSS";
  top: 0;
  position: absolute;
  left: 0;
  color: orange;
}

p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  margin-right: 1px;
  font-weight: 400;
  color: orange;
}

p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: star;
  content: "S";
  color: #404040;
  text-indent: 0;
  opacity: 0.25;
}

p.stars a:hover ~ a::before {
  content: "S";
  color: #404040;
  opacity: 0.25;
}

p.stars:hover a::before {
  content: "S";
  color: orange;
  opacity: 1;
}

p.stars.selected a.active::before {
  content: "S";
  color: orange;
  opacity: 1;
}

p.stars.selected a.active ~ a::before {
  content: "S";
  color: #404040;
  opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
  content: "S";
  color: orange;
  opacity: 1;
}

/**
 * Tabs
 */
/* .woocommerce-tabs {

	ul.tabs {
		list-style: none;
		margin: 0;
		padding: 0;
		text-align: left;
		display: flex;
		gap: 1em;
		justify-content: center;
		border-bottom: 1px solid #eee;
		position: sticky;
		top: 0;
		background: #fff;

		li {
			display: block;
			margin: 0;
			position: relative;

			a {
				padding: 1em 0;
				display: block;
				color: #333;
			}

			&.active {
				font-weight: bold;
				a {color: #b3321c; border-bottom: 2px solid;}
			}
		}
	}

	.panel h2:first-of-type {
		margin-bottom: 1em;
	}

} */
/**
 * Password strength meter
 */
.woocommerce-password-strength {
  text-align: right;
}

.woocommerce-password-strength.strong {
  color: #0f834d;
}

.woocommerce-password-strength.short {
  color: #e2401c;
}

.woocommerce-password-strength.bad {
  color: #e2401c;
}

.woocommerce-password-strength.good {
  color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
  -webkit-box-shadow: inset 2px 0 0 #0f834d;
          box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
  -webkit-box-shadow: inset 2px 0 0 #e2401c;
          box-shadow: inset 2px 0 0 #e2401c;
}

.required {
  color: #f00;
}

/**
 * Notices
 */
.woocommerce-notices-wrapper {
  color: #fff;
  margin: 1em;
}
.woocommerce-notices-wrapper a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}
.woocommerce-notices-wrapper > div {
  padding: 1em;
  border-radius: 1em;
}

.cart-empty {
  padding: 1em;
  border-radius: 1em;
  color: #fff;
  margin: 1em;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  background-color: #0f834d;
  clear: both;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
  background-color: #3d9cd2;
}

.woocommerce-error {
  background-color: #e2401c;
}

.demo_store {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 1em;
  background-color: #3d9cd2;
  z-index: 9999;
}

@media screen and (min-width: 768px) {
  /**
   * Header cart
   */
  .site-header-cart .widget_shopping_cart {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 999999;
    left: -999em;
    display: block;
    -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
            box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }
  .site-header-cart:hover .widget_shopping_cart,
.site-header-cart.focus .widget_shopping_cart {
    left: 0;
    display: block;
  }
}
/**
 * WooCommerce widgets
 */
/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
  margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
  text-align: right;
  line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
  float: left;
}

.widget_price_filter .ui-slider {
  position: relative;
  text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1em;
  height: 1em;
  cursor: ew-resize;
  outline: none;
  background: #4169e1;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-top: -0.25em;
  opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
  margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
  -webkit-box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
  height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
  height: 100%;
}

#billing_country_field {display: none;}