/* LuxuryFashions product detail: Taobao-inspired split layout. */
.page-product {
  --lf-pdp-accent: var(--lf-primary, #ff6b35);
  --lf-pdp-accent-soft: #fff5f0;
  --lf-pdp-ink: var(--lf-text, #222);
  --lf-pdp-muted: var(--lf-text-3, #777);
  --lf-pdp-line: var(--lf-border, #e8e8e8);
  --lf-pdp-surface: var(--lf-bg, #fff);
  --lf-pdp-soft: var(--lf-bg-2, #f7f7f7);
}

body:is(#lf-product-detail-page, .page-product) .module-single-image,
body:is(#lf-product-detail-page, .page-product) .module-single-image + .bk-module-padding-style,
.page-product .breadcrumb-wrap {
  display: none !important;
}

.page-product .breadcrumb-wrap {
  margin-bottom: 0;
  background: var(--lf-pdp-surface);
}

.page-product .breadcrumb-wrap .breadcrumb {
  padding-top: 12px;
  padding-bottom: 12px;
}

.page-product .product-container.lf-pdp {
  padding-top: 20px;
}

.page-product .lf-product-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 38px;
  row-gap: 24px;
  align-items: start;
  margin-right: 0;
  margin-left: 0;
}

.page-product .lf-product-layout > * {
  width: auto;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.page-product .lf-product-gallery {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

.page-product .lf-product-purchase {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  align-self: stretch;
}

.page-product .lf-product-description {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
}

.page-product .lf-product-layout.lf-no-media {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.page-product .lf-product-layout.lf-no-media .lf-product-purchase {
  grid-column: 1;
  grid-row: 1;
}

.page-product .lf-product-layout.lf-no-media .lf-product-description {
  grid-column: 1;
  grid-row: 2;
}

/* Left media panel */
.page-product .lf-product-gallery .product-image {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.page-product .lf-product-gallery .product-image .left {
  order: 1;
  display: block;
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  max-height: none !important;
  margin: 0 14px 0 0 !important;
  overflow: hidden;
}

.page-product .lf-product-gallery .product-left-thumb-wrap {
  width: 88px;
  height: 100%;
  max-height: min(620px, calc(100vh - 230px));
  padding: 0 0 38px;
}

body:is(#lf-product-detail-page, .page-product) .lf-product-gallery #swiper.swiper-vertical > .swiper-wrapper {
  flex-direction: column !important;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-wrapper {
  flex-direction: column !important;
  height: auto !important;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide {
  position: relative;
  display: block;
  flex: 0 0 88px !important;
  width: 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  /* Match Swiper's 10px spaceBetween; a zero margin overrides its inline gap. */
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: var(--lf-radius, 10px) !important;
  background: transparent;
  box-shadow: none !important;
  filter: none !important;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide:last-child {
  margin-bottom: 0 !important;
}

/* Overlay the selection frame instead of nesting the image in a grey frame. */
.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide.active::after,
.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide:hover::after {
  border-color: var(--lf-pdp-accent) !important;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: var(--lf-radius, 10px);
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-pager > div {
  top: auto;
  bottom: 0;
  width: 38px;
  height: 32px;
  margin: 0;
  color: var(--lf-pdp-ink);
  opacity: 1;
  border: 1px solid var(--lf-pdp-line);
  border-radius: var(--lf-radius, 10px);
  background: rgba(255, 255, 255, 0.94);
  transform: none;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-pager > div::after {
  font-size: 13px;
  font-weight: 800;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-button-prev {
  left: 4px;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-button-next {
  right: 4px;
  left: auto;
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-button-prev::after {
  content: "prev";
}

.page-product .lf-product-gallery .product-left-thumb-wrap .swiper-button-next::after {
  content: "next";
}

.page-product .lf-product-gallery .product-image .right#zoom {
  order: 2;
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  aspect-ratio: auto;
  height: min(620px, calc(100vh - 230px));
  min-height: 300px;
  overflow: hidden;
  border: 0;
  border-radius: var(--lf-radius, 10px);
  background: var(--lf-pdp-soft);
}

.page-product .lf-product-gallery .product-image .right#zoom .product-img {
  display: flex;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}

.page-product .lf-product-gallery .product-image .right#zoom .product-img > img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none;
  object-fit: contain;
}

/* Right purchase panel stays in the viewport while the left column scrolls. */
.page-product .lf-product-info {
  position: sticky;
  top: calc(var(--lf-sticky-header-height, 86px) + 16px);
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  padding: 4px 10px 0 0;
  overflow: visible;
  overscroll-behavior: auto;
  background: var(--lf-pdp-surface);
}

.page-product .lf-product-info .product-name {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 0 18px !important;
  padding: 4px 0 10px;
  color: var(--lf-pdp-ink);
  background: var(--lf-pdp-surface);
  font-size: clamp(22px, 1.75vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.page-product .lf-product-info .price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--lf-radius, 10px);
  background: var(--lf-pdp-accent-soft);
}

.page-product .lf-product-info .price-wrap .new-price {
  flex: 0 0 auto;
  margin: 0;
  color: var(--lf-pdp-accent);
  font-size: clamp(30px, 2.5vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.page-product .lf-product-info .price-wrap .old-price {
  flex: 0 1 auto;
  margin: 0;
  font-size: 14px;
}

.page-product .lf-product-info .product-price {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--lf-radius, 10px);
  background: var(--lf-pdp-soft);
}

.page-product .lf-product-info .stock-and-sku {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 24px !important;
  padding: 0;
  border: 0;
  color: var(--lf-pdp-ink);
}

.page-product .lf-product-info .stock-and-sku > div {
  display: flex !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  gap: 6px;
  align-items: baseline;
  font-size: 14px;
}

.page-product .lf-product-info .stock-and-sku > div:nth-child(even) {
  padding-left: 0;
  border-left: 0;
}

.page-product .lf-product-info .stock-and-sku .title {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.page-product .lf-product-info .stock-and-sku a {
  overflow: hidden;
  color: var(--lf-pdp-ink);
  text-decoration: none;
  text-underline-offset: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-product .lf-product-info .variables-wrap {
  margin-bottom: 8px !important;
}

.page-product .lf-product-info .variables-wrap .variable-group {
  margin-bottom: 16px;
}

.page-product .lf-product-info .variables-wrap .variable-group > p,
.page-product .lf-product-info .mb-md-3 > p {
  margin-bottom: 9px !important;
  color: var(--lf-pdp-muted);
  font-size: 14px;
  font-weight: 600;
}

.page-product .lf-product-info .variables-wrap .variable-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-product .lf-product-info .variables-wrap .variable-info > div {
  min-width: 52px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #d8d8d8;
  border-radius: var(--lf-radius, 10px);
  color: var(--lf-pdp-ink);
  background: var(--lf-pdp-surface);
  font-size: 14px;
  font-weight: 600;
}

.page-product .lf-product-info .variables-wrap .variable-info > div:hover,
.page-product .lf-product-info .variables-wrap .variable-info > div.selected {
  border-color: var(--lf-pdp-accent);
  color: var(--lf-pdp-accent);
  box-shadow: 0 0 0 1px var(--lf-pdp-accent);
}

.page-product .lf-product-info .variables-wrap .variable-info > div.is-v-image {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: var(--lf-radius, 10px);
}

.page-product .lf-product-info .variables-wrap .variable-info > div.is-v-image .image,
.page-product .lf-product-info .variables-wrap .variable-info > div.is-v-image img {
  border-radius: var(--lf-radius, 10px);
}

.page-product .lf-product-info .lf-quantity-field {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 0 !important;
}

.page-product .lf-product-info .lf-quantity-field > .lf-quantity-label {
  flex: 0 0 auto;
  margin: 0 !important;
  color: var(--lf-pdp-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.page-product .lf-product-info .quantity-wrap.input-group {
  display: grid;
  grid-template-columns: 36px 44px 36px;
  flex: 0 0 118px;
  width: 118px;
  height: 38px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: var(--lf-radius, 10px);
  background: var(--lf-pdp-surface);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-product .lf-product-info .quantity-wrap.input-group:focus-within {
  border-color: var(--lf-pdp-ink);
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}

.page-product .lf-product-info .quantity-wrap.input-group .btn,
.page-product .lf-product-info .quantity-wrap.input-group .form-control {
  width: 100% !important;
  height: 36px;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 36px;
}

.page-product .lf-product-info .quantity-wrap.input-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lf-pdp-ink);
  background: #fafafa;
  font-size: 13px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-product .lf-product-info .quantity-wrap.input-group .btn:hover:not(:disabled),
.page-product .lf-product-info .quantity-wrap.input-group .btn:focus-visible {
  color: var(--lf-pdp-accent);
  background: var(--lf-pdp-accent-soft);
}

.page-product .lf-product-info .quantity-wrap.input-group .form-control {
  z-index: 1;
  border-right: 1px solid var(--lf-pdp-line);
  border-left: 1px solid var(--lf-pdp-line);
  color: var(--lf-pdp-ink);
  background: var(--lf-pdp-surface);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.page-product .lf-product-info .quantity-wrap.input-group .btn:disabled,
.page-product .lf-product-info .quantity-wrap.input-group .form-control:disabled {
  color: #aaa;
  background: #f5f5f5;
  opacity: 1;
}

.page-product .lf-product-info .product-btns {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 22px 0 0;
  padding: 12px 0 4px;
  border-top: 0;
  background: var(--lf-pdp-surface);
  box-shadow: 0 -14px 22px rgba(255, 255, 255, 0.96);
}

.page-product .lf-product-info .product-btns .add-cart-btns {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
}

.page-product .lf-product-info .product-btns .add-cart,
.page-product .lf-product-info .product-btns .btn-buy-now {
  flex: 1 1 0;
  min-height: 48px;
  margin: 0 !important;
  border-width: 1px;
  border-radius: var(--lf-radius, 10px);
  font-size: 14px;
}

.page-product .lf-product-info .product-btns .add-cart {
  border-color: var(--lf-pdp-accent);
  color: var(--lf-pdp-accent) !important;
  background: #fff4ed !important;
}

.page-product .lf-product-info .product-btns .add-cart:hover {
  color: #fff !important;
  background: var(--lf-pdp-accent) !important;
}

.page-product .lf-product-info .product-btns .btn-buy-now {
  border-color: var(--lf-pdp-ink);
  background: var(--lf-pdp-ink);
}

.page-product .lf-product-info .product-btns .add-wishlist {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
}

.page-product .lf-product-info .lf-wishlist-square {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--lf-pdp-line);
  border-radius: var(--lf-radius, 10px);
  color: var(--lf-pdp-ink);
  background: var(--lf-pdp-surface);
  font-size: 18px;
}

/* Product details belong to the scrollable left column. */
.page-product .lf-product-description {
  padding-top: 0;
  border-top: 0;
  background: var(--lf-pdp-surface);
}

.page-product .lf-product-description .nav-tabs {
  position: sticky;
  top: 72px;
  z-index: 6;
  justify-content: center !important;
  margin-bottom: 24px !important;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.page-product .lf-product-description .nav-tabs .nav-link {
  padding: 13px 24px;
  color: var(--lf-pdp-muted);
  font-size: 16px !important;
}

.page-product .lf-product-description .nav-tabs .nav-link.active {
  color: var(--lf-pdp-ink);
}

.page-product .lf-product-description .nav-tabs .nav-link.active::before {
  border-color: var(--lf-pdp-accent);
  border-width: 2px;
}

.page-product .lf-product-description .rich-text-editor-content {
  min-height: 0;
  border-radius: var(--lf-radius, 10px);
  overflow: hidden;
}

.page-product .lf-product-description .rich-text-editor-content:empty {
  display: none;
}

.page-product .lf-product-description .rich-text-editor-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--lf-radius, 10px) !important;
  margin-right: auto;
  margin-left: auto;
}

.page-product .lf-product-description .attribute-table {
  margin-bottom: 0;
  font-size: 14px;
}

@media (max-width: 1199.98px) {
  .page-product .lf-product-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .page-product .lf-product-gallery .product-image .left {
    flex-basis: 76px;
    width: 76px;
    min-width: 76px;
    margin-right: 10px !important;
  }

  .page-product .lf-product-gallery .product-left-thumb-wrap,
  .page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide {
    width: 76px !important;
  }

  .page-product .lf-product-gallery .product-left-thumb-wrap .swiper-slide {
    flex-basis: 76px !important;
    height: 76px !important;
    min-height: 76px !important;
  }
}

@media (max-width: 991.98px) {
  .page-product .product-container.lf-pdp {
    padding-top: 0;
  }

  .page-product .lf-product-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .page-product .lf-product-gallery,
  .page-product .lf-product-purchase,
  .page-product .lf-product-description {
    width: 100%;
  }

  .page-product .lf-product-gallery {
    order: 1;
  }

  .page-product .lf-product-purchase {
    order: 2;
  }

  .page-product .lf-product-description {
    order: 3;
  }

  .page-product .lf-product-info {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 20px 14px 96px;
    overflow: visible;
  }

  /* CSS fallback for a desktop-rendered template resized to a mobile viewport. */
  .page-product .lf-product-gallery .product-image .left {
    display: none;
  }

  .page-product .lf-product-gallery .product-image .right#zoom {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    border-radius: 0;
  }

  .page-product .lf-product-gallery #swiper-mobile {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--lf-pdp-soft);
  }

  .page-product .lf-product-gallery #swiper-mobile .swiper-slide {
    width: 100%;
    height: 100%;
  }

  .page-product .lf-product-gallery #swiper-mobile .swiper-slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .page-product .lf-product-info .product-name {
    position: static;
    z-index: auto;
    margin-bottom: 14px !important;
    padding: 0;
    font-size: 20px;
    line-height: 1.42;
  }

  .page-product .lf-product-info .price-wrap {
    margin-bottom: 16px;
    padding: 15px 16px;
  }

  .page-product .lf-product-info .price-wrap .new-price {
    font-size: 30px;
  }

  .page-product .lf-product-info .stock-and-sku {
    grid-template-columns: 1fr;
  }

  .page-product .lf-product-info .stock-and-sku > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .page-product .lf-product-info .product-btns {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--lf-pdp-line);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.09);
  }

  .page-product .lf-product-info .product-btns .add-cart,
  .page-product .lf-product-info .product-btns .btn-buy-now,
  .page-product .lf-product-info .lf-wishlist-square {
    min-height: 44px;
    height: 44px;
    border-radius: var(--lf-radius, 10px);
    font-size: 13px;
  }

  .page-product .lf-product-info .lf-wishlist-square {
    width: 44px;
    min-width: 44px;
  }

  .page-product .lf-product-description {
    padding: 18px 14px 92px;
  }

  .page-product .lf-product-description .nav-tabs {
    top: 58px;
    margin-right: -14px;
    margin-left: -14px;
  }
}

@media (max-width: 575.98px) {
  .page-product .breadcrumb-wrap {
    display: none;
  }

  .page-product .lf-product-info .product-btns .add-cart-btns {
    gap: 7px;
  }

  .page-product .lf-product-info .product-btns {
    gap: 7px;
  }

  .page-product .lf-product-info .product-btns .add-cart,
  .page-product .lf-product-info .product-btns .btn-buy-now {
    padding-right: 7px;
    padding-left: 7px;
    white-space: nowrap;
  }
}
