/* Royal Smoke — product detail layout, specs, buy */

body.rs-pd-page {
  background: #100d0c;
  color: var(--rs-seashell);
}

html:has(body.rs-pd-page) {
  background: #100d0c;
}

.rs-pd-page .rs-site {
  position: relative;
  z-index: 1;
  background: transparent;
}

.rs-pd-page .rs-main {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rs-pd-page .rs-main > *:not(.rs-pd-bg) {
  position: relative;
  z-index: 1;
}

/* Beat layout.css `body:not(.rs-home) .rs-header` solid fill */
body.rs-pd-page:not(.rs-home) .rs-header {
  background: rgba(16, 13, 12, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.rs-pd-page:not(.rs-home) .rs-header::before,
body.rs-pd-page:not(.rs-home) .rs-header::after {
  display: none;
}

.rs-pd-page .rs-footer {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  background: transparent;
}

/* White footer top covers smoke */
.rs-pd-page .rs-footer__top {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: var(--rs-footer-top-bg, var(--rs-seashell));
}

/* Brown footer bottom — smoke readable underneath */
.rs-pd-page .rs-footer__bottom {
  position: relative;
  z-index: 1;
  background: rgba(28, 23, 21, 0.72);
}

.rs-pd-page .rs-footer__bridge {
  z-index: 3;
}

/* Full-viewport smoke under header / product / brown footer */
.rs-pd-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #100d0c;
}

.rs-pd-bg__video {
  position: absolute;
  top: -4%;
  left: -12%;
  display: block;
  width: 118%;
  height: 108%;
  object-fit: cover;
  object-position: 34% 48%;
  opacity: 0;
  background: #100d0c;
  filter: brightness(0.72) contrast(0.94);
  -webkit-filter: brightness(0.72) contrast(0.94);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 1.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-pd-bg__video.is-on {
  opacity: 0.18;
}

.rs-pd {
  display: grid;
  gap: 28px;
  padding-block: 12px 40px;
  background: transparent;
}

.rs-pd__media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  background: transparent;
}

.rs-pd__media .rs-crumbs {
  padding: 0;
  flex: 0 0 auto;
}

.rs-pd__gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  gap: 12px;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 0;
}

.rs-pd__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: hidden;
  min-height: 320px;
  width: 100%;
}

.rs-pd__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-soft) var(--ease-out),
    visibility var(--motion-soft) var(--ease-out);
  z-index: 1;
}

.rs-pd__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.rs-pd__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.rs-pd__slide--empty,
.rs-pd__placeholder {
  color: var(--rs-text-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-pd__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(252, 242, 238, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color var(--rs-dur-fast) var(--rs-ease);
}

.rs-pd__nav--prev {
  left: 2px;
}

.rs-pd__nav--next {
  right: 2px;
}

.rs-pd__nav:hover,
.rs-pd__nav:focus-visible {
  color: var(--rs-seashell);
  outline: none;
}

.rs-pd__thumbs {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 56px;
  padding-bottom: 2px;
}

.rs-pd__thumbs::-webkit-scrollbar {
  display: none;
}

.rs-pd__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--rs-hairline);
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color var(--rs-dur-fast) var(--rs-ease);
}

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

.rs-pd__thumb.is-active {
  border-color: var(--rs-gold);
}

.rs-pd__thumb--empty {
  cursor: default;
  opacity: 0.35;
}

.rs-pd__info {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
}

.rs-pd__title {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-display);
  font-size: clamp(26px, 5.2vw, 36px);
  line-height: 1.12;
  color: #e8d5a8;
  margin: 0;
}

.rs-pd__desc {
  margin-top: 12px;
  color: var(--rs-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.rs-pd__desc p {
  margin: 0 0 0.55em;
}

.rs-pd__desc p:last-child {
  margin-bottom: 0;
}

.rs-pd__specs {
  margin: 18px 0 0;
  padding: 0;
}

.rs-pd__spec-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-block: 11px;
}

.rs-pd__spec-group + .rs-pd__spec-group {
  border-top: 1px solid var(--rs-gold);
}

.rs-pd__spec-group:empty {
  display: none;
}

.rs-pd__spec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: baseline;
}

.rs-pd__spec dt {
  margin: 0;
  font-family: var(--rs-font-ui);
  font-size: 13px;
  font-weight: var(--rs-weight-sub);
  color: var(--rs-seashell);
  line-height: 1.35;
}

.rs-pd__spec dd {
  margin: 0;
  font-size: 13px;
  color: var(--rs-text-soft);
  line-height: 1.35;
}

.rs-pd__notes {
  margin-top: 16px;
}

.rs-pd__notes-title {
  margin: 0 0 6px;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-sub);
  font-size: 16px;
  color: var(--rs-seashell);
}

.rs-pd__notes p {
  margin: 0;
  color: var(--rs-text-muted);
  line-height: 1.5;
  font-size: 14px;
}

.rs-pd__price {
  margin: 0;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-display);
  font-size: clamp(26px, 4.5vw, 32px);
  line-height: 1.1;
  color: var(--rs-gold);
  flex: 1 1 auto;
  min-width: 0;
}

.rs-pd__old {
  margin-right: 10px;
  font-size: 0.55em;
  font-weight: var(--rs-weight-ui);
  color: var(--rs-text-muted);
}

.rs-pd__form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  padding-bottom: 8px;
}

.rs-pd__buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.rs-pd__qty {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: stretch;
  flex: 0 0 auto;
  width: 148px;
  min-height: 48px;
  border: 1px solid var(--rs-border);
  background: transparent;
}

.rs-pd__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--rs-seashell);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.rs-pd__qty-btn:hover,
.rs-pd__qty-btn:focus-visible {
  color: var(--rs-gold);
  outline: none;
}

.rs-pd__qty-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--rs-seashell);
  text-align: center;
  font-family: var(--rs-font-ui);
  font-size: 16px;
  font-weight: var(--rs-weight-ui);
  -moz-appearance: textfield;
  appearance: textfield;
}

.rs-pd__qty-input::-webkit-outer-spin-button,
.rs-pd__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rs-pd__qty-input:focus {
  outline: none;
}

.rs-pd__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rs-pd__buy,
.rs-pd__pick {
  width: 100%;
  min-height: 48px;
}

.rs-pd__long {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rs-hairline);
}

@media (max-width: 767px) {
  .rs-pd__actions {
    grid-template-columns: 1fr;
  }

  .rs-pd__thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}

@supports (-webkit-touch-callout: none) {
  .rs-pd__qty-input {
    font-size: 16px;
  }

  .rs-pd__stage {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
