/* ==========================================================================
   WELLUNEX — Template showroom (/sablonlar)
   Every template is a real demo invitation, shown live inside a phone.
   ========================================================================== */

.showroom {
  --showroom-gold-foil: linear-gradient(112deg, #9c7431 0%, #f1dfa9 42%, #c9a255 68%, #8a6428 100%);
  background: var(--bg-obsidian, #0B0C10);
  color: var(--text-pure, #F8F9FA);
  overflow: hidden;
}

.showroom-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Hero ---------------------------------------------------------------- */

.showroom-hero {
  padding: clamp(104px, 13vw, 150px) 0 20px;
  text-align: center;
  background: radial-gradient(60% 85% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 72%);
}

.showroom-kicker {
  margin: 0 0 18px;
  font: 600 0.72rem/1 var(--font-sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-champagne, #E5C06E);
}

.showroom-title {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.showroom-title em {
  font-style: italic;
  background: var(--showroom-gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showroom-lead {
  margin: 22px auto 0;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mist, #8E95A5);
}

.showroom-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 9px 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: #D9D4C7;
}

.showroom-hint svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: var(--gold-champagne, #E5C06E);
}

/* --- Filters ------------------------------------------------------------- */

.showroom-gallery {
  padding: 30px 0 110px;
}

.showroom-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin: 0 auto 56px;
}

.showroom-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.showroom-filter-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.showroom-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #D6D8DE;
  font: 500 0.86rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.showroom-chip:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
}

.showroom-chip.is-active {
  border-color: transparent;
  background: var(--gold-gradient, linear-gradient(135deg, #D4AF37 0%, #E5C06E 100%));
  color: #1A1406;
  font-weight: 600;
}

.showroom-chip-count {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.showroom-chip:focus-visible,
.showroom-btn:focus-visible,
.showroom-segment button:focus-visible,
.showroom-dialog__close:focus-visible {
  outline: 2px solid var(--gold-champagne, #E5C06E);
  outline-offset: 3px;
}

.showroom-empty {
  margin: 0 0 40px;
  text-align: center;
  color: var(--text-mist, #8E95A5);
}

/* --- Cards --------------------------------------------------------------- */

.showroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 36px 28px;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Horizontal Showroom Reel (Homepage Carousel) ------------------------- */

.showroom-reel-wrapper {
  position: relative;
  width: 100%;
  margin: 32px 0 44px;
}

.showroom-reel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 32px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showroom-reel::-webkit-scrollbar {
  display: none;
}

.showroom-reel .showroom-card {
  flex: 0 0 330px;
  max-width: 330px;
  scroll-snap-align: center;
}

.showroom-reel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-champagne, #E5C06E);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.showroom-reel-nav:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.7);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.showroom-reel-nav--prev {
  left: -20px;
}

.showroom-reel-nav--next {
  right: -20px;
}

.showroom-reel-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.showroom-segment[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .showroom-reel-nav {
    display: none;
  }

  .showroom-reel {
    padding-left: 16px;
    padding-right: 16px;
    gap: 18px;
  }

  .showroom-reel .showroom-card {
    flex: 0 0 290px;
    max-width: 290px;
  }
}

.showroom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 28px 20px 24px;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.showroom-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
  transform: translateY(-4px);
}

.showroom-card[hidden] {
  display: none;
}

.showroom-card__kicker {
  margin: 0 0 10px;
  font: 600 0.66rem/1.4 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-champagne, #E5C06E);
}

.showroom-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.15;
  color: #FFFFFF;
}

.showroom-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold-gradient, linear-gradient(135deg, #D4AF37 0%, #E5C06E 100%));
  color: #1A1406;
  font: 600 0.6rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showroom-card__desc {
  max-width: 31ch;
  min-height: 2.8em;
  margin: 8px auto 22px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-mist, #8E95A5);
}

.showroom-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.showroom-card__actions form {
  margin: 0;
}

.showroom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: 600 0.86rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.showroom-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #E8E2D3;
}

.showroom-btn--ghost:hover {
  border-color: var(--gold-champagne, #E5C06E);
  color: #FFFFFF;
}

.showroom-btn--gold {
  border: 0;
  background: var(--gold-gradient, linear-gradient(135deg, #D4AF37 0%, #E5C06E 100%));
  color: #1A1406;
  box-shadow: 0 12px 26px -12px rgba(212, 175, 55, 0.65);
}

.showroom-btn--gold:hover {
  transform: translateY(-1px);
  color: #1A1406;
}

/* --- Phone --------------------------------------------------------------- */

.showroom-phone,
.showroom-device--phone {
  position: relative;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, #4B4B52 0%, #1F1F23 30%, #2E2E33 70%, #141416 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 44px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 70px -12px rgba(212, 175, 55, 0.14);
}

.showroom-phone {
  width: min(300px, 100%);
  aspect-ratio: 300 / 620;
}

/* Volume and power buttons */
.showroom-phone::before,
.showroom-phone::after,
.showroom-device--phone::before,
.showroom-device--phone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#46464D, #27272C);
}

.showroom-phone::before,
.showroom-device--phone::before {
  left: -3px;
  top: 21%;
  height: 12%;
}

.showroom-phone::after,
.showroom-device--phone::after {
  right: -3px;
  top: 27%;
  height: 16%;
}

.showroom-phone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 27%;
  max-width: 86px;
  height: 22px;
  border-radius: 20px;
  background: #000000;
  transform: translateX(-50%);
  pointer-events: none;
}

.showroom-phone__screen {
  --screen-scale: 0.71795;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: #F3EDE2;
  isolation: isolate;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.showroom-phone__screen::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* The invitation renders at a phone's CSS width (390px) and is scaled down to
   the screen, so it lays out exactly as on a guest's phone. showroom.js keeps
   --screen-scale in step with the screen's real width. */
.showroom-phone__screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: calc(100% / var(--screen-scale));
  border: 0;
  background: #FFFFFF;
  transform: scale(var(--screen-scale));
  transform-origin: 0 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.showroom-phone__screen iframe::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.showroom-phone__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  background: radial-gradient(90% 60% at 50% 35%, #FFFDF8 0%, #EFE6D3 100%);
  color: #5B4B2E;
  text-align: center;
  transition: opacity 0.5s ease;
}

.showroom-phone.is-loaded .showroom-phone__poster {
  opacity: 0;
  pointer-events: none;
}

.showroom-phone__couple {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
}

.showroom-phone__loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 0.62rem/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9B8B6B;
}

.showroom-phone__loading::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(155, 139, 107, 0.3);
  border-top-color: #9B8B6B;
  border-radius: 50%;
  animation: showroom-spin 0.9s linear infinite;
}

@keyframes showroom-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- How it works -------------------------------------------------------- */

.showroom-steps {
  padding: 90px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: #0E1016;
}

.showroom-steps__title {
  margin: 0 0 48px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #FFFFFF;
}

.showroom-steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: showroom-step;
}

.showroom-step {
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.showroom-step__number {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
  background: var(--showroom-gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showroom-step h3 {
  margin: 0 0 8px;
  font: 600 1.05rem/1.3 var(--font-sans);
  color: #FFFFFF;
}

.showroom-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-mist, #8E95A5);
}

/* --- Full-screen preview ------------------------------------------------- */

.showroom-dialog {
  width: min(1180px, calc(100vw - 24px));
  height: min(960px, calc(100vh - 24px));
  height: min(960px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 24px;
  background: #0F1015;
  color: var(--text-pure, #F8F9FA);
  overflow: hidden;
}

.showroom-dialog[open] {
  display: flex;
  flex-direction: column;
}

.showroom-dialog::backdrop {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(6px);
}

.showroom-dialog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.showroom-dialog__heading .showroom-card__kicker {
  margin-bottom: 4px;
}

.showroom-dialog__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.1;
}

.showroom-dialog__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.showroom-segment {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.showroom-segment button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #CFD2D8;
  font: 600 0.8rem/1 var(--font-sans);
  cursor: pointer;
}

.showroom-segment button[aria-pressed="true"] {
  background: #FFFFFF;
  color: #111111;
}

.showroom-dialog__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.showroom-dialog__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(55% 60% at 50% 40%, rgba(212, 175, 55, 0.08), transparent 75%);
}

.showroom-device__screen {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

.showroom-device__screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
}

.showroom-device--phone .showroom-device__screen {
  border-radius: 40px;
}

.showroom-device--desktop {
  position: relative;
  padding: 30px 10px 10px;
  border-radius: 16px;
  background: #1B1C22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.showroom-device--desktop::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5F57;
  box-shadow: 14px 0 0 #FEBC2E, 28px 0 0 #28C840;
}

.showroom-device--desktop .showroom-phone__island {
  display: none;
}

.showroom-device--desktop .showroom-device__screen {
  border-radius: 6px;
}

.showroom-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.showroom-dialog__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Seal colour and liner, shown for envelope previews (showroom.js). */
.showroom-dialog__custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  /* The liner swatches' colours; the seal colour follows the pick (showroom.js). */
  --inv-primary: #2D4A3E;
  --seal-color: #6B2737;
}

.showroom-dialog__custom[hidden] {
  display: none;
}

/* Phones only: the picker folds behind this button (see the media query). */
.showroom-custom-toggle {
  display: none;
}

.showroom-custom {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.showroom-custom__label {
  margin-right: 4px;
  font: 700 0.68rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-champagne, #E5C06E);
}

.showroom-custom__own {
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #CFD2D8;
  font: 600 0.72rem/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}

.showroom-seal,
.showroom-liner {
  position: relative;
  flex: none;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: pointer;
}

.showroom-seal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%), var(--swatch);
}

.showroom-liner {
  width: 36px;
  height: 26px;
  border-radius: 6px;
}

.showroom-custom__own[aria-pressed="true"] {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: #111111;
}

.showroom-seal[aria-pressed="true"],
.showroom-liner[aria-pressed="true"] {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6);
}

.showroom-custom button:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

.showroom-dialog__cta form {
  margin: 0;
}

@media (max-width: 640px) {
  .showroom-card {
    padding: 24px 14px 20px;
    border-radius: 26px;
    max-width: 340px;
  }

  .showroom-filter-divider {
    display: none;
  }

  /* One swipeable row per filter group instead of three wrapped rows. */
  .showroom-filters {
    gap: 10px;
    margin-bottom: 44px;
  }

  .showroom-filter-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 2px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .showroom-filter-group::-webkit-scrollbar {
    display: none;
  }

  .showroom-chip {
    flex: none;
  }

  .showroom-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .showroom-dialog__bar {
    padding: 12px 14px;
  }

  .showroom-dialog__title {
    font-size: 1.25rem;
  }

  .showroom-dialog__footer {
    gap: 10px;
    padding: 10px 14px 12px;
  }

  /* The picker folds behind a button, so the preview keeps its size. */
  .showroom-custom-toggle {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    background: transparent;
    color: #F8F9FA;
    font: 600 0.85rem/1 var(--font-sans);
    cursor: pointer;
  }

  .showroom-custom-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .showroom-custom-toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .showroom-custom-toggle[hidden],
  .showroom-dialog__custom:not(.is-open) {
    display: none;
  }

  .showroom-dialog__cta {
    order: 2;
  }

  /* Seal and liner on a row each, both in view; a row swipes if it runs long. */
  .showroom-dialog__custom {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: calc(100% + 28px);
    margin: 0 -14px;
  }

  .showroom-custom {
    padding: 2px 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showroom-custom::-webkit-scrollbar {
    display: none;
  }

  .showroom-seal {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-phone__poster,
  .showroom-chip,
  .showroom-btn {
    transition: none;
  }

  .showroom-phone__loading::before {
    animation-duration: 3s;
  }
}
