/* Trang chi tiết mẫu thiệp — /san-pham/{slug} */
body.tdo-inv-pdp-page {
  background: linear-gradient(180deg, #fff 0%, #fdf2f8 38%, #fff 100%) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

body.tdo-inv-pdp-page #main {
  background: transparent;
}

.tdo-inv-pdp {
  padding: 1rem 15px 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.tdo-inv-pdp__shell {
  max-width: 1140px;
  margin: 0 auto;
}

.tdo-inv-pdp__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #7a6b72;
}

.tdo-inv-pdp__crumb a {
  color: #9d174d;
  text-decoration: none;
}

.tdo-inv-pdp__crumb a:hover {
  text-decoration: underline;
}

.tdo-inv-pdp__alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tdo-inv-pdp__card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.tdo-inv-pdp__layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

@media (min-width: 860px) {
  .tdo-inv-pdp__layout {
    grid-template-columns: minmax(300px, 46%) 1fr;
    min-height: 520px;
  }
}

.tdo-inv-pdp .tdo-tpl-modal__preview {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

@media (min-width: 860px) {
  .tdo-inv-pdp .tdo-tpl-modal__preview {
    padding: 1.75rem 1.5rem;
  }
}

.tdo-inv-pdp .tdo-tpl-modal__preview-viewport {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: min(72vh, 680px);
  overflow: hidden auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  scrollbar-width: none;
}

.tdo-inv-pdp .tdo-tpl-modal__preview-viewport::-webkit-scrollbar {
  display: none;
}

.tdo-inv-pdp .tdo-tpl-modal__preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.tdo-inv-pdp .tdo-tpl-modal__body {
  padding: 1.5rem 1.35rem 1.75rem;
  overflow-y: auto;
}

@media (min-width: 860px) {
  .tdo-inv-pdp .tdo-tpl-modal__body {
    padding: 2rem 2.25rem 2rem 1.75rem;
  }
}

.tdo-inv-pdp__price {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tdo-inv-pdp__price.is-free {
  color: #db2777;
}

.tdo-inv-pdp__vip-hero {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 0.5rem;
}

.tdo-inv-pdp__vip-caption {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}

.tdo-inv-pdp__vip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #831843, #be123c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap !important;
}

.tdo-inv-pdp__vip-badge--lg {
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 18px rgba(190, 18, 60, 0.28);
}

.tdo-inv-pdp .tdo-tpl-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.tdo-inv-pdp .tdo-tpl-modal__desc {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tdo-inv-pdp .tdo-tpl-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tdo-inv-pdp .tdo-tpl-modal__tag {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap !important;
}

.tdo-inv-pdp .tdo-tpl-modal__features-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.tdo-inv-pdp .tdo-tpl-modal__features {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1rem;
}

@media (min-width: 520px) {
  .tdo-inv-pdp .tdo-tpl-modal__features {
    grid-template-columns: 1fr 1fr;
  }
}

.tdo-inv-pdp .tdo-tpl-modal__features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

.tdo-inv-pdp .tdo-tpl-modal__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #db4458;
  font-weight: 700;
}

.tdo-inv-pdp .tdo-tpl-modal__qr-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tdo-inv-pdp .tdo-tpl-modal__qr img {
  display: block;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.tdo-inv-pdp .tdo-tpl-modal__qr-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 16rem;
}

.tdo-inv-pdp .tdo-tpl-modal__note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
}

.tdo-inv-pdp .tdo-tpl-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tdo-inv-pdp .tdo-tpl-modal__actions .aila-btn {
  flex: 1 1 180px;
  white-space: nowrap !important;
  text-align: center;
  justify-content: center;
}

.tdo-inv-pdp__hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}
