.product-breadcrumb {
  width: calc(100% - var(--content-edge-gap, 32px));
  max-width: var(--content-max-width, 1360px);
  margin: 22px auto 0;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-page {
  width: calc(100% - var(--content-edge-gap, 32px));
  max-width: var(--content-max-width, 1360px);
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  column-gap: 24px;
  align-items: start;
}

.product-secondary-row {
  width: calc(100% - var(--content-edge-gap, 32px));
  max-width: var(--content-max-width, 1360px);
  margin: 22px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: clamp(320px, 42vw, 620px) clamp(170px, 17vw, 280px);
  gap: 12px;
  padding: 28px 14px 14px;
  box-sizing: border-box;
}

.product-gallery-shell {
  grid-column: 1;
  min-width: 0;
  position: relative;
}

.product-gallery-progress {
  display: none;
}

.product-gallery-progress-thumb {
  display: block;
}

.product-gallery-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  align-items: center;
  justify-content: center;
}

.product-gallery-prev {
  left: 6px;
}

.product-gallery-next {
  right: 6px;
}

.product-gallery-nav svg {
  width: 16px;
  height: 16px;
  display: block;
}

.product-gallery-nav svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.product-gallery-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.product-gallery.is-empty {
  display: none;
}

.gallery-thumb {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--line-radius-card, 4px);
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--line-width-thin, 1px) solid transparent;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery .gallery-thumb:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1;
}

.product-gallery .gallery-thumb:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1;
}

.product-gallery .gallery-thumb:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2;
}

.product-gallery .gallery-thumb:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 2;
}

.product-gallery .gallery-thumb:nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 2;
}

.product-gallery .gallery-thumb:nth-child(n + 6) {
  grid-column: span 2;
}

.product-details {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 42px;
}

.product-title {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.05;
  background: none;
  -webkit-text-fill-color: #000000;
}

.product-subtitle {
  margin: 0;
  font-size: clamp(12px, 1.05vw, 17px);
  line-height: 1.3;
}

.product-price {
  margin: 8px 0 0;
  font-size: clamp(14px, 1.15vw, 19px);
  line-height: 1.2;
}

.product-accordions {
  grid-column: 1 / -1;
  margin: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-accordion {
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.product-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-accordion > summary::-webkit-details-marker {
  display: none;
}

.product-accordion > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.product-accordion[open] > summary::after {
  content: "-";
}

.product-accordion + .product-accordion {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 14px;
}

.product-accordion-content {
  padding: 0 0 14px;
  font-size: clamp(12px, 1.05vw, 17px);
  line-height: 1.6;
}

.product-accordion-subheading {
  margin: 0 0 6px;
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.3;
}

.product-accordion-subheading + .product-accordion-list {
  margin-top: 0;
}

.product-accordion-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.product-accordion-list:last-child {
  margin-bottom: 0;
}

.product-related-accordion {
  grid-column: 1 / -1;
  margin: 12px 14px 0;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

.product-related-title {
  margin: 0;
  padding: 12px 0;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.2;
}

.product-related-accordion .product-accordion-content {
  padding-top: 12px;
}

.related-products-scroller {
  position: relative;
}

.related-products-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 6px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.related-products-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.related-products-prev {
  left: -24px;
}

.related-products-next {
  right: -24px;
}

.related-products-nav svg {
  width: 16px;
  height: 16px;
  display: block;
}

.related-products-nav svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.related-products-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.related-products-row::-webkit-scrollbar {
  display: none;
}

.related-products-row::-webkit-scrollbar-thumb {
  display: none;
}

.related-product-card {
  flex: 0 0 260px;
  height: 266px;
  display: grid;
  grid-template-rows: 64% 36%;
  color: #000000;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  overflow: hidden;
}

.related-product-card:hover {
  background: rgba(230, 198, 138, 0.2);
}

.related-product-media {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.related-product-media-primary {
  opacity: 1;
}

.related-product-media-secondary {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumb:hover {
    box-shadow: none;
  }

  .gallery-thumb:hover::after {
    border-color: var(--line-color-soft, #d1d5db);
  }

  .related-product-media:hover .related-product-media-secondary {
    opacity: 1;
  }
}

.related-product-media-empty {
  font-size: 12px;
  line-height: 1.2;
}

.related-product-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  min-height: 0;
}

.related-product-name {
  margin: 0;
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.25;
}

.related-product-description {
  margin: 0;
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-product-price {
  margin: auto 0 0;
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.2;
}

.related-products-empty {
  margin: 0;
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.4;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-frame {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000000; /* full black */
  cursor: pointer;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.lightbox-close svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000000; /* full black */
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-nav svg {
  width: 26px;
  height: 26px;
  display: block;
}

.lightbox-nav svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lightbox-prev {
  left: 6px;
}

.lightbox-next {
  right: 6px;
}

.lightbox-nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: #000000; /* full black */
}

.lightbox-track {
  flex: 1 1 auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 0;
  margin: 0;
  scrollbar-width: none;
}

.gallery-lightbox.is-zoomed .lightbox-track {
  overflow-x: hidden;
}

.gallery-lightbox.is-zoomed .lightbox-nav {
  opacity: 0;
  pointer-events: none;
}

.lightbox-track::-webkit-scrollbar {
  display: none;
}

.lightbox-slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  padding: 16px 64px 52px;
  box-sizing: border-box;
  min-height: 100%;
  overflow: hidden;
}

.lightbox-slide-blur {
  display: none;
}

.lightbox-slide::after {
  display: none;
}

.lightbox-slide img {
  position: relative;
  z-index: 1;
  max-width: min(var(--content-max-width, 1360px), calc(100vw - var(--content-edge-gap, 32px)));
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}

.lightbox-slide.is-zoomed {
  overflow: hidden;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.lightbox-slide.is-zoomed img {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox-progress {
  --progress-ratio: 0;
  --slide-count: 1;
  --progress-thumb-width: calc(100% / var(--slide-count));
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 220px));
  height: 2px;
  margin: 0;
  background: #d1d5db;
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.2);
  display: block;
  opacity: 1;
  z-index: 2;
}

.lightbox-progress-thumb {
  position: absolute;
  left: calc(var(--progress-ratio) * (100% - var(--progress-thumb-width)));
  top: 0;
  display: block;
  width: var(--progress-thumb-width);
  max-width: 100%;
  transform: none;
  will-change: left;
  transition: none;
  height: 100%;
  border-radius: 0;
  background: #334155; /* slate */
  box-shadow: none;
}

@media (min-width: 981px) {
  .product-breadcrumb.main-breadcrumb {
    font-size: 14px;
    line-height: 1.2;
  }

  .product-title {
    font-size: 22px;
  }

  .product-subtitle {
    font-size: 16px;
  }

  .product-price {
    font-size: 17px;
  }

  .product-accordion > summary,
  .product-related-title {
    font-size: 18px;
  }

  .product-accordion-content {
    font-size: 16px;
  }

  .product-accordion-subheading {
    font-size: 14px;
  }

  .related-product-name {
    font-size: 14px;
  }

  .related-product-description,
  .related-product-price,
  .related-products-empty {
    font-size: 13px;
  }

  .product-gallery {
    padding-bottom: 0;
  }

  .product-accordion > summary {
    padding-top: 13px;
    padding-bottom: 5px;
  }

  .product-accordion-content {
    padding-bottom: 8px;
  }

  .product-accordion[open] > .product-accordion-content {
    padding-top: 20px;
  }

  .product-accordion + .product-accordion {
    margin-top: 1px;
    padding-top: 15px;
  }

  .product-related-accordion {
    margin-top: 3px;
    padding-top: 15px;
  }

  .product-related-title {
    padding-top: 13px;
    padding-bottom: 5px;
  }

  .product-related-accordion .product-accordion-content {
    padding-top: 8px;
  }

  .gallery-thumb,
  .gallery-thumb img {
    cursor: zoom-in;
  }

  .product-details {
    position: sticky;
    top: calc(64px + env(safe-area-inset-top));
    align-self: start;
  }

  .lightbox-nav {
    width: 44px;
    height: 132px;
    color: #111111;
  }

  .lightbox-nav svg {
    width: 30px;
    height: 30px;
  }

  .lightbox-nav svg path {
    stroke-width: 1.35;
    stroke-linecap: square;
    stroke-linejoin: miter;
  }

  .lightbox-prev {
    left: calc(50% - min(35vw, 575px) - 48px);
  }

  .lightbox-next {
    right: calc(50% - min(35vw, 575px) - 48px);
  }

  .lightbox-slide img {
    max-width: min(70vw, 1150px);
    max-height: 70vh;
  }

  .lightbox-progress-thumb {
    border-radius: 0;
  }
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .product-breadcrumb {
    width: calc(100% - 24px);
    margin: 14px auto 0;
    padding: 0 12px;
    gap: 6px;
  }

  .product-page {
    width: calc(100% - 24px);
    margin: 16px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: clip;
  }

  .product-secondary-row {
    width: calc(100% - 24px);
    margin: 16px auto 38px;
    display: block;
  }

  .product-gallery {
    --gallery-card-width: min(74vw, 300px);
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 0 10px;
    box-sizing: border-box;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .product-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-gallery-progress {
    --gallery-progress-ratio: 0;
    --gallery-slide-count: 1;
    --gallery-thumb-width: calc(100% / var(--gallery-slide-count));
    display: block;
    position: relative;
    width: 100%;
    height: 2px;
    margin: -6px auto 0;
    background: #f3f4f6;
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05), inset 0 1px 1px rgba(15, 23, 42, 0.08);
    pointer-events: none;
  }

  .product-gallery-progress-thumb {
    position: absolute;
    top: 0;
    left: calc(var(--gallery-progress-ratio) * (100% - var(--gallery-thumb-width)));
    width: var(--gallery-thumb-width);
    height: 100%;
    background: #334155;
    border-radius: 0;
  }

  .product-gallery::after {
    content: "";
    flex: 0 0 max(0px, calc((100% - var(--gallery-card-width)) / 2));
  }

  .product-gallery::before {
    content: "";
    flex: 0 0 max(0px, calc((100% - var(--gallery-card-width)) / 2));
  }

  .product-details {
    padding: 12px 2px 0;
  }

  .product-accordions {
    margin: 0 2px;
    gap: 0;
  }

  .product-related-accordion {
    margin: 3px 2px 0;
    padding-top: 15px;
  }

  .related-products-row {
    gap: 10px;
    padding: 4px 0 6px 0;
  }

  .related-products-row::after {
    content: none;
    flex: 0 0 0;
  }

  .related-product-card {
    flex-basis: min(230px, 72vw);
    height: 244px;
  }

  .related-products-nav {
    width: 18px;
    height: 34px;
  }

  .related-products-prev {
    left: -18px;
  }

  .related-products-next {
    right: -18px;
  }

  .related-products-nav svg {
    width: 14px;
    height: 14px;
  }

  .product-accordion > summary {
    padding-top: 13px;
    padding-bottom: 5px;
  }

  .product-accordion-content {
    padding: 0 0 12px;
  }

  .product-accordion + .product-accordion {
    margin-top: 1px;
    padding-top: 15px;
  }

  .product-related-title {
    padding-top: 13px;
    padding-bottom: 5px;
  }

  .gallery-thumb {
    flex: 0 0 var(--gallery-card-width);
    aspect-ratio: 1 / 1;
    height: auto;
    scroll-snap-align: center;
    border-radius: var(--line-radius-card, 4px);
  }

  .lightbox-close {
    top: max(6px, calc(env(safe-area-inset-top) + 2px));
    right: 8px;
    width: 26px;
    height: 26px;
    color: #000000;
    padding: 0;
  }

  .lightbox-close svg {
    width: 14px;
    height: 14px;
  }

  .lightbox-close svg path {
    stroke-width: 1.35;
    stroke-linecap: square;
    stroke-linejoin: miter;
  }

  .lightbox-frame {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    padding: 0;
    background: #ffffff;
  }

  .lightbox-track {
    margin: 0;
  }

  .lightbox-nav {
    width: 24px;
    height: 56px;
    color: #000000;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .lightbox-nav svg {
    width: 16px;
    height: 16px;
  }

  .lightbox-nav svg path {
    stroke-width: 1.25;
    stroke-linecap: square;
    stroke-linejoin: miter;
  }

  .lightbox-prev {
    left: 2px;
  }

  .lightbox-next {
    right: 2px;
  }

  .lightbox-slide {
    padding: max(46px, calc(env(safe-area-inset-top) + 6px)) 34px max(46px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .lightbox-slide img {
    max-width: calc(100vw - 68px);
    max-height: 100%;
  }

  .lightbox-progress {
    width: min(250px, calc(100% - 140px));
    height: 2px;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px));
  }
}

@media (max-width: 980px) and (hover: hover) and (pointer: fine) {
  .product-gallery {
    --gallery-card-width: 100%;
    gap: 0;
  }

  .gallery-thumb {
    aspect-ratio: 4 / 3;
    border-radius: var(--line-radius-card, 4px);
  }

  .product-gallery-nav {
    display: inline-flex;
    width: 28px;
    height: 56px;
    color: #334155;
    z-index: 3;
  }

  .product-gallery-nav svg {
    width: 18px;
    height: 18px;
  }
}

@media (hover: none), (pointer: coarse) {
  .gallery-thumb:hover {
    box-shadow: none;
  }

  .gallery-thumb:hover::after {
    border-color: transparent;
  }

  .related-product-card:hover {
    background: #ffffff;
  }

  .related-product-media:hover .related-product-media-secondary {
    opacity: 0;
  }
}
