/*
Theme Name: Haidie Shop
Theme URI: https://example.com/haidie-shop
Author: Migration Team
Description: Legacy .NET storefront template migrated to WordPress + WooCommerce.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haidie-shop
*/

.site-main {
  display: block;
  min-height: 320px;
}

.logo .custom-logo-link,
.logo .custom-logo-link img,
.footer-site-name {
  display: inline-block;
}

.logo .custom-logo-link img,
.footer-site-name img {
  max-height: 70px;
  width: auto;
}

.logo .site-name,
.footer-site-name {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #0070bb;
}

.footer-site-name {
  color: #ffffff;
}

.home-banner .item img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
}

.newslist article {
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
}

.newslist article h3 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 8px;
}

.ntext,
.newslist,
.content-fallback {
  padding: 20px 0;
}

.content-fallback {
  width: 1200px;
}

.content-fallback .woocommerce {
  width: 100%;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  margin-top: 16px;
}

#ProductDetail .param .btnBuy,
#ProductDetail .param .btnShoppingCart {
  display: inline-block;
  width: auto;
  min-width: 45px;
  border: 0;
  background-color: #0070bb;
  color: #ffffff;
  text-align: center;
  margin-right: 5px;
  padding: 0 12px;
  height: 24px;
  line-height: 24px;
  cursor: pointer;
}

#ProductDetail .param .btnBuy:hover,
#ProductDetail .param .btnShoppingCart:hover {
  color: #ffffff;
  background-color: #1561a9;
}

#ProductDetail .info .param .quabtity > input {
  width: 120px;
  margin-right: 5px;
}

#ProductList .right_nav .prolist .item .txt .num {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

#ProductList .right_nav .prolist .item .txt .num .txtNum {
  width: 120px;
  margin: 0;
}

#ProductList .right_nav .prolist .item .txt .num .btnShoppingCart {
  width: 60px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  background: #0070bb;
  color: #ffffff;
  border-radius: 0 2px 2px 0;
  margin: 0;
}

#ProductList .right_nav .prolist .item .txt .num .btnShoppingCart i {
  font-size: 15px;
  line-height: 1;
}

#ProductList .right_nav .prolist .item .pricelist .btnFavorite {
  line-height: 20px;
}

#ProductList .right_nav .prolist .item .pricelist .btnFavorite i {
  font-size: 12px;
}

header .menu ul.main_nav > li.active::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 30px);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #ffffff;
}

header .menu ul.main_nav > li.active > a {
  color: #ffffff;
}

#Location i {
  font-style: normal;
}

@media (max-width: 1240px) {
  .content-fallback {
    width: calc(100% - 40px);
  }
}

.haidie-form-notice {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.haidie-form-notice.is-success {
  border: 1px solid #2f8f4e;
  background: #edf8f1;
  color: #1f6f3b;
}

.haidie-form-notice.is-error {
  border: 1px solid #d22e2e;
  background: #fff2f2;
  color: #9e1f1f;
}

#ContactPage .btn-group {
  clear: both;
}

#feedbacklist .item {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #d0d0d0;
}

#feedbacklist .item .orderinfo {
  float: left;
  width: 60%;
  line-height: 1.5;
}

#feedbacklist .item .orderinfo h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

#feedbacklist .item .orderinfo p {
  margin: 0;
}

#feedbacklist .item .star {
  float: right;
  width: 40%;
  text-align: right;
}

#feedbacklist .item .star > a {
  font-size: 24px;
  line-height: 36px;
  color: #d81e16;
}

#feedbacklist .item .remark {
  clear: left;
  padding-top: 10px;
}

.woocommerce-notices-wrapper {
  margin-top: 20px;
}

#Register .woocommerce-notices-wrapper,
#Account .woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

.haidie-auth-box .woocommerce-form,
.haidie-auth-box .woocommerce-form .form-row {
  margin: 0;
}

.haidie-auth-box .woocommerce-form .form-row + .form-row {
  margin-top: 10px;
}

.haidie-auth-box .woocommerce-form .form-row label {
  display: block;
  font-size: 13px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.haidie-auth-box .woocommerce-form input[type="text"],
.haidie-auth-box .woocommerce-form input[type="email"],
.haidie-auth-box .woocommerce-form input[type="password"],
.haidie-auth-box .woocommerce-form select {
  display: block;
  width: 100%;
  height: 32px;
  border: 1px solid #c6c6c6;
  background-color: #fff;
  border-radius: 5px;
  padding: 0 10px;
}

.haidie-auth-box .woocommerce-form select {
  padding: 0 8px;
}

.haidie-auth-box .woocommerce-form .woocommerce-form__label-for-checkbox {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 0;
}

.haidie-auth-box .woocommerce-form .woocommerce-form__label-for-checkbox input[type="checkbox"] {
  margin-top: 5px;
}

.haidie-auth-box .woocommerce-form .haidie-register-agree-label {
  display: block;
}

.haidie-auth-box .woocommerce-form .haidie-register-agree-label input[type="checkbox"] {
  margin-top: 0;
  margin-right: 6px;
}

.haidie-auth-box .woocommerce-form .haidie-rememberme-label {
  display: block;
}

.haidie-auth-box .woocommerce-form .haidie-rememberme-label input[type="checkbox"] {
  margin-top: 0;
  margin-right: 6px;
}

.haidie-auth-box .woocommerce-form .form-group {
  margin-top: 10px;
}

.haidie-auth-box .woocommerce-form .form-group:first-child {
  margin-top: 0;
}

.haidie-auth-alt-link {
  margin-top: 15px;
}

.haidie-empty-state {
  margin-top: 20px;
  padding: 24px;
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
}

.haidie-empty-state p {
  margin: 0;
  line-height: 1.8;
}

.haidie-empty-state-link {
  display: inline-block;
  margin-top: 12px;
  color: #0070bb;
  font-weight: 700;
}

#Account .right_nav .wishlist .operate {
  display: flex;
  justify-content: center;
  gap: 12px;
}

#Account .right_nav .wishlist .operate > a {
  margin: 0;
}

@media (max-width: 767px) {
  .haidie-auth-box .woocommerce-form .woocommerce-form__label-for-checkbox {
    display: block;
  }

  #feedbacklist .item .orderinfo,
  #feedbacklist .item .star {
    float: none;
    width: 100%;
    text-align: left;
  }

  #feedbacklist .item .star {
    margin-top: 8px;
  }

  #feedbacklist .item .star > a {
    font-size: 18px;
    line-height: 24px;
  }
}
