.pv-woo {
  padding: 150px 0 90px;
  background: var(--pv-paper);
}

.pv-woo .woocommerce-breadcrumb {
  color: var(--pv-soft);
  font-size: 12px;
  margin-bottom: 30px;
}

.single-product .pv-woo div.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(500px, 570px) minmax(420px, 530px);
  gap: clamp(52px, 6vw, 70px);
  align-items: start;
  max-width: 1170px;
  margin: 0 auto;
}

.single-product .pv-woo div.product>.onsale {
  display: none;
}

.single-product .pv-woo div.product::before,
.single-product .pv-woo div.product::after {
  display: none;
}

.single-product .pv-woo div.product div.images,
.single-product .pv-woo div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

.single-product .pv-woo div.product div.images {
  grid-column: 1;
  grid-row: 1;
  max-width: 570px;
}

.single-product .pv-woo div.product div.summary {
  grid-column: 2;
  grid-row: 1;
  max-width: 530px;
  padding-top: 0;
}

.single-product .pv-woo .woocommerce-product-gallery {
  position: relative;
}

.single-product .pv-woo .woocommerce-product-gallery__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.single-product .pv-woo .woocommerce-product-gallery__image:first-child {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 4px;
}

.single-product .pv-woo .woocommerce-product-gallery__image a,
.single-product .pv-woo .woocommerce-product-gallery__image img {
  display: block;
}

.single-product .pv-woo .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.single-product .pv-woo .flex-control-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.single-product .pv-woo .flex-control-thumbs li {
  width: 72px;
  float: none;
  margin: 0;
}

.single-product .pv-woo .flex-control-thumbs img {
  width: 72px;
  height: 72px;
  border: 1px solid transparent;
  border-radius: 4px;
  object-fit: cover;
  opacity: .72;
  cursor: pointer;
}

.single-product .pv-woo .flex-control-thumbs img.flex-active,
.single-product .pv-woo .flex-control-thumbs img:hover {
  border-color: var(--pv-ink);
  opacity: 1;
}

.single-product .pv-woo .woocommerce-product-gallery__trigger {
  top: 14px;
  right: 14px;
  z-index: 3;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__wrapper {
  --pv-gallery-slide-gap: 18px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  touch-action: pan-y;
  user-select: none;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__wrapper.is-dragging {
  cursor: grabbing;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__wrapper.is-dragging .woocommerce-product-gallery__image.is-active {
  transition: none;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__wrapper.is-settling .woocommerce-product-gallery__image.is-active,
.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__wrapper.is-settling .woocommerce-product-gallery__image.is-drag-preview {
  transition: transform .24s cubic-bezier(.22, .61, .36, 1);
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__image {
  display: none;
  width: 100%;
  margin: 0;
  cursor: grab;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__image.is-active {
  display: block;
  transform: translateX(var(--pv-gallery-drag-x, 0));
  transition: transform .18s ease-out;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__image.is-drag-preview {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transform: translateX(calc(var(--pv-gallery-drag-x, 0) + 100% + var(--pv-gallery-slide-gap)));
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__image.is-drag-preview-prev {
  transform: translateX(calc(var(--pv-gallery-drag-x, 0) - 100% - var(--pv-gallery-slide-gap)));
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__image.is-active img {
  width: 100%;
  height: auto;
  border-color: transparent;
  border-radius: 8px;
  opacity: 1;
}

.single-product .pv-woo .pv-gallery-ready .woocommerce-product-gallery__image.is-drag-preview img {
  width: 100%;
  height: auto;
  border-color: transparent;
  border-radius: 8px;
  opacity: 1;
}

.single-product .pv-woo .pv-gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.single-product .pv-woo .pv-gallery-thumb {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.single-product .pv-woo .pv-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}

.single-product .pv-woo .pv-gallery-thumb.is-active,
.single-product .pv-woo .pv-gallery-thumb:hover {
  border-color: var(--pv-ink);
}

.single-product .pv-woo .pv-gallery-thumb.is-active img,
.single-product .pv-woo .pv-gallery-thumb:hover img {
  opacity: 1;
}

.single-product .pv-woo .pv-gallery-nav {
  position: absolute;
  top: calc(50% - 44px);
  z-index: 5;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .32)),
    rgba(255, 255, 255, .34);
  box-shadow:
    0 18px 46px rgba(24, 20, 16, .18),
    inset 0 1px 0 rgba(255, 255, 255, .76),
    inset 0 -1px 0 rgba(255, 255, 255, .22);
  color: transparent;
  cursor: pointer;
  text-decoration: none;
  transform: translateY(-50%);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.single-product .pv-woo .pv-gallery-nav:hover {
  border-color: rgba(255, 255, 255, .94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .46)),
    rgba(255, 255, 255, .46);
  box-shadow:
    0 22px 54px rgba(24, 20, 16, .22),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .28);
  transform: translateY(-50%) scale(1.04);
}

.single-product .pv-woo .pv-gallery-nav:active {
  transform: translateY(-50%) scale(.97);
}

.single-product .pv-woo .pv-gallery-nav:focus-visible {
  outline: 2px solid rgba(184, 133, 58, .72);
  outline-offset: 3px;
}

.single-product .pv-woo .pv-gallery-nav svg {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--pv-ink);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .45));
}

.single-product .pv-woo .pv-gallery-nav--prev {
  left: 30px;
}

.single-product .pv-woo .pv-gallery-nav--next {
  right: 30px;
}

.pv-woo div.product .product_title {
  color: var(--pv-ink);
  font-family: var(--pv-sans);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.pv-woo div.product p.price,
.pv-woo div.product span.price {
  color: var(--pv-green);
  font-family: var(--pv-serif);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 28px;
}

.pv-woo div.product p.price del {
  color: var(--pv-soft);
  font-size: .72em;
  opacity: 1;
}

.pv-woo div.product p.price ins {
  color: var(--pv-green);
  text-decoration: none;
}

.single-product .pv-woo .pv-product-proof {
  display: grid;
  gap: 18px;
  margin: -18px 0 28px;
}

.single-product .pv-woo .pv-product-rating {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 22px;
  margin-top: -40px;
  color: var(--pv-ink);
  font-family: var(--pv-sans);
  font-size: 16px;
}

.single-product .pv-woo .pv-rating-stars {
  color: #a8a29a;
  font-size: 19px;
  letter-spacing: 1px;
}

.single-product .pv-woo .pv-review-count {
  color: var(--pv-ink);
  font-weight: 600;
  text-decoration: none;
}

.single-product .pv-woo .pv-viewing-now {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pv-ink);
  font-family: var(--pv-sans);
  font-size: 18px;
}

.single-product .pv-woo .pv-viewing-now__text {
  min-width: 0;
}

.single-product .pv-woo .pv-viewing-now__pulse {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 4px 0 2px;
  border-radius: 999px;
  background: #0f5d50;
  box-shadow: 0 0 0 0 rgba(15, 93, 80, .34);
}

.single-product .pv-woo .pv-viewing-now__pulse::after {
  position: absolute;
  inset: -6px;
  content: "";
  border: 1px solid rgba(15, 93, 80, .26);
  border-radius: inherit;
  animation: pv-viewing-pulse 1.8s ease-out infinite;
}

@keyframes pv-viewing-pulse {
  from {
    opacity: .9;
    transform: scale(.55);
  }

  to {
    opacity: 0;
    transform: scale(1.55);
  }
}

.single-product .pv-woo .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0 24px;
}

.single-product .pv-woo form.cart {
  margin-top: 0;
}

.single-product .pv-woo form.cart .quantity,
.single-product .pv-woo .product_meta {
  display: none;
}

.single-product .pv-woo form.cart .single_add_to_cart_button {
  display: block;
  width: 100%;
}

.single-product .pv-woo form.cart::before,
.single-product .pv-woo form.cart::after {
  display: none;
}

.pv-personalizer-slot {
  min-height: 0;
  margin: 0;
  border-radius: 18px;
  background: transparent;
}

.single-product .pv-woo .pp-personalizer--form {
  margin: 0 0 24px;
}

.single-product .pv-woo .pp-personalizer label,
.single-product .pv-woo .pp-personalizer legend {
  color: var(--pv-ink);
  font-family: var(--pv-sans);
  font-size: 14px;
  font-weight: 700;
}

.single-product .pv-woo .pp-personalizer input[type="text"],
.single-product .pv-woo .pp-personalizer .pp-image-upload-field,
.single-product .pv-woo .pp-personalizer .pp-fragrance-toggle {
  min-height: 42px;
  border-color: var(--pv-line);
  border-radius: 5px;
}

.single-product .pv-woo .pp-personalizer input[type="text"]::placeholder,
.single-product .pv-woo .pp-personalizer .pp-image-upload-field {
  color: #9b948c;
  font-weight: 400;
}

.single-product .pv-woo .pp-personalizer .pp-fragrance-blend__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.single-product .pv-woo .pp-personalizer .pp-fragrance-mix-toggle,
.single-product .pv-woo .pp-personalizer .pp-blend-ratio-slider {
  border-radius: 8px;
}

.single-product .pv-woo .product_meta,
.single-product .pv-woo .woocommerce-tabs,
.single-product .pv-woo .related {
  grid-column: 1 / -1;
}

.pv-woo .single_add_to_cart_button,
.pv-woo a.button,
.pv-woo button.button,
.pv-woo input.button {
  border: 0;
  border-radius: 8px;
  background: var(--pv-green);
  color: #fff;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 700;
}

.pv-woo .single_add_to_cart_button:hover,
.pv-woo a.button:hover,
.pv-woo button.button:hover,
.pv-woo input.button:hover {
  background: var(--pv-green-dark);
  color: #fff;
}

/* AJAX add-to-cart button states */
.pv-woo .single_add_to_cart_button {
  position: relative;
  transition: background-color 160ms cubic-bezier(0.4, 0, 0.2, 1), transform 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pv-woo .single_add_to_cart_button.is-loading {
  background: var(--pv-green-dark);
  cursor: progress;
  pointer-events: none;
}

.pv-woo .single_add_to_cart_button.is-added {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2c6b4a;
  cursor: default;
  pointer-events: none;
}

.pv-btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pv-spin 700ms linear infinite;
}

@keyframes pv-spin {
  to {
    transform: rotate(360deg);
  }
}

.pv-check {
  display: inline-flex;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transform: translateY(4px) translateX(-2px);
  /* turun 1px, kiri 1px */

}

.pv-check svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: pv-check-draw 320ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pv-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.pv-woo a.pv-checkout-now {
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms cubic-bezier(0.4, 0, 0.2, 1), transform 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom validation UI — replaces the native browser bubble */
.pv-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  clear: both;
  margin-top: -10px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(196, 69, 54, 0.08);
  color: #c44536;
  font-family: var(--pv-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  animation: pv-error-in 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.single-product .pv-woo .pp-personalizer .pv-field-error {
  width: 100%;
}

.pv-field-error svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.pv-field-invalid {
  border-color: rgba(196, 69, 54, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.12);
}

@keyframes pv-error-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pv-woo .quantity .qty {
  min-height: 48px;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  padding: 0 12px;
}

@media (max-width: 900px) {
  .single-product .pv-woo div.product {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .single-product .pv-woo div.product div.images,
  .single-product .pv-woo div.product div.summary {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .single-product .pv-woo .pv-product-rating {
    justify-content: flex-start;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .pv-woo {
    padding-top: 110px;
  }

  .single-product .pv-woo .pp-personalizer .pp-fragrance-blend__grid {
    grid-template-columns: 1fr;
  }

  .single-product .pv-woo .flex-control-thumbs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .single-product .pv-woo .pv-gallery-nav {
    width: 37px;
    height: 37px;
    padding: 0;
    line-height: 0;
  }

  .single-product .pv-woo .pv-gallery-nav svg {
    margin: auto;
  }

  .single-product .pv-woo .pv-gallery-nav--prev svg {
    transform: translateX(-1px);
  }

  .single-product .pv-woo .pv-viewing-now {
    align-items: flex-start;
    line-height: 1.25;
  }

  .single-product .pv-woo .pv-viewing-now__pulse {
    margin-top: 7px;
  }
}

/* "Fly to cart" — circular product thumb arcs from the add-to-cart button
   up into the header cart, TikTok-style. The element is positioned at the
   button centre (via left/top) and the transform is animated with WAAPI. */
.pv-fly-to-cart {
  position: fixed;
  z-index: 9999;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  background: var(--pv-paper);
  box-shadow: 0 10px 28px rgba(29, 42, 36, .28);
  pointer-events: none;
  will-change: transform, opacity;
}

.pv-fly-to-cart img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bump pulse applied to the cart count badge when the thumb lands. */
.pv-cart-bump {
  animation: pv-cart-bump 380ms cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes pv-cart-bump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.45);
  }

  100% {
    transform: scale(1);
  }
}

/* Splash particles burst out of the cart when the thumb lands. */
.pv-cart-splash {
  position: fixed;
  z-index: 9999;
  border-radius: 50%;
  margin: 0 0 0 0;
  pointer-events: none;
  box-shadow: 0 0 8px 2px currentColor;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .pv-fly-to-cart {
    display: none;
  }

  .pv-cart-splash {
    display: none;
  }

  .pv-cart-bump {
    animation: none;
  }
}
