/* ===== Alibaba-style product detail ===== */

body.xueer-product-single .yith-wcwl-add-to-wishlist,
body.xueer-product-single .compare,
body.xueer-product-single .woosw-btn,
body.xueer-product-single .wooscp-btn,
body.xueer-product-single .yith-wcwl-add-to-wishlist-button,
body.xueer-product-single a.compare.button,
body.xueer-product-single .woocommerce-product-gallery__trigger,
body.xueer-product-single .xueer-product-purchase .yith-add-to-wishlist,
body.xueer-product-single .xueer-product-purchase .compare-button {
  display: none !important;
}

body.xueer-product-single {
  background: #f5f5f5;
}

body.xueer-product-single .site-header,
body.xueer-product-single .mobile-tabbar,
body.xueer-product-single .back-to-top,
body.xueer-product-single .float-line {
  display: none !important;
}

body.xueer-product-single .site-main {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.xueer-product-page {
  max-width: 720px;
  margin: 0 auto;
  background: #f5f5f5;
}

/* Top bar */
.xueer-product-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 40;
}

.xueer-product-topbar__back {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
}

.xueer-product-topbar__title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.xueer-product-topbar__cart {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.xueer-product-topbar__cart-icon {
  width: 22px;
  height: 22px;
  background: #333;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 6h15l-1.5 9H8z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 6h15l-1.5 9H8z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.xueer-product-topbar__cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff5000;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

.xueer-product-topbar__cart-count.is-empty {
  display: none;
}

/* Gallery */
.xueer-product-gallery {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.xueer-product-gallery__layout {
  display: block;
}

.xueer-product-gallery__thumbs-wrap {
  display: none;
}

.xueer-product-gallery__stage {
  position: relative;
}

.xueer-product-gallery__nav,
.xueer-product-gallery__zoom {
  display: none;
}

.xueer-product-gallery-lightbox {
  display: none;
}

.xueer-product-gallery-lightbox.is-open {
  display: flex;
}

.xueer-product-gallery__track {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  touch-action: pan-x pan-y;
}

.xueer-product-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.xueer-product-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.xueer-product-gallery__image,
.xueer-product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xueer-product-gallery__slide--video {
  background: #111;
}

.xueer-product-gallery__video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #111;
}

.xueer-product-gallery__thumb-video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.xueer-product-gallery__thumb-video-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background: linear-gradient(135deg, #2a3140, #111827);
}

.xueer-product-gallery__thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}

.xueer-product-gallery__thumb-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}

.xueer-product-gallery__thumb.is-video.is-active {
  border-color: #b08d5b;
}

.xueer-product-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.xueer-product-gallery__dot {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  padding: 0;
  cursor: pointer;
}

.xueer-product-gallery__dot.is-active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}

.xueer-product-gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 11px;
}

.xueer-product-gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 11px;
}

/* Breadcrumb */
.xueer-product-breadcrumb {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 13px;
  color: #888;
}

.xueer-product-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.xueer-product-breadcrumb a:hover {
  color: #ff6a00;
}

.xueer-product-breadcrumb__sep {
  color: #ccc;
}

.xueer-product-breadcrumb__current {
  color: #333;
}

/* Main layout — mobile stack (unchanged) */
.xueer-product-main {
  display: flex;
  flex-direction: column;
}

.xueer-product-main__gallery {
  order: 1;
}

.xueer-product-main__summary {
  order: 2;
  margin-top: 8px;
  background: #fff;
}

.xueer-product-buybox {
  order: 3;
  margin-top: 0;
  padding: 0 14px 4px;
  background: #fff;
}

.xueer-product-main__tabs {
  order: 4;
  margin-top: 8px;
}

.xueer-product-buybox__desktop {
  display: none;
}

.xueer-product-buybox .xueer-product-purchase {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f2f2;
}

.xueer-product-main__summary .xueer-product-summary {
  margin-top: 0;
}

.xueer-product-main__tabs .xueer-product-tabs {
  margin-top: 0;
}

/* Gallery aside — desktop only */
.xueer-product-gallery-aside {
  display: none;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
}

.xueer-product-gallery-aside__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.xueer-product-gallery-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.xueer-product-gallery-aside__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border-radius: 8px;
  background: #fafafa;
}

.xueer-product-gallery-aside__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff3eb;
  position: relative;
}

.xueer-product-gallery-aside__icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #ff6a00;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.xueer-product-gallery-aside__icon--shield::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3z'/%3E%3C/svg%3E");
}

.xueer-product-gallery-aside__icon--return::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 14 4 9l5-5v3h5a6 6 0 0 1 0 12h-2v-2h2a4 4 0 0 0 0-8H9v3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 14 4 9l5-5v5h5a6 6 0 0 1 0 12h-2v-2h2a4 4 0 0 0 0-8H9v3z'/%3E%3C/svg%3E");
}

.xueer-product-gallery-aside__icon--shipping::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 6h11v8H3V6zm12 2h2.3L20 12v2h-2a3 3 0 1 1-6 0H9a3 3 0 1 1-3.2-2.9L5 8V6h10v2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 6h11v8H3V6zm12 2h2.3L20 12v2h-2a3 3 0 1 1-6 0H9a3 3 0 1 1-3.2-2.9L5 8V6h10v2z'/%3E%3C/svg%3E");
}

.xueer-product-gallery-aside__icon--store::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h16l-1 9H5L4 4zm3 11h2v5H7v-5zm4 0h2v5h-2v-5zm4 0h2v5h-2v-5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h16l-1 9H5L4 4zm3 11h2v5H7v-5zm4 0h2v5h-2v-5zm4 0h2v5h-2v-5z'/%3E%3C/svg%3E");
}

.xueer-product-gallery-aside__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.xueer-product-gallery-aside__text strong {
  font-size: 12px;
  color: #333;
  line-height: 1.3;
}

.xueer-product-gallery-aside__text small {
  font-size: 11px;
  color: #888;
  line-height: 1.3;
}

.xueer-product-gallery-aside__category {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.xueer-product-gallery-aside__category-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #888;
}

.xueer-product-gallery-aside__category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff7f0;
  color: #ff6a00;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.xueer-product-gallery-aside__category-link:hover {
  background: #ffefe3;
}

/* Buy box — desktop extras hidden on mobile by default */
.xueer-product-buybox {
  padding: 0 14px 4px;
}

.xueer-product-buybox__price {
  display: none;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.xueer-product-buybox__price-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #888;
}

.xueer-product-buybox__rows {
  margin-bottom: 14px;
}

.xueer-product-buybox__row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f7f7f7;
  font-size: 13px;
  line-height: 1.5;
}

.xueer-product-buybox__key {
  flex-shrink: 0;
  width: 42px;
  color: #888;
}

.xueer-product-buybox__val {
  color: #444;
}

.xueer-product-buybox__actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.xueer-product-buybox__btn {
  min-height: 44px;
  border-radius: 6px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.xueer-product-buybox__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.xueer-product-buybox__btn--cart {
  background: #fff;
  border: 1px solid #ff6a00;
  color: #ff6a00;
}

.xueer-product-buybox__btn--buy {
  background: #ff6a00;
  color: #fff;
}

.xueer-product-buybox__service,
.xueer-product-buybox__cart-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.xueer-product-buybox__service:hover,
.xueer-product-buybox__cart-link:hover {
  color: #ff6a00;
}

.xueer-price-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xueer-price-contact__label {
  font-size: 24px;
  font-weight: 800;
  color: #ff5000;
  line-height: 1.2;
}

.xueer-price-contact__hint {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.xueer-price-contact--list .xueer-price-contact__label {
  font-size: 14px;
}

/* Summary */
.xueer-product-summary {
  margin-top: 8px;
  padding: 14px 14px 4px;
  background: #fff;
}

.xueer-product-price-panel__main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.xueer-product-price-live {
  color: #ff5000;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.xueer-product-price-live del {
  color: #999;
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
}

.xueer-product-price-live ins {
  text-decoration: none;
}

.xueer-product-discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: #ff5000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.xueer-product-price-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ff5000;
}

.xueer-product-title {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #222;
}

.xueer-product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #888;
}

.xueer-product-meta-row .is-instock {
  color: #2e9e5b;
}

.xueer-product-meta-row .is-outstock {
  color: #e64545;
}

.xueer-product-short-desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f2f2f2;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.xueer-product-short-desc p {
  margin: 0 0 8px;
}

/* Purchase form */
.xueer-product-purchase {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f2f2;
}

.xueer-product-purchase form.cart {
  margin: 0;
}

.xueer-product-purchase .stock {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.xueer-product-purchase table.variations {
  width: 100%;
  margin: 0 0 12px;
  border: 0;
}

.xueer-product-purchase table.variations tr {
  display: block;
  margin-bottom: 14px;
}

.xueer-product-purchase table.variations th,
.xueer-product-purchase table.variations td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
}

.xueer-product-purchase table.variations th.label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.xueer-product-purchase table.variations th.label label {
  margin: 0;
}

.xueer-product-purchase table.variations .reset_variations {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

.xueer-product-purchase table.variations select {
  display: none !important;
}

.xueer-variation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xueer-variation-pill {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 17px;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.xueer-variation-pill.is-active {
  border-color: #ff5000;
  background: #fff5f0;
  color: #ff5000;
  font-weight: 600;
}

.xueer-variation-pill.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.xueer-product-purchase .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}

.xueer-product-purchase .quantity label {
  margin-right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.xueer-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.xueer-qty-btn--minus {
  border-radius: 8px 0 0 8px;
}

.xueer-qty-btn--plus {
  border-radius: 0 8px 8px 0;
}

.xueer-product-purchase .quantity .qty {
  width: 52px;
  min-height: 34px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  font-size: 15px;
}

.xueer-product-purchase .single_add_to_cart_button,
.xueer-product-purchase .variations_button .button {
  display: none !important;
}

.xueer-product-purchase .woocommerce-variation-price {
  margin-bottom: 8px;
}

.xueer-product-purchase .woocommerce-variation-availability {
  font-size: 13px;
  margin-bottom: 8px;
}

/* Tabs */
.xueer-product-tabs {
  margin-top: 8px;
  background: #fff;
}

.xueer-product-tabs__nav {
  display: flex;
  border-bottom: 1px solid #eee;
}

.xueer-product-tabs__btn {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 44px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
}

.xueer-product-tabs__btn.is-active {
  color: #ff5000;
  font-weight: 700;
}

.xueer-product-tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 2px;
  background: #ff5000;
}

.xueer-product-tabs__panel {
  display: none;
  padding: 14px;
}

.xueer-product-tabs__panel.is-active {
  display: block;
}

.xueer-product-description {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.xueer-product-description img {
  max-width: 100%;
  height: auto;
}

.xueer-product-attr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.xueer-product-attr-table th,
.xueer-product-attr-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.xueer-product-attr-table th {
  width: 34%;
  color: #888;
  font-weight: 500;
}

.xueer-product-empty {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

/* Related */
.xueer-product-related {
  margin-top: 8px;
  padding: 14px 10px 8px;
  background: #fff;
}

.xueer-product-related__head h2 {
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.xueer-product-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.xueer-product-related__list li.product {
  width: 50% !important;
  margin: 0 0 10px !important;
  padding: 0 4px !important;
  float: left;
  clear: none !important;
}

.xueer-product-related::after {
  content: "";
  display: table;
  clear: both;
}

/* Sticky bar */
.xueer-product-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid #eee;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}

.xueer-product-sticky__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 12px;
}

.xueer-product-sticky__side {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.xueer-product-sticky__icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  text-decoration: none;
  color: #666;
  font-size: 10px;
  border: 0;
  background: transparent;
}

.xueer-product-sticky__icon {
  width: 22px;
  height: 22px;
  background: #666;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.xueer-product-sticky__icon--service {
  background: #06c755;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2.4l2.2 3.3a.8.8 0 0 0 1.3 0L12.1 17H20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2.4l2.2 3.3a.8.8 0 0 0 1.3 0L12.1 17H20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

.xueer-product-sticky__icon--cart {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 6h15l-1.5 9H8z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 6h15l-1.5 9H8z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E");
}

.xueer-product-sticky__badge {
  position: absolute;
  top: -2px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: #ff5000;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  line-height: 14px;
  text-align: center;
}

.xueer-product-sticky__badge.is-empty {
  display: none;
}

.xueer-product-sticky__actions {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.xueer-product-sticky__btn {
  min-height: 42px;
  border-radius: 21px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.xueer-product-sticky__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.xueer-product-sticky__btn--cart {
  background: #ffe8dc;
  color: #ff5000;
}

.xueer-product-sticky__btn--buy {
  background: linear-gradient(135deg, #ff7a45, #ff5000);
  color: #fff;
}

.xueer-product-sticky__hint {
  margin: 0;
  padding: 0 12px 8px;
  font-size: 12px;
  color: #e64545;
  text-align: center;
}

.xueer-product-sticky__hint[hidden] {
  display: none !important;
}

/* TH Product Compare footer bar — lift above sticky purchase bar */
body.xueer-product-single .th-compare-footer-wrap,
body.xueer-product-single .th-compare-footer-wrap.active {
  z-index: 100 !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px) !important;
}

/* YITH Compare (if installed) */
body.xueer-product-single .yith-woocompare-preview-bar,
body.xueer-product-single #yith-woocompare-preview-bar {
  z-index: 100 !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px) !important;
}

body.xueer-product-single #colorbox,
body.xueer-product-single #cboxOverlay {
  z-index: 210 !important;
}

/* Footer compact on product page */
body.xueer-product-single .site-footer-lux-main {
  display: none;
}

body.xueer-product-single .footer-lux-bottom {
  padding: 12px 0;
}

/* Desktop — Alibaba 3-column */
@media (min-width: 992px) {
  body.xueer-product-single .site-header {
    display: block !important;
  }

  body.xueer-product-single .mobile-tabbar {
    display: none !important;
  }

  body.xueer-product-single .site-main {
    padding-bottom: 0;
  }

  body.xueer-product-single .site-footer-lux-main {
    display: block;
  }

  .xueer-product-topbar {
    display: none;
  }

  .xueer-product-breadcrumb {
    display: flex;
  }

  .xueer-product-page {
    max-width: 1200px;
    padding: 16px 20px 32px;
    background: #f5f5f5;
  }

  .xueer-product-main {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr) 300px;
    grid-template-rows: auto auto;
    gap: 16px;
    align-items: start;
  }

  .xueer-product-main__gallery {
    order: unset;
    grid-column: 1;
    grid-row: 1 / span 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    background: #fff;
  }

  .xueer-product-main__summary {
    order: unset;
    margin-top: 0;
    grid-column: 2;
    grid-row: 1;
    padding: 20px 22px 8px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  }

  .xueer-product-main__tabs {
    order: unset;
    margin-top: 0;
    grid-column: 2;
    grid-row: 2;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  }

  .xueer-product-buybox {
    order: unset;
    margin-top: 0;
    grid-column: 3;
    grid-row: 1 / span 2;
    position: sticky;
    top: 16px;
    padding: 18px 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  }

  .xueer-product-buybox__desktop {
    display: block;
  }

  .xueer-product-buybox__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }

  .xueer-product-buybox .xueer-product-purchase {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
  }

  .xueer-product-gallery__layout {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: flex-start;
  }

  .xueer-product-gallery.has-multiple .xueer-product-gallery__thumbs-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    flex-shrink: 0;
    gap: 6px;
  }

  .xueer-product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 72px;
    max-height: 420px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
  }

  .xueer-product-gallery__thumbs::-webkit-scrollbar {
    width: 4px;
  }

  .xueer-product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
  }

  .xueer-product-gallery__thumbs-nav {
    width: 32px;
    height: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
  }

  .xueer-product-gallery__thumbs-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
  }

  .xueer-product-gallery__thumbs-nav--up::after {
    transform: rotate(-45deg) translateY(2px);
  }

  .xueer-product-gallery__thumbs-nav--down::after {
    transform: rotate(135deg) translateY(-2px);
  }

  .xueer-product-gallery__thumbs-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
  }

  .xueer-product-gallery__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
  }

  .xueer-product-gallery__thumb.is-active {
    border-color: #1f1c1a;
    box-shadow: 0 0 0 1px #1f1c1a;
  }

  .xueer-product-gallery__thumb-img,
  .xueer-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .xueer-product-gallery__stage {
    flex: 1;
    min-width: 0;
  }

  .xueer-product-gallery__track {
    border-radius: 10px;
    background: #fafafa;
  }

  .xueer-product-gallery.has-multiple .xueer-product-gallery__nav,
  .xueer-product-gallery.has-multiple .xueer-product-gallery__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 3;
    border: 0;
    cursor: pointer;
  }

  .xueer-product-gallery__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  }

  .xueer-product-gallery__nav--prev {
    left: 12px;
  }

  .xueer-product-gallery__nav--next {
    right: 12px;
  }

  .xueer-product-gallery__nav::after,
  .xueer-product-gallery-lightbox__nav::after {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
  }

  .xueer-product-gallery__nav--prev::after,
  .xueer-product-gallery-lightbox__nav--prev::after {
    transform: rotate(-135deg) translateX(2px);
  }

  .xueer-product-gallery__nav--next::after,
  .xueer-product-gallery-lightbox__nav--next::after {
    transform: rotate(45deg) translateX(-2px);
  }

  .xueer-product-gallery__nav:disabled {
    opacity: .35;
    cursor: not-allowed;
  }

  .xueer-product-gallery__zoom {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  }

  .xueer-product-gallery__zoom::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #333;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #fff;
  }

  .xueer-product-gallery__image {
    cursor: zoom-in;
  }

  .xueer-product-gallery__dots,
  .xueer-product-gallery__counter {
    display: none;
  }

  .xueer-product-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, .82);
  }

  .xueer-product-gallery-lightbox__image {
    max-width: min(92vw, 960px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
  }

  .xueer-product-gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
  }

  .xueer-product-gallery-lightbox__close::before,
  .xueer-product-gallery-lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
  }

  .xueer-product-gallery-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .xueer-product-gallery-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .xueer-product-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .xueer-product-gallery-lightbox__nav--prev {
    left: 24px;
  }

  .xueer-product-gallery-lightbox__nav--next {
    right: 24px;
  }

  .xueer-product-gallery-lightbox__nav::after {
    border-color: #fff;
  }

  .xueer-product-gallery-aside {
    display: block;
  }

  .xueer-product-title {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.4;
  }

  .xueer-product-main__summary .xueer-product-summary {
    margin-top: 0;
    padding: 0;
    background: transparent;
  }

  .xueer-product-price-panel--mobile {
    display: none;
  }

  .xueer-product-buybox__price {
    display: block;
  }

  .xueer-product-sticky {
    display: none !important;
  }

  .xueer-product-related {
    margin-top: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body.xueer-product-single .site-header {
    display: block !important;
  }

  body.xueer-product-single .mobile-tabbar {
    display: none !important;
  }

  .xueer-product-topbar {
    display: none;
  }

  .xueer-product-page {
    max-width: 720px;
  }

  body.xueer-product-single .site-footer-lux-main {
    display: block;
  }
}

@media (max-width: 991px) {
  .xueer-product-gallery.has-multiple .xueer-product-gallery__stage {
    overflow: hidden;
  }

  .xueer-product-gallery.has-multiple .xueer-product-gallery__track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
  }

  .xueer-product-gallery.has-multiple .xueer-product-gallery__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .xueer-product-gallery.has-multiple .xueer-product-gallery__image {
    cursor: default;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }
}

@media (max-width: 767px) {
  .xueer-product-related__list li.product {
    width: 50% !important;
  }
}
