*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f7f0e9;
  --cream-2: #fffaf5;
  --wine: #7a3443;
  --wine-dark: #5c2633;
  --ink: #6d4b4f;
  --muted: #a88488;
  --line: rgba(122, 52, 67, 0.16);
  --card: rgba(255, 250, 245, 0.72);
  --shadow: 0 28px 90px rgba(72, 42, 36, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

body {
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.theme-royal {
  --wine: #87652f;
  --wine-dark: #58431e;
  --ink: #6b563c;
  --muted: #9d8462;
  --line: rgba(135, 101, 47, 0.18);
}

body.theme-finca {
  --wine: #536a48;
  --wine-dark: #344530;
  --ink: #4f6245;
  --muted: #7b8a72;
  --line: rgba(83, 106, 72, 0.18);
}

body.template-rich {
  --cream: var(--rich-cream, #f7f0e9);
  --cream-2: var(--rich-cream-2, #fffaf5);
  --wine: var(--rich-accent, #7a3443);
  --wine-dark: var(--rich-accent-dark, #5c2633);
  --ink: var(--rich-ink, #6d4b4f);
  --muted: var(--rich-muted, #a88488);
  --line: var(--rich-line, rgba(122, 52, 67, 0.16));
  --card: var(--rich-card, rgba(255, 250, 245, 0.72));
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--wine) 11%, transparent), transparent 26rem),
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--wine-dark) 10%, transparent), transparent 24rem),
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
    url("../assets/images/handmade-paper-texture.png") center / 560px auto repeat,
    var(--cream);
}

body.theme-bogaz-serenadi {
  --rich-cream: #f2eee6;
  --rich-cream-2: #fffaf1;
  --rich-accent: #9f8555;
  --rich-accent-dark: #2c2b2a;
  --rich-ink: #383433;
  --rich-muted: #8a8076;
  --rich-line: rgba(74, 67, 60, 0.18);
  --rich-art-image: url("../assets/images/bogaz-serenadi-hero.png");
  --rich-card-image: url("../assets/images/bogaz-serenadi-card.png");
}

body.theme-zeytinlik-ruyasi {
  --rich-cream: #eef0e3;
  --rich-cream-2: #fbfbef;
  --rich-accent: #637649;
  --rich-accent-dark: #3c4f34;
  --rich-ink: #46523d;
  --rich-muted: #7a856d;
  --rich-line: rgba(76, 96, 58, 0.2);
  --rich-art-image: url("../assets/images/zeytinlik-ruyasi-hero.png");
  --rich-card-image: url("../assets/images/zeytinlik-ruyasi-card.png");
}

body.theme-saray-bahcesi {
  --rich-cream: #f4efe5;
  --rich-cream-2: #fffaf0;
  --rich-accent: #94723b;
  --rich-accent-dark: #4f3c25;
  --rich-ink: #5b4c38;
  --rich-muted: #8c7b63;
  --rich-line: rgba(122, 94, 47, 0.2);
  --rich-art-image: url("../assets/images/saray-bahcesi-hero.png");
  --rich-card-image: url("../assets/images/saray-bahcesi-card.png");
}

body.theme-gun-batimi-daveti {
  --rich-cream: #efe9df;
  --rich-cream-2: #fff4ed;
  --rich-accent: #b97770;
  --rich-accent-dark: #17233b;
  --rich-ink: #38344a;
  --rich-muted: #827786;
  --rich-line: rgba(75, 64, 85, 0.18);
  --rich-art-image: url("../assets/images/gun-batimi-daveti-hero.png");
  --rich-card-image: url("../assets/images/gun-batimi-daveti-card.png");
}

body.theme-hatira-defteri {
  --rich-cream: #f1ece4;
  --rich-cream-2: #fffaf3;
  --rich-accent: #8f6154;
  --rich-accent-dark: #3e3834;
  --rich-ink: #51423d;
  --rich-muted: #88776f;
  --rich-line: rgba(88, 67, 57, 0.18);
  --rich-art-image: url("../assets/images/hatira-defteri-hero.png");
  --rich-card-image: url("../assets/images/hatira-defteri-card.png");
}

body.theme-pera-perdesi {
  --rich-cream: #f4ead9;
  --rich-cream-2: #fff8ec;
  --rich-accent: #9a7345;
  --rich-accent-dark: #4f3528;
  --rich-ink: #574336;
  --rich-muted: #8e7563;
  --rich-line: rgba(132, 93, 53, 0.22);
  --rich-art-image: url("../assets/images/webp/pera-perdesi-hero.webp");
  --rich-card-image: url("../assets/images/webp/pera-perdesi-phone.webp");
}

body.theme-rosa-sampanya {
  --rich-cream: #f8ecec;
  --rich-cream-2: #fff8f6;
  --rich-accent: #a55264;
  --rich-accent-dark: #65313d;
  --rich-ink: #60424a;
  --rich-muted: #96727a;
  --rich-line: rgba(165, 82, 100, 0.2);
  --rich-art-image: url("../assets/images/webp/rosa-sampanya-hero.webp");
  --rich-card-image: url("../assets/images/webp/rosa-sampanya-phone.webp");
}

body.theme-akdeniz-kapisi {
  --rich-cream: #f3efd9;
  --rich-cream-2: #fff9e7;
  --rich-accent: #5f866d;
  --rich-accent-dark: #36564a;
  --rich-ink: #3f584d;
  --rich-muted: #74877a;
  --rich-line: rgba(72, 112, 90, 0.2);
  --rich-art-image: url("../assets/images/webp/akdeniz-kapisi-hero.webp");
  --rich-card-image: url("../assets/images/webp/akdeniz-kapisi-phone.webp");
}

body.theme-majestic-gece {
  --rich-cream: #15182a;
  --rich-cream-2: #efe4d0;
  --rich-accent: #caa165;
  --rich-accent-dark: #101523;
  --rich-ink: #f4ead8;
  --rich-muted: rgba(244, 234, 216, 0.72);
  --rich-line: rgba(202, 161, 101, 0.24);
  --rich-card: rgba(255, 248, 236, 0.08);
  --rich-art-image: url("../assets/images/webp/majestic-gece-hero.webp");
  --rich-card-image: url("../assets/images/webp/majestic-gece-phone.webp");
}

body.theme-deniz-ruzgari {
  --rich-cream: #edf4f2;
  --rich-cream-2: #fbfbf4;
  --rich-accent: #638da0;
  --rich-accent-dark: #345b6b;
  --rich-ink: #405761;
  --rich-muted: #6d858d;
  --rich-line: rgba(80, 123, 139, 0.2);
  --rich-art-image: url("../assets/images/webp/deniz-ruzgari-hero.webp");
  --rich-card-image: url("../assets/images/webp/deniz-ruzgari-phone.webp");
}

body.theme-tropik-selva {
  --rich-cream: #f4ead5;
  --rich-cream-2: #fff4dd;
  --rich-accent: #2f7b65;
  --rich-accent-dark: #1d4f43;
  --rich-ink: #2f574d;
  --rich-muted: #657f70;
  --rich-line: rgba(47, 123, 101, 0.2);
  --rich-art-image: url("../assets/images/webp/tropik-selva-hero.webp");
  --rich-card-image: url("../assets/images/webp/tropik-selva-phone.webp");
}

a { color: inherit; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body.template-rich main {
  max-width: 100vw;
  overflow: hidden;
}

.detail-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 5vw, 64px);
  background: rgba(247, 240, 233, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-actions a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.pill-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
}

.pill-btn {
  background: var(--wine);
  color: #fff8f2;
  box-shadow: 0 14px 30px rgba(122, 52, 67, 0.22);
}

.ghost-btn {
  border: 1px solid var(--line);
  color: var(--wine);
  background: rgba(255, 250, 245, 0.58);
}

.back-link {
  display: inline-flex;
  margin: 28px 0 0 clamp(18px, 5vw, 64px);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.back-link::before { content: "←"; margin-right: 8px; }

.template-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(42px, 8vw, 110px);
  width: min(100%, 1280px);
  margin: 28px auto 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  overflow: hidden;
}

.hero-preview {
  position: relative;
  min-height: 730px;
  border-radius: 38px;
  background: linear-gradient(145deg, #ebe4db, #fdf8f0);
  border: 5px solid var(--wine);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
}

.preview-phone {
  position: absolute;
  left: 11%;
  top: 26%;
  width: 42%;
  filter: drop-shadow(0 22px 32px rgba(62, 42, 35, 0.22));
  transition: left 0.55s ease, top 0.55s ease, width 0.55s ease, transform 0.55s ease;
}

.interactive-phone {
  aspect-ratio: 9 / 19.5;
  border: 10px solid #17120f;
  border-radius: 34px;
  background: #17120f;
  overflow: hidden;
}

.interactive-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  z-index: 4;
  width: 34%;
  height: 18px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.interactive-phone img,
.interactive-phone iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: var(--cream);
}

.interactive-phone img {
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.interactive-phone iframe {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.interactive-phone.is-live img {
  opacity: 0;
  transform: scale(1.02);
  visibility: hidden;
}

.interactive-phone.is-live iframe {
  opacity: 1;
  pointer-events: auto;
}

.hero-preview.is-demo-loaded .preview-phone {
  left: 50%;
  top: 50%;
  width: min(70%, 340px);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-preview.is-demo-loaded .preview-card {
  display: none;
  opacity: 0;
  transform: translateX(18px) scale(0.96);
  pointer-events: none;
}

.hero-preview.is-demo-loaded .preview-demo-bar {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.preview-card {
  position: absolute;
  right: 8%;
  top: 13%;
  width: 43%;
  min-height: 520px;
  border-radius: 28px;
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(63, 41, 35, 0.12);
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.preview-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.preview-demo-bar {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 36px;
  display: grid;
  gap: 12px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.preview-demo-bar .pill-btn { width: 100%; }
.preview-demo-bar .ghost-btn { min-height: 32px; font-size: 10px; border: 0; background: transparent; }

.hero-summary {
  min-width: 0;
  max-width: 580px;
}

body.template-rich .hero-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 220px);
  gap: 18px 24px;
  align-items: start;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-mini-card {
  width: 210px;
  height: 410px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 18px 44px rgba(72, 42, 36, 0.1);
  overflow: hidden;
}

.hero-mini-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-mini-card--interactive {
  position: relative;
  border: 9px solid #17120f;
  background: #17120f;
}

.hero-mini-card--interactive::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 3;
  width: 56px;
  height: 14px;
  border-radius: 999px;
  background: rgba(20, 15, 12, 0.86);
  transform: translateX(-50%);
}

.hero-mini-card--interactive iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 19px;
  background: var(--cream);
  pointer-events: auto;
}

.hero-mini-card--interactive {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-mini-card--interactive:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 58px rgba(72, 42, 36, 0.18);
  z-index: 10;
}

body.template-rich .hero-mini-card {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 9 / 19.5;
  margin: 0;
  justify-self: end;
  align-self: start;
  position: sticky;
  top: 112px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  color: var(--wine);
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.98;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}

.hero-summary > p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.package-summary {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.64);
}

.package-summary strong {
  color: var(--wine);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.package-summary span {
  color: var(--muted);
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 64px);
}

.info-card {
  min-height: 310px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.info-card h2 {
  color: var(--wine);
  font-size: 28px;
  margin-bottom: 12px;
}

.info-card p, .info-card li {
  color: var(--muted);
  font-size: 14px;
}

.check-list, .steps {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.check-list li, .steps li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(122,52,67,0.1);
  color: var(--wine);
  font-size: 11px;
  flex: 0 0 auto;
}

.steps span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff8f2;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}

.extras, .other-designs {
  width: min(100%, 1280px);
  margin: 80px auto 0;
  padding: 0 clamp(18px, 5vw, 64px);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title h2 {
  color: var(--wine);
  font-size: 34px;
}

.section-title p, .section-title a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.extra-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.52);
  color: var(--ink);
  font-size: 13px;
}

.extra-chip strong {
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.purchase-card {
  width: min(100%, 420px);
  margin: 58px auto 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.72);
  text-align: center;
}

.purchase-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 22px;
}

.design-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  color: var(--ink);
  text-decoration: none;
}

.related-card__media {
  min-height: 470px;
  border-radius: 22px;
  background: #ebe6dc;
  overflow: hidden;
}

.related-card__media img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.related-card:hover img { transform: scale(1.035); }

.related-card h3 {
  color: var(--wine);
  font-size: 22px;
  margin-top: 18px;
}

.related-card p {
  color: var(--muted);
  font-size: 13px;
}

.detail-footer {
  margin-top: 86px;
  padding: 54px clamp(18px, 5vw, 64px) 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.detail-footer .brand { display: inline-block; margin-bottom: 16px; }
.detail-footer p, .detail-footer a { color: var(--muted); font-size: 12px; text-decoration: none; }

.sticky-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 560px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sticky-cta span {
  padding-left: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

body.template-rich .sticky-cta span {
  display: none;
}

@media (max-width: 920px) {
  .template-hero, .detail-grid { grid-template-columns: 1fr; }
  .hero-preview { min-height: 620px; }
  .extras-grid, .design-row { grid-template-columns: 1fr 1fr; }
  .nav-actions a:not(.pill-btn) { display: none; }
}

@media (max-width: 560px) {
  .detail-nav { padding: 14px 18px; }
  .brand { font-size: 21px; }
  .nav-actions .pill-btn { display: none; }
  .template-hero { margin-top: 18px; gap: 28px; justify-items: center; overflow: hidden; }
  .hero-preview { min-height: 430px; border-radius: 28px; }
  .preview-phone { left: 9%; width: 48%; }
  .hero-preview.is-demo-loaded .preview-phone { width: min(84%, 300px); }
  .preview-card { right: 6%; width: 42%; min-height: 300px; }
  .preview-card img { min-height: 300px; }
  .preview-demo-bar { left: 18px; right: 18px; bottom: 18px; }
  .hero-summary h1 { font-size: clamp(42px, 13vw, 58px); max-width: 100%; }
  .hero-mini-card { width: 150px; height: 292px; }
  .hero-buttons, .extras-grid, .design-row { grid-template-columns: 1fr; }
  .hero-buttons { display: grid; }
  .detail-grid, .extras, .other-designs, .template-hero { padding-inline: 18px; }
  .design-row, .extras-grid { display: grid; grid-template-columns: 1fr; }
  .related-card__media, .related-card__media img { height: 360px; min-height: 360px; }
  .sticky-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }
  .sticky-cta .pill-btn { flex: 0 0 132px; min-height: 40px; padding: 0 10px; font-size: 8px; }
  .sticky-cta span { max-width: 176px; font-size: 11px; line-height: 1.35; }
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .template-hero {
  grid-template-columns: minmax(330px, 420px) minmax(380px, 590px);
  justify-content: center;
}

body.template-rich .template-hero {
  grid-template-columns: minmax(0, 420px) minmax(0, 590px);
  justify-content: center;
}

body.template-rich .hero-preview {
  width: min(100%, 420px);
  min-height: 684px;
  margin-inline: auto;
  border: 4px solid var(--wine);
  border-radius: 36px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.5), transparent 44%),
    color-mix(in srgb, var(--cream-2) 78%, var(--wine));
  box-shadow:
    0 30px 68px rgba(72, 42, 36, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.template-rich .hero-preview::before { display: none; }

body.template-rich .preview-phone {
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(68%, 286px);
  transform: translate(-50%, -50%);
}

body.template-rich .interactive-phone:not(.is-live) img {
  opacity: 0;
  visibility: hidden;
}

body.template-rich .interactive-phone::after {
  content: "Dijital Davetiye";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 42px 22px 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  background: var(--phone-poster, linear-gradient(180deg, var(--cream-2), var(--cream)));
}

body.template-rich .rich-preview-art {
  animation: previewArtDrift 10s ease-in-out infinite;
  transform-origin: center;
}

body.template-rich .interactive-phone {
  box-shadow:
    0 20px 42px rgba(22, 18, 15, 0.22),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

@keyframes previewArtDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.015); }
}

body.template-rich .interactive-phone.is-live::after {
  display: none;
}

body.template-rich .interactive-phone iframe {
  z-index: 2;
}

body.template-rich .preview-card { display: none; }

body.template-rich .preview-demo-bar {
  bottom: 26px;
  z-index: 8;
  width: min(82%, 330px);
  grid-template-columns: 1fr;
  padding: 10px 10px 8px;
  border-radius: 22px;
  background: rgba(255, 250, 245, 0.68);
  backdrop-filter: blur(12px);
}

body.template-rich .preview-demo-bar .pill-btn { min-height: 42px; }
body.template-rich .preview-demo-bar .ghost-btn { min-height: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }

body.template-rich .hero-preview.is-demo-loaded {
  background: var(--cream);
}

body.template-rich .hero-preview.is-demo-loaded .preview-phone {
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 31px;
  overflow: hidden;
  transform: none;
  filter: none;
  box-shadow: none;
}

body.template-rich .hero-preview.is-demo-loaded .interactive-phone::before { display: none; }
body.template-rich .hero-preview.is-demo-loaded .interactive-phone img,
body.template-rich .hero-preview.is-demo-loaded .interactive-phone iframe { border-radius: 31px; }

body.template-rich .hero-preview.is-demo-loaded .rich-preview-art { display: none; }

body.template-rich .hero-mini-card {
  --mini-card-scale: 0.486;
  width: 176px;
  height: 262px;
  border-radius: 14px;
  background: #eee6dc;
  box-shadow: 0 16px 36px rgba(72, 42, 36, 0.1);
}

body.template-rich .hero-mini-card--interactive {
  border: 1px solid var(--line);
}

body.template-rich .hero-mini-card--interactive iframe {
  pointer-events: auto;
}

body.template-rich .hero-mini-card--interactive::before { display: none; }

body.template-rich .hero-mini-card--interactive iframe {
  width: 360px;
  height: 540px;
  border-radius: 13px;
  transform: scale(var(--mini-card-scale));
  transform-origin: left top;
}

.rich-preview-art {
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  opacity: 0.9;
  pointer-events: none;
}

body.theme-bogaz-serenadi .interactive-phone::after {
  content: "Boğaz'da Bir Akşam";
  --phone-poster:
    radial-gradient(circle at 50% 29%, rgba(255,255,255,0.82) 0 42px, transparent 44px),
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 22%, rgba(255,255,255,0.72) 0 3px, transparent 4px),
    linear-gradient(180deg, transparent 0 45%, rgba(44,43,42,0.24) 46% 48%, transparent 49%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(159,133,85,0.22) 27px 29px),
    linear-gradient(180deg, #fff8e9 0%, #d9d5ca 56%, #2d3440 57%, #f2eee6 100%);
}

body.theme-zeytinlik-ruyasi .interactive-phone::after {
  content: "Zeytinlikte Bahar";
  --phone-poster:
    radial-gradient(circle at 34% 33%, rgba(99,118,73,0.24) 0 22px, transparent 23px),
    radial-gradient(circle at 67% 38%, rgba(99,118,73,0.2) 0 30px, transparent 31px),
    repeating-linear-gradient(114deg, transparent 0 15px, rgba(99,118,73,0.14) 16px 18px),
    linear-gradient(180deg, #fbfbef, #e5ead7 62%, #eef0e3);
}

body.theme-saray-bahcesi .interactive-phone::after {
  content: "Saray Bahçesi";
  --phone-poster:
    linear-gradient(90deg, transparent 13%, rgba(148,114,59,0.32) 14% 16%, transparent 17% 83%, rgba(148,114,59,0.32) 84% 86%, transparent 87%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(148,114,59,0.17) 29px 31px),
    linear-gradient(180deg, #fffaf0, #e8dcc6 68%, #f4efe5);
}

body.theme-gun-batimi-daveti .interactive-phone::after {
  content: "Gün Batımı Daveti";
  color: #fff7ec;
  --phone-poster:
    radial-gradient(circle at 50% 30%, rgba(245,185,139,0.74) 0 52px, transparent 54px),
    radial-gradient(circle at 25% 23%, #fff0d6 0 3px, transparent 4px),
    radial-gradient(circle at 74% 20%, #fff0d6 0 2px, transparent 3px),
    linear-gradient(180deg, #17233b 0 50%, #b97770 51% 58%, #efe9df 59% 100%);
}

body.theme-hatira-defteri .interactive-phone::after {
  content: "Hatıra Defteri";
  --phone-poster:
    linear-gradient(90deg, rgba(62,56,52,0.14) 0 14%, transparent 15% 31%, rgba(143,97,84,0.18) 32% 66%, transparent 67% 82%, rgba(62,56,52,0.14) 83%),
    repeating-linear-gradient(180deg, transparent 0 58px, rgba(143,97,84,0.16) 59px 62px),
    linear-gradient(180deg, #fffaf3, #e8ded2 72%, #f1ece4);
}

body.theme-pera-perdesi .interactive-phone::after { content: "Pera Perdesi"; }
body.theme-rosa-sampanya .interactive-phone::after { content: "Rosa Şampanya"; }
body.theme-akdeniz-kapisi .interactive-phone::after { content: "Akdeniz Kapısı"; }
body.theme-majestic-gece .interactive-phone::after { content: "Majestic Gece"; color: #fff7ec; }
body.theme-deniz-ruzgari .interactive-phone::after { content: "Deniz Rüzgarı"; }
body.theme-tropik-selva .interactive-phone::after { content: "Tropik Selva"; }

.rich-preview-art--strait {
  background:
    radial-gradient(circle at 23% 30%, rgba(255,255,255,0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,0.72) 0 3px, transparent 4px),
    linear-gradient(180deg, transparent 0 45%, rgba(44,43,42,0.24) 46% 48%, transparent 49%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(159,133,85,0.26) 29px 31px),
    linear-gradient(180deg, #f7f0e2, #d8d5ca 56%, #9f8555);
}

.rich-preview-art--olive {
  background:
    radial-gradient(ellipse at 30% 72%, rgba(99,118,73,0.2), transparent 34%),
    radial-gradient(circle at 35% 30%, rgba(99,118,73,0.32) 0 18px, transparent 19px),
    radial-gradient(circle at 66% 34%, rgba(99,118,73,0.24) 0 24px, transparent 25px),
    repeating-linear-gradient(112deg, transparent 0 18px, rgba(99,118,73,0.18) 19px 21px),
    linear-gradient(180deg, #fbfbef, #e1e5d0);
}

.rich-preview-art--palace {
  background:
    linear-gradient(90deg, transparent 14%, rgba(148,114,59,0.34) 15% 17%, transparent 18% 82%, rgba(148,114,59,0.34) 83% 85%, transparent 86%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(148,114,59,0.2) 35px 37px),
    linear-gradient(180deg, #fffaf0, #e7dbc5);
  border: 6px double rgba(148,114,59,0.44);
}

.rich-preview-art--sunset {
  background:
    radial-gradient(circle at 50% 30%, rgba(245,185,139,0.72) 0 56px, transparent 58px),
    radial-gradient(circle at 24% 28%, #fff0d6 0 3px, transparent 4px),
    radial-gradient(circle at 74% 22%, #fff0d6 0 2px, transparent 3px),
    linear-gradient(180deg, #17233b 0 48%, #b97770 49% 52%, #efe9df 53% 100%);
}

.rich-preview-art--editorial {
  background:
    linear-gradient(90deg, rgba(62,56,52,0.18) 0 6px, transparent 7px calc(100% - 7px), rgba(62,56,52,0.18) calc(100% - 6px)),
    repeating-linear-gradient(180deg, transparent 0 74px, rgba(143,97,84,0.22) 75px 78px),
    linear-gradient(180deg, #fffaf3, #e8ded2);
}

.rich-preview-art--editorial::before {
  content: "";
  position: absolute;
  inset: 54px 44px;
  background:
    linear-gradient(90deg, rgba(62,56,52,0.16) 0 18%, transparent 19% 32%, rgba(143,97,84,0.2) 33% 66%, transparent 67% 80%, rgba(62,56,52,0.16) 81%),
    linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  border: 1px solid rgba(88,67,57,0.16);
}

body.template-rich .rich-preview-art {
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.02), rgba(18, 16, 14, 0.14)),
    var(--rich-art-image);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

body.theme-bogaz-serenadi .interactive-phone::after,
body.theme-zeytinlik-ruyasi .interactive-phone::after,
body.theme-saray-bahcesi .interactive-phone::after,
body.theme-gun-batimi-daveti .interactive-phone::after,
body.theme-hatira-defteri .interactive-phone::after,
body.theme-pera-perdesi .interactive-phone::after,
body.theme-rosa-sampanya .interactive-phone::after,
body.theme-akdeniz-kapisi .interactive-phone::after,
body.theme-majestic-gece .interactive-phone::after,
body.theme-deniz-ruzgari .interactive-phone::after,
body.theme-tropik-selva .interactive-phone::after {
  --phone-poster:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(24, 18, 16, 0.1)),
    var(--rich-card-image) center / cover no-repeat;
  text-shadow: 0 1px 16px rgba(0,0,0,0.32);
}

.related-card__media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--wine) 16%, transparent) 0 44px, transparent 46px),
    radial-gradient(circle at 76% 32%, rgba(255,255,255,0.52) 0 52px, transparent 54px),
    linear-gradient(135deg, color-mix(in srgb, var(--cream-2) 88%, white), color-mix(in srgb, var(--wine) 14%, var(--cream)));
}

.related-card__media img {
  width: min(68%, 230px);
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 26px;
  box-shadow:
    0 24px 52px rgba(44,36,32,0.16),
    inset 0 1px 0 rgba(255,255,255,0.72);
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.related-card:hover .related-card__media img {
  transform: translateY(-4px) scale(1.025);
}

@media (max-width: 768px) {
  .related-card__media img {
    width: min(64%, 210px);
  }
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview {
  width: min(100%, 420px);
  min-height: 684px;
  margin-inline: auto;
  border: 4px solid var(--wine);
  border-radius: 36px;
  background:
    linear-gradient(rgba(247, 240, 233, 0.06), rgba(247, 240, 233, 0.06)),
    url("../assets/images/template-square.png") 47% 54% / 196% auto no-repeat,
    #f3ece2;
  box-shadow:
    0 30px 68px rgba(72, 42, 36, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview::before {
  display: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview::after {
  left: 8%;
  right: 8%;
  bottom: 18px;
  z-index: 1;
  height: 60px;
  background: rgba(83, 54, 42, 0.2);
  filter: blur(24px);
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview:not(.is-demo-loaded) .preview-phone,
body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview:not(.is-demo-loaded) .preview-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded {
  background: #f7f0e9;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .preview-phone {
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 31px;
  opacity: 1;
  overflow: hidden;
  transform: none;
  visibility: visible;
  filter: none;
  box-shadow: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .interactive-phone::before {
  display: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .interactive-phone img,
body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .interactive-phone iframe {
  border-radius: 31px;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .preview-card {
  display: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .preview-demo-bar {
  bottom: 28px;
  z-index: 6;
  width: min(82%, 330px);
  grid-template-columns: 1fr;
  padding: 10px 10px 8px;
  border-radius: 22px;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .preview-demo-bar .pill-btn {
  min-height: 42px;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .preview-demo-bar .ghost-btn {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-mini-card {
  --mini-card-scale: 0.486;
  width: 176px;
  height: 262px;
  border-radius: 14px;
  background: #eee6dc;
  box-shadow: 0 16px 36px rgba(72, 42, 36, 0.1);
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-mini-card--interactive {
  border: 1px solid rgba(122, 52, 67, 0.12);
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-mini-card--interactive::before {
  display: none;
}

body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-mini-card--interactive iframe {
  width: 360px;
  height: 540px;
  border-radius: 13px;
  transform: scale(var(--mini-card-scale));
  transform-origin: left top;
}

@media (max-width: 920px) {
  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .template-hero {
    grid-template-columns: 1fr;
  }

  body.template-rich .template-hero {
    grid-template-columns: 1fr;
  }

  body.template-rich .hero-summary {
    width: min(100%, 330px);
    max-width: calc(100vw - 56px);
    min-width: 0;
  }

  body.template-rich .eyebrow {
    width: min(100%, 310px);
    max-width: 310px;
    font-size: 8px;
    letter-spacing: 0.06em;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.template-rich .hero-summary h1,
  body.template-rich .hero-summary > p {
    width: min(100%, 330px);
    max-width: 100%;
  }

  body.template-rich .sticky-cta span {
    display: none;
  }
}

@media (max-width: 560px) {
  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview {
    width: min(100%, 252px);
    min-height: 410px;
    margin-inline: auto;
    border-radius: 30px;
  }

  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .preview-phone,
  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .interactive-phone img,
  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-preview.is-demo-loaded .interactive-phone iframe {
    border-radius: 26px;
  }

  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .preview-demo-bar {
    bottom: 20px;
    width: calc(100% - 34px);
  }

  body:is(.theme-altin-kosk, .theme-royal, .theme-finca) .hero-mini-card {
    --mini-card-scale: 0.431;
    width: 156px;
    height: 232px;
  }

  body.template-rich .template-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;
  }

  body.template-rich .hero-preview {
    width: min(calc(100vw - 76px), 226px);
    min-height: 398px;
    margin-inline: auto;
    border-radius: 30px;
    left: 0;
  }

  body.template-rich .hero-summary {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    min-width: 0;
  }

  body.template-rich .hero-summary .hero-mini-card {
    display: block;
    grid-column: auto;
    grid-row: auto;
    position: relative;
    justify-self: start;
    top: auto;
    width: 156px;
    height: 232px;
    margin-bottom: 18px;
  }

  body.template-rich .preview-phone {
    width: min(72%, 198px);
  }

  body.template-rich .hero-preview.is-demo-loaded .preview-phone,
  body.template-rich .hero-preview.is-demo-loaded .interactive-phone img,
  body.template-rich .hero-preview.is-demo-loaded .interactive-phone iframe {
    border-radius: 26px;
  }

  body.template-rich .preview-demo-bar {
    left: 14px;
    right: 14px;
    bottom: 16px;
    width: auto;
  }

  body.template-rich .preview-demo-bar .pill-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  body.template-rich .preview-demo-bar .ghost-btn {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  body.template-rich .eyebrow {
    width: min(100%, 310px);
    max-width: 100%;
    font-size: 8px;
    letter-spacing: 0.06em;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.template-rich .hero-summary h1 {
    width: 100%;
    font-size: clamp(40px, 11vw, 50px);
    line-height: 1.02;
  }

  body.template-rich .hero-summary > p {
    width: min(100%, 300px);
    font-size: 16px;
    max-width: 300px;
    overflow-wrap: anywhere;
  }

  body.template-rich .sticky-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    padding: 10px;
    border-radius: 20px;
  }

  body.template-rich .sticky-cta span {
    display: none;
  }

  body.template-rich .sticky-cta .pill-btn {
    width: 100%;
    flex: none;
    min-height: 42px;
    font-size: 9px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mini-card--interactive,
  body.template-rich .rich-preview-art {
    animation: none !important;
  }
}

@media (max-width: 360px) {
  body.template-rich .detail-grid,
  body.template-rich .extras,
  body.template-rich .other-designs,
  body.template-rich .template-hero {
    padding-inline: 14px;
  }

  body.template-rich .hero-preview {
    width: min(calc(100vw - 68px), 208px);
    min-height: 374px;
    left: 0;
  }

  body.template-rich .preview-phone {
    width: min(72%, 188px);
  }
}
