/* Shop + checkout sheet + interior pages */
.page-main {
  padding: calc(var(--dd-nav-h) + var(--dd-ribbon-h, 0px) + 40px) 28px 80px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 70vh;
}

.page-main h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  margin-bottom: 10px;
}

.page-lede {
  color: var(--dd-muted);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 640px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.shop-urgency {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: -12px 0 28px;
  padding: 12px 16px;
  background: #f0f4ff;
  border: 1px solid #d5e0ff;
  border-radius: 10px;
  font-size: 14px;
  color: var(--dd-muted);
}

.shop-urgency strong {
  color: #0a7a32;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-trust-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.shop-trust-points li {
  font-size: 13px;
  color: var(--dd-muted);
  padding-left: 18px;
  position: relative;
}

.shop-trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a7a32;
}

.shop-trust-points a {
  color: var(--dd-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


.shop-social-proof {
  margin-top: 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--dd-border);
}

.shop-proof-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dd-blue);
  margin-bottom: 12px;
}

.shop-social-proof blockquote {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dd-black);
}

.shop-social-proof cite {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
  color: var(--dd-muted);
}

.shop-proof-meta {
  font-size: 13px;
  color: var(--dd-muted);
  margin-bottom: 12px;
}

.shop-reviews-strip {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--dd-border);
}

.shop-reviews-strip h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.cart-bundle-nudge {
  background: #f7f7f7;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.cart-bundle-nudge p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--dd-muted);
  margin-bottom: 10px;
}

.cart-bundle-nudge p strong {
  color: var(--dd-black);
}

.shop-hero-img {
  background: var(--dd-light);
  border-radius: var(--dd-radius-card);
  padding: 40px;
  display: grid;
  place-items: center;
  min-height: min(420px, 55vh);
}

.shop-hero-img img {
  max-height: min(360px, 42vh);
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
}

.shop-panel h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.price-line {
  font-size: 18px;
  margin-bottom: 20px;
}

.price-line strong {
  font-size: 28px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.color-opt {
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  background: var(--dd-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.color-opt img {
  height: 56px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.color-opt span {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.color-opt.is-selected {
  border-color: var(--dd-blue);
  box-shadow: 0 0 0 2px rgba(62, 106, 225, 0.25);
}

.mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-toggle button {
  flex: 1;
  height: 40px;
  border-radius: var(--dd-radius-btn);
  border: 1px solid var(--dd-border);
  font-weight: 500;
  background: var(--dd-white);
}

.mode-toggle button.is-active {
  background: var(--dd-black);
  color: #fff;
  border-color: var(--dd-black);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qty-row button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--dd-border);
  font-size: 18px;
  background: var(--dd-white);
}

.qty-row strong {
  min-width: 28px;
  text-align: center;
  font-size: 18px;
}

.btn-block {
  width: 100%;
  min-width: 0;
}

.shop-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dd-muted);
  line-height: 1.5;
}

.legal-body,
.content-body {
  max-width: 760px;
}

.legal-body h2,
.content-body h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}

.legal-body p,
.content-body p,
.legal-body li,
.content-body li {
  color: var(--dd-text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-body ul,
.content-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-form,
.auth-form {
  max-width: 560px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--dd-muted);
}

.field input,
.field textarea,
.field select {
  height: 44px;
  border: 1px solid var(--dd-border);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--dd-black);
  background: var(--dd-light);
}

.field textarea {
  height: 140px;
  padding: 12px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-status {
  font-size: 14px;
  min-height: 1.2em;
}

.form-status.is-ok {
  color: #0a7a32;
}

.form-status.is-err {
  color: #b42318;
}

.method-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0 40px;
}

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

.method-card {
  background: var(--dd-light);
  border-radius: var(--dd-radius-card);
  padding: 28px;
}

.method-card .step {
  color: var(--dd-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.method-callout {
  background: #fff4f2;
  border: 1px solid #f0c7c0;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dd-black);
  margin-bottom: 8px;
}

.method-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #b42318;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

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

.knowledge-card {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  background: var(--dd-light);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.knowledge-card:hover {
  border-color: var(--dd-blue);
  box-shadow: 0 0 0 2px rgba(62, 106, 225, 0.12);
  color: inherit;
}

.knowledge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dd-blue);
  margin-bottom: 10px;
}

.knowledge-card h2 {
  font-size: 20px !important;
  margin-bottom: 8px !important;
  color: var(--dd-black);
}

.knowledge-card p {
  font-size: 14px !important;
  color: var(--dd-muted) !important;
  margin: 0 !important;
}

.fuckup-card {
  padding: 0;
  overflow: hidden;
}

.fuckup-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.fuckup-card .knowledge-tag,
.fuckup-card h2,
.fuckup-card p {
  padding-left: 18px;
  padding-right: 18px;
}

.fuckup-card .knowledge-tag {
  margin-top: 14px;
}

.fuckup-card h2 {
  margin-top: 0 !important;
}

.fuckup-card p {
  padding-bottom: 18px;
}

.article-hero {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 24px;
  background: #111;
}

.article-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dd-blue);
  margin-bottom: 8px;
}

.article-crumb {
  font-size: 13px;
  color: var(--dd-muted);
  margin-bottom: 16px;
}

.article-crumb a {
  color: var(--dd-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-meta {
  font-size: 13px;
  color: var(--dd-muted);
  margin: -8px 0 28px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  margin-top: 32px;
}

.article-body ol {
  margin: 12px 0 20px 22px;
  color: var(--dd-muted);
  line-height: 1.6;
}

.article-body ol li {
  margin-bottom: 8px;
}

.check-list {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 10px 12px 10px 36px;
  margin-bottom: 8px;
  background: var(--dd-light);
  border-radius: 10px;
  color: var(--dd-black) !important;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--dd-blue);
  border-radius: 4px;
}

.article-cta {
  margin: 36px 0 20px;
  padding: 22px;
  background: var(--dd-light);
  border-radius: 14px;
}

.article-cta p {
  margin-bottom: 14px !important;
  color: var(--dd-black) !important;
}

.article-next {
  margin-top: 28px;
  font-size: 14px;
  color: var(--dd-muted);
}

.article-next a {
  color: var(--dd-blue);
  font-weight: 600;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--dd-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.icon-btn {
  position: relative;
}

.nav-link.is-current {
  background: rgba(0, 0, 0, 0.06);
}

/* Checkout sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  justify-content: end;
}

.sheet-overlay[hidden] {
  display: none !important;
}

.sheet {
  width: min(440px, 100vw);
  height: 100%;
  height: 100dvh;
  background: #fff;
  padding: 20px 20px max(32px, env(safe-area-inset-bottom, 0px) + 16px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-header h2 {
  font-size: 22px;
}

.sheet-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  border-radius: 999px;
}

.sheet-close:hover {
  background: var(--dd-light);
}

.checkout-message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: #fef3f2;
  color: #b42318;
}

.checkout-message.is-info {
  background: #eff4ff;
  color: #175cd3;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dd-border);
  align-items: center;
}

.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--dd-light);
  border-radius: 8px;
}

.cart-row-meta strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.cart-row-meta > span {
  font-size: 13px;
  color: var(--dd-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--dd-border);
  background: var(--dd-white);
  color: var(--dd-black);
}

.cart-remove {
  width: auto !important;
  border: none !important;
  color: var(--dd-muted);
  font-size: 12px;
  text-decoration: underline;
  padding: 0 4px;
}

.cart-row-total {
  font-weight: 600;
  font-size: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--dd-muted);
  padding: 40px 12px;
}

.cart-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
}

.cart-promo-banner {
  font-size: 13px;
  font-weight: 600;
  color: #0a7a32;
  background: #eef8f0;
  border: 1px solid #c6e6cc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

/* ——— Sales performance UI ——— */
.sales-toast-host {
  position: fixed;
  left: 18px;
  bottom: 110px;
  z-index: 2300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(320px, calc(100vw - 36px));
  pointer-events: none;
}

.sales-toast {
  background: #fff;
  border: 1px solid var(--dd-border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s, transform 0.28s;
}

.sales-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.sales-toast.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.sales-toast strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dd-blue);
  margin-bottom: 4px;
}

.sales-toast span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dd-black);
}

.sales-toast small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--dd-muted);
}

.sales-ship-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  background: #fff;
  border-top: 1px solid var(--dd-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
}

body.has-ship-bar {
  padding-bottom: 72px;
}

body.dd-modal-open .sales-ship-bar,
body.menu-open .sales-ship-bar {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.sales-ship-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.sales-ship-bar-inner p {
  font-size: 13px;
  color: var(--dd-muted);
  grid-column: 1 / -1;
}

.sales-ship-bar-inner p strong {
  color: var(--dd-black);
}

.sales-ship-track {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.sales-ship-fill {
  height: 100%;
  width: 0;
  background: var(--dd-blue);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.sales-ship-fill.is-full {
  background: #0a7a32;
}

.sales-ship-cta {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.sales-shop-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2150;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--dd-border);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
}

.sales-shop-sticky-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.sales-shop-sticky-inner strong {
  display: block;
  font-size: 15px;
}

.sales-shop-sticky-inner span {
  font-size: 13px;
  color: var(--dd-muted);
}

.sales-shop-sticky .btn {
  height: 40px;
  min-width: 110px;
}

.sales-ship-countdown {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--dd-muted);
  width: 100%;
  flex-basis: 100%;
}

.sales-quiz-grid {
  display: grid;
  gap: 8px;
}

.sales-quiz-grid button {
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--dd-border);
  background: var(--dd-light);
  font-weight: 600;
  text-align: left;
  padding: 0 14px;
}

.sales-quiz-grid button:hover {
  border-color: var(--dd-blue);
  background: #fff;
}

.sales-pack-chip {
  position: fixed;
  right: 18px;
  top: calc(var(--dd-ribbon-h, 0px) + var(--dd-nav-h, 56px) + 12px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #171a20;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.sales-pack-chip strong {
  font-size: 13px;
}

.sales-pack-chip span {
  opacity: 0.8;
}

.sales-pack-chip:hover {
  color: #fff;
  transform: translateY(-1px);
}

body.dd-modal-open .sales-pack-chip,
body.menu-open .sales-pack-chip {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .sales-toast-host {
    left: 12px;
    right: 12px;
    bottom: 150px;
    max-width: none;
  }

  .sales-pack-chip {
    display: none;
  }

  .sales-ship-bar-inner {
    grid-template-columns: 1fr;
  }

  .sales-ship-cta {
    width: 100%;
  }
}

/* Spin wheel */
.wheel-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-weight: 700;
  line-height: 1.1;
}

.wheel-fab span {
  font-size: 14px;
}

.wheel-fab small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
}

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

body.dd-modal-open .wheel-fab,
body.menu-open .wheel-fab {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.wheel-card {
  width: min(440px, 100%);
  text-align: center;
}

.wheel-stage {
  position: relative;
  width: 320px;
  max-width: 100%;
  margin: 12px auto 16px;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #171a20;
  z-index: 2;
}

#wheelCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wheel-result {
  font-size: 14px;
  font-weight: 600;
  color: var(--dd-black);
  margin-bottom: 12px;
  line-height: 1.45;
}

.wheel-claim {
  text-align: left;
  margin-bottom: 12px;
}

.wheel-claim select,
.wheel-claim input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

@media (max-width: 600px) {
  .wheel-fab {
    left: 12px;
    bottom: 88px;
    width: 64px;
    height: 64px;
  }
}


.cart-keep {
  text-align: center;
  font-size: 13px;
  color: var(--dd-muted);
  text-decoration: underline;
}

.checkout-form-screen h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.checkout-form-screen .field {
  margin-bottom: 4px;
}

.form-order-summary {
  background: var(--dd-light);
  border-radius: 10px;
  padding: 14px;
  margin: 8px 0;
}

.form-line,
.form-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-total-row {
  font-weight: 700;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--dd-border);
}

.back-to-cart-btn {
  font-size: 14px;
  color: var(--dd-muted);
  text-align: center;
  padding: 8px;
}

.success-screen {
  text-align: center;
  padding: 24px 8px;
}

.success-screen h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.success-dl {
  text-align: left;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.success-dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--dd-border);
  padding-bottom: 8px;
}

.success-dl dt {
  color: var(--dd-muted);
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

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

  .page-main {
    padding: calc(var(--dd-nav-h) + var(--dd-ribbon-h, 0px) + 24px) 16px 72px;
  }

  .shop-hero-img {
    min-height: 280px;
    padding: 24px;
  }

  .shop-hero-img img {
    max-height: 240px;
  }

  .shop-urgency {
    font-size: 13px;
  }

  .sheet {
    width: 100vw;
  }

  .sheet-overlay {
    justify-content: stretch;
  }
}
