/* 通用 Woocommerce 产品布局 */
.woocommerce div.product {
  display: flex;
  gap: 16px;
  color: #fff;
  font-size: 14px;
}

.woocommerce span.onsale {
  display: none;
}

.related.products {
  padding: 30px 0;
}

.related.products > h2 {
  text-align: center;
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(144deg, #fad38f 17.97%, #d1a75d 97.36%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.5;
  margin-bottom: 40px;
}

.woocommerce div.product div.summary {
  padding-left: 48px;
}

.woocommerce div.product .product_title {
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--3, linear-gradient(144deg, #fad38f 17.97%, #d1a75d 97.36%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}

.woocommerce table.shop_attributes {
  border: 0;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
  border: 0;
  padding: 0;
  font-style: normal;
  text-align: left;
  background: none !important;
}

.woocommerce table.shop_attributes th {
  width: 85px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price {
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  margin: 0;
  align-items: baseline;
  gap: 10px;
}

/* 折扣价格样式调整 */
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  p.price
  del,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price
  del {
  font-size: 14px;
  order: 2;
  opacity: 0.7;
}

/* 销售价格样式调整 */
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  p.price
  ins,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price
  ins {
  order: 1;
  text-decoration: none;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  p.price
  .vip-price-label,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price
  .vip-price-label {
  display: block;
}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  padding: 0;
  text-align: left;
}
.woocommerce div.product form.cart .variations {
  margin-top: 10px;
}
.woocommerce div.product form.cart .variations select {
  width: 100%;
  height: 40px;
  border: 1px solid #f6d187;
  background: #272727;
  color: #fff;
  padding: 0 10px;
  border-radius: 4px;
}

/* 防止页面水平溢出 */
body.single-product {
  overflow-x: hidden;
}

/* 产品页面全宽布局 */
.woocommerce div.product {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(180deg, #272727 0%, #111 100%);
  padding: 40px 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 产品容器内容宽度限制 */
.product-container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.woocommerce-breadcrumb :last-child {
  color: #fff !important;
}
/* 产品缩略图样式调整 */
.woocommerce div.product .woocommerce-product-gallery ol.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0 0;
  padding: 0;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li {
  width: 86px;
  height: 86px;
  float: none;
  margin: 0;
  overflow: hidden;
  padding: 1px;
  box-sizing: border-box;
  display: block;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li
  img {
  width: 83px;
  height: 83px;
  object-fit: cover;
  cursor: pointer;
  opacity: 1;
  margin: 0;
  display: block;
  border: 1px solid transparent;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li
  img.flex-active {
  border-color: #f6d187;
}

/* 购物车表单元素共享样式 */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .buy-now-button {
  /* 按钮共有样式 */
  display: flex;
  height: 50px;
  padding: 12px 21px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 按钮特定样式 */
.woocommerce div.product form.cart .single_add_to_cart_button {
  border: 1px solid var(--e-global-color-secondary);
  background: none;
  color: var(--e-global-color-secondary);
  width: 50%;
}

.woocommerce div.product form.cart .buy-now-button {
  margin-left: 10px;
  width: calc(50% - 10px);
}

/* 数量选择器共享样式 */
.woocommerce div.product form.cart div.quantity-wrapper,
.woocommerce div.product form.cart div.quantity,
.woocommerce div.product form.cart div.quantity .plus,
.woocommerce div.product form.cart div.quantity .minus {
  display: flex;
  align-items: center;
}

.woocommerce div.product form.cart div.quantity-wrapper {
  margin: 20px 0;
}

/* 数量选择器容器 */
.woocommerce div.product form.cart div.quantity {
  float: none;
  position: relative;
  border: 1px solid #555;
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
}

/* 输入框与按钮共享样式 */
.woocommerce div.product form.cart div.quantity input,
.woocommerce div.product form.cart div.quantity .plus,
.woocommerce div.product form.cart div.quantity .minus {
  border: none;
  background: transparent;
  color: #fff;
  margin: 0;
}

/* 输入框特定样式 */
.woocommerce div.product form.cart div.quantity input {
  width: 60px;
  height: 40px;
  font-weight: 500;
  outline: none;
  text-align: center;
}

/* 移除数字输入框的上下箭头 */
.woocommerce
  div.product
  form.cart
  div.quantity
  input::-webkit-outer-spin-button,
.woocommerce
  div.product
  form.cart
  div.quantity
  input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce div.product form.cart div.quantity input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 加减按钮特定样式 */
.woocommerce div.product form.cart div.quantity .plus,
.woocommerce div.product form.cart div.quantity .minus {
  width: 42px;
  height: 42px;
  cursor: pointer;
  justify-content: center;
  font-size: 18px;
}

/* 加减按钮边框 */
.woocommerce div.product form.cart div.quantity .minus {
  border-right: 1px solid #555;
}

.woocommerce div.product form.cart div.quantity .plus {
  border-left: 1px solid #555;
}

/* 数量限制提示 */
.woocommerce div.product form.cart .quantity-limit-notice {
  display: flex;
  align-items: center;
  color: #f9a000;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
  .woocommerce div.product div.summary {
    padding-left: 0;
  }
}
