/* --- SINGLE PRODUCT PAGE STYLES --- */
.product-single-container {
  padding-top: 140px;
  padding-bottom: 80px;
}

.product-gallery-layout {
  display: flex;
  gap: 30px;
}

.product-thumbnails-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80px;
}

.product-thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.product-thumb-img.active,
.product-thumb-img:hover {
  border-color: var(--ruut-accent);
}

.product-main-img-wrap {
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.product-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Write a Review Button (Text only with underline on hover) */
#writeReviewBtn,
.write-review-text-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--ruut-accent) !important;
  text-decoration: none !important;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

#writeReviewBtn:hover,
.write-review-text-btn:hover {
  background: transparent !important;
  color: var(--ruut-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* Product Gallery Scroll & Image Slide-In Animation */
.product-gallery-container {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.product-gallery-container.slide-in-active {
  opacity: 1;
  transform: translateX(0);
}

#productImage {
  transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

#productImage.img-slide-change {
  opacity: 0;
  transform: scale(0.96) translateX(20px);
}

/* Layout stability: Prevent left gallery from stretching or zooming when right column expands */
.product-main-flex-wrap {
  align-items: flex-start !important;
}

.product-gallery-container {
  align-self: flex-start !important;
  height: fit-content !important;
}

.main-image-wrap {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

#productImage {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.outgoing-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  border-radius: 8px;
}

/* Mobile Sticky Add To Cart Bar */
.sticky-pdp-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(59, 36, 28, 0.12);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sticky-pdp-bar.visible {
  transform: translateY(0);
}

.sticky-pdp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-pdp-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ruut-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-pdp-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ruut-accent);
}

.btn-sticky-pdp-add {
  background: var(--ruut-accent);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.btn-sticky-pdp-add:hover {
  background: var(--ruut-accent-hover, #6d3e44);
}

@media (min-width: 769px) {
  .sticky-pdp-bar {
    display: none !important;
  }
}

/* Volume Selector Swatches Styles */
.product-volume-container {
  margin-top: -5px;
  margin-bottom: -5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-volume-header {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ruut-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-volume-active-name {
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ruut-accent);
}

.product-volume-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.volume-swatch-btn {
  padding: 8px 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(59, 36, 28, 0.25);
  background-color: #FFFFFF;
  color: var(--ruut-text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.volume-swatch-btn:hover {
  border-color: var(--ruut-accent);
  color: var(--ruut-accent);
}

.volume-swatch-btn.active {
  background-color: var(--ruut-accent);
  border-color: var(--ruut-accent);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(137, 81, 88, 0.25);
}

.volume-swatch-price {
  font-size: 0.75rem;
  opacity: 0.85;
}

.volume-swatch-btn.active .volume-swatch-price {
  color: rgba(255, 255, 255, 0.95);
}


