/* Vopečbuřt 2.4.6 - product gallery, PhotoSwipe, tabs typography, bought-together */

/* Produktový detail: Woo/Flexslider galerie nesmí po kliknutí na náhled skončit bílou plochou. */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery .flex-viewport {
  opacity: 1 !important;
  visibility: visible !important;
}

body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .flex-viewport,
body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-height: clamp(430px, 42vw, 650px) !important;
  transform: none !important;
  transition: none !important;
  overflow: hidden !important;
  background: #fffdf7 !important;
}

body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__wrapper {
  display: block !important;
}

body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: none !important;
  background: #fffdf7 !important;
}

body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image:first-child,
body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image.vb-gallery-main-slide {
  display: block !important;
}

body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image:first-child a,
body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image.vb-gallery-main-slide a {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-height: clamp(430px, 42vw, 650px) !important;
  background: #fffdf7 !important;
}

body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image:first-child img,
body.single-product .woocommerce-product-gallery.vb-static-gallery-mode .woocommerce-product-gallery__image.vb-gallery-main-slide img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: clamp(430px, 42vw, 650px) !important;
  min-height: 0 !important;
  object-fit: contain !important;
  padding: clamp(14px, 2vw, 28px) !important;
  box-sizing: border-box !important;
  background: #fffdf7 !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img.vb-thumb-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: #d89336 !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}

/* Fullscreen PhotoSwipe: vlastní ikony místo rozbitých sprite ikon a klidnější hover. */
.vb-theme .pswp,
.vb-theme .pswp__bg {
  background: rgba(0,0,0,.94) !important;
}

.vb-theme .pswp__top-bar {
  min-height: 64px !important;
  background: linear-gradient(180deg, rgba(20,26,16,.92), rgba(20,26,16,.55)) !important;
  color: #f2e2c9 !important;
}

.vb-theme .pswp__counter {
  height: 64px !important;
  line-height: 64px !important;
  padding: 0 18px !important;
  color: rgba(242,226,201,.86) !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}

.vb-theme .pswp__button {
  appearance: none !important;
  background-image: none !important;
  background-color: rgba(51,58,43,.82) !important;
  border: 1px solid rgba(242,226,201,.28) !important;
  color: #f2e2c9 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  transform: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

.vb-theme .pswp__button:hover,
.vb-theme .pswp__button:focus-visible {
  background-color: #d89336 !important;
  border-color: #d89336 !important;
  color: #11170f !important;
  transform: translateY(-1px) !important;
}

.vb-theme .pswp__button::before,
.vb-theme .pswp__button::after {
  background: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  color: currentColor !important;
  opacity: 1 !important;
  text-align: center !important;
  line-height: 1 !important;
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
}

.vb-theme .pswp__button--close,
.vb-theme .pswp__button--share,
.vb-theme .pswp__button--fs,
.vb-theme .pswp__button--zoom {
  width: 50px !important;
  height: 50px !important;
  margin: 7px 7px 0 0 !important;
}

.vb-theme .pswp__button--close::before { content: "×" !important; font-size: 34px !important; }
.vb-theme .pswp__button--zoom::before { content: "+" !important; font-size: 30px !important; }
.vb-theme .pswp--zoomed-in .pswp__button--zoom::before { content: "−" !important; }
.vb-theme .pswp__button--fs::before { content: "⛶" !important; font-size: 24px !important; }
.vb-theme .pswp__button--share::before { content: "↗" !important; font-size: 24px !important; }

.vb-theme .pswp__button--arrow--left,
.vb-theme .pswp__button--arrow--right {
  width: 64px !important;
  height: 96px !important;
  margin-top: -48px !important;
  background-color: rgba(216,147,54,.88) !important;
  border-color: rgba(216,147,54,.95) !important;
  color: #11170f !important;
}

.vb-theme .pswp__button--arrow--left::before,
.vb-theme .pswp__button--arrow--right::before {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  background: none !important;
  font-size: 34px !important;
}

.vb-theme .pswp__button--arrow--left::before { content: "←" !important; }
.vb-theme .pswp__button--arrow--right::before { content: "→" !important; }

.vb-theme .pswp__button--arrow--left:hover,
.vb-theme .pswp__button--arrow--right:hover {
  background-color: #f2e2c9 !important;
  border-color: #f2e2c9 !important;
}

/* Popis produktu: sjednocení nadpisů na brandový nadpisový font. */
body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-tabs .panel h3,
body.single-product .woocommerce-tabs .panel h4,
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Tabs-panel h4 {
  font-family: "Rubik Dirt", Impact, Haettenschweiler, "Arial Narrow", sans-serif !important;
  color: #333a2b !important;
  text-transform: uppercase !important;
  letter-spacing: .01em !important;
  line-height: .95 !important;
}

body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-Tabs-panel h2 {
  font-size: clamp(32px, 3.7vw, 58px) !important;
}

body.single-product .woocommerce-tabs .panel h3,
body.single-product .woocommerce-Tabs-panel h3 {
  font-size: clamp(26px, 2.8vw, 42px) !important;
}

/* Často kupují společně: ručně nastavitelné přes WooCommerce Linked Products. */
body.single-product .vb-bought-together {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin: clamp(28px, 5vw, 70px) auto 0 !important;
  padding-top: clamp(16px, 2vw, 28px) !important;
  border-top: 1px solid rgba(132,81,26,.18) !important;
}

body.single-product .vb-bought-together__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) !important;
  gap: 28px !important;
  align-items: end !important;
  margin-bottom: 24px !important;
}

body.single-product .vb-bought-together__head .vb-eyebrow {
  grid-column: 1 / -1 !important;
  margin: 0 0 -16px !important;
}

body.single-product .vb-bought-together__head h2 {
  margin: 0 !important;
  color: #333a2b !important;
  font-family: "Rubik Dirt", Impact, Haettenschweiler, "Arial Narrow", sans-serif !important;
  font-size: clamp(34px, 4vw, 64px) !important;
  line-height: .92 !important;
  text-transform: uppercase !important;
}

body.single-product .vb-bought-together__head p:not(.vb-eyebrow) {
  margin: 0 !important;
  color: rgba(51,58,43,.76) !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
}

body.single-product .vb-bought-together__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

body.single-product .vb-bought-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  background: #f7ead2 !important;
  border: 1px solid rgba(51,58,43,.22) !important;
  border-top: 5px solid #84511a !important;
  box-shadow: 9px 10px 0 rgba(51,58,43,.09) !important;
}

body.single-product .vb-bought-card__image {
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  padding: 16px !important;
  background: #fffdf7 !important;
  border-bottom: 1px solid rgba(51,58,43,.16) !important;
}

body.single-product .vb-bought-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.single-product .vb-bought-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 18px !important;
}

body.single-product .vb-bought-card__kicker {
  margin: 0 0 10px !important;
  color: #84511a !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: .11em !important;
  font-weight: 900 !important;
}

body.single-product .vb-bought-card h3 {
  margin: 0 0 12px !important;
  color: #333a2b !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  font-weight: 950 !important;
}

body.single-product .vb-bought-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

body.single-product .vb-bought-card__price {
  margin: auto 0 14px !important;
  color: #11170f !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  text-align: right !important;
}

body.single-product .vb-bought-card__button {
  width: 100% !important;
  min-height: 42px !important;
  font-size: 11px !important;
}
