#product-info .product-gallery {
  display: grid;
  gap: 14px;
}

#product-info .product-main-swiper {
  align-items: center;
  background: #fff;
  border: 1px solid var(--bs-border-color, #e5e7eb);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  min-height: 360px;
  padding: 18px;
}

#product-info .product-main-swiper img {
  height: min(48vw, 480px);
  max-height: 480px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

#product-info .product-thumbs-swiper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

#product-info .product-thumbs-swiper .swiper-slide {
  background: #fff;
  border: 1px solid var(--bs-border-color, #e5e7eb);
  border-radius: 8px;
  flex: 0 0 72px;
  padding: 4px;
}

#product-info .product-thumbs-swiper .swiper-slide:hover,
#product-info .product-thumbs-swiper .swiper-slide:focus-visible,
#product-info .product-thumbs-swiper .swiper-slide.is-active {
  border-color: var(--bs-primary, #0d6efd);
  box-shadow: 0 0 0 2px rgb(13 110 253 / 12%);
}

#product-info .product-thumbs-swiper .swiper-slide img {
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  width: 100%;
}

#product-info .product-detail-summary {
  min-width: 0;
}

#product-info .product-detail-summary > h1 {
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 1.2;
  margin-top: 0;
}

#product-info .price {
  background: linear-gradient(135deg, #fff8e8, #fff);
  border: 1px solid #f5dfad;
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

#product-info .price .price-new {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

#product-info .price .price-old {
  color: var(--bs-secondary-color, #6b7280);
  text-decoration: line-through;
}

#product-info .product-share {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

#product-info .product-share .btn {
  min-height: 44px;
  min-width: 44px;
}

#product-info #form-product > hr {
  margin: 18px 0 14px;
}

#product-info .product-cart-action {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#product-info .product-cart-action .input-group-text {
  min-height: 46px;
}

#product-info .product-cart-action #input-quantity {
  flex: 0 1 64px;
  min-height: 46px;
  text-align: center;
}

#product-info .product-cart-action #button-cart,
#product-info .product-cart-action #button-buy-now {
  flex: 1 1 145px;
  min-height: 46px;
}

#product-info .variant-option-label {
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

#product-info .variant-option-label:focus-within,
#product-info .variant-option-choice input:focus-visible + .variant-option-label {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  /* Match the reference product card and its inset content row. */
  #product-info .product-detail-main-card {
    width: 100%;
    margin: 8.59px 0 24px !important;
    border: 0;
    border-radius: 0;
  }

  #product-info .product-detail-main-card__body {
    padding: 20.8px 8.8px;
  }

  #product-info .product-detail-main-card__body > .product-detail-main-row {
    width: 100%;
    margin: 0 !important;
  }

  /* Keep the gallery row independent from the potentially long option form.
   * Reference columns are Bootstrap's 5/7 split, with a wider inner gutter on
   * the description side. */
  #product-info .product-detail-main-row > .product-gallery {
    align-self: flex-start;
    flex: 0 0 41.6666667%;
    max-width: 41.6666667%;
  }

  #product-info .product-detail-main-row > .product-detail-summary {
    flex: 0 0 58.3333333%;
    max-width: 58.3333333%;
    padding-left: 30px;
  }

  #product-info .product-detail-main-row > .product-gallery {
    gap: 8px;
  }

  #product-info .product-thumbs-swiper {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  #product-info .product-main-swiper {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    margin-left: auto;
    margin-right: auto;
    max-width: 508px;
    padding: 0;
  }

  #product-info .product-main-swiper img {
    height: 100%;
    max-height: 100%;
    margin-bottom: 0 !important;
  }

  #product-info .product-detail-summary > h1 {
    font-weight: 700;
    font-size: 19px;
    line-height: 26.6px;
    margin-bottom: 10px;
  }

  #product-info .price .price-new {
    color: #222 !important;
    font-size: 26px !important;
    line-height: 39px !important;
  }

  #product-info .price {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0;
    margin: 20px 0 16px;
    padding: 0 0 12px;
  }

  #product-info .price > li > h2 {
    line-height: 39px;
    margin: 0;
  }

  #product-info .product-detail-summary > .rating {
    margin: 13px 0 0;
    padding: 0;
  }

  #product-info .product-detail-summary > .rating p {
    margin: 0;
  }

  #product-info .product-detail-summary > .product-attribute {
    margin: 0 0 14px;
  }

  #product-info .product-share .btn {
    min-height: 26px;
    min-width: 26px;
    padding: 2px 6px;
  }

  #product-info .product-thumbs-swiper .swiper-slide {
    border: 0;
    flex-basis: 86px;
    padding: 0;
  }

  #product-info .product-thumbs-swiper .swiper-slide img {
    width: 86px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	#product-info .product-main-swiper {
		aspect-ratio: 1;
		width: calc(100% - 2px) !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 61.67px 0 0 1px !important;
	}
}

@media (min-width: 1200px) {
  /* Match the reference desktop detail's responsive square image stage.
   * The source theme can append larger title/type and stage rules after the
   * shared stylesheet, so these desktop-only values are intentionally firm. */
  #product-info .product-detail-main-row > .product-detail-summary {
    padding-left: 30px !important;
  }

  #product-info .product-detail-summary > h1 {
    font-weight: 700 !important;
    font-size: 19px !important;
    line-height: 26.6px !important;
  }

  #product-info .product-main-swiper {
    aspect-ratio: 1;
    width: calc(100% - 2px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 508px !important;
    max-height: none !important;
    margin: 24px 0 0 1px !important;
  }
}

@media (min-width: 1400px) {
  /* OpenCart's reference container grows from 1140px to 1320px here; the
   * gallery then fills its wider 508px stage at the top of the row. */
  #product-info .product-detail-main-row > .product-detail-summary {
    padding-left: 30px !important;
  }

  #product-info .product-main-swiper {
    margin-top: 1px !important;
  }
}

@media (max-width: 991.98px) {
  /* Product descriptions imported from Wix can carry a fixed 680px canvas
   * and a desktop-centering margin. Let rich text flow inside phone and tablet panels. */
  #product-info #tab-description .wixui-rich-text {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #product-info #tab-description .wixui-rich-text * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  #product-info #tab-description img,
  #product-info #tab-description iframe,
  #product-info #tab-description video {
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  #product-info.mobile-product-page {
    max-width: 100%;
    padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  }

  #product-info.mobile-product-page .mobile-product-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #product-info.mobile-product-page .mobile-product-price-summary {
    padding: 10px 10px 0;
  }

  #product-info.mobile-product-page .mobile-product-price-line {
    display: flex;
    flex-wrap: wrap;
    min-height: 23px;
    align-items: center;
    gap: 7px;
    row-gap: 2px;
  }

  #product-info.mobile-product-page .mobile-product-price-line > strong {
    color: #e92329;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
  }

  #product-info.mobile-product-page .mobile-product-price-line > s,
  #product-info.mobile-product-page .mobile-product-price-line > small {
    color: #999;
    font-size: 11px;
  }

  #product-info.mobile-product-page .mobile-product-price-reminder {
    color: #e45858;
    font-size: 11px;
    text-decoration: none;
  }

  #product-info.mobile-product-page .mobile-product-sales {
    margin-left: auto;
    color: #999;
    font-size: 11px;
  }

  #product-info.mobile-product-page .mobile-product-tax,
  #product-info.mobile-product-page .mobile-product-points {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 10px;
    line-height: 14px;
  }

  #product-info.mobile-product-page .mobile-product-card > h1 {
    margin: 3px 10px 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
  }

  #product-info.mobile-product-page .mobile-product-facts {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 10px;
    color: #555;
    font-size: 10px;
    line-height: 20px;
  }

  #product-info.mobile-product-page .mobile-product-facts li {
    min-width: 0;
    white-space: nowrap;
  }

  #product-info.mobile-product-page .mobile-product-promotions {
    margin: 20px 0 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }

  #product-info.mobile-product-page .mobile-product-promotions .card-body {
    padding: 10px 10px;
  }

  #product-info.mobile-product-page .mobile-product-tabs {
    margin: 20px 10px 0;
  }

  #product-info.mobile-product-page .mobile-product-image-count {
    position: absolute;
    right: 0;
    bottom: 10px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 12px 0 0 12px;
    background: rgb(0 0 0 / 48%);
    color: #fff;
    font-size: 11px;
    line-height: 15px;
  }

  #product-info.mobile-product-page .mobile-product-gallery {
    position: relative;
  }

  #product-info.mobile-product-page .mobile-product-back {
    position: absolute;
    top: 6px;
    left: 8px;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 72%);
    color: #333;
    text-decoration: none;
  }

  /* On narrow desktop-theme viewports the gallery link otherwise shrink-wraps
   * around the intrinsic image and leaves the main product photo tiny. */
  #product-info .product-main-swiper > a {
    display: block;
    width: 100%;
  }

  #product-info .product-main-swiper > a img {
    height: min(82vw, 320px);
    max-width: 100%;
    object-fit: contain;
    width: 100%;
  }

  #product-info.mobile-product-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  #product-info.mobile-product-page .mobile-product-gallery {
    display: grid;
    gap: 10px;
  }

  #product-info.mobile-product-page .mobile-product-main-image {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    min-height: 250px;
    padding: 10px;
  }

  #product-info.mobile-product-page .mobile-product-main-image img {
    max-height: min(82vw, 360px);
  }

  #product-info.mobile-product-page .mobile-product-thumbs {
    margin-top: 0;
  }

  #product-info.mobile-product-page .mobile-product-thumbs a {
    flex: 0 0 62px;
    padding: 3px;
  }

  #product-info.mobile-product-page .mobile-product-thumbs a.is-active {
    border-color: var(--main-color, #333);
    box-shadow: 0 0 0 2px rgb(0 0 0 / 8%);
  }

  #product-info.mobile-product-page .mobile-product-pricing {
    border: 1px solid #f5dfad;
    box-shadow: 0 4px 14px rgb(20 30 50 / 5%);
  }

  #product-info.mobile-product-page .mobile-product-buy-actions {
    background: rgb(255 255 255 / 94%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 8px 24px rgb(15 23 42 / 18%);
    padding: 8px;
    position: sticky;
    z-index: 11;
  }

  #product-info.mobile-product-page .mobile-order-breadcrumb {
    display: none;
  }

  #product-info.mobile-product-page .mobile-product-gallery {
    gap: 0;
    margin-left: calc(50% - 50vw);
    width: 100vw;
  }

  #product-info.mobile-product-page .mobile-product-main-image {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    width: 100%;
  }

  #product-info.mobile-product-page .mobile-product-main-image img {
    height: 100%;
    max-height: none;
    object-fit: cover;
    width: 100%;
  }

  /* Keep all alternate images in the delegated lightbox gallery while the
   * mobile surface follows the reference's full-bleed, single-image stage. */
  #product-info.mobile-product-page .mobile-product-thumbs {
    display: none;
  }

  /* The current runtime can serve the desktop product Twig at phone widths.
   * Give that real DOM the same full-bleed gallery treatment as the dedicated
   * mobile template instead of relying on a template class that may be absent. */
  #product-info:not(.mobile-product-page) > .breadcrumb {
    display: none;
  }

  #product-info:not(.mobile-product-page) > .row > #content > .row.mb-3 {
    margin-top: 0 !important;
  }

  #product-info:not(.mobile-product-page) .product-gallery {
    flex: 0 0 100vw;
    margin-left: calc(50% - 50vw);
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
  }

  #product-info:not(.mobile-product-page) .product-main-swiper {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    height: auto;
    margin: 0;
    max-height: none;
    max-width: 100vw;
    min-height: 0;
    padding: 0;
    width: 100vw;
  }

  #product-info:not(.mobile-product-page) .product-main-swiper > a {
    height: 100%;
    width: 100%;
  }

  #product-info:not(.mobile-product-page) .product-main-swiper > a img {
    height: 100%;
    max-height: none;
    object-fit: cover;
    width: 100%;
  }

  #product-info:not(.mobile-product-page) .product-thumbs-swiper {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #product-info .product-thumbs-swiper .swiper-slide,
  #product-info .variant-option-label {
    transition: none;
  }
}
