/* ThoughtfulTots — shared design system
   Palette matches the PDF guides (see .claude/skills/thoughtfultots-pdf) */

:root {
  --sage: #5B7768;
  --sage-light: #E7EEE9;
  --coral: #E8836B;
  --coral-dark: #D66C52;
  --cream: #FBF8F3;
  --ink: #2B2B28;
  --grey: #6B6B66;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(43, 43, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(43, 43, 40, 0.16);
  --max-width: 1120px;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-light);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--coral); }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cart-button:hover { background: #4c6455; transform: translateY(-1px); }
.cart-count {
  background: var(--coral);
  color: var(--white);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 24px 48px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero__eyebrow {
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--sage);
  margin: 0 0 18px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--grey);
  margin: 0 auto 28px;
  max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--white); color: var(--sage); border: 1.5px solid var(--sage); }
.btn-secondary:hover { background: var(--sage-light); }
.btn-block { width: 100%; }

/* ---------- Product grid ---------- */
.catalog {
  padding: 24px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sage-light);
}
.product-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.product-card__subtitle {
  font-size: 0.88rem;
  color: var(--grey);
  margin: 0 0 12px;
  flex: 1;
}
.product-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--sage-light);
  color: var(--sage);
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { font-size: 1.15rem; font-weight: 700; color: var(--sage); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 40, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: var(--cream);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__header h2 { font-family: var(--font-serif); margin: 0; color: var(--sage); }
.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--grey);
  line-height: 1;
}
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { color: var(--grey); text-align: center; padding: 48px 0; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sage-light);
}
.cart-item img { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item__info { flex: 1; }
.cart-item__title { font-weight: 600; font-size: 0.9rem; margin: 0 0 4px; }
.cart-item__price { color: var(--grey); font-size: 0.85rem; }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--coral);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.cart-drawer__footer { padding: 20px 24px 26px; border-top: 1px solid var(--sage-light); }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--ink);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 28px 24px;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--sage-light);
  padding: 40px 24px;
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
}
.site-footer__links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer__links a { text-decoration: none; color: var(--grey); }
.site-footer__links a:hover { color: var(--coral); }

/* ---------- Static/legal pages ---------- */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-content h1 {
  font-family: var(--font-serif);
  color: var(--sage);
  font-size: 2rem;
  margin-bottom: 8px;
}
.page-content h2 {
  font-family: var(--font-serif);
  color: var(--coral);
  font-size: 1.25rem;
  margin-top: 32px;
}
.page-content p, .page-content li { color: var(--ink); line-height: 1.7; }
.page-updated { color: var(--grey); font-size: 0.85rem; margin-bottom: 32px; }

/* ---------- Success page ---------- */
.success-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}
.download-list { list-style: none; padding: 0; margin: 28px 0; text-align: left; }
.download-list li {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: none;
}
.consent-banner.is-visible { display: block; }
.consent-banner p { margin: 0 0 14px; font-size: 0.88rem; color: #E9E7E2; }
.consent-banner__actions { display: flex; gap: 10px; }
.consent-banner .btn { padding: 9px 18px; font-size: 0.85rem; }
.consent-banner .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.consent-banner .btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-form label { font-weight: 600; font-size: 0.88rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-sans);
  padding: 12px 14px;
  border: 1.5px solid var(--sage-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

/* ---------- Product page ---------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}
.breadcrumb a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.88rem;
}
.breadcrumb a:hover { color: var(--coral); }

.product-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px;
  align-items: start;
}
.product-hero__cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}
.product-hero__cover img { width: 100%; height: 100%; object-fit: cover; }

.product-hero__info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--sage);
  margin: 0 0 8px;
  line-height: 1.15;
}
.product-hero__subtitle { color: var(--grey); font-size: 1.05rem; margin: 0 0 18px; }
.product-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.buy-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.buy-box__price { font-family: var(--font-serif); font-size: 2rem; color: var(--sage); margin: 0 0 4px; }
.buy-box__note { color: var(--grey); font-size: 0.85rem; margin: 0 0 18px; }
.buy-box .btn { margin-bottom: 10px; }
.buy-box__trust {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.buy-box__trust li::before { content: "✓ "; color: var(--sage); font-weight: 700; }

.whats-inside { margin: 0 0 8px; }
.whats-inside h2 {
  font-family: var(--font-serif);
  color: var(--sage);
  font-size: 1.3rem;
  margin: 0 0 14px;
}
.whats-inside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.whats-inside li {
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink);
}
.whats-inside li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.product-description {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 64px;
  text-align: center;
  color: var(--grey);
  line-height: 1.75;
}

.bottom-cta {
  background: var(--sage-light);
  padding: 56px 24px;
  text-align: center;
}
.bottom-cta h2 { font-family: var(--font-serif); color: var(--sage); margin: 0 0 20px; }

@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero__cover { max-width: 320px; margin: 0 auto; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 36px; }
  .catalog { padding: 12px 20px 60px; }
  .trust-strip { gap: 18px; }
}
