/* PDP — спокійний преміум (BeautyCake). */

.pdp {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.pdp__grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

/* ——— Gallery ——— */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  width: min(16rem, 72vw);
  max-width: 100%;
}

.pdp-gallery__stage {
  position: relative;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.pdp-gallery__main {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.pdp-gallery__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-ink);
  box-shadow: 0 4px 14px rgba(61, 42, 50, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.pdp-gallery__nav--prev {
  left: 0.4rem;
}

.pdp-gallery__nav--next {
  right: 0.4rem;
}

.pdp-gallery__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-start) 28%, transparent);
}

.pdp-gallery__zoom-btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.pdp-gallery__zoom-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--color-accent-start) 28%, transparent);
}

.pdp-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pdp-gallery__zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.88);
  color: var(--color-ink);
  pointer-events: none;
}

.pdp-gallery__zoom-hint svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdp-gallery__main--placeholder {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.pdp-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdp-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.pdp-gallery__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 4.3rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(43, 29, 20, 0.12);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  opacity: 0.45;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.pdp-gallery__thumb:hover,
.pdp-gallery__thumb:focus-visible {
  opacity: 0.85;
}

.pdp-gallery__thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-start) 22%, transparent);
}

.pdp-gallery__thumb.is-active {
  opacity: 1;
  border-color: color-mix(in srgb, var(--color-accent-start) 45%, transparent);
}

/* ——— Info / typography ——— */
.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.pdp__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.pdp__sku {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-ink);
  opacity: 0.6;
}

.pdp__availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.pdp__availability-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #8a7464;
  flex-shrink: 0;
}

.pdp__availability--in_stock .pdp__availability-dot {
  background: #5f7a4f;
}

.pdp__availability--preorder .pdp__availability-dot {
  background: #a67c52;
}

.pdp__availability--out_of_stock .pdp__availability-dot {
  background: #9f1239;
}

.pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin: 0.15rem 0 0.35rem;
}

.pdp__price-old {
  font-size: 1.12rem;
  color: color-mix(in srgb, var(--color-ink) 58%, var(--color-muted));
  text-decoration: line-through;
  opacity: 1;
  font-weight: 500;
}

.pdp__price-current {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-ink);
}

.pdp__price-current--sale {
  color: var(--color-accent-start);
}

/* ——— Variants (чіпи) ——— */
.pdp__variants {
  margin: 0.35rem 0 0.15rem;
}

.pdp__variants-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-muted);
}

.pdp__variant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp__variant {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  background: #fff;
  color: var(--color-ink);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.pdp__variant-name {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  max-width: 11rem;
}

.pdp__variant-price {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.pdp__variant:hover {
  border-color: color-mix(in srgb, var(--color-accent-start) 35%, transparent);
  box-shadow: 0 4px 12px -8px rgba(43, 29, 20, 0.35);
}

.pdp__variant.is-active {
  border-color: color-mix(in srgb, var(--color-accent-start) 45%, transparent);
  background: color-mix(in srgb, var(--color-accent-start) 8%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent-start) 20%, transparent);
}

.pdp__variant.is-active .pdp__variant-price {
  color: var(--color-accent-solid);
  font-weight: 560;
}

