/* Royal Smoke — components 2: age gate, float, reveal, cart line */
.rs-age-gate {
  position: fixed;
  inset: 0;
  z-index: var(--rs-z-gate);
  background: var(--rs-bark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--rs-safe-t)) var(--rs-pad-x) calc(24px + var(--rs-safe-b));
  min-height: 100dvh;
  transition: opacity 320ms ease, transform 320ms ease;
}

.rs-age-gate.is-gate-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.rs-age-gate__inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.rs-age-gate__brand {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-display);
  font-size: 34px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-seashell);
}

.rs-age-gate__title {
  margin: 44px 0 14px;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-sub);
  font-size: 27px;
  line-height: 1.25;
  color: var(--rs-seashell);
}

.rs-age-gate__text {
  color: var(--rs-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.rs-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rs-age-gate__langs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-text-muted);
}

.rs-age-gate__langs span[data-active] {
  color: var(--rs-seashell);
  border-bottom: 1px solid var(--rs-gold);
  padding-bottom: 2px;
}

.rs-age-denied {
  display: none;
}

.rs-age-gate.is-denied .rs-age-ask {
  display: none;
}

.rs-age-gate.is-denied .rs-age-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ——— Floating UI ——— */
.rs-float {
  position: fixed;
  right: calc(16px + var(--rs-safe-r));
  bottom: calc(16px + var(--rs-safe-b));
  z-index: var(--rs-z-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rs-float__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 320ms var(--rs-ease), opacity 320ms ease, max-height 320ms var(--rs-ease);
  max-height: 140px;
  overflow: hidden;
}

.rs-float__actions.is-hidden {
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  gap: 0;
}

.rs-float__top[hidden] {
  display: none;
}

.rs-float__top:not([hidden]) {
  display: grid;
}

body:has(.rs-drawer.is-open) .rs-float {
  opacity: 0;
  pointer-events: none;
}

/* ——— Callback modal ——— */
.rs-callback {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--rs-safe-t)) var(--rs-pad-x) calc(24px + var(--rs-safe-b));
  min-height: 100dvh;
  background: rgba(16, 13, 12, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rs-callback[hidden] {
  display: none;
}

.rs-callback__dialog {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  background: var(--rs-bark);
  border: 1px solid var(--rs-hairline);
  text-align: center;
}

.rs-callback__title {
  margin: 0 0 12px;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-sub);
  font-size: 24px;
  line-height: 1.25;
  color: var(--rs-seashell);
}

.rs-callback__text {
  margin: 0 0 24px;
  color: var(--rs-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.rs-callback .rs-form {
  margin-inline: auto;
  text-align: left;
}

@media (max-width: 767px) {
  .rs-callback {
    align-items: flex-end;
    padding-bottom: calc(16px + var(--rs-safe-b));
  }

  .rs-callback__dialog {
    max-width: none;
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
  }
}

.rs-float__btn {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  border: 1px solid var(--rs-border-soft);
  background: var(--rs-bark);
  color: var(--rs-seashell);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px var(--rs-shadow);
  transition: border-color var(--rs-dur-fast) ease, background var(--rs-dur-fast) ease;
}

.rs-float__btn:hover {
  border-color: var(--rs-gold);
}

.rs-float__btn--fill {
  background: var(--rs-seashell);
  color: var(--rs-bark);
  border-color: var(--rs-seashell);
}

/* ——— Cart line ——— */
.rs-cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rs-hairline);
}

.rs-cart-line__media {
  aspect-ratio: 3 / 4;
  background: transparent;
  border: 1px solid var(--rs-hairline);
  overflow: hidden;
  box-sizing: border-box;
}

.rs-cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-cart-line__title {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-sub);
  font-size: 18px;
}

.rs-cart-line__meta {
  font-size: 12px;
  color: var(--rs-text-muted);
  margin-top: 4px;
}

.rs-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--rs-border-soft);
}

.rs-qty button {
  width: 40px;
  height: 40px;
  color: var(--rs-seashell);
}

.rs-qty span {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .rs-card__title,
  .rs-card__price {
    font-size: 23px;
  }

  .rs-cat {
    min-height: 280px;
  }

  .rs-cat__name {
    font-size: 28px;
  }

  .rs-btn-row {
    gap: 14px;
  }
}
