:root {
  --blue: #2f69b1;
  --blue-dark: #164577;
  --pink: #f7c9dc;
  --yellow: #fff7bd;
  --cream: #fffbe9;
  --ink: #152238;
  --muted: #64748b;
  --line: #e8edf5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 42, 77, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  padding-bottom: 74px;
}

a {
  text-decoration: none;
  color: inherit;
}

.top-strip {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 8px 14px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #8eb7f3);
  color: #fff;
  font-weight: 800;
}

.logo b {
  display: block;
  font-size: 14px;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f7fd;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-btn span {
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
}

.nav {
  position: fixed;
  top: 103px;
  left: 14px;
  right: 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.nav.active {
  display: flex;
}

.nav a {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.nav-btn {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.hero {
  padding: 42px 14px;
  display: grid;
  gap: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(247, 201, 220, 0.65), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.tag {
  display: inline-flex;
  width: fit-content;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  margin: 0;
}

.hero h1,
.section-title h2,
.ai-content h2,
.bulk-section h2,
.why-section h2 {
  font-family: Georgia, serif;
  line-height: 0.98;
  letter-spacing: -1px;
  color: #10182b;
}

.hero h1 {
  font-size: 40px;
  margin: 14px 0;
}

.hero-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-buttons,
.bulk-buttons {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 105, 177, 0.24);
}

.light {
  background: #fff;
  border-color: var(--line);
  color: var(--blue-dark);
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-points span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: #334155;
  font-size: 12px;
}

.hero-design {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-card-bg {
  position: absolute;
  width: 82%;
  height: 250px;
  border-radius: 30px;
  background: var(--yellow);
  transform: rotate(-3deg);
}

.hero-card-bg::after {
  content: "";
  position: absolute;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--pink);
  border-radius: 0 30px 30px 0;
}

.book-card {
  width: min(270px, 78vw);
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #2f69b1, #9dd5ff);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(3deg);
  border: 8px solid #fff;
}

.book-title {
  position: absolute;
  top: 22px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 800;
  text-align: right;
  max-width: 130px;
}

.child-face {
  position: absolute;
  left: 18px;
  bottom: 82px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--pink);
  font-size: 38px;
}

.book-icon {
  position: absolute;
  right: 26px;
  bottom: 76px;
  font-size: 84px;
}

.book-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: rgba(255,255,255,0.22);
  font-weight: 800;
}

.floating-card {
  position: absolute;
  max-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
}

.floating-card b,
.floating-card small {
  display: block;
}

.floating-card small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.floating-card.one {
  left: 4px;
  bottom: 30px;
}

.floating-card.two {
  right: 0;
  top: 36px;
}

.products-section,
.how-section,
.reviews-section,
.faq-section {
  padding: 46px 14px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title.center {
  text-align: center;
}

.section-title.center .tag {
  margin-inline: auto;
}

.section-title h2,
.ai-content h2,
.bulk-section h2,
.why-section h2 {
  margin: 10px 0 8px;
  font-size: 32px;
}

.section-title p,
.ai-content p,
.bulk-section p {
  color: var(--muted);
  line-height: 1.6;
}

.search-area {
  position: sticky;
  top: 65px;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: #344156;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.category-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.product-art {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
}

.product-card.pink .product-art {
  background: linear-gradient(135deg, #fce7f3, #fb7185);
}

.product-card.purple .product-art {
  background: linear-gradient(135deg, #ede9fe, #a78bfa);
}

.product-card.yellow .product-art {
  background: linear-gradient(135deg, #fff7bd, #fbbf24);
}

.product-card.green .product-art {
  background: linear-gradient(135deg, #dcfce7, #34d399);
}

.product-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  font-size: 54px;
  background: rgba(255,255,255,0.72);
  border: 7px solid rgba(255,255,255,0.7);
  border-radius: 26px;
}

.badge,
.ai-chip {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.badge {
  left: 12px;
  background: #fff;
  color: var(--blue-dark);
}

.ai-chip {
  right: 12px;
  background: #111827;
  color: #fff;
}

.product-body {
  padding: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  background: #f4f7fb;
  color: #526073;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 800;
}

.product-body h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 56px;
  line-height: 1.5;
}

.variant-line {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.price small,
.price span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.price b {
  font-size: 22px;
}

.small-btn {
  background: var(--blue);
  color: #fff;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: none;
  text-align: center;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 16px;
  border-radius: 18px;
}

.ai-section {
  padding: 46px 14px;
  background: linear-gradient(180deg, #fbfdff, #fff);
  display: grid;
  gap: 26px;
}

.ai-preview {
  position: relative;
  min-height: 330px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.watermark {
  position: absolute;
  inset: auto 0 45%;
  transform: rotate(-18deg);
  text-align: center;
  color: rgba(17, 24, 39, 0.16);
  font-size: 34px;
  font-weight: 900;
}

.cover {
  position: absolute;
  width: 46%;
  min-height: 210px;
  border-radius: 22px;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 7px solid #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.cover span {
  font-size: 52px;
}

.cover b {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.cover-one {
  left: 22px;
  top: 46px;
  background: linear-gradient(135deg, #2f69b1, #8b5cf6);
  transform: rotate(-5deg);
}

.cover-two {
  right: 22px;
  bottom: 40px;
  background: linear-gradient(135deg, #fb7185, #f59e0b);
  transform: rotate(7deg);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.feature-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
}

.steps-grid {
  display: grid;
  gap: 12px;
}

.step-card,
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.step-card b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 13px;
}

.step-card p,
.review-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.bulk-section {
  margin: 20px 14px;
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.reviews-section {
  background: #fbfdff;
}

.review-grid {
  display: grid;
  gap: 14px;
}

.review-card div {
  color: #f59e0b;
}

.why-section {
  margin: 46px 14px;
  background: var(--yellow);
  border-radius: 30px;
  padding: 24px 16px;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.why-grid div {
  background: rgba(255,255,255,0.58);
  border-radius: 18px;
  padding: 14px 10px;
}

.why-grid span {
  font-size: 24px;
  display: block;
}

.why-grid b {
  display: block;
  font-size: 13px;
}

.why-grid p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 11px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 15px;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

summary::after {
  content: "+";
  color: var(--blue);
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0;
  color: var(--muted);
  padding: 0 15px 15px;
  font-size: 13px;
  line-height: 1.5;
}

.help-box {
  margin-top: 20px;
  text-align: center;
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 22px;
  padding: 20px;
}

.footer {
  background: var(--pink);
  padding: 40px 14px 90px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer p {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.footer a {
  display: block;
  color: #334155;
  font-size: 13px;
  margin: 8px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.13);
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 12px;
}

.mobile-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.mobile-sticky a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
}

.mobile-sticky a:first-child {
  background: var(--blue);
  color: #fff;
}

.mobile-sticky a:last-child {
  background: var(--cream);
  color: var(--blue-dark);
}

@media (min-width: 700px) {
  body {
    padding-bottom: 0;
  }

  .menu-btn {
    display: none;
  }

  .header {
    padding: 0 40px;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav a {
    font-size: 13px;
    padding: 10px 12px;
  }

  .nav-btn {
    border-radius: 999px;
    padding-inline: 16px !important;
  }

  .hero,
  .ai-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 70px 40px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-buttons,
  .bulk-buttons {
    grid-template-columns: max-content max-content;
  }

  .products-section,
  .how-section,
  .reviews-section,
  .faq-section {
    padding: 70px 40px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bulk-section {
    margin: 20px 40px;
    grid-template-columns: 1fr max-content;
    align-items: center;
    padding: 34px;
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-section {
    margin: 70px 40px;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer {
    padding: 40px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .mobile-sticky {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 34px;
  }

  .logo small {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}
.products-hero {
  padding: 42px 14px;
  display: grid;
  gap: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 247, 189, 0.9), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.products-hero h1 {
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  margin: 14px 0;
  color: #10182b;
  letter-spacing: -1px;
}

.products-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.products-hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.products-hero-box {
  position: relative;
  min-height: 300px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-product-card {
  position: absolute;
  width: 125px;
  height: 125px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255,255,255,0.8);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 44px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.hero-product-card span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.hero-product-card.one {
  left: 24px;
  top: 28px;
  transform: rotate(-7deg);
}

.hero-product-card.two {
  right: 24px;
  top: 58px;
  transform: rotate(7deg);
}

.hero-product-card.three {
  left: 42px;
  bottom: 34px;
  transform: rotate(5deg);
}

.hero-product-card.four {
  right: 48px;
  bottom: 28px;
  transform: rotate(-8deg);
}

.product-page-section {
  padding: 46px 14px;
}

.product-page-title {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.product-page-title h2 {
  margin: 10px 0 8px;
  font-size: 32px;
  font-family: Georgia, serif;
  line-height: 1;
}

.product-page-title p {
  color: var(--muted);
  line-height: 1.5;
}

.view-toggle {
  display: inline-flex;
  width: fit-content;
  background: #f4f7fb;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.view-btn {
  border: 0;
  background: transparent;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.view-btn.active {
  background: var(--blue);
  color: #fff;
}

.product-toolbar {
  position: sticky;
  top: 65px;
  z-index: 20;
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

.sort-select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}

.catalogue-layout {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.filter-sidebar h3 {
  margin: 0 0 12px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
}

.filter-box {
  margin-top: 18px;
}

.filter-box h4 {
  margin: 0 0 10px;
}

.quick-filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  margin: 0 6px 8px 0;
  cursor: pointer;
}

.quick-filter.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.filter-note {
  margin-top: 14px;
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 16px;
  padding: 12px;
}

.filter-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalogue-content {
  min-width: 0;
}

.product-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.catalogue-grid.list-view {
  grid-template-columns: 1fr;
}

.catalogue-grid.list-view .catalogue-card {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.catalogue-grid.list-view .product-art {
  min-height: 100%;
}

.catalogue-grid.list-view .product-icon {
  width: 70px;
  height: 70px;
  font-size: 40px;
}

.size-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.size-list span {
  background: #eff6ff;
  color: var(--blue-dark);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

@media (min-width: 700px) {
  .products-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 70px 40px;
  }

  .products-hero h1 {
    font-size: 62px;
  }

  .products-hero-actions {
    grid-template-columns: max-content max-content;
  }

  .product-page-section {
    padding: 70px 40px;
  }

  .product-page-title {
    grid-template-columns: 1fr max-content;
    align-items: end;
  }

  .product-toolbar {
    grid-template-columns: 1fr 220px;
  }

  .catalogue-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .filter-sidebar {
    position: sticky;
    top: 150px;
  }
}

@media (max-width: 420px) {
  .catalogue-grid.list-view .catalogue-card {
    grid-template-columns: 1fr;
  }

  .products-hero h1 {
    font-size: 34px;
  }

  .hero-product-card {
    width: 112px;
    height: 112px;
  }
}
.details-page {
  padding: 28px 14px 46px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 247, 189, 0.85), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.details-layout {
  display: grid;
  gap: 24px;
}

.details-preview-card {
  position: sticky;
  top: 82px;
  min-height: 360px;
  border-radius: 30px;
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 24px;
}

.details-preview-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  top: -80px;
  right: -80px;
}

.details-preview-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  bottom: -60px;
  left: -60px;
}

.details-product-icon {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 88px;
  background: rgba(255,255,255,0.75);
  border: 10px solid rgba(255,255,255,0.75);
  border-radius: 36px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.preview-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 16px;
}

.preview-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.preview-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.details-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.details-content h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 14px 0 10px;
  letter-spacing: -1px;
}

.details-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.details-tags span {
  background: #f4f7fb;
  color: #526073;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.details-price-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 20px;
}

.details-price-row small,
.details-price-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.details-price-row strong {
  display: block;
  font-size: 30px;
  color: var(--blue);
}

.safe-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.safe-box b {
  display: block;
  font-size: 14px;
}

.variant-form {
  display: grid;
  gap: 20px;
}

.form-group label {
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

.option-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.option-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.custom-qty-box {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.custom-qty-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.custom-qty-box input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
}

.custom-qty-box input:focus {
  border-color: var(--blue);
}

.design-option-grid {
  display: grid;
  gap: 12px;
}

.design-choice {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
}

.design-choice input {
  position: absolute;
  opacity: 0;
}

.design-choice span {
  font-size: 30px;
}

.design-choice b {
  font-size: 16px;
}

.design-choice small {
  color: var(--muted);
  line-height: 1.4;
}

.design-choice.active {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(47, 105, 177, 0.12);
}

.upload-box {
  display: none;
  border: 2px dashed #cbd5e1;
  border-radius: 22px;
  background: #f8fafc;
  padding: 18px;
  text-align: center;
}

.upload-box.show {
  display: block;
}

.upload-box label {
  display: grid;
  gap: 7px;
  cursor: pointer;
}

.upload-box label span {
  font-size: 34px;
}

.upload-box label small {
  color: var(--muted);
}

.upload-box input {
  display: none;
}

.upload-box p {
  margin: 12px 0 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.order-summary-box {
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 22px;
  padding: 16px;
}

.order-summary-box h3 {
  margin: 0 0 12px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 0;
  font-size: 13px;
}

.summary-line span {
  color: var(--muted);
}

.summary-line b {
  text-align: right;
}

.summary-total {
  border-bottom: 0;
  align-items: center;
  padding-top: 14px;
}

.summary-total span {
  font-weight: 900;
}

.summary-total b {
  color: var(--blue);
  font-size: 24px;
}

.summary-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.details-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.not-found-box {
  width: min(100%, 620px);
  margin: 70px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-box h1 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
}

.not-found-box p {
  color: var(--muted);
}

@media (min-width: 700px) {
  .details-page {
    padding: 40px;
  }

  .details-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .details-content {
    padding: 28px;
  }

  .details-content h1 {
    font-size: 52px;
  }

  .details-price-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .design-option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .details-actions {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 420px) {
  .details-preview-card {
    min-height: 310px;
  }

  .details-content h1 {
    font-size: 34px;
  }

  .details-product-icon {
    width: 125px;
    height: 125px;
    font-size: 70px;
  }
}
.template-page {
  padding: 28px 14px 110px;
  background:
    radial-gradient(circle at 90% 8%, rgba(247, 201, 220, 0.65), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.template-head {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.template-head h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 14px 0 10px;
  letter-spacing: -1px;
}

.template-head p {
  color: var(--muted);
  line-height: 1.6;
}

.selected-variant-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.selected-variant-card h3 {
  margin: 0 0 10px;
}

.variant-mini-line,
.variant-mini-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.variant-mini-line span {
  color: var(--muted);
}

.variant-mini-line b {
  text-align: right;
}

.variant-mini-total {
  border-bottom: 0;
  align-items: center;
}

.variant-mini-total span {
  font-weight: 900;
}

.variant-mini-total b {
  color: var(--blue);
  font-size: 22px;
}

.selected-variant-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.template-toolbar {
  position: sticky;
  top: 65px;
  z-index: 20;
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

.template-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.template-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.template-sidebar h3 {
  margin: 0 0 14px;
}

.upload-template-card {
  display: grid;
  gap: 7px;
  text-align: center;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
}

.upload-template-card input {
  display: none;
}

.upload-template-card span {
  font-size: 36px;
}

.upload-template-card b {
  font-size: 15px;
}

.upload-template-card small {
  color: var(--muted);
}

.uploaded-file-text {
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
  margin: 12px 0 0;
}

.template-content {
  min-width: 0;
}

.template-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.template-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.template-card.selected {
  border-color: var(--blue);
  box-shadow: 0 16px 35px rgba(47, 105, 177, 0.2);
}

.template-preview {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.template-card.blue .template-preview {
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
}

.template-card.pink .template-preview {
  background: linear-gradient(135deg, #fce7f3, #fb7185);
}

.template-card.purple .template-preview {
  background: linear-gradient(135deg, #ede9fe, #a78bfa);
}

.template-card.yellow .template-preview {
  background: linear-gradient(135deg, #fff7bd, #fbbf24);
}

.template-card.green .template-preview {
  background: linear-gradient(135deg, #dcfce7, #34d399);
}

.template-icon {
  width: 110px;
  height: 145px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.75);
  border: 7px solid rgba(255,255,255,0.7);
  font-size: 58px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
  transform: rotate(-4deg);
}

.template-watermark {
  position: absolute;
  inset: auto 0 42%;
  text-align: center;
  transform: rotate(-18deg);
  color: rgba(17, 24, 39, 0.14);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 2px;
}

.template-card-body {
  padding: 15px;
}

.template-card-body h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

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

.template-bottom-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.template-bottom-bar span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.template-bottom-bar b {
  font-size: 13px;
}

@media (min-width: 700px) {
  .template-page {
    padding: 40px 40px 120px;
  }

  .template-head {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

  .template-head h1 {
    font-size: 56px;
  }

  .template-toolbar {
    grid-template-columns: 1fr 220px;
  }

  .template-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .template-sidebar {
    position: sticky;
    top: 150px;
  }

  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .template-bottom-bar {
    left: 40px;
    right: 40px;
    grid-template-columns: 1fr 240px;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .template-head h1 {
    font-size: 34px;
  }

  .template-preview {
    min-height: 180px;
  }
}
.editor-page {
  padding: 28px 14px 110px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 247, 189, 0.85), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.editor-head {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.editor-head h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 14px 0 10px;
  letter-spacing: -1px;
}

.editor-head p {
  color: var(--muted);
  line-height: 1.6;
}

.editor-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.editor-summary-card h3 {
  margin: 0 0 10px;
}

.editor-layout {
  display: grid;
  gap: 18px;
}

.editor-panel,
.editor-next-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.editor-panel h3,
.editor-next-panel h3 {
  margin: 0 0 14px;
}

.input-group {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 13px;
  font-weight: 900;
  color: #334155;
}

.input-group input,
.input-group select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--blue);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-upload {
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px 10px;
  cursor: pointer;
}

.mini-upload.full {
  margin-top: 12px;
}

.mini-upload input {
  display: none;
}

.mini-upload span {
  font-size: 28px;
}

.mini-upload b {
  font-size: 13px;
}

.mini-upload small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.ai-upload-box {
  display: none;
}

.editor-note {
  margin-top: 14px;
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 16px;
  padding: 12px;
}

.editor-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.canvas-area {
  min-width: 0;
}

.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.canvas-toolbar b,
.canvas-toolbar span {
  display: block;
}

.canvas-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.preview-stage {
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fafc 75%),
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
}

.editor-canvas {
  position: relative;
  width: min(100%, 360px);
  min-height: 520px;
  border-radius: 28px;
  padding: 20px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.editor-canvas.theme-blue {
  background: linear-gradient(135deg, #2f69b1, #9dd5ff);
}

.editor-canvas.theme-pink {
  background: linear-gradient(135deg, #fb7185, #f7c9dc);
}

.editor-canvas.theme-yellow {
  background: linear-gradient(135deg, #f59e0b, #fff7bd);
  color: #1f2937;
}

.editor-canvas.theme-green {
  background: linear-gradient(135deg, #10b981, #dcfce7);
  color: #1f2937;
}

.editor-canvas.theme-purple {
  background: linear-gradient(135deg, #7c3aed, #c4b5fd);
}

.editor-canvas::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  right: -80px;
  top: -70px;
}

.editor-canvas::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  left: -70px;
  bottom: -60px;
}

.canvas-watermark {
  position: absolute;
  inset: auto 0 45%;
  text-align: center;
  transform: rotate(-18deg);
  color: rgba(17, 24, 39, 0.16);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  z-index: 5;
  pointer-events: none;
}

.canvas-logo {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.84);
  color: var(--blue);
  border-radius: 18px;
  font-weight: 900;
  overflow: hidden;
}

.canvas-logo img,
.canvas-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.canvas-template-badge {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.86);
  color: #1f2937;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas-main-icon {
  position: relative;
  z-index: 2;
  place-self: center;
  width: 120px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-top: 50px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 7px solid rgba(255,255,255,0.75);
  font-size: 72px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
}

.canvas-photo {
  position: absolute;
  left: 20px;
  bottom: 160px;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  border: 5px solid rgba(255,255,255,0.85);
  font-size: 38px;
  overflow: hidden;
}

.canvas-content {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 22px;
  padding: 16px;
}

.canvas-content h2 {
  margin: 0 0 5px;
  font-size: 28px;
  line-height: 1;
}

.canvas-content h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.canvas-content p {
  margin: 4px 0;
  font-weight: 700;
}

.canvas-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 900;
}

.next-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.next-card span {
  font-size: 28px;
}

.next-card b {
  display: block;
  margin: 5px 0;
}

.next-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.editor-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .editor-page {
    padding: 40px 40px 120px;
  }

  .editor-head {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

  .editor-head h1 {
    font-size: 56px;
  }

  .editor-layout {
    grid-template-columns: 300px 1fr 280px;
    align-items: start;
  }

  .editor-panel,
  .editor-next-panel {
    position: sticky;
    top: 86px;
  }

  .editor-canvas {
    width: 430px;
    min-height: 610px;
  }
}

@media (max-width: 420px) {
  .editor-head h1 {
    font-size: 34px;
  }

  .input-row,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .editor-canvas {
    min-height: 500px;
  }

  .canvas-main-icon {
    width: 105px;
    height: 135px;
    font-size: 62px;
  }
}
.preview-page {
  padding: 28px 14px 110px;
  background:
    radial-gradient(circle at 90% 8%, rgba(247, 201, 220, 0.65), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.preview-head {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.preview-head h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 14px 0 10px;
  letter-spacing: -1px;
}

.preview-head p {
  color: var(--muted);
  line-height: 1.6;
}

.preview-status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.preview-status-card span {
  font-size: 34px;
}

.preview-status-card b {
  display: block;
  margin: 8px 0 5px;
  font-size: 18px;
}

.preview-status-card p {
  margin: 0;
  font-size: 13px;
}

.preview-layout {
  display: grid;
  gap: 18px;
}

.preview-main {
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.preview-toolbar b,
.preview-toolbar span {
  display: block;
}

.preview-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.final-preview-stage {
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fafc 75%),
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
}

.final-preview-card {
  position: relative;
  width: min(100%, 390px);
  min-height: 560px;
  border-radius: 30px;
  padding: 20px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.final-preview-card.theme-blue {
  background: linear-gradient(135deg, #2f69b1, #9dd5ff);
}

.final-preview-card.theme-pink {
  background: linear-gradient(135deg, #fb7185, #f7c9dc);
}

.final-preview-card.theme-yellow {
  background: linear-gradient(135deg, #f59e0b, #fff7bd);
  color: #1f2937;
}

.final-preview-card.theme-green {
  background: linear-gradient(135deg, #10b981, #dcfce7);
  color: #1f2937;
}

.final-preview-card.theme-purple {
  background: linear-gradient(135deg, #7c3aed, #c4b5fd);
}

.final-preview-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  right: -80px;
  top: -70px;
}

.final-preview-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  left: -70px;
  bottom: -60px;
}

.final-watermark {
  position: absolute;
  inset: auto 0 45%;
  text-align: center;
  transform: rotate(-18deg);
  color: rgba(17, 24, 39, 0.17);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  z-index: 8;
  pointer-events: none;
}

.final-logo {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.84);
  color: var(--blue);
  border-radius: 18px;
  font-weight: 900;
  overflow: hidden;
}

.final-logo img,
.final-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.final-badge {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.86);
  color: #1f2937;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.final-main-icon {
  position: relative;
  z-index: 2;
  place-self: center;
  width: 125px;
  height: 155px;
  display: grid;
  place-items: center;
  margin-top: 55px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 7px solid rgba(255,255,255,0.75);
  font-size: 74px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
}

.final-photo {
  position: absolute;
  left: 20px;
  bottom: 165px;
  z-index: 3;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  border: 5px solid rgba(255,255,255,0.85);
  font-size: 38px;
  overflow: hidden;
}

.final-content {
  position: relative;
  z-index: 2;
  margin-top: 75px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 22px;
  padding: 16px;
}

.final-content h2 {
  margin: 0 0 5px;
  font-size: 30px;
  line-height: 1;
}

.final-content h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.final-content p {
  margin: 4px 0;
  font-weight: 700;
}

.final-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 900;
}

.preview-side {
  display: grid;
  gap: 14px;
}

.approval-card,
.preview-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.approval-card h3,
.preview-summary-card h3 {
  margin: 0 0 14px;
}

.approval-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.approval-card input {
  width: 18px;
  height: 18px;
}

.preview-actions {
  display: grid;
  gap: 10px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.preview-modal.show {
  display: grid;
}

.preview-modal button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 28px;
  cursor: pointer;
}

.modal-preview-wrap {
  width: min(100%, 460px);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  place-items: center;
}

.modal-preview-wrap .final-preview-card {
  width: min(100%, 430px);
  min-height: 610px;
}

@media (min-width: 900px) {
  .preview-page {
    padding: 40px 40px 120px;
  }

  .preview-head {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }

  .preview-head h1 {
    font-size: 56px;
  }

  .preview-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }

  .preview-side {
    position: sticky;
    top: 86px;
  }

  .final-preview-card {
    width: 440px;
    min-height: 630px;
  }
}

@media (max-width: 420px) {
  .preview-head h1 {
    font-size: 34px;
  }

  .final-preview-card {
    min-height: 520px;
  }

  .final-main-icon {
    width: 110px;
    height: 140px;
    font-size: 64px;
  }

  .final-watermark {
    font-size: 30px;
  }
}
.checkout-page {
  padding: 28px 14px 110px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 247, 189, 0.85), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.checkout-head {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.checkout-head h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 14px 0 10px;
  letter-spacing: -1px;
}

.checkout-head p {
  color: var(--muted);
  line-height: 1.6;
}

.checkout-secure-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.checkout-secure-card span {
  font-size: 34px;
}

.checkout-secure-card b {
  display: block;
  margin: 8px 0 5px;
  font-size: 18px;
}

.checkout-secure-card p {
  margin: 0;
  font-size: 13px;
}

.checkout-layout {
  display: grid;
  gap: 18px;
}

.checkout-form-card,
.checkout-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.checkout-form-card h3,
.checkout-summary-card h3 {
  margin: 0 0 14px;
}

.checkout-grid {
  display: grid;
  gap: 10px;
}

.input-group textarea {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.input-group textarea:focus {
  border-color: var(--blue);
}

.payment-methods {
  display: grid;
  gap: 12px;
}

.payment-card {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
}

.payment-card input {
  position: absolute;
  opacity: 0;
}

.payment-card span {
  font-size: 30px;
}

.payment-card b {
  font-size: 16px;
}

.payment-card small {
  color: var(--muted);
}

.payment-card.active {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(47, 105, 177, 0.12);
}

.checkout-note {
  margin-top: 16px;
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 16px;
  padding: 12px;
}

.checkout-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-preview-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 14px;
}

.mini-preview-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
  font-size: 30px;
}

.checkout-preview-mini b,
.checkout-preview-mini span {
  display: block;
}

.checkout-preview-mini span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.price-breakup {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.price-breakup div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}

.price-breakup span {
  color: var(--muted);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--cream);
  border: 1px solid #f2eab7;
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
}

.checkout-total span {
  font-weight: 900;
}

.checkout-total b {
  color: var(--blue);
  font-size: 26px;
}

.terms-check {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.checkout-btn {
  width: 100%;
  margin-top: 10px;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(247, 201, 220, 0.65), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.success-card {
  width: min(100%, 620px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  font-size: 36px;
}

.success-card h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 0 0 10px;
}

.success-card p {
  color: var(--muted);
  line-height: 1.6;
}

.success-order-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
}

.success-order-box span {
  color: var(--muted);
}

.success-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

@media (min-width: 800px) {
  .checkout-page {
    padding: 40px 40px 120px;
  }

  .checkout-head {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }

  .checkout-head h1 {
    font-size: 56px;
  }

  .checkout-layout {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

  .checkout-summary-card {
    position: sticky;
    top: 86px;
  }

  .checkout-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr 1fr;
  }

  .success-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .checkout-head h1,
  .success-card h1 {
    font-size: 34px;
  }
}

.bulk-upload-section {
  display: none;
}

.bulk-info-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.bulk-info-box b {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 5px;
}

.bulk-info-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.bulk-toggle {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  cursor: pointer;
}

.bulk-toggle input {
  width: 18px;
  height: 18px;
}

.bulk-toggle span {
  font-weight: 900;
  color: #334155;
  font-size: 13px;
}

.bulk-upload-box {
  display: none;
  margin-top: 12px;
}

.bulk-upload-box.show {
  display: block;
}

.bulk-template-actions {
  margin-bottom: 12px;
}

.bulk-file-card {
  display: grid !important;
  gap: 7px;
  text-align: center;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
}

.bulk-file-card input {
  display: none;
}

.bulk-file-card span {
  font-size: 34px;
}

.bulk-file-card b {
  font-size: 15px;
}

.bulk-file-card small {
  color: var(--muted);
  line-height: 1.4;
}

.bulk-preview-table-wrap {
  display: none;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  overflow-x: auto;
}

.bulk-preview-table-wrap h4 {
  margin: 0 0 10px;
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bulk-table th,
.bulk-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}

.bulk-table th {
  background: #f8fafc;
  font-weight: 900;
}

.bulk-row-count {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.template-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.license-line {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: -4px 0 10px;
}
.track-page,
.orders-page,
.bulk-help-page {
  padding: 28px 14px 100px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 247, 189, 0.85), transparent 28%),
    linear-gradient(180deg, #fbfdff, #ffffff);
  min-height: 80vh;
}

.track-card,
.track-result,
.orders-head,
.orders-search-box,
.my-order-card,
.bulk-help-hero,
.bulk-help-card,
.sample-table-card,
.order-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.track-card h1,
.orders-head h1,
.bulk-help-hero h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  margin: 14px 0 10px;
  letter-spacing: -1px;
}

.track-card p,
.orders-head p,
.bulk-help-hero p,
.bulk-help-card p,
.sample-table-card p {
  color: var(--muted);
  line-height: 1.6;
}

.track-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.track-result {
  margin-top: 18px;
}

.order-status-top,
.my-order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.order-status-top span,
.my-order-top span,
.order-info-grid span,
.my-order-body span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.order-status-top b,
.my-order-top b {
  display: block;
  font-size: 16px;
}

.order-status-top strong,
.my-order-top strong {
  background: #eff6ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
}

.track-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
}

.timeline-step span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  font-weight: 900;
}

.timeline-step.active {
  background: #eff6ff;
  color: var(--blue-dark);
}

.timeline-step.active span {
  background: var(--blue);
  color: #fff;
}

.order-info-grid,
.my-order-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.order-info-grid div,
.my-order-body div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.orders-head {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.my-order-card .btn {
  margin-top: 14px;
}

.bulk-help-hero {
  margin-bottom: 18px;
}

.bulk-help-grid {
  display: grid;
  gap: 14px;
}

.bulk-help-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 15px;
  font-weight: 900;
}

.bulk-help-card h3 {
  margin: 12px 0 6px;
}

.sample-table-card {
  margin-top: 18px;
}

.sample-table-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
}

@media (min-width: 800px) {
  .track-page,
  .orders-page,
  .bulk-help-page {
    padding: 40px;
  }

  .track-card,
  .track-result,
  .bulk-help-hero,
  .sample-table-card {
    width: min(100%, 900px);
    margin-left: auto;
    margin-right: auto;
  }

  .track-form {
    grid-template-columns: 1fr 1fr 180px;
    align-items: end;
  }

  .orders-head {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

  .orders-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-info-grid,
  .my-order-body {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .timeline-step {
    display: grid;
    text-align: center;
    justify-items: center;
  }

  .bulk-help-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .track-card h1,
  .orders-head h1,
  .bulk-help-hero h1 {
    font-size: 56px;
  }
}