/* thanks-wrapper */
.woocommerce-form-coupon-toggle {
  display: none;
}
.thanks-wrapper {
  padding: 3.75rem 0;
}

.thanks-wrapper .success-order {
  max-width: 75rem;
  margin: 0 auto;
}

.thanks-wrapper .title-page {
  font-size: 1.75rem;
  color: #231f20;
  margin-bottom: 1.875rem;
  text-align: center;
}

.thanks-wrapper .thanks-des {
  max-width: 40rem;
  margin: 0 auto 2.1875rem;
  font-size: 0.875rem;
  color: #231f20;
  text-align: center;
}

.thanks-wrapper .button-shop {
  box-shadow: none;
  height: 4.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3.75rem;
  width: fit-content;
  border-radius: 99rem;
  padding: 0 3rem;
  background-color: var(--theme-color);
  font-weight: normal;
  border: 1px solid var(--theme-color);
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.thanks-wrapper .button-shop:hover {
  background-color: #fff;
  color: #000;
}

.thanks-wrapper .thank-box-order {
  max-width: 75rem;
  margin: 0 auto 2rem;
}

.thanks-wrapper .order-title {
  text-align: center;
  font-size: 1.875rem;
  color: #231f20;
  margin-bottom: 1rem;
  font-weight: bold;
}

.order-item {
  border-radius: 16px;
  border-spacing: 0;
  width: 100%;
  border: 0;
  position: relative;
}

.order-item thead {
  position: relative;
}

.order-item td,
.order-item th {
  padding: 0.625rem 1.25rem;
  border: 0;
}

.order-item td td:first-child {
  padding: 0.625rem;
}

.order-item thead > tr th {
  background-color: var(--theme-color);
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  text-transform: none;
  padding: 0.625rem 1.25rem;
  border: 0;
  position: relative;
  z-index: 2;
}

.tit-qty,
.tit-price {
  text-align: left;
}

.order-item span.amount {
  font-weight: normal;
}

.order-item thead > tr th:first-child {
  border-radius: 16px 0 0 16px;
}

.order-item thead > tr th:last-child {
  border-radius: 0 16px 16px 0;
  text-align: right;
}

.order-item tbody {
  position: relative;
}

.order-item tbody tr:nth-child(2n) td {
  background-color: #eee;
}

.order-item tbody tr:not(:nth-child(2n)) td {
}

.order-item tbody tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
  overflow: hidden;
}

.order-item tbody:after {
  left: auto;
  right: 0;
}

.order-item tbody tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}

.order-item tbody td {
  font-size: 0.875rem;
  color: #231f20;
  font-weight: normal;
}

.order-item tbody .pro-total {
  text-align: right;
}

.order-item tbody .screen-reader-text {
  display: none;
}

.order-item tbody .pro-price .box {
  display: flex;
  flex-direction: column-reverse;
}

.order-item tbody .name {
  margin-top: 0;
}

.order-item tbody .qty-mb {
  display: none;
}

.order-item tbody .product-attributes {
  color: #231f20;
  font-size: 0.875rem;
  margin: 0;
}

.order-item tbody .product-attributes li:last-child {
  margin: 0;
}

.order-item tbody .pro-price del .amount {
  font-size: 0.75rem;
  color: #333;
}

.order-item tbody td:first-child {
  padding-left: 0.625rem;
}

.order-item tbody .img {
  width: 4.375rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.order-item tbody .img .image-cover {
  border-radius: 0.3125rem;
  border: 1px solid #9fb1e1;
  padding-top: 100%;
}

.order-item tbody .pro-info {
  display: flex;
  align-items: center;
}

.order-item tbody th:last-child {
  padding-right: 0.625rem;
}

.order-item tfoot td {
  border-bottom: 1px solid #d9d9d9;
  padding: 1.25rem 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  color: #231f20;
  flex-shrink: 0;
}

.order-item tfoot tr:last-child td {
  border-bottom: 1px solid #d9d9d9 !important;
}

.order-item tfoot tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
}

.order-item tfoot tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}

.order-item tfoot tr.total_payment td {
  background-color: var(--theme-color) !important;
  color: #fff;
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
  font-weight: bold;
}

.thanks-wrapper .order-heading {
  text-align: center;
  font-size: 1.875rem;
  color: #231f20;
  margin-bottom: 1rem;
  font-weight: bold;
}

.thanks-wrapper .box-order-info {
  padding: 1rem 2rem;
  background-color: #f1f1f1;
  border-radius: 16px;
}

.thanks-wrapper #addresses {
  margin: 0 !important;

  border: 0;
}

.thanks-wrapper #addresses p {
  font-size: 0.875rem;
  color: #231f20;
  display: flex;
  align-items: center;
}

.thanks-wrapper #addresses p span {
  width: 12.5rem;
}

/* End thanks-wrapper */

/* Responsive */
@media screen and (max-width: 767.98px) {
  .header-main .search-container {
    order: 3;
    max-width: 100%;
    margin: 10px 0;
  }

  .header-main .search-input-wrapper {
    border-radius: 20px;
  }

  .header-main .search-field {
    padding: 10px 45px 10px 15px;
    font-size: 16px;
  }

  .header-main .search-submit {
    width: 35px;
    height: 35px;
  }

  .header-main .search-submit svg {
    width: 16px;
    height: 16px;
  }
}

/* Cart Dropdown */
.cart-item {
  position: relative;
}

.cart-item .nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
}

.cart-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-item .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.cart-item .nav-dropdown::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ddd;
}
.cart-coupon .coupon-input-wrapper {
  display: flex;
  margin-bottom: 10px;
}
.cart-coupon .coupon-input-wrapper .apply-coupon-btn {
  background-color: var(--theme-color);
  font-weight: normal;
  border-radius: 0 8px 8px 0;
  color: #fff;
  flex-shrink: 0;
  padding: 0 1rem;
}
.applied-coupons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.applied-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  width: fit-content;
}
.applied-coupon-item .coupon-code {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}
.remove-coupon-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.remove-coupon-btn:hover {
  color: #d32f2f;
}
.woocommerce-checkout .woocommerce-notices-wrapper {
  display: none;
}
.coupon-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.coupon-message .success {
  color: #2e7d32;
}
.coupon-message .error {
  color: #d32f2f;
}
.coupon-message .loading {
  color: #666;
  font-style: italic;
}
.cart-coupon .coupon-form.processing {
  opacity: 0.6;
  pointer-events: none;
}
.cart-coupon.processing {
  opacity: 0.6;
  pointer-events: none;
}
.cart-coupon input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  border-radius: 8px 0 0 8px;
}
.cart-coupon .coupon-code-input:focus {
  outline: none;
  border-color: var(--theme-color);
}
.widget_shopping_cart_content {
  padding: 15px;
}

.widget_shopping_cart_content .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 20px 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  margin-top: 15px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button.checkout {
  background: var(--theme-color);
  color: #fff;
}

.widget_shopping_cart_content
  .woocommerce-mini-cart__buttons
  .button.wc-forward {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item:last-child {
  border-bottom: none;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__image {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__details {
  flex: 1;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__title {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 14px;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__quantity {
  color: #666;
  font-size: 12px;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__remove {
  color: #ff4444;
  text-decoration: none;
  font-size: 18px;
  margin-left: 10px;
  line-height: 1;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item__remove:hover {
  color: #cc0000;
}

/* Page Blank Default Template */
.page-blank-default {
  padding: 2rem 0;
  background-color: #f8f8f8;
  min-height: 60vh;
}

.page-blank-default .page-blank {
  background: #fff;
  border-radius: 0.625rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-blank-default .entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-blank-default .entry-title {
  color: var(--black, #333);
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
}

.page-blank-default .entry-content {
  line-height: 1.6;
  color: var(--black, #333);
}

.page-blank-default .entry-content h1,
.page-blank-default .entry-content h2,
.page-blank-default .entry-content h3,
.page-blank-default .entry-content h4,
.page-blank-default .entry-content h5,
.page-blank-default .entry-content h6 {
  color: var(--black, #333);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-blank-default .entry-content p {
  margin-bottom: 1rem;
}

.page-blank-default .entry-content ul,
.page-blank-default .entry-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-blank-default .entry-content li {
  margin-bottom: 0.5rem;
}

.page-blank-default .entry-content a {
  color: var(--primary-color, #007cba);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blank-default .entry-content a:hover {
  color: var(--primary-color-dark, #005a87);
  text-decoration: underline;
}

.page-blank-default .page-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.page-blank-default .entry-content .page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: var(--primary-color, #007cba);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.page-blank-default .entry-content .page-links a:hover {
  background: var(--primary-color-dark, #005a87);
}

/* Responsive */
@media (max-width: 768px) {
  .page-blank-default {
    padding: 1rem 0;
  }

  .page-blank-default .page-blank {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .page-blank-default .entry-title {
    font-size: 1.5rem;
  }
}

/* Checkout Page Styles */
.checkout-wrapper {
  margin: 0 auto;
  padding: 2rem 0;
}

.row-fake {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.col-left {
  flex: 1;
}

.col-right {
  width: 30rem;
  flex-shrink: 0;
}

.checkout-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--theme-color);
}

.col-info {
  background: #f9f3ed;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.input-box {
  margin-bottom: 1rem;
}

.input-box label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.input-box input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.input-box input:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px hsl(355deg 76% 47% / 2%);
}

.error-inp {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-inp.show {
  display: block;
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.location-box {
  position: relative;
}

.location-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background: #f9f3ed;
}

.location-selected:hover {
  border-color: #007cba;
}

.location-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.location-box.active .location-dropdown {
  display: block;
}

.search-box {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

.search-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
}

.option-list {
  max-height: 250px;
  overflow-y: auto;
}

.option-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.option-item:hover {
  background: #f8f9fa;
}

.option-item:last-child {
  border-bottom: none;
}

.col-payment {
  background: #f9f3ed;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.col-price {
  background: #f9f3ed;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cart Styles */
.cart-title {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: #333;
}

.cart-title .cart-title__item:last-child {
  text-align: right;
}

.cart-contents {
  margin-bottom: 1.5rem;
}

.cart-contents .cart-item {
  display: grid;
  grid-template-columns: 25% auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
}
.cart-contents.processing {
  opacity: 0.5;
}

.product-image {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-image .image-cover {
  width: 100%;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-item__name {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
}

.product-item__name:hover {
  color: #007cba;
}

.checkout-wrapper .cart-item .product-item__update {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #f9f3ed;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-controls button:hover {
  background: #f8f9fa;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.25rem;
}

.remove-item {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.remove-item:hover {
  color: #c82333;
}

.cart-totals {
  border-top: 2px solid #eee;
  padding-top: 1rem;
}

.cart-totals > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cart-totals .discount {
  color: #2e7d32;
}
.cart-totals .discount .amount {
  color: #2e7d32;
  font-weight: 500;
}
.cart-totals .total {
  font-weight: bold;
  font-size: 1.125rem;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Payment Methods */
#payment-fake {
  border-radius: 8px;
  padding: 1rem;
}

.wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wc_payment_methods li {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wc_payment_methods li:hover {
  border-color: #007cba;
}

.wc_payment_methods li.active {
  border-color: #007cba;
  background: #f8f9fa;
}

.wc_payment_methods input[type="radio"] {
  margin-right: 0.5rem;
}

.t-payment_box {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  display: none;
}

.wc_payment_methods li.active .t-payment_box {
  display: block;
}

.place-order {
  margin-top: 1.5rem;
  text-align: center;
}

.place-order button {
  width: 100%;
  padding: 1rem;
  background: var(--theme-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.place-order button:hover {
  background: var(--theme-color);
}

.place-order button.disable {
  background: #6c757d;
  cursor: not-allowed;
}

.place-order button.disable:hover {
  background: #6c757d;
}

#payment-fake .t-wc_payment_method {
  height: 3.75rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex;
  margin-bottom: 0.625rem;
  align-items: center;
}

#payment-fake .custom-radio {
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  display: block;
  height: 1.25rem;
  position: relative;
  transition: all 0.2s;
  width: 1.25rem;
  margin-right: 0.625rem;
}

#payment-fake .custom-radio .checkmark {
  background-color: var(--theme-color);
  border-radius: 50%;
  display: none;
  height: 0.625rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.625rem;
}

#payment-fake .t-wc_payment_method.active .custom-radio {
  border: 1px solid var(--theme-color);
}

#payment-fake .t-wc_payment_method.active .custom-radio .checkmark {
  display: block;
}

#payment-fake .t-wc_payment_method .input-radio {
  display: none;
}

#payment-fake .t-wc_payment_method.active {
  background-color: hsla(0, 0%, 90%, 0.5);
}

#payment-fake .wc_payment_methods {
  list-style: none;
  margin: 0;
}

#payment-fake .t-wc_payment_method label {
  font-size: 0.875rem;
  color: #231f20;
  font-weight: bold;
  line-height: 1;
}

#payment-fake .t-wc_payment_method img {
  display: none;
}

.t-wc_payment_method input,
.t-wc_payment_method label {
  margin-bottom: 0;
  margin-top: 0;
  cursor: pointer;
}

.t-wc_payment_method > label:before {
  content: "";
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  top: 0;
  left: 0;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.t-wc_payment_method.payment_method_cod label:before {
  background-image: url(/wp-content/themes/diwe-theme/src/images/ship-cod-icon.png);
}

.t-wc_payment_method label {
  width: 95%;
  padding-left: 3.4375rem;
  position: relative;
  min-height: 2.75rem;
  display: inline-flex !important;
  align-items: center;
}

/* Responsive */

@media (max-width: 768px) {
  .row-fake {
    flex-direction: column-reverse;
  }

  .col-right,
  .col-payment,
  .col-info {
    width: 100%;
    padding: 1rem;
  }

  .quantity-controls {
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 99rem;
    overflow: hidden;
  }

  .quantity-controls button,
  .qty-input {
    width: 2rem;
    border: 0;
    padding: 0;
  }

  .location-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-title,
  .cart-item {
    /* grid-template-columns: 1fr; */
    gap: 0.5rem;
  }

  .product-image {
    justify-content: center;
  }
}

/* Product Loop Add to Cart Button */
.image-tools.add-to-cart-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.box-image:hover .image-tools.add-to-cart-button {
  opacity: 1;
  transform: scale(1);
}

.ajax-add-to-cart,
.view-product-details {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ajax-add-to-cart:hover,
.view-product-details:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ajax-add-to-cart img,
.view-product-details img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Loading state */
.ajax-add-to-cart.loading {
  pointer-events: none;
  opacity: 0.7;
}

.ajax-add-to-cart.loading img {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.ajax-add-to-cart.success {
  background: #28a745;
  color: white;
}

.ajax-add-to-cart.success img {
  filter: brightness(0) invert(1);
}

/* Disabled state */
.ajax-add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Out of stock styling */
.out-of-stock .image-tools.add-to-cart-button {
  opacity: 0.5;
}

.out-of-stock .view-product-details {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}

.out-of-stock .view-product-details:hover {
  background: rgba(220, 53, 69, 1);
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .image-tools.add-to-cart-button {
    top: 5px;
    right: 5px;
    opacity: 1;
    transform: scale(1);
  }

  .ajax-add-to-cart,
  .view-product-details {
    width: 35px;
    height: 35px;
  }

  .ajax-add-to-cart img,
  .view-product-details img {
    width: 18px;
    height: 18px;
  }

  .category-page-row {
    max-width: 100% !important;
  }

  .filter-product .box-thuong-hieu .list-item img {
    object-fit: contain;
  }

  .filter-product .box-thuong-hieu .list-item .item {
    min-height: 3.125rem;
  }

  .filter-product .box-thuong-hieu .list-item .item .image-cover {
    padding-top: 3.125rem;
  }

  .category-page-row .custom-select .select-items div.active {
    background: unset;
    background-color: unset !important;
  }

  .category-page-row
    .collection-filter-selected
    .custom-select.show
    .select-items {
    display: flex;
    position: unset;
    flex-direction: row;
    filter: unset;
  }

  .category-page-row .collection-filter-selected .select-selected,
  .category-page-row .custom-select .select-items .span-pc {
    display: none;
  }

  .category-page-row .custom-select .select-items .span-mb {
    display: flex;
    border-bottom: 0;
    justify-content: center;
    position: relative;
  }

  .category-page-row .custom-select .select-items .span-mb svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.3rem;
  }

  .category-page-row .custom-select .select-items .span-mb svg path {
    fill: currentColor;
  }

  .category-page-row .custom-select .select-items div {
    padding: 0 0.625rem;
    min-width: 5rem;
    justify-content: center;
    border-right: 1px solid #eee;
    height: 1.875rem;
  }

  .category-page-row .custom-select .select-items div:after {
    content: "";
    width: 1px;
  }

  .category-page-row .collection-filter-selected .custom-select .select-items {
    display: flex;
    position: unset;
    filter: unset;
    flex-direction: row;
    margin-left: -0.625rem;
  }

  .category-page-row .products.row-small {
    max-width: unset;
    margin-left: -0.375rem;
    margin-right: -0.375rem;
    width: auto;
  }

  .category-page-row .collection-filter-selected .filter-sortby__heading {
    display: none;
  }

  .product-info .product-title {
    font-size: 1.25rem;
  }

  .mota-duoi {
    width: 100%;
    border-radius: 0;
  }

  .category-page-row.container {
    max-width: 100%;
  }

  .category-page-row .col-main {
    width: 100%;
    flex: unset;
  }

  .category-page-row .collection-filter-selected {
    width: 100%;
  }

  .fillter-mobile {
    display: flex;
    margin: 0;
    font-weight: 400;
    background: #f1f1f1;
    border-radius: 1.8125rem;
    border: none;
    font-size: 14px;
    color: #000;
    /* min-width: 188px; */
    text-align: left;
    padding: 0 0.875rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    min-height: unset;
  }

  .category-filter-row {
    display: none;
  }

  .col-header {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* margin-right: -1rem; */
    /* margin-left: -1rem; */
    border-radius: 0;
    width: 100%;
  }
  .woocommerce-no-products-found {
    padding: 0 1rem;
  }

  .col-header .cate-child {
    width: 100%;
  }

  .col-header .shop-page-title {
    font-size: 1.375rem;
  }

  .col-header .col-header__title {
    width: 100%;
  }

  .category-page-row .col-main .shop-container {
    /* margin-right: -1rem; */
    /* margin-left: -1rem; */
    border-radius: 0;
    width: 100%;
  }

  .category-page-row .col-filter {
    display: flex !important;
    position: fixed;
    z-index: 10;
    flex-basis: 100%;
    max-width: 100%;
    height: 80%;
    z-index: 10001;
    padding: 0;
    align-items: flex-end;
    left: 0;
    bottom: 0;
    transform: translateY(105%);
    transition: all 0.5s;
    opacity: 0;
    visibility: hidden;
    height: fit-content;
    width: 100%;
  }

  .category-page-row .close-filter-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: block;
    z-index: 10000;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
  }

  .category-page-row .close-filter-bg.show {
    opacity: 1;
    visibility: visible;
  }

  .category-page-row .col-filter .is-sticky-column {
    background-color: #fff;
    display: block;
    width: 100%;
    z-index: 2;
    border-radius: 1.5rem 1.5rem 0 0;
    border: 1px solid #d9d9d9;
    padding: 1rem 1.5rem 2rem;
    z-index: 99999999;
  }

  .category-page-row .col-filter.show {
    transform: translateY(0%);
    opacity: 1;
    visibility: visible;
  }

  .col-filter .is-sticky-column__inner {
    flex-direction: column;
    display: flex;
    position: relative;
  }

  .col-filter .filter-popup-mb__heading {
    text-align: center;
    font-size: 1.25rem;
    padding-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
    display: block;
    font-weight: 700;
  }

  .col-filter .is-sticky-column .close-filter {
    position: absolute;
    width: 1.2rem;
    top: 0.375rem;
    display: block;
    height: 1.2rem;
    right: 0;
  }

  .col-filter .is-sticky-column .close-filter svg {
    width: 100%;
    height: 100%;
  }

  .col-filter #shop-sidebar {
    overflow-y: auto;
    padding-right: 5px;
    max-height: calc(100vh - 280px);
    padding-left: 0;
    padding-top: 1rem;
    border: 0;
  }

  .col-filter #applyFilterMobile {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 99px;
    border: 2px solid var(--theme-color);
    background-color: var(--theme-color);
    color: #fff;
    padding: 0 30px;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    flex-shrink: 0;
  }

  .category-page-row .products {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.9rem;
  }

  .breadcrumbs {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-container .product-main--left {
    flex-direction: column;
    max-width: 100%;
  }

  .product-container {
    flex-direction: column;
  }

  .product-info--top {
    padding: 1rem;
  }

  .product-footer {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1rem;
    border-radius: 0;
  }

  .product-container--bottom {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
    margin-bottom: 0;
  }

  .related-title {
    font-size: 1.5rem;
  }

  .product-info .price-wrapper .price-label {
    font-size: 1rem;
  }

  .product-info .price-wrapper span.amount {
    font-size: 0.75rem;
  }

  .product-info .price-wrapper ins .amount {
    font-size: 1rem;
  }

  .thanks-wrapper .title-page {
    font-size: 1.5rem;
    margin-bottom: 1.5625rem;
  }

  .thanks-wrapper .thanks-des {
    margin-bottom: 1.5rem;
  }

  .thanks-wrapper .order-title,
  .thanks-wrapper .order-heading {
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
  }

  .order-item thead > tr th {
    padding: 0.625rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .thank-box-order table.order-item thead th:first-child {
    flex: 1;
  }

  .thank-box-order .order-item thead .tit-qty,
  .thank-box-order .order-item thead .tit-price,
  .thank-box-order .order-item .pro-quantity,
  .thank-box-order .order-item .pro-price {
    overflow: hidden;
    width: 0;
    padding: 0;
    margin: 0;
    display: none;
  }

  .thank-box-order .order-item thead tr {
    display: flex;
    width: 100%;
    min-width: 100%;
    border-collapse: unset;
  }

  .order-item tfoot tr.total_payment td {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .thanks-wrapper #addresses p {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
  }

  .thanks-wrapper .box-order-info {
    padding: 1rem;
  }

  .thanks-wrapper #addresses p span {
    opacity: 0.8;
    width: 100%;
    font-size: 0.875rem;
  }

  .thanks-wrapper #addresses p {
    margin-bottom: 0.75rem;
  }

  .order-item {
    display: block;
  }

  .order-item tfoot {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .order-item tfoot tr {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .order-item tfoot tr:last-child {
    padding: 0;
  }

  .order-item tfoot td[colspan] {
    width: 100%;
    flex: 1;
  }

  .order-item tfoot td {
    padding: 0.9375rem 0;
  }

  .order-item thead {
    display: flex;
  }

  .order-item tbody .name {
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: bold;
  }

  .order-item tbody .product-attributes {
    margin-bottom: 0.375rem;
  }

  .order-item tbody .qty-mb {
    display: block;
  }

  .order-item td,
  .order-item th {
    padding: 0.625rem;
  }
}

.woocommerce-account .page-content .woocommerce {
  display: flex;
  padding: 5rem 0;
  gap: 3.125rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 25%;
  flex-shrink: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.woocommerce-account
  .woocommerce-MyAccount-navigation
  .woocommerce-MyAccount-navigation-link--edit-address,
.woocommerce-MyAccount-navigation-link--downloads {
  display: none;
}

.woocommerce-account #main {
  background-color: #f2f2f2;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  min-height: 3.25rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0.5rem;
}

.woocommerce-account
  .woocommerce-MyAccount-navigation
  .woocommerce-MyAccount-navigation-link.is-active
  a {
  background-color: var(--theme-color);
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
  padding: 3rem 4rem;
  background-color: #fff;
  border-radius: 0.5rem;
  flex: 1;
}

.woocommerce-account .woocommerce-MyAccount-content section {
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .col-info {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-content .title,
.woocommerce-MyAccount-content .address-user h2 {
  font-size: 1.625rem;
  color: #000;
  line-height: 1.4em;
  margin-bottom: 1rem;
  font-weight: bold;
}

.woocommerce-MyAccount-content .address-user ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.woocommerce-MyAccount-content .address-user .info-user-item {
  display: flex;
  gap: 1.875rem;
}

.woocommerce-MyAccount-content .address-user .info-user-item-label {
  font-size: 1rem;
  width: 12.5rem;
  color: #00000080;
}

.woocommerce-MyAccount-content .address-user .info-user-item-value {
  font-size: 1rem;
  color: #000;
}

.woocommerce-MyAccount-content .address-user .btn-update,
.btn__red {
  min-width: 9.375rem;
  border: 1px solid var(--theme-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8125rem;
  border-radius: 99rem;
  margin-top: 2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  width: fit-content;
  background-color: #fff;
  color: var(--theme-color);
}

.woocommerce-MyAccount-content .address-user .btn-update:hover,
.btn__red:hover {
  background-color: var(--theme-color);
  color: #fff;
}

.woocommerce-MyAccount-content .box-login {
  margin-top: 3rem;
}

.woocommerce-account .woocommerce-MyAccount-content .input-box {
  margin-bottom: 0;
  width: 100%;
}

@media screen and (max-width: 767.98px) {
  .woocommerce-account .page-content .woocommerce {
    flex-direction: column;
    gap: 1.875rem;
    padding: 3.125rem 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 1.5rem 1rem;
    max-width: 100%;
    overflow-y: auto;
  }

  .woocommerce-orders-table {
    width: 40rem;
  }

  .woocommerce-MyAccount-content .address-user .info-user-item {
    flex-direction: column;
    gap: 0.3125rem;
  }

  .woocommerce-MyAccount-content .address-user .btn-update,
  .btn__red {
    margin-top: 1rem;
  }
}

.woocommerce-account .page-content .woocommerce {
  display: flex;
  padding: 5rem 0;
  gap: 3.125rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 25%;
  flex-shrink: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.woocommerce-account
  .woocommerce-MyAccount-navigation
  .woocommerce-MyAccount-navigation-link--edit-address {
  display: none;
}

.woocommerce-account #main {
  background-color: #f2f2f2;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  min-height: 3.25rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0.5rem;
}
.woocommerce-account
  .woocommerce-MyAccount-navigation
  .woocommerce-MyAccount-navigation-link.is-active
  a {
  background-color: var(--theme-color);
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content {
  padding: 3rem 4rem;
  background-color: #fff;
  border-radius: 0.5rem;
  flex: 1;
}

.woocommerce-account .woocommerce-MyAccount-content section {
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .col-info {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-content .title,
.woocommerce-MyAccount-content .address-user h2 {
  font-size: 1.625rem;
  color: #000;
  line-height: 1.4em;
  margin-bottom: 1rem;
  font-family: var(--pro);
}

.woocommerce-MyAccount-content .address-user ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.woocommerce-MyAccount-content .address-user .info-user-item {
  display: flex;
  gap: 1.875rem;
}

.woocommerce-MyAccount-content .address-user .info-user-item-label {
  font-size: 1rem;
  width: 12.5rem;
  color: #00000080;
}

.woocommerce-MyAccount-content .address-user .info-user-item-value {
  font-size: 1rem;
  color: #000;
}

.woocommerce-MyAccount-content .address-user .btn-update {
  min-width: 9.375rem;
  border: 1px solid var(--theme-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8125rem;
  border-radius: 99rem;
  margin-top: 2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  width: fit-content;
}

.woocommerce-MyAccount-content .address-user .btn-update:hover {
  background-color: #000;
  color: #fff;
}

.woocommerce-MyAccount-content .box-login {
  margin-top: 3rem;
}

.woocommerce-account .woocommerce-MyAccount-content .input-box {
  margin-bottom: 0;
  width: 100%;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-overlay__content {
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loading-overlay__content .loading-spinner {
  width: 3em;
  height: 3em;
  border: 3px solid rgba(255, 62, 0, 0.2);
  border-top-color: var(--theme-color);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

.loading-overlay__message {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

/* Animation cho spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
