body.single-product,
body.single-product button,
body.single-product input,
body.single-product select,
body.single-product textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-synthesis: none;
}

body.single-product .site-content,
body.single-product .site-content-inner {
  background: var(--ohnice-canvas, #fae9d9);
}

body.single-product .site-content-inner,
body.single-product .site-content-inner p,
body.single-product .site-content-inner li,
body.single-product .site-content-inner dd,
body.single-product .site-content-inner dt,
body.single-product .site-content-inner label,
body.single-product .site-content-inner .price,
body.single-product .site-content-inner .product_meta,
body.single-product .site-content-inner .woocommerce-product-details__short-description,
body.single-product .site-content-inner .woocommerce-Tabs-panel {
  color: var(--ohnice-ink, #111) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-transform: none !important;
}

body.single-product .site-content-inner p,
body.single-product .site-content-inner li,
body.single-product .site-content-inner dd {
  font-size: clamp(16px, 1.3vw, 18px) !important;
  line-height: 1.62 !important;
}

body.single-product .product_title,
body.single-product .woocommerce-tabs h2,
body.single-product .woocommerce-tabs h3,
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  color: var(--ohnice-ink, #111) !important;
  font-family: var(--ohnice-display-font, Georgia, serif) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  word-spacing: 0 !important;
  text-transform: none !important;
}

body.single-product .product_title {
  font-size: clamp(34px, 4.2vw, 58px) !important;
  line-height: 1.02 !important;
}

body.single-product .woocommerce-tabs h2,
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.08 !important;
}

body.single-product .woocommerce-tabs h3 {
  font-size: clamp(23px, 2.4vw, 31px) !important;
  line-height: 1.15 !important;
}

body.single-product .product_meta,
body.single-product .product_meta a,
body.single-product .woocommerce-tabs .tabs a,
body.single-product .quantity input {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}

body.single-product .woocommerce-tabs .tabs a {
  font-size: 16px !important;
  font-weight: 700 !important;
}

body.single-product .single_add_to_cart_button,
body.single-product .button {
  font-family: var(--ohnice-display-font, Georgia, serif) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

.single-product .woocommerce-product-gallery[data-ohnice-gallery] {
  position: relative;
  display: block !important;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

.single-product .woocommerce-product-gallery[data-ohnice-gallery] .woocommerce-product-gallery__wrapper {
  position: relative;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  overflow: hidden;
  background: #fff;
}

.single-product .woocommerce-product-gallery[data-ohnice-gallery] .woocommerce-product-gallery__image {
  display: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery[data-ohnice-gallery="single"] .woocommerce-product-gallery__image:first-child,
.single-product .woocommerce-product-gallery[data-ohnice-gallery="slider"] .woocommerce-product-gallery__image.is-active {
  display: grid !important;
  place-items: center;
}

.single-product .woocommerce-product-gallery[data-ohnice-gallery] .woocommerce-product-gallery__image > a {
  display: grid !important;
  place-items: center;
  width: 100% !important;
  min-height: clamp(300px, 46vw, 620px);
  background: #fff;
}

.single-product .woocommerce-product-gallery[data-ohnice-gallery] .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: clamp(300px, 46vw, 620px) !important;
  max-height: 620px !important;
  object-fit: contain !important;
}

.ohnice-product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ohnice-ink, #111);
  border-radius: 50%;
  background: rgba(250, 233, 217, .94);
  color: var(--ohnice-ink, #111);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .16);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.ohnice-product-gallery__arrow:hover,
.ohnice-product-gallery__arrow:focus-visible {
  border-color: var(--ohnice-accent, #ed1c24);
  outline: 3px solid rgba(237, 28, 36, .28);
  outline-offset: 2px;
  background: var(--ohnice-accent, #ed1c24);
  color: #fff;
}

.ohnice-product-gallery__arrow:active {
  transform: translateY(-50%) scale(.96);
}

.ohnice-product-gallery__arrow[data-gallery-prev] { left: 14px; }
.ohnice-product-gallery__arrow[data-gallery-next] { right: 14px; }
.ohnice-product-gallery__arrow svg { width: 22px; height: 22px; }

.ohnice-product-gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-width: 56px;
  padding: 7px 10px;
  background: rgba(17, 17, 17, .82);
  color: #fff;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
}

.ohnice-product-gallery__thumbs {
  display: grid;
  grid-auto-columns: 76px;
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 12px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.ohnice-product-gallery__thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .28);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
}

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

.ohnice-product-gallery__thumb.is-active,
.ohnice-product-gallery__thumb:hover,
.ohnice-product-gallery__thumb:focus-visible {
  border-color: var(--ohnice-accent, #ed1c24);
  outline: 2px solid var(--ohnice-accent, #ed1c24);
  outline-offset: 1px;
}

@media (max-width: 767px) {
  body.single-product .site-content-inner p,
  body.single-product .site-content-inner li,
  body.single-product .site-content-inner dd {
    font-size: 16px !important;
    line-height: 1.58 !important;
  }

  .single-product .woocommerce-product-gallery[data-ohnice-gallery] .woocommerce-product-gallery__image > a,
  .single-product .woocommerce-product-gallery[data-ohnice-gallery] .woocommerce-product-gallery__image img {
    min-height: 300px;
    height: min(92vw, 430px) !important;
  }

  .ohnice-product-gallery__arrow {
    width: 42px;
    height: 42px;
  }

  .ohnice-product-gallery__arrow[data-gallery-prev] { left: 9px; }
  .ohnice-product-gallery__arrow[data-gallery-next] { right: 9px; }
  .ohnice-product-gallery__counter { right: 9px; bottom: 9px; }
  .ohnice-product-gallery__thumbs { grid-auto-columns: 64px; gap: 8px; }
  .ohnice-product-gallery__thumb { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .ohnice-product-gallery__arrow { transition: none; }
}
