/* DollCraftHeaven — ivory shop style
   Warm off-white page background, burgundy script titles,
   white cards with a soft pink-beige border, and small pink accents. */

:root {
  --page: #faf6ef;
  --blush: #f6d6de;
  --blush-soft: #fbe6eb;
  --blush-deep: #eebcc8;
  --cream: #ffffff;
  --cream-deep: #f7eee6;
  --burgundy: #6b2438;
  --burgundy-soft: #8a3a4e;
  --ink: #3a2a2e;
  --muted: #7a646b;
  --line: #ead8ce;
  --accent: #e8a4b3;
  --white: #fffdfb;
  --paypal-gold: #ffc439;
  --paypal-gold-hover: #f0b728;
  --shadow: 0 12px 32px rgba(107, 36, 56, 0.09);
  --shadow-soft: 0 8px 22px rgba(107, 36, 56, 0.07);
  --radius: 28px;
  --radius-sm: 18px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", "PingFang SC", "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(255, 248, 242, 0.65), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d4b8b0' stroke-opacity='0.18' stroke-width='1'%3E%3Cpath d='M20 18c1.6-3.2 6.4-3.2 8 0 1.2 2.4-1 4.6-4 6.6-3-2-5.2-4.2-4-6.6z'/%3E%3Cpath d='M86 72c1.2-2.4 4.8-2.4 6 0 .9 1.8-.7 3.4-3 5-2.3-1.6-3.9-3.2-3-5z'/%3E%3Cpath d='M54 100 l2.2 0 0.7 2.1 0.7-2.1 2.2 0-1.8-1.3 0.7-2.1-1.8 1.3-1.8-1.3 0.7 2.1z'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy-soft); text-decoration: none; }
a:hover { color: var(--burgundy); text-decoration: underline; }
button, select { font-family: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 150, 0.22);
  box-shadow: 0 4px 16px rgba(107, 36, 56, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--burgundy);
  text-decoration: none;
  min-width: 0;
}

.brand:hover { text-decoration: none; color: var(--burgundy); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-name {
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: 2.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

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

.nav a {
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--blush-soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px;
}

.nav-toggle:hover { background: var(--blush-soft); }

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 20px;
  overflow: hidden;
}

.hero-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 168, 150, 0.28);
  padding: 48px 48px 40px;
  text-align: center;
  overflow: hidden;
}

.hero-card h1 {
  margin: 8px 0 6px;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.05;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
}

.deco {
  position: absolute;
  pointer-events: none;
  color: var(--burgundy);
  opacity: 0.55;
}

.deco-bow { top: 18px; left: 22px; width: 72px; height: 72px; opacity: 0.85; }
.deco-girl { top: 16px; right: 22px; width: 78px; height: 78px; opacity: 0.9; }
.deco-sparkle-l { left: 18%; top: 28%; width: 18px; height: 18px; }
.deco-sparkle-r { right: 20%; bottom: 22%; width: 16px; height: 16px; }
.deco-heart { left: 10%; bottom: 24px; width: 16px; height: 16px; opacity: 0.45; }
.deco-branch { right: 16px; bottom: 8px; width: 90px; height: 80px; opacity: 0.4; }

.promo-banner {
  margin: 22px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(107, 36, 56, 0.22);
  max-width: 100%;
}

.promo-banner .spark { font-size: 1.05rem; }
.promo-sample {
  display: inline-block;
  background: rgba(255, 248, 242, 0.18);
  border: 1px solid rgba(255, 248, 242, 0.35);
  color: #fff8f2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.promo-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 28px 0 8px;
}

.section-head {
  text-align: center;
  margin: 8px 0 28px;
  position: relative;
}

.section-head h2 {
  margin: 0;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.1;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201, 168, 150, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-photo {
  background: #fff8f2;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card[data-product-id="cardigan"] .product-photo img {
  object-fit: contain;
  background: #fff8f2;
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--burgundy);
  font-weight: 800;
}

.product-body .desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--burgundy);
  letter-spacing: -0.02em;
}

.price-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  background: var(--blush-soft);
  border-radius: 999px;
  padding: 3px 8px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.field select {
  width: 100%;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B2438' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 36px 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 164, 179, 0.35);
}

.shipping-line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.shipping-line strong { color: var(--ink); }

.paypal-slot {
  position: relative;
  min-height: 48px;
  margin-top: 4px;
}

.paypal-slot .paypal-buttons {
  min-height: 45px;
}

.paypal-sdk-host:empty { display: none; }

/* If the official PayPal iframe is present but paints blank (some browsers),
   the gold fallback button underneath stays visible. */
.paypal-slot.has-sdk {
  min-height: 48px;
}

.paypal-slot.has-sdk .fallback-wrap {
  display: none;
}

.paypal-slot.sdk-blank .fallback-wrap {
  display: block;
}

.paypal-slot.sdk-blank .paypal-sdk-host {
  display: none;
}

.fallback-wrap, .fallback-form { margin: 0; }

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--paypal-gold);
  color: #111;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.pay-btn:hover { background: var(--paypal-gold-hover); }

.pay-btn .pp {
  font-family: "Nunito", sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.demo-hint {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Info cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px 26px;
  border: 1px solid rgba(201, 168, 150, 0.28);
  position: relative;
  overflow: hidden;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 10px;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.1;
}

.info-card p {
  margin: 0 0 10px;
  color: var(--ink);
}

.info-card p:last-child { margin-bottom: 0; }

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

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  position: relative;
  padding: 6px 0 6px 22px;
}

.info-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent);
  font-size: 0.75rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blush-soft);
  color: var(--burgundy);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(107, 36, 56, 0.08);
}

.pill-link:hover {
  background: var(--blush);
  text-decoration: none;
  color: var(--burgundy);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  background: var(--page);
  border-top: 1px solid rgba(201, 168, 150, 0.22);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-name {
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: 2rem;
  color: var(--burgundy);
  margin: 0 0 6px;
}

.site-footer p { margin: 4px 0; }

.footer-deco {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
  opacity: 0.55;
  color: var(--burgundy);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 40px 28px 32px; }
  .deco-girl, .deco-bow { width: 56px; height: 56px; }
}

@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 4px;
    box-shadow: var(--shadow-soft);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: 12px; }
  .brand-name { font-size: 1.7rem; }
  .hero { padding-top: 28px; }
  .hero-card { padding: 36px 20px 26px; }
  .hero-card h1 { font-size: 3rem; }
  .deco-bow { top: 10px; left: 10px; width: 44px; height: 44px; }
  .deco-girl { top: 8px; right: 8px; width: 48px; height: 48px; }
  .deco-branch,
  .deco-sparkle-l,
  .deco-sparkle-r,
  .deco-heart { display: none; }
  .promo-banner {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
    text-align: center;
    line-height: 1.35;
  }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1.5rem; }
  .hero-card h1 { font-size: 2.55rem; }
}
