/*
Theme Name: Calm Puppy Protocol
Theme URI: https://calmpuppyprotocol.com
Author: StarQuest Marketing LTDA
Description: Single-product funnel storefront for the Calm Puppy Protocol 7-day puppy training system. Instant PDF download. No shipping. Forked from the Meal Stack HQ / lowticket-digital theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: lowticket-digital
*/

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  /* Calm Puppy Protocol palette — amber, ember, olive, warm dark */
  --ink: #241a10;
  --ink-soft: #3d322b;
  --paper: #faf6f0;
  --paper-2: #fffdf9;
  --cream: #f3ebe0;
  --accent: #D68A2A;
  --accent-dark: #93611c;
  --accent-soft: #F8E8CE;
  --sage: #93a559;
  --sage-soft: #eef2e2;
  --honey: #C0552A;
  --honey-soft: #f7e2d4;
  --espresso: #130F0A;
  --muted: #6b5e55;
  --line: #e8ddd0;
  --card: #ffffff;
  --ok: #3d7a52;
  --ok-soft: #e6f4eb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(42, 31, 24, 0.08);
  --shadow-lg: 0 28px 70px rgba(42, 31, 24, 0.12);
  --shadow-glow: 0 12px 40px rgba(214, 138, 42, 0.22);
  --max: 1160px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

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

/* Soft ambient background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(214, 138, 42, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(147, 165, 89, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(192, 85, 42, 0.08), transparent 55%),
    var(--paper);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Announcement */
.announce {
  background: linear-gradient(105deg, #241a10 0%, #3a2712 45%, #241a10 100%);
  color: #f5ebe3;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.58rem 1rem;
  position: relative;
  overflow: hidden;
}

.announce::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 4.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.announce strong {
  color: #F0C077;
  font-weight: 650;
}

/* Header */
.site-header {
  background: rgba(19, 15, 10, 0.92);
  color: #fff;
  border-bottom: 1px solid rgba(214, 138, 42, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(19, 15, 10, 0.25);
}

.site-header a {
  color: #fff;
}

.site-header__inner,
.site-footer__inner,
.site-main,
.hero__inner,
.band__inner,
.section-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, #F0C077, transparent 45%),
    linear-gradient(145deg, var(--accent) 0%, #93611c 55%, #4a3110 100%);
  box-shadow: 0 6px 18px rgba(214, 138, 42, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  animation: float-soft 5s ease-in-out infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.22rem;
  line-height: 1.15;
}

.brand__tag {
  font-size: 0.7rem;
  color: #c4b5aa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 0.35rem 1.05rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  font-size: 0.92rem;
  opacity: 0.9;
  font-weight: 500;
  position: relative;
}

.nav a:not(.cart-pill)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav a:not(.cart-pill):hover::after {
  width: 100%;
}

.nav a:hover {
  opacity: 1;
  color: #fff;
}

.cart-pill {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(214, 138, 42, 0.35);
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 95% 10%, rgba(214, 138, 42, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 90%, rgba(147, 165, 89, 0.14), transparent 50%),
    linear-gradient(180deg, #fffdf9 0%, var(--cream) 55%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.8rem 0 3.2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Decorative food blobs */
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 85, 42, 0.2), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: pulse-blob 8s ease-in-out infinite;
}

@keyframes pulse-blob {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-dark);
  border: 1px solid #EBD3A6;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(214, 138, 42, 0.1);
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  background: linear-gradient(135deg, var(--ink) 0%, #5c3d32 70%, var(--accent-dark) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 0 0 1.45rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.45rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 221, 208, 0.9);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow: 0 32px 70px rgba(42, 31, 24, 0.16);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.hero-card li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font-weight: 650;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #E8A83E 0%, var(--accent) 45%, var(--accent-dark) 100%);
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(214, 138, 42, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(42, 31, 24, 0.04);
}

.btn-ghost:hover {
  border-color: #d4c4b4;
  color: var(--ink) !important;
  background: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-row strong {
  color: var(--sage);
  font-weight: 700;
}

/* Trust band */
.band {
  background: linear-gradient(105deg, #130F0A 0%, #241a10 50%, #130F0A 100%);
  color: #cfc3b8;
  padding: 1.2rem 0;
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(214, 138, 42, 0.08), transparent);
  pointer-events: none;
}

.band__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
  font-size: 0.88rem;
}

.band strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  font-family: var(--display);
  font-weight: 600;
}

/* Main */
.site-main {
  flex: 1;
  padding: 2.6rem 0 3.4rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-title p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-block {
  margin-bottom: 3rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(214, 138, 42, 0), rgba(214, 138, 42, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.25s ease;
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #E3C48F;
}

.product-card:hover::before {
  background: linear-gradient(145deg, rgba(214, 138, 42, 0.45), rgba(147, 165, 89, 0.35));
}

.product-card__media {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 180, 168, 0.35), transparent 42%),
    linear-gradient(145deg, #241a10, #4a342c 50%, #3d4a38 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 1.2rem;
  font-size: 1.15rem;
  position: relative;
  overflow: hidden;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__ribbon {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(255, 253, 249, 0.95);
  color: var(--accent-dark);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
}

.product-card__type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 650;
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: var(--display);
  font-weight: 600;
}

.product-card h3 a {
  color: var(--ink);
}

.product-card h3 a:hover {
  color: var(--accent);
}

.product-card__price {
  font-weight: 750;
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: auto;
  font-family: var(--display);
}

.product-card__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.product-card .btn {
  margin-top: 0.35rem;
  width: 100%;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--honey), var(--sage));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.feature:hover::after {
  opacity: 1;
}

.feature__icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-soft), #fff);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.8rem;
  border: 1px solid #EBD3A6;
  font-size: 1.05rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--display);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Guarantee */
.guarantee {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(147, 165, 89, 0.12), transparent 50%),
    linear-gradient(135deg, #fff 0%, var(--sage-soft) 100%);
  border: 1px solid #c5dcc8;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .guarantee {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.guarantee h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
}

.guarantee p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 16px rgba(42, 31, 24, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq details[open] {
  border-color: #E3C48F;
  box-shadow: 0 8px 24px rgba(214, 138, 42, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details[open] summary {
  color: var(--accent-dark);
  margin-bottom: 0.55rem;
}

.faq details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(214, 138, 42, 0.12), transparent 50%),
    linear-gradient(180deg, #130F0A 0%, #0d0a06 100%);
  color: #b8a99c;
  padding: 2.8rem 0 1.9rem;
  margin-top: auto;
  position: relative;
}

.site-footer a {
  color: #fff;
  opacity: 0.88;
}

.site-footer a:hover {
  opacity: 1;
  color: #F0C077;
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 650;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.site-footer__brand {
  font-family: var(--display);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Single product */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .single-product-layout {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }
}

.product-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.product-panel .product-card__media {
  border-radius: var(--radius-sm);
  min-height: 360px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #EBD3A6;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 650;
}

.badge--sage {
  background: var(--sage-soft);
  color: var(--sage);
  border-color: #c5dcc8;
}

.badge--honey {
  background: var(--honey-soft);
  color: #8a6a0a;
  border-color: #edd89a;
}

.price-block {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0.4rem 0 0.85rem;
  font-family: var(--display);
}

.price-block .woocommerce-Price-amount {
  color: var(--accent);
}

.benefit-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.benefit-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

/* Legal pages */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin: 0 0 1rem;
}

.legal-page h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* WooCommerce polish */
.woocommerce div.product form.cart {
  margin-top: 1rem;
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.82rem 1.3rem !important;
  border: 0 !important;
  box-shadow: var(--shadow-glow) !important;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: var(--accent-dark) !important;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--accent) !important;
}

.woocommerce-page .woocommerce {
  max-width: none;
}

.woocommerce-shipping-fields,
.woocommerce-shipping-totals {
  display: none !important;
}

.content-prose h1,
.content-prose h2,
.content-prose h3 {
  line-height: 1.25;
  font-family: var(--display);
}

.content-prose p {
  color: var(--muted);
}

.notice-box {
  background: linear-gradient(135deg, var(--ok-soft), #f4fbf6);
  border: 1px solid #b7dfc4;
  color: #1e5c38;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 1.5rem, 640px);
  background: linear-gradient(135deg, #130F0A, #241a10);
  color: #f0e6dc;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.88rem;
  border: 1px solid rgba(214, 138, 42, 0.25);
}

.cookie-bar.is-visible {
  display: flex;
  animation: slide-up 0.35s ease;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cookie-bar a {
  color: #F0C077;
  text-decoration: underline;
}

.cookie-bar .btn {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

/* Checkout consent */
.ltd-digital-consent {
  background: linear-gradient(135deg, var(--honey-soft), #fff8e8);
  border: 1px solid #edd89a;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.woocommerce-checkout #payment {
  background: var(--card);
  border-radius: var(--radius);
}

.page-hero {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Flavor chips row */
.flavor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
}

.flavor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(42, 31, 24, 0.04);
}

/* ===================================================================
   Book / PDF mockup — CSS-only cover replacing flat gradient placeholders
   =================================================================== */
.book-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.book-mockup--card {
  aspect-ratio: 4 / 5;
}

.book-mockup--panel {
  min-height: 380px;
}

.book-mockup__pages {
  position: absolute;
  inset: 6% 3% 6% auto;
  right: -3px;
  width: 94%;
  height: 88%;
  top: 6%;
  background: repeating-linear-gradient(
    180deg,
    #fffdf9 0px,
    #fffdf9 2px,
    #e8ddd0 2px,
    #e8ddd0 3px
  );
  border-radius: 0 6px 6px 0;
  box-shadow: 2px 2px 6px rgba(19, 15, 10, 0.18);
  transform: translateX(4px);
}

.book-mockup__cover {
  position: absolute;
  inset: 0;
  border-radius: 8px 10px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 10px 26px rgba(19, 15, 10, 0.28),
    inset 4px 0 0 rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .book-mockup__cover,
.product-panel:hover .book-mockup__cover {
  transform: translateY(-3px) rotate(-0.4deg);
}

.book-mockup--paprika .book-mockup__cover {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 180, 168, 0.4), transparent 42%),
    linear-gradient(155deg, #241a10 0%, #4a342c 42%, #D68A2A 130%);
}

.book-mockup--sage .book-mockup__cover {
  background:
    radial-gradient(circle at 22% 18%, rgba(200, 224, 200, 0.4), transparent 42%),
    linear-gradient(155deg, #21281f 0%, #34402f 42%, #93a559 130%);
}

.book-mockup--honey .book-mockup__cover {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 224, 158, 0.4), transparent 42%),
    linear-gradient(155deg, #241d0d 0%, #3d3018 42%, #C0552A 130%);
}

.book-mockup__format {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.book-mockup__title {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.28;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.book-mockup--panel .book-mockup__title {
  font-size: 1.35rem;
}

.book-mockup__foot {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ===================================================================
   Mobile nav
   =================================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 300px);
    background: linear-gradient(165deg, #130F0A, #241a10);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
    z-index: 60;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.05rem;
  }

  .cart-pill {
    margin-top: auto;
  }
}

/* ===================================================================
   Shop archive — alias default WC loop wrapper to our grid + card system
   =================================================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products li.product-card {
  width: auto;
  float: none;
  margin: 0;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
}

.page-hero__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

/* ===================================================================
   Single product — spec chips, what's-inside, sticky mobile buy bar
   =================================================================== */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.whats-inside {
  margin: 1.1rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, var(--paper-2));
  border: 1px solid var(--line);
}

.whats-inside h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}

.whats-inside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.whats-inside li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.whats-inside li .ico {
  flex-shrink: 0;
}

.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(19, 15, 10, 0.96);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.85rem 1rem;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.2);
}

.sticky-buy.is-visible {
  transform: translateY(0);
}

.sticky-buy__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sticky-buy__title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-buy__price {
  font-family: var(--display);
  font-weight: 700;
  color: #F0C077;
  font-size: 0.95rem;
}

.sticky-buy__cta {
  flex-shrink: 0;
  padding: 0.62rem 1.1rem;
  font-size: 0.88rem;
}

@media (min-width: 761px) {
  .sticky-buy {
    display: none;
  }
}

/* ===================================================================
   Add-to-cart toast
   =================================================================== */
.ltd-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #c5dcc8;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ltd-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ltd-toast__icon {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 800;
  flex-shrink: 0;
}

.ltd-toast a {
  font-weight: 650;
}

/* ===================================================================
   Scroll reveal
   =================================================================== */
.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   Cinematic hero — real ad-creative visual, dark scrim
   =================================================================== */
.hero-cine {
  background:
    radial-gradient(ellipse 70% 90% at 90% 0%, rgba(214, 138, 42, 0.16), transparent 55%),
    linear-gradient(165deg, #0d0a06 0%, #1a1208 55%, #130f0a 100%);
  padding: 3.6rem 0 3rem;
  border-bottom: 1px solid rgba(214, 138, 42, 0.25);
}

.hero-cine__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-cine__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__kicker--dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-bright, #E8A83E);
  border: 1px solid rgba(214, 138, 42, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 1.1rem;
}

.hero-cine__title {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 13ch;
  color: #F7EEDD;
}

.hero-cine__lede {
  margin: 0 0 1.4rem;
  color: #c9bda8;
  max-width: 42ch;
  font-size: 1.08rem;
}

.btn-ghost--dark {
  background: rgba(255, 255, 255, 0.06);
  color: #F7EEDD !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost--dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff !important;
}

.hero-cine__visual img {
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(214, 138, 42, 0.2);
}

/* Value stack */
.value-stack {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  max-width: 420px;
}

.value-stack__row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.32rem 0;
  color: #d8cdb9;
  font-size: 0.92rem;
}

.value-stack__row span {
  color: var(--accent-bright, #E8A83E);
  font-weight: 800;
  flex-shrink: 0;
}

.value-stack__total {
  margin-top: 0.6rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  color: #F7EEDD;
  font-size: 0.92rem;
}

.value-stack__total strong {
  color: var(--accent-bright, #E8A83E);
  font-family: var(--display);
  font-size: 1.05rem;
}

/* Split visual sections (image beside content) */
.split-visual {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-visual {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split-visual--reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split-visual--reverse > *:first-child {
    order: 2;
  }
}

.split-visual__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Ladder cards — the real 3-tier upsell */
.ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.ladder-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.ladder-card__tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.ladder-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: 0 10px 26px rgba(28, 20, 16, 0.2);
}

.ladder-card__img {
  width: 100%;
  display: block;
}

.ladder-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.ladder-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 2.6em;
}

.ladder-card__price {
  font-family: var(--display);
  font-weight: 750;
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

/* Guarantee seal */
.guarantee--seal {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 700px) {
  .guarantee--seal {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.guarantee-seal {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(214, 138, 42, 0.35), inset 0 0 0 4px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  margin-inline: auto;
}

.guarantee-seal__num {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.guarantee-seal__label {
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.2;
  margin-top: 0.15rem;
}

/* Pastel description cards */
.pastel-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
}

.pastel-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.3rem;
}

.pastel-card p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 68ch;
  line-height: 1.65;
}

.pastel-card--amber {
  background: linear-gradient(135deg, var(--accent-soft), #fff);
}

.pastel-card--olive {
  background: linear-gradient(135deg, var(--sage-soft), #fff);
}

.pastel-card--ember {
  background: linear-gradient(135deg, var(--honey-soft), #fff);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
