/* Product page — gallery + buy box */

.single-product .manufacturer-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5a5a5;
  margin-bottom: 0.5rem;
}

.single-product .manufacturer-title a {
  color: inherit;
}

.single-product .manufacturer-title a:hover {
  color: #2f5716;
}

.single-product .product-title {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  color: #2f5716;
  margin: 0 0 1.25rem;
}

@media (min-width: 992px) {
  .single-product .product-title {
    font-size: 1.625rem;
  }
}

@media (min-width: 992px) {
  .single-product__buybox {
    position: sticky;
    top: 1.5rem;
  }
}

.single-product__summary .product-codes,
.single-product__summary .product-delivery,
.single-product__summary .product-variants {
  margin-bottom: 1rem;
}

.single-product__summary .product-codes span,
.single-product__summary .product-delivery span {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #212121;
}

.single-product .total-price {
  font-size: 1.75rem;
  font-weight: 500;
  color: #212121;
  margin: 1.25rem 0 1.5rem;
}

.single-product .total-price s {
  font-size: 1.125rem;
  color: #a5a5a5;
  margin-left: 0.5rem;
}

.product-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.product-purchase .quantity-select {
  max-width: 150px;
  flex: 0 0 auto;
}

.product-purchase__cart {
  flex: 1 1 180px;
  justify-content: center;
  min-height: 48px;
}

/* Gallery */
.product-gallery {
  --pg-border: #e5e5e5;
  --pg-primary: #2f5716;
  --pg-secondary: #da3333;
  --pg-muted: #f5f5f5;
  --pg-main-size: min(100%, 440px);
  width: 100%;
}

.product-gallery__layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
}

@media (min-width: 992px) {
  .product-gallery__layout {
    display: grid;
    grid-template-columns: 68px var(--pg-main-size);
    gap: 0.875rem;
    align-items: start;
  }
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  order: 2;
  max-width: var(--pg-main-size);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .product-gallery__thumbs {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: none;
    max-height: 440px;
    order: 0;
    gap: 0.5rem;
    scrollbar-width: none;
  }

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

.product-gallery__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 2px;
  border: 1px solid var(--pg-border);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

@media (min-width: 992px) {
  .product-gallery__thumb {
    width: 68px;
    height: 68px;
  }
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery__thumb:hover {
  border-color: #bdbdbd;
}

.product-gallery__thumb.is-active {
  border-color: var(--pg-secondary);
}

.product-gallery__thumb:focus-visible {
  outline: 2px solid rgba(218, 51, 51, 0.35);
  outline-offset: 2px;
}

.product-gallery__stage-wrap {
  position: relative;
  width: var(--pg-main-size);
  max-width: 100%;
  order: 1;
}

.product-gallery__stage {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--pg-muted);
  cursor: zoom-in;
  overflow: hidden;
}

.product-gallery__stage:focus-visible {
  outline: 2px solid rgba(47, 87, 22, 0.35);
  outline-offset: 2px;
}

.product-gallery__main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: var(--pg-muted);
  transition: opacity 0.18s ease;
}

.product-gallery__stage-wrap.is-switching .product-gallery__main {
  opacity: 0.4;
}

.product-gallery__zoom {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--pg-border);
  color: var(--pg-primary);
  pointer-events: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.product-gallery__stage:hover .product-gallery__zoom {
  color: var(--pg-secondary);
  border-color: var(--pg-secondary);
}

.product-gallery__zoom svg {
  width: 1rem;
  height: 1rem;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border);
  background: #fff;
  color: var(--pg-primary);
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-gallery__stage-wrap:hover .product-gallery__nav,
.product-gallery__nav:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .product-gallery__nav {
    opacity: 1;
  }
}

.product-gallery__nav:hover {
  color: var(--pg-secondary);
  border-color: var(--pg-secondary);
}

.product-gallery__nav--prev {
  left: 0.625rem;
}

.product-gallery__nav--prev svg {
  transform: scaleX(-1);
}

.product-gallery__nav--next {
  right: 0.625rem;
}

.product-gallery__counter {
  position: absolute;
  left: 0.625rem;
  bottom: 0.625rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--pg-border);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #212121;
  line-height: 1;
  pointer-events: none;
}

.fancybox__container {
  --fancybox-accent-color: #da3333;
}
