/* Single Product Page Custom Styles */
.single-product-container {
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
}

.product-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28rem;
  gap: var(--space-6);
  align-items: start;
  max-width: var(--space-max);
  margin: var(--space-12) auto var(--space-16);
}

@media (max-width: 1024px) {
  .product-main-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--space-4);
    padding: 0 var(--space-4);
  }
}

/* Gallery Side */
.product-gallery-side {
  position: relative;
  z-index: var(--z-base);
  isolation: isolate;
  padding: 0;
}

.product-gallery-view {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: fit-content;
  max-width: calc(var(--space-12) + var(--space-8));
}

.product-gallery-thumb {
  border: 1px solid var(--color-border);
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-base);
  width: 100%;
  max-width: calc(var(--space-12) + var(--space-8));
  position: relative;
  overflow: hidden;
}

.product-gallery-thumb.is-active {
  border-color: var(--color-text-black);
}

.product-gallery-thumb img,
.product-gallery-thumb__frame {
  width: 100%;
  height: auto;
  display: block;
}

.product-gallery-thumb__placeholder {
  aspect-ratio: 1;
  background-color: var(--color-bg-muted);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  width: 100%;
}

.product-gallery-thumb__play {
  align-items: center;
  background-color: var(--color-overlay-dark);
  border-radius: var(--radius-full);
  color: var(--color-text-white);
  display: flex;
  font-size: var(--font-size-xs);
  height: var(--space-6);
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--space-6);
}

/* Off-DOM thumbnail frame capture helper (videos). */
.product-gallery-video-capture-host {
  clip: rect(0, 0, 0, 0);
  height: var(--stroke-hairline);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: var(--stroke-hairline);
}

.product-gallery-main {
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--color-bg-light);
  position: relative;
  min-width: 0;
  width: 100%;
}

/* Desktop swipe / trackpad horizontal scroll — keep vertical scrolling natural. */
.product-gallery-main[data-gallery-desktop-swipe] {
  touch-action: pan-y;
}

@media (min-width: 769px) {
  .product-gallery-main[data-gallery-desktop-swipe] {
    cursor: grab;
  }

  .product-gallery-main[data-gallery-desktop-swipe]:active {
    cursor: grabbing;
  }
}

.product-gallery-main[data-gallery-desktop-swipe] .product-gallery-main-image {
  -webkit-user-drag: none;
  user-select: none;
}

.product-gallery-main-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.product-gallery-main-track::-webkit-scrollbar {
  display: none;
}

.product-gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.product-gallery-main-image,
.product-gallery-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-main-video,
.product-gallery-mobile-video {
  /* Avoid tap-to-pause from the UA; swipe/scroll stays on ancestor (main area / carousel track). */
  pointer-events: none;
}

/* Native controls disabled in markup; suppress any remaining UA chrome. */
.product-gallery-main-video::-webkit-media-controls,
.product-gallery-mobile-video::-webkit-media-controls {
  display: none;
}

.product-gallery-main-video::-webkit-media-controls-enclosure,
.product-gallery-mobile-video::-webkit-media-controls-enclosure {
  display: none;
}

.product-gallery-mobile-carousel {
  display: none;
}

.product-gallery-mobile-track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.product-gallery-mobile-track::-webkit-scrollbar {
  display: none;
}

.product-gallery-mobile-slide {
  flex: 0 0 calc(100% - var(--space-6));
  min-width: calc(100% - var(--space-6));
  aspect-ratio: 1/1;
  scroll-snap-align: center;
  background-color: var(--color-bg-light);
}

.product-gallery-mobile-image,
.product-gallery-mobile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  padding: var(--space-4);
  z-index: var(--z-raised);
  transition:
    color var(--transition-base),
    opacity var(--transition-base);
  display: none;
}

.product-gallery-nav:hover {
  color: var(--color-text-black);
}

.product-gallery-nav--prev {
  left: 0;
}

.product-gallery-nav--next {
  right: 0;
}

@media (max-width: 768px) {
  .product-gallery-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery-thumbs {
    display: none;
  }

  .product-gallery-main {
    display: none;
  }

  .product-gallery-mobile-carousel {
    display: block;
    margin-inline: calc(var(--space-4) * -1);
    overflow: hidden;
  }

  .product-gallery-mobile-track {
    padding-inline: calc(var(--space-8) / 2);
  }

  .product-gallery-nav {
    display: none;
  }

  .product-gallery-view--single .product-gallery-mobile-track {
    padding-inline: 0;
  }

  .product-gallery-view--single .product-gallery-mobile-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
  }

  .product-gallery-mobile-image {
    cursor: zoom-in;
  }
}

/* Peek mobile gallery (Vlera-style), used when Customizer scope is mobile-only */
.product-gallery-view--peek-mobile .product-gallery-mobile-viewport {
  overflow: hidden;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-gallery-view--peek-mobile
  .product-gallery-mobile-viewport::-webkit-scrollbar {
  display: none;
}

.product-gallery-view--peek-mobile .product-gallery-mobile-track {
  overflow: visible;
  scroll-snap-type: none;
  padding-inline: 0;
}

.product-gallery-view--peek-mobile .product-gallery-mobile-slide {
  flex: 0 0 calc(100% - var(--space-16));
  width: calc(100% - var(--space-16));
  min-width: 0;
  aspect-ratio: auto;
  background-color: transparent;
  scroll-snap-align: start;
}

.product-gallery-view--peek-mobile .product-gallery-mobile-slide-inner {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light);
  width: 100%;
  aspect-ratio: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.product-gallery-view--peek-mobile .product-gallery-mobile-image,
.product-gallery-view--peek-mobile .product-gallery-mobile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.product-gallery-view--peek-mobile .product-gallery-mobile-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
}

.product-gallery-view--peek-mobile .product-gallery-mobile-nav {
  position: static;
  transform: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-black);
  transition: opacity var(--transition-fast);
}

.product-gallery-view--peek-mobile .product-gallery-mobile-nav:hover,
.product-gallery-view--peek-mobile .product-gallery-mobile-nav:focus {
  opacity: var(--opacity-hover);
  outline: none;
}

.product-gallery-view--peek-mobile .product-gallery-mobile-nav svg {
  display: block;
  width: var(--space-6);
  height: var(--space-6);
}

.product-gallery-view--peek-mobile .product-gallery-mobile-counter {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  color: var(--color-text-black);
  user-select: none;
}

@media (max-width: 768px) {
  .product-gallery-view--peek-mobile .product-gallery-mobile-carousel {
    margin-inline: 0;
    overflow: visible;
  }

  .product-gallery-view--peek-mobile .product-gallery-mobile-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: var(--space-4);
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    margin-inline: calc(var(--space-4) * -1);
    width: calc(100% + var(--space-4) * 2);
    padding-left: var(--space-4);
    box-sizing: border-box;
  }

  .product-gallery-view--peek-mobile .product-gallery-mobile-slide-inner,
  .product-gallery-view--peek-mobile .product-gallery-mobile-image,
  .product-gallery-view--peek-mobile .product-gallery-mobile-video {
    touch-action: manipulation;
  }

  .product-gallery-view--peek-mobile .product-gallery-mobile-slide {
    scroll-snap-stop: always;
  }

  .product-gallery-view--peek-mobile .product-gallery-mobile-track::after {
    content: "";
    flex: 0 0 var(--space-4);
  }

  .product-gallery-view--peek-mobile
    .product-gallery-mobile-carousel.is-single-slide
    .product-gallery-mobile-slide,
  .product-gallery-view--peek-mobile.product-gallery-view--single
    .product-gallery-mobile-slide {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
  }

  .product-gallery-view--peek-mobile
    .product-gallery-mobile-carousel.is-single-slide
    .product-gallery-mobile-viewport,
  .product-gallery-view--peek-mobile.product-gallery-view--single
    .product-gallery-mobile-viewport {
    margin-inline: 0;
    width: 100%;
    padding-left: 0;
    scroll-padding-left: 0;
  }

  .product-gallery-view--peek-mobile
    .product-gallery-mobile-carousel.is-single-slide
    .product-gallery-mobile-track::after,
  .product-gallery-view--peek-mobile.product-gallery-view--single
    .product-gallery-mobile-track::after {
    content: none;
  }
}

/* Product gallery mobile lightbox */
body.product-gallery-lightbox-open {
  overflow: hidden;
}

.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

.product-gallery-lightbox.is-active {
  opacity: 1;
  visibility: visible;
  overscroll-behavior: none;
}

.product-gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-bg-default);
  cursor: pointer;
}

.product-gallery-lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  box-sizing: border-box;
}

.product-gallery-lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--color-text-black);
  border: none;
  border-radius: var(--radius-full);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  cursor: pointer;
  z-index: var(--z-raised);
  transition: opacity var(--transition-fast);
  opacity: 0.8;
}

.product-gallery-lightbox__close:hover,
.product-gallery-lightbox__close:focus {
  opacity: 1;
  outline: none;
}

.product-gallery-lightbox__controls {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  display: flex;
  gap: var(--space-2);
  z-index: var(--z-raised);
}

.product-gallery-lightbox__zoom-in,
.product-gallery-lightbox__zoom-out {
  background: var(--color-text-black);
  border: none;
  border-radius: var(--radius-full);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  opacity: 0.8;
}

.product-gallery-lightbox__zoom-in:hover,
.product-gallery-lightbox__zoom-out:hover,
.product-gallery-lightbox__zoom-in:focus,
.product-gallery-lightbox__zoom-out:focus {
  opacity: 1;
  outline: none;
}

.product-gallery-lightbox__zoom-in:disabled,
.product-gallery-lightbox__zoom-out:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-gallery-lightbox__image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 7.5rem);
  overflow: hidden;
  position: relative;
}

.product-gallery-lightbox__image-container.is-zoomed {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.product-gallery-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition:
    width var(--transition-base),
    height var(--transition-base);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.product-gallery-lightbox__counter {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-black);
  color: var(--color-text-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  opacity: 0.8;
}

@media (min-width: 769px) {
  .product-gallery-lightbox {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .product-gallery-lightbox__content {
    padding: var(--space-4);
  }

  .product-gallery-lightbox__close {
    top: var(--space-4);
    right: var(--space-4);
    width: 2.5rem;
    height: 2.5rem;
  }

  .product-gallery-lightbox__controls {
    top: var(--space-4);
    left: var(--space-4);
    gap: var(--space-2);
  }

  .product-gallery-lightbox__zoom-in,
  .product-gallery-lightbox__zoom-out {
    width: 2.5rem;
    height: 2.5rem;
  }

  .product-gallery-lightbox__counter {
    bottom: var(--space-4);
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
  }
}

@media (max-width: 480px) {
  .product-gallery-lightbox__content {
    padding: var(--space-3);
  }

  .product-gallery-lightbox__close {
    top: var(--space-3);
    right: var(--space-3);
    width: 2.25rem;
    height: 2.25rem;
  }

  .product-gallery-lightbox__controls {
    top: var(--space-3);
    left: var(--space-3);
    gap: var(--space-1);
  }

  .product-gallery-lightbox__zoom-in,
  .product-gallery-lightbox__zoom-out {
    width: 2.25rem;
    height: 2.25rem;
  }

  .product-gallery-lightbox__counter {
    bottom: var(--space-3);
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-3);
  }

  .product-gallery-lightbox__image-container {
    max-height: calc(100% - 6.25rem);
  }
}

/* Peek product gallery (Customizer: Use peek product gallery) */
.product-main-layout--peek-gallery .product-gallery-side {
  min-width: 0;
}

.product-gallery-container {
  width: 100%;
}

.product-gallery-desktop {
  width: 100%;
}

.product-gallery-mobile {
  display: none;
  overscroll-behavior-y: contain;
}

.product-gallery-desktop-stage {
  position: relative;
  width: 100%;
}

.product-gallery-desktop-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.product-gallery-desktop-viewport.is-dragging {
  cursor: grabbing;
  touch-action: none;
  user-select: none;
}

.product-gallery-desktop-track {
  display: flex;
  gap: var(--space-1);
  will-change: transform;
}

.product-gallery-container .gallery-desktop-slide {
  flex: 0 0 calc((100% - var(--space-1)) * 0.72);
  width: calc((100% - var(--space-1)) * 0.7);
  min-width: calc((100% - var(--space-1)) * 0.7);
  flex-shrink: 0;
}

.product-gallery-container.is-single-slide .gallery-desktop-slide,
.product-gallery-container.is-single-slide .product-gallery-slide {
  flex-basis: 100%;
  width: 100%;
  min-width: 100%;
}

.product-gallery-container .gallery-desktop-slide .main-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-light);
  aspect-ratio: 1;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.product-gallery-container .gallery-desktop-slide .main-product-image,
.product-gallery-container .gallery-desktop-slide .main-product-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.product-gallery-container .product-gallery-carousel {
  overflow: hidden;
  width: 100%;
}

.product-gallery-container .product-gallery-track {
  display: flex;
  gap: var(--space-2);
  will-change: transform;
}

.product-gallery-container .product-gallery-slide {
  flex: 0 0 calc((100% - var(--space-2)) * 0.93);
  min-width: 0;
  flex-shrink: 0;
  height: auto;
  scroll-snap-align: start;
}

.product-gallery-container .gallery-slide-inner {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-light);
  width: 100%;
  aspect-ratio: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.product-gallery-container .product-gallery-slide .main-product-image,
.product-gallery-container .product-gallery-slide .main-product-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-gallery-container .main-product-video {
  background: var(--color-bg-light);
  pointer-events: none;
}

.product-gallery-container .main-product-video::-webkit-media-controls,
.product-gallery-container
  .main-product-video::-webkit-media-controls-enclosure,
.product-gallery-container
  .main-product-video::-webkit-media-controls-play-button,
.product-gallery-container
  .main-product-video::-webkit-media-controls-start-playback-button {
  display: none;
}

.product-gallery-container .gallery-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
}

.product-gallery-desktop .gallery-controls {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  z-index: var(--z-raised);
  padding-top: 0;
}

.product-gallery-container .gallery-counter {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-tight);
  color: var(--color-text-black);
  font-weight: var(--font-weight-medium);
  user-select: none;
}

.product-gallery-container .image-nav {
  position: static;
  transform: none;
  background: none;
  border: none;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--color-text-black);
  transition: opacity var(--transition-fast);
}

.product-gallery-container .image-nav:hover,
.product-gallery-container .image-nav:focus {
  opacity: var(--opacity-hover);
  outline: none;
}

.product-gallery-container .image-nav svg {
  display: block;
  width: var(--space-6);
  height: var(--space-6);
}

.product-gallery-container .product-gallery-mobile .main-product-image {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .product-main-layout--peek-gallery .product-gallery-side {
    margin-inline: calc(var(--space-4) * -1);
  }

  .product-gallery-desktop {
    display: none;
  }

  .product-gallery-mobile {
    display: block;
    width: 100%;
  }

  .product-gallery-container .product-gallery-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .product-gallery-container .product-gallery-carousel::-webkit-scrollbar {
    display: none;
  }

  .product-gallery-container .gallery-slide-inner,
  .product-gallery-container .product-gallery-mobile .main-product-image,
  .product-gallery-container .product-gallery-mobile .main-product-video {
    touch-action: manipulation;
  }

  .product-gallery-container .product-gallery-slide {
    scroll-snap-stop: always;
  }

  .product-gallery-container .product-gallery-track {
    will-change: auto;
  }

  .product-gallery-container .product-gallery-track::after {
    content: "";
    flex: 0 0 var(--space-4);
  }

  .product-gallery-container.is-single-slide .product-gallery-track::after {
    content: none;
  }

  .product-gallery-container .gallery-controls {
    padding-left: var(--space-4);
    gap: var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-container .product-gallery-desktop-track,
  .product-gallery-container .product-gallery-carousel {
    scroll-behavior: auto;
  }
}

/* Info Side */
.product-info-side {
  background-color: var(--color-bg-default);
  padding: 0;
  position: sticky;
  margin: 0;
}

@media (max-width: 1024px) {
  .product-info-side {
    position: static;
    margin: 0;
  }
}

.product-info-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  margin-bottom: 0;
  max-width: none;
  padding-bottom: var(--space-4);
}

.product-breadcrumbs {
  margin: 0;
}

.product-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
}

.product-breadcrumbs__item:not(:last-child)::after {
  content: ">";
  margin: 0 0.55em;
  color: var(--color-text-muted);
}

.product-breadcrumbs__item a,
.product-breadcrumbs__item span {
  color: var(--color-text-black);
  text-decoration: none;
}

.product-breadcrumbs__item a:hover {
  opacity: 0.7;
}

.product-title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
  margin: 0;
  color: var(--color-text-black);
  overflow-wrap: break-word;
}

.product-info-header .product-info-wishlist {
  display: none;
}

.product-info-price,
.product-info-price .price,
.product-info-price .woocommerce-Price-amount {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-black);
}

.product-info-price del,
.product-info-price del .woocommerce-Price-amount {
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  margin-right: var(--space-2);
}

.product-info-price ins {
  text-decoration: none;
}

.product-price-wrapper {
  display: none;
}

/* Selection Area */
.product-selection-area {
  position: relative;
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.product-info-label,
.single-product-container .variations label {
  display: block;
  margin: 0 0 var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-text-black);
}

.single-product-container .variations label::after {
  content: ":";
}

/* Variations styling */
.single-product-container .variations {
  width: 100%;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
}

.single-product-container .variations tbody {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.single-product-container .variations tr {
  display: block;
}

.single-product-container .variations th.label,
.single-product-container .variations td {
  padding: 0;
  display: block;
  line-height: 1;
  font-weight: inherit;
  text-align: left;
}

.selected-variation-label {
  display: none;
}

.custom-variation-select {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .product-info-header {
    max-width: none;
    width: 100%;
    gap: var(--space-6);
  }

  .product-title {
    font-size: var(--font-size-xl);
  }

  .product-info-header .product-info-wishlist {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-black);
    font-family: var(--font-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-label);
    line-height: var(--line-height-tight);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: var(--space-1);
  }

  .product-info-header .product-info-wishlist .product-info-wishlist__icon,
  .product-info-header
    .product-info-wishlist.is-active
    .product-info-wishlist__icon {
    display: none;
  }

  .product-info-header .product-info-wishlist__label--off {
    display: inline;
  }

  .product-info-header
    .product-info-wishlist.is-active
    .product-info-wishlist__label--off {
    display: none;
  }

  .product-info-header
    .product-info-wishlist.is-active
    .product-info-wishlist__label--on {
    display: inline;
  }

  .product-info-header .product-info-wishlist:hover {
    background: transparent;
    opacity: 0.7;
  }

  .product-info-header .product-info-wishlist:active {
    transform: none;
  }

  .product-info-atc .product-info-wishlist {
    display: none;
  }
}

.variation-unavailable-tip {
  position: absolute;
  bottom: 100%;
  left: 20%;
  z-index: var(--z-toast);
  max-width: 14rem;
  padding: var(--space-2) var(--space-3);
  transform: translateX(-50%) translateY(var(--space-2));
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  color: var(--color-text-white);
  background-color: var(--color-text-black);
  border-radius: var(--radius-md);
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility var(--transition-base);
}

.variation-unavailable-tip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* BEM modifier + explicit data flag (set in JS when option is unusable). */
.variation-button.variation-button--unavailable,
.variation-button[data-unavailable="true"] {
  cursor: not-allowed;
  opacity: 0.35;
  position: relative;
}

/* Size + any text-based attribute: explicit strike (decoration survives low opacity better on some fonts). */
.is-size .variation-button.variation-button--unavailable,
.is-size .variation-button[data-unavailable="true"],
.custom-variation-select:not(.is-color)
  .variation-button.variation-button--unavailable,
.custom-variation-select:not(.is-color)
  .variation-button[data-unavailable="true"] {
  text-decoration: line-through;
  text-decoration-thickness: var(--stroke-hairline);
  text-underline-offset: var(--space-2);
}

.is-color .variation-button.variation-button--unavailable::before,
.is-color .variation-button[data-unavailable="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent calc(50% - 1px),
    var(--color-text-black) 50%,
    transparent calc(50% + 1px)
  );
  pointer-events: none;
}

.custom-variation-select.is-color {
  gap: var(--space-2);
}

.variation-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

/* Color Swatches */
.is-color .variation-button {
  width: var(--space-8);
  height: var(--space-8);
  position: relative;
}

/* White and very light hex swatches: inset ring so they stay visible on light page backgrounds. */
.is-color .variation-button.variation-button--swatch-light {
  box-shadow: inset 0 0 0 var(--stroke-hairline) var(--color-border-dark);
}

.is-color .variation-button::after {
  content: "";
  position: absolute;
  bottom: calc(var(--space-2) * -1);
  width: 100%;
  height: var(--stroke-focus);
  background-color: var(--color-text-black);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.is-color .variation-button.is-active::after {
  opacity: 1;
}

/* Option / size pills */
.custom-variation-select.is-size .variation-button,
.custom-variation-select.is-option .variation-button {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-text-black);
  padding: var(--space-3) var(--space-4);
  min-width: var(--space-10);
  min-height: var(--space-10);
  text-align: center;
  box-sizing: border-box;
  background-color: var(--color-bg-default);
  border: var(--stroke-hairline) solid var(--color-border);
  border-radius: 0;
}

.custom-variation-select.is-size
  .variation-button:hover:not(.is-active):not(
    .variation-button--unavailable
  ):not([data-unavailable="true"]),
.custom-variation-select.is-option
  .variation-button:hover:not(.is-active):not(
    .variation-button--unavailable
  ):not([data-unavailable="true"]) {
  border-color: var(--color-text-black);
}

.custom-variation-select.is-size .variation-button.is-active,
.custom-variation-select.is-option .variation-button.is-active {
  font-weight: var(--font-weight-bold);
  background-color: var(--color-bg-default);
  color: var(--color-text-black);
  border-color: var(--color-text-black);
  border-width: var(--stroke-focus);
  text-decoration: none;
}

.custom-variation-select.is-size
  .variation-button:active:not(.variation-button--unavailable):not(
    [data-unavailable="true"]
  ),
.custom-variation-select.is-option
  .variation-button:active:not(.variation-button--unavailable):not(
    [data-unavailable="true"]
  ) {
  transform: scale(0.97);
}

/* Quantity */
.product-info-quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.single-product-container .quantity {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.single-product-container .qty-styled {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border: none;
  width: fit-content;
  background: transparent;
}

.single-product-container .variations select {
  display: none;
}

.woocommerce .single-product-container .qty-styled input.qty,
.single-product-container .qty-styled input.qty {
  width: var(--space-10);
  height: var(--space-10);
  border: none;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: 0;
  background: transparent;
  color: var(--color-text-black);
  appearance: textfield;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.single-product-container .qty-styled input.qty::-webkit-outer-spin-button,
.single-product-container .qty-styled input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce .single-product-container .qty-btn,
.single-product-container .qty-btn {
  width: var(--space-10);
  height: var(--space-10);
  background: var(--color-bg-default);
  border: var(--stroke-hairline) solid var(--color-text-black);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-black);
  opacity: 1;
  padding: 0;
  box-shadow: none;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.single-product-container .qty-btn svg {
  width: var(--space-4);
  height: var(--space-4);
  display: block;
  stroke: currentColor;
  stroke-width: 2;
}

.single-product-container .qty-btn:hover {
  background-color: var(--color-bg-light);
}

.single-product-container .qty-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.woocommerce .single-product-container .qty-btn:disabled,
.woocommerce .single-product-container .qty-btn.is-disabled,
.single-product-container .qty-btn:disabled,
.single-product-container .qty-btn.is-disabled {
  border-color: var(--color-text-black);
  color: var(--color-text-black);
  background: var(--color-bg-default);
  opacity: 1;
  cursor: default;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-6);
}

.single-product-container .single_variation_wrap {
  display: block;
}

.single-product-container .woocommerce-variation-price,
.single-product-container .woocommerce-variation-availability {
  display: none;
}

.single-product-container form.cart {
  display: flex;
  align-items: stretch;
  gap: var(--space-6);
  flex-direction: column;
}

.single-product-container form.cart .quantity {
  flex: 0 0 auto;
}

.woocommerce .single-product-container form.cart div.quantity {
  float: none;
  margin: 0;
  width: auto;
}

.woocommerce .single-product-container form.cart .product-info-atc,
.product-info-atc {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  width: 100%;
  float: none;
  clear: both;
}

.woocommerce
  .single-product-container
  .product-info-atc
  .single_add_to_cart_button.button,
.single-product-container .single_add_to_cart_button {
  flex: 1 1 auto;
  float: none;
  width: auto;
  min-width: 0;
  min-height: var(--space-12);
  padding: var(--space-4) var(--space-6);
  background: var(--color-text-black);
  color: var(--color-text-white);
  border: var(--stroke-hairline) solid var(--color-text-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-button);
  white-space: nowrap;
  cursor: pointer;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.single_add_to_cart_button__label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-button);
  text-transform: uppercase;
}

.single-product-container .single_add_to_cart_button__icon {
  display: flex;
  flex-shrink: 0;
  color: inherit;
}

.single-product-container .single_add_to_cart_button__icon svg {
  width: 1.375rem;
  height: 1.375rem;
  display: block;
  stroke: currentColor;
}

.single-product-container .single_add_to_cart_button:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-white);
  border-color: var(--color-primary-dark);
}

.single-product-container .single_add_to_cart_button:active {
  transform: scale(0.99);
}

.product-info-wishlist {
  flex: 0 0 var(--space-12);
  width: var(--space-12);
  min-width: var(--space-12);
  min-height: var(--space-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: var(--stroke-hairline) solid var(--color-text-black);
  background: var(--color-bg-default);
  color: var(--color-text-black);
  cursor: pointer;
  border-radius: 0;
  opacity: 1;
  visibility: visible;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.product-info-wishlist__icon svg {
  width: var(--space-5);
  height: var(--space-5);
  display: block;
}

.product-info-wishlist__icon--on,
.product-info-wishlist__label {
  display: none;
}

.product-info-wishlist.is-active .product-info-wishlist__icon--off {
  display: none;
}

.product-info-wishlist.is-active .product-info-wishlist__icon--on {
  display: flex;
}

.product-info-wishlist:hover {
  background-color: var(--color-bg-light);
}

.product-info-wishlist:active {
  transform: scale(0.97);
}

.product-info-stock {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text-black);
  text-transform: uppercase;
}

.product-info-stock__pulse {
  position: relative;
  flex-shrink: 0;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background-color: var(--stock-pulse-color, var(--color-success));
}

.product-info-stock__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--stock-pulse-color, var(--color-success));
  animation: product-info-stock-pulse 1.6s ease-out infinite;
}

.product-info-stock--in-stock {
  --stock-pulse-color: var(--color-success);
}

.product-info-stock--low-stock,
.product-info-stock--on-backorder {
  --stock-pulse-color: var(--color-warning);
}

.product-info-stock--out-of-stock {
  --stock-pulse-color: var(--color-error);
}

@keyframes product-info-stock-pulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.product-info-stock__copy {
  min-width: 0;
}

.product-info-stock__sep {
  margin-inline: var(--space-2);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .product-info-stock__pulse::after {
    animation: none;
  }
}

.woocommerce
  .single-product-container
  form.cart
  .product-info-atc
  button.single_add_to_cart_button.button.alt,
.woocommerce
  .single-product-container
  form.cart
  .product-info-atc
  button.single_add_to_cart_button.button.alt.disabled,
.woocommerce
  .single-product-container
  form.cart
  .product-info-atc
  button.single_add_to_cart_button.button.disabled {
  background-color: var(--color-text-black);
  color: var(--color-text-white);
  border-color: var(--color-text-black);
  opacity: 1;
  transition: none;
}

.woocommerce
  .single-product-container
  form.cart
  .product-info-atc
  button.single_add_to_cart_button.button.alt:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
  border-color: var(--color-primary-dark);
  transition: none;
}

.reset_variations {
  display: none !important;
}

.product-variation-hint,
.product-variation-notice {
  margin: 0 0 var(--space-4);
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
}

.product-variation-hint {
  color: var(--color-text-muted);
}

.product-variation-hint--visible {
  display: block;
}

.product-variation-notice {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.product-variation-notice--visible {
  display: block;
}

.variation-row--required .label label {
  color: var(--color-primary);
}

@keyframes variation-option-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }

  35%,
  55% {
    box-shadow:
      0 0 0 var(--stroke-hairline) var(--color-primary),
      0 0 var(--space-1) var(--color-primary);
  }
}

.custom-variation-select--glow
  .variation-button:not(.variation-button--unavailable):not(
    [data-unavailable="true"]
  ) {
  animation: variation-option-glow 1s ease;
}

@media (prefers-reduced-motion: reduce) {
  .custom-variation-select--glow
    .variation-button:not(.variation-button--unavailable):not(
      [data-unavailable="true"]
    ) {
    animation: none;
    box-shadow: 0 0 0 var(--stroke-hairline) var(--color-primary);
  }
}

.variation-row--glow select {
  box-shadow: 0 0 0 var(--stroke-hairline) var(--color-primary);
  outline: var(--stroke-hairline) solid var(--color-primary);
  outline-offset: var(--stroke-hairline);
}

.single-product-container
  .single_add_to_cart_button.disabled:not(.wc-variation-selection-needed) {
  pointer-events: none;
}

.single-product-container
  .single_add_to_cart_button.wc-variation-selection-needed {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transition: none;
}

.single-product-container
  .single_add_to_cart_button.wc-variation-selection-needed:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-white);
  border-color: var(--color-primary-dark);
}

.single-product-container .woocommerce-variation-add-to-cart {
  cursor: default;
}

.sticky-atc-slot {
  display: block;
  width: 100%;
  min-width: 0;
}

.sticky-atc-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--space-4);
  width: 100%;
}

.sticky-atc-sheet {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--transition-base);
  clip-path: inset(0 0 100% 0);
  overflow: hidden;
}

.sticky-atc-sheet.is-active {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
  clip-path: none;
  overflow: hidden;
}

.sticky-atc-sheet[hidden] {
  display: none;
}

.sticky-atc-sheet.is-active[hidden] {
  display: block;
}

.sticky-atc-sheet__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay-dark);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.sticky-atc-sheet.is-active .sticky-atc-sheet__overlay {
  opacity: 1;
}

.sticky-atc-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  overflow-y: auto;
  background-color: var(--color-bg-default);
  color: var(--color-text-black);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  will-change: transform;
  backface-visibility: hidden;
}

.sticky-atc-sheet.is-active .sticky-atc-sheet__panel {
  transform: translateY(0);
}

.sticky-atc-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-default);
}

.sticky-atc-sheet__title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sticky-atc-sheet__close {
  border: none;
  background: transparent;
  color: var(--color-text-black);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-atc-sheet__close .icon,
.sticky-atc-sheet__close svg {
  width: var(--space-6);
  height: var(--space-6);
  display: block;
}

.sticky-atc-sheet__product {
  padding: var(--space-2) var(--space-4) var(--space-3);
  background-color: var(--color-bg-default);
}

.sticky-atc-sheet__product-inner {
  display: grid;
  grid-template-columns: calc(var(--space-12) + var(--space-8)) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.sticky-atc-sheet__product-image {
  width: calc(var(--space-12) + var(--space-8));
  height: var(--space-16);
  object-fit: cover;
  background-color: var(--color-bg-light);
}

.sticky-atc-sheet__product-title {
  margin: 0 0 var(--space-2);
  color: var(--color-text-black);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.sticky-atc-sheet__product-color {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  font-weight: var(--font-weight-regular);
}

.sticky-atc-sheet__product-price {
  color: var(--color-text-black);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.sticky-atc-sheet__product-price .price {
  display: block;
}

.sticky-atc-sheet__body {
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background-color: var(--color-bg-default);
}

.sticky-atc-sheet__heading {
  margin: 0;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-black);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.02em;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.sticky-atc-sheet__option {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-black);
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.sticky-atc-sheet__option:last-child {
  border-bottom: none;
}

.sticky-atc-sheet__option.is-unavailable {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.sticky-atc-sheet__status {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: none;
}

.sticky-atc-sheet__status.is-out-of-stock {
  text-decoration: line-through;
  opacity: 0.85;
}

@media (min-width: 769px) {
  .sticky-atc-sheet__panel {
    left: 50%;
    right: auto;
    width: min(32rem, 100%);
    transform: translate(-50%, 100%);
  }

  .sticky-atc-sheet.is-active .sticky-atc-sheet__panel {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-atc-sheet,
  .sticky-atc-sheet__overlay,
  .sticky-atc-sheet__panel {
    transition: none;
  }
}

@media (max-width: 768px) {
  body.sticky-cart-visible {
    padding-bottom: calc(var(--space-16) + env(safe-area-inset-bottom, 0px));
  }

  /*
   * Quantity/ATC are moved into the fixed sticky bar. Hide the leftover
   * in-flow wrappers so form.cart's column gap does not keep their space.
   * The slot cannot be display:none — that would also hide the fixed bar.
   */
  body.sticky-cart-visible .sticky-atc-slot {
    position: absolute;
    width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    pointer-events: none;
  }

  body.sticky-cart-visible
    .single-product-container
    form.cart
    .product-info-quantity,
  body.sticky-cart-visible
    .woocommerce-variation-add-to-cart
    .product-info-quantity,
  body.sticky-cart-visible
    .single-product-container
    form.cart
    .product-info-atc,
  body.sticky-cart-visible
    .woocommerce-variation-add-to-cart
    .product-info-atc {
    display: none;
  }

  .single-product-container .sticky-atc-bar.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: var(--z-sticky);
    margin: 0;
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    background-color: var(--color-bg-default);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    pointer-events: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity var(--transition-fast);
  }

  .woocommerce .single-product-container .sticky-atc-bar.is-sticky .quantity,
  .single-product-container .sticky-atc-bar.is-sticky .quantity,
  .woocommerce .single-product-container .sticky-atc-bar.is-sticky .qty-styled,
  .single-product-container .sticky-atc-bar.is-sticky .qty-styled {
    display: flex;
    flex: 0 0 auto;
    align-self: center;
    align-items: center;
    margin: 0;
    gap: var(--space-2);
    height: var(--space-10);
  }

  .woocommerce .single-product-container .sticky-atc-bar.is-sticky .qty-btn,
  .single-product-container .sticky-atc-bar.is-sticky .qty-btn {
    width: var(--space-10);
    height: var(--space-12);
    min-height: var(--space-10);
    align-self: center;
  }

  .woocommerce
    .single-product-container
    .sticky-atc-bar.is-sticky
    .qty-styled
    input.qty,
  .single-product-container .sticky-atc-bar.is-sticky .qty-styled input.qty {
    height: var(--space-10);
    min-height: var(--space-10);
    width: var(--space-10);
  }

  .single-product-container
    .sticky-atc-bar.is-sticky
    .single_add_to_cart_button {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: var(--space-10);
    min-height: var(--space-12);
    padding: 0 var(--space-4);
    pointer-events: auto;
    background-color: var(--color-text-black);
    color: var(--color-text-white);
    border: var(--stroke-hairline) solid var(--color-text-black);
    border-radius: 0;
  }

  .single-product-container
    .sticky-atc-bar.is-sticky
    .single_add_to_cart_button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    border-color: var(--color-primary-dark);
  }

  body.drawer-cart-open .single-product-container .sticky-atc-bar.is-sticky,
  body.drawer-wishlist-open .single-product-container .sticky-atc-bar.is-sticky,
  body.settings-drawer-open .single-product-container .sticky-atc-bar.is-sticky,
  body.drawer-menu-open .single-product-container .sticky-atc-bar.is-sticky,
  body.ask-modal-open .single-product-container .sticky-atc-bar.is-sticky,
  body:has(.cart-drawer.is-active)
    .single-product-container
    .sticky-atc-bar.is-sticky,
  body:has(.wishlist-drawer.is-active)
    .single-product-container
    .sticky-atc-bar.is-sticky,
  body:has(.search-drawer.is-active)
    .single-product-container
    .sticky-atc-bar.is-sticky,
  body:has(.mobile-nav.is-active)
    .single-product-container
    .sticky-atc-bar.is-sticky,
  body.page-loading .single-product-container .sticky-atc-bar.is-sticky,
  body.sticky-atc-sheet-open
    .single-product-container
    .sticky-atc-bar.is-sticky {
    opacity: 0;
    pointer-events: none;
  }
}

/* Accordion */
.product-accordion {
  border-top: 1px solid rgba(31, 23, 32, 0.9);
  margin-top: var(--space-6);
}

.product-accordion > .accordion-item {
  border-bottom: 1px solid rgba(31, 23, 32, 0.9);
  padding: 0;
}

.product-accordion > .accordion-item > .accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-4) var(--space-2) var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-transform: none;
  cursor: pointer;
  text-align: left;
}

.product-accordion > .accordion-item > .accordion-header::after {
  content: "+";
  font-size: var(--font-size-md);
  line-height: 1;
}

.product-accordion > .accordion-item.is-open > .accordion-header::after {
  content: "−";
}

.product-accordion > .accordion-item > .accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
  transition: grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-accordion > .accordion-item > .accordion-content > * {
  min-height: 0;
  overflow: hidden;
}

.product-accordion > .accordion-item.is-open > .accordion-content {
  grid-template-rows: 1fr;
}

.product-accordion > .accordion-item.is-open > .accordion-content > * {
  padding-bottom: var(--space-6);
}

@media (prefers-reduced-motion: reduce) {
  .product-accordion > .accordion-item > .accordion-content {
    transition: grid-template-rows var(--transition-fast);
  }
}

/* Product page — accordion body copy */
.product-ingredients,
.product-how-to,
.product-description-full {
  max-width: 650px;
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
}

.product-ingredients > :first-child,
.product-how-to > :first-child,
.product-description-full > :first-child {
  margin-top: 0;
}

.product-ingredients > :last-child,
.product-how-to > :last-child,
.product-description-full > :last-child {
  margin-bottom: 0;
}

/* Hide Afterpay widgets on product page per requested layout */
.single-product [class*="afterpay"],
.single-product [id*="afterpay"] {
  display: none !important;
}
