/* core/public/css/home.css — the storefront homepage.
 *
 * The 2022 Yogamize flow, generalised: full-bleed dark bands alternating with
 * light sections. Structure only — every colour is a theme variable, so the same
 * markup carries a charcoal-and-magenta brand and a sage-and-tan one without a
 * fork. Consumes /css/brand/theme.css; loaded after /css/site.css.
 */

.band { padding: 4.5rem 1.5rem; }

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.section-intro {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 3rem;
  color: var(--color-muted, #666);
}
.band .section-intro { color: var(--color-on-band-muted, rgba(255,255,255,0.62)); }

/* === Hero =============================================================== */

.hero-band { padding-block: 5rem 0; }
.hero-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent, #e91e63);
  margin: 0 0 1rem;
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.hero-sub { font-size: 1.05rem; max-width: 46ch; margin: 0 0 2rem; }
.hero-ctas { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hero-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.hero-moq { margin: 1.75rem 0 0; font-size: 0.85rem; letter-spacing: 0.02em; }
.hero-art img {
  width: 100%;
  border-radius: var(--radius-base, 10px);
  /* The hero image bleeds past the band's bottom edge, as in the 2022 flow. */
  margin-bottom: -2rem;
}

/* === Customize it ======================================================= */

.customize { padding: 4.5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.customize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.customize-card { text-align: center; }
.customize-thumb {
  display: block;
  background: #f2f2f4;
  border-radius: var(--radius-base, 10px);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}
.customize-thumb img { width: 100%; height: 100%; object-fit: cover; }
.customize-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}
.customize-moq { font-size: 0.8rem; color: var(--color-muted, #666); margin: 0 0 1rem; }

/* === Features =========================================================== */

.features-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
}
.features-col { display: flex; flex-direction: column; gap: 2.25rem; }
.features-layout > .features-col:first-child { text-align: right; }
.features-art img {
  width: 320px;
  border-radius: var(--radius-base, 10px);
  object-fit: cover;
}
.feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.feature-body { font-size: 0.9rem; line-height: 1.55; margin: 0; }
.features-cta { text-align: center; margin-top: 3rem; }

/* === Collections ======================================================== */

.collections { padding: 4.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.collection-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0 0 2.5rem;
}
.collection-tab {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-muted, #666);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}
.collection-tab:hover { color: var(--color-ink, #1a1a1a); }
.collection-tab.is-active {
  color: var(--color-ink, #1a1a1a);
  border-bottom-color: var(--color-accent, #e91e63);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem;
}
.collections-cta { text-align: center; margin-top: 3rem; }

/* === Gallery ============================================================ */

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item { margin: 0; scroll-snap-align: start; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-base, 10px);
}
.gallery-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-on-band-muted, rgba(255,255,255,0.62));
}

/* === Closing quote CTA ================================================== */

.quote-cta { text-align: center; }
.quote-cta .section-intro { margin-bottom: 2rem; }

/* === Narrow screens ===================================================== */

@media (max-width: 860px) {
  .hero-band-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-art img { margin-bottom: 0; }
  .features-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-layout > .features-col:first-child { text-align: left; }
  .features-art { display: flex; justify-content: center; }
  .features-art img { width: min(320px, 100%); }
  .band { padding: 3rem 1.25rem; }
}

/* Product-card price line — the unit price leads, the minimum sits under it. */
.card-price-unit { font-weight: 400; font-size: 0.82rem; color: var(--color-muted, #666); }
.card-price-moq {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--color-muted, #666);
  margin-top: 0.15rem;
}

/* === Dark header ========================================================
 * The header carries .band, so it takes the band surface and type colours
 * from the theme. These rules override the light defaults in site.css and
 * let a brand ship a reversed wordmark, which is the form most of these
 * marks were drawn in.
 * ====================================================================== */

.site-header.band {
  background: var(--color-band, #2e2e2e);
  border-bottom: 0;
  max-width: none;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}
.site-header.band > * { max-width: 1200px; }
.site-header.band .nav-link,
.site-header.band nav a {
  color: var(--color-on-band, #fff);
  font-size: 0.85rem;
}
.site-header.band .nav-link:hover,
.site-header.band nav a:hover { color: var(--color-accent, #ec2a76); }
.site-header.band .brand-logo img { max-height: 34px; }

/* The header is full-bleed but its contents stay on the page grid. */
.site-header.band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  max-width: none;
}

/* === Quote form ========================================================= */

.quote-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}
.quote-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
}
.quote-lede { font-size: 1.02rem; color: var(--color-muted, #666); margin: 0 0 2.25rem; }
.quote-context {
  border-left: 3px solid var(--color-accent, #ec2a76);
  padding: 0.6rem 0.9rem;
  background: #fafafa;
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
}
.quote-error {
  border: 1px solid #c3311a;
  background: #fff4f1;
  color: #8c2f14;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-base, 10px);
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.quote-form .field { margin-bottom: 1.15rem; }
.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
@media (max-width: 620px) { .quote-row { grid-template-columns: 1fr; gap: 0; } }

.quote-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.quote-form .opt { font-weight: 400; color: var(--color-muted, #888); }
.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #d8d8dc;
  border-radius: var(--radius-base, 10px);
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-ink, #1a1a1a);
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--color-primary, #8b2fd4);
  outline-offset: 1px;
  border-color: var(--color-primary, #8b2fd4);
}
.quote-form textarea { resize: vertical; min-height: 8rem; }
.quote-submit { margin-top: 0.75rem; }

.quote-thanks .quote-lede { margin-bottom: 2rem; }

.cta-quote {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ececef;
  font-size: 0.9rem;
  color: var(--color-muted, #666);
}
.cta-quote a { color: var(--color-primary-dark, #6a1fa8); font-weight: 600; }

/* === Markdown pages (about, faq) ======================================== */

.prose-page { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 4.5rem; }
.prose-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin: 0 0 1.5rem; }
.prose { font-size: 1.02rem; line-height: 1.7; color: var(--color-muted, #555); }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; color: var(--color-ink, #1a1a1a); }
.prose h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; color: var(--color-ink, #1a1a1a); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--color-primary-dark, #6a1fa8); }

/* FAQ, rendered from structured copy rather than prose. */
.faq-list { margin: 0; }
.faq-entry { border-top: 1px solid #ececef; padding: 1.25rem 0; }
.faq-entry:last-child { border-bottom: 1px solid #ececef; }
.faq-q { font-weight: 700; font-size: 1rem; margin: 0 0 0.4rem; color: var(--color-ink, #1a1a1a); }
.faq-a { margin: 0; font-size: 0.97rem; line-height: 1.65; color: var(--color-muted, #555); }

/* === Checkout ===========================================================
 * These pages previously carried Tailwind utility class names against a
 * stylesheet that has no Tailwind, so even once the layout was fixed they
 * would have rendered unstyled. Written in the site's own idiom instead.
 * ====================================================================== */

.checkout { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.checkout-title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; margin: 0 0 1.25rem; }

.checkout-steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.checkout-steps li {
  padding: 0.4rem 0.85rem;
  border: 1px solid #e3e3e7;
  border-radius: 999px;
  color: #9a9aa2;
}
.checkout-steps li.is-current {
  border-color: var(--color-ink, #1a1a1a);
  color: var(--color-ink, #1a1a1a);
  font-weight: 700;
}
.checkout-steps li.is-done { border-color: #cfe6d4; color: #3f6b4a; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

.checkout-main { display: flex; flex-direction: column; gap: 2rem; }
.checkout-section { }
.checkout-heading { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }

.checkout-form { display: flex; flex-direction: column; gap: 0.9rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.cf-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .cf-row, .cf-row-3 { grid-template-columns: 1fr; } }

.cf-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.cf-field .opt { font-weight: 400; color: #9a9aa2; }
.cf-field input,
.cf-field select {
  width: 100%;
  border: 1px solid #d8d8dc;
  border-radius: var(--radius-base, 10px);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-ink, #1a1a1a);
}
.cf-field input:focus,
.cf-field select:focus {
  outline: 2px solid var(--color-primary, #8b2fd4);
  outline-offset: 1px;
  border-color: var(--color-primary, #8b2fd4);
}

.cf-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #d8d8dc;
  border-radius: var(--radius-base, 10px);
  padding: 0.9rem 1rem;
  cursor: pointer;
}
.cf-option:hover { border-color: var(--color-primary, #8b2fd4); }
.cf-option-body { flex: 1; display: flex; flex-direction: column; }
.cf-option-name { font-weight: 700; font-size: 0.95rem; }
.cf-option-note { font-size: 0.82rem; color: #777; }
.cf-option-price { font-weight: 700; font-variant-numeric: tabular-nums; }

.cf-exempt { padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cf-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }

.cf-suggest {
  border: 1px solid #cfe0f0;
  background: #f3f8fc;
  border-radius: var(--radius-base, 10px);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
.cf-suggest-title { font-weight: 700; margin: 0 0 0.35rem; }
.cf-suggest-use {
  margin-top: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: #2b6cb0;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Payment ------------------------------------------------------------ */

.cf-pay { display: flex; flex-direction: column; gap: 1.1rem; }
.cf-wallet { min-height: 3rem; }
.cf-or {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9aa2;
}
.cf-or::before, .cf-or::after { content: ""; flex: 1; height: 1px; background: #e3e3e7; }

.cf-card { display: flex; flex-direction: column; gap: 0.9rem; }
/* PayPal injects an iframe into these; they need their own height. */
.cf-hosted {
  height: 2.7rem;
  border: 1px solid #d8d8dc;
  border-radius: var(--radius-base, 10px);
  padding: 0 0.6rem;
  background: #fff;
}
.cf-message { margin: 0; font-size: 0.88rem; }
.cf-message.is-error { color: #b72404; }
.cf-submit { width: 100%; justify-content: center; text-align: center; }
.cf-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.cf-unavailable {
  border: 1px solid #e8d3b0;
  background: #fbf4e9;
  color: #6b4a14;
  border-radius: var(--radius-base, 10px);
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
}
.cf-unavailable-title { font-weight: 700; margin: 0 0 0.35rem; }

/* Sections not yet reachable on the single-page variant. */
.is-pending { opacity: 0.45; pointer-events: none; }

/* --- Summary ------------------------------------------------------------ */

.checkout-summary {
  border: 1px solid #e3e3e7;
  border-radius: var(--radius-base, 10px);
  background: #fafafa;
  padding: 1.25rem 1.35rem;
  position: sticky;
  top: 1.5rem;
}
.summary-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.9rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: #555;
}
.summary-num { font-variant-numeric: tabular-nums; }
.summary-total {
  border-top: 1px solid #e3e3e7;
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink, #1a1a1a);
}

/* === The design tool ==================================================== */

.designer { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.designer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.designer-eyebrow {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #ec2a76);
  margin: 0 0 0.3rem;
}
.designer-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin: 0; }
.designer-back { font-size: 0.88rem; color: var(--color-muted, #666); }

.designer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .designer-layout { grid-template-columns: 1fr; } }

.designer-stage {
  border: 1px solid #e3e3e7;
  border-radius: var(--radius-base, 10px);
  background: #fafafa;
  padding: 1rem;
}
#design-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-base, 10px);
  touch-action: none;   /* dragging the artwork must not scroll the page */
  cursor: grab;
}
#design-canvas:active { cursor: grabbing; }
.designer-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted, #777);
  text-align: center;
}

.designer-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.designer-signin {
  border: 1px solid #e8d3b0;
  background: #fbf4e9;
  color: #6b4a14;
  border-radius: var(--radius-base, 10px);
  padding: 0.8rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.dp-block {
  border: 1px solid #e3e3e7;
  border-radius: var(--radius-base, 10px);
  padding: 1.1rem 1.15rem;
}
.dp-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  color: var(--color-ink, #1a1a1a);
}

.dp-upload {
  display: block;
  border: 1px dashed #c9c9d0;
  border-radius: var(--radius-base, 10px);
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  background: #fcfcfd;
}
.dp-upload:hover { border-color: var(--color-primary, #8b2fd4); }
.dp-upload-label { display: block; font-weight: 700; font-size: 0.92rem; }
.dp-upload-note { display: block; font-size: 0.78rem; color: #9a9aa2; margin-top: 0.25rem; }

.dp-status { margin: 0.7rem 0 0; font-size: 0.86rem; color: var(--color-muted, #666); }
.dp-status.is-error { color: #b72404; }

.dp-library { margin-top: 1rem; }
.dp-library-title { font-size: 0.78rem; color: #9a9aa2; margin: 0 0 0.5rem; }
.dp-library-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dp-library-item {
  border: 1px solid #e3e3e7;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.dp-library-item:hover { border-color: var(--color-primary, #8b2fd4); }

.dp-range, .dp-field {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.dp-range input[type="range"] { width: 100%; margin-top: 0.35rem; }
.dp-range input:disabled { opacity: 0.4; }
.dp-field select, .dp-field input {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #d8d8dc;
  border-radius: var(--radius-base, 10px);
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  background: #fff;
}
.dp-note { font-size: 0.78rem; color: #9a9aa2; margin: 0; }

.dp-add { width: 100%; justify-content: center; text-align: center; margin-top: 0.4rem; }
.dp-add:disabled { opacity: 0.45; cursor: not-allowed; }
.dp-contract {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #9a9aa2;
}
