/* Shared by the visual editor canvas and the live website. */
.cb-page {
  --cb-primary: var(--site-primary, #701689);
  --cb-secondary: var(--site-secondary, #aa22d1);
  --cb-accent: var(--site-accent, #f72585);
  --cb-background: var(--site-background, #fff9ff);
  --cb-surface: var(--site-surface, #ffffff);
  --cb-text: var(--site-text, #2b0036);
  --cb-muted: var(--site-muted, #74567c);
  --cb-border: var(--site-border, #efd8f3);
  --cb-font-display: var(--site-font-display, "Quicksand", "Segoe UI", sans-serif);
  --cb-font-body: var(--site-font-body, "Nunito", "Segoe UI", sans-serif);
  width: 100%;
  min-height: 50vh;
  overflow-x: clip;
  background: var(--cb-background);
  color: var(--cb-text);
  font-family: var(--cb-font-body);
  font-size: var(--site-base-font-size, 16px);
  line-height: var(--site-line-height, 1.65);
}

/* Non-editable site chrome shown around the editor canvas for true context. */
.cb-site-preview-header,
.cb-site-preview-footer { pointer-events: none; font-family: var(--site-font-body, "Nunito", "Segoe UI", sans-serif); }
.cb-site-preview-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--site-border,#efd8f3); background: color-mix(in srgb,var(--site-surface,#fff) 94%,transparent); color: var(--site-text,#2b0036); box-shadow: 0 2px 10px rgba(43,0,54,.07); }
.cb-site-preview-nav { display: flex; max-width: var(--site-content-width,1200px); min-height: 65px; align-items: center; justify-content: space-between; gap: 20px; margin: auto; padding: 10px 16px; }
.cb-site-preview-brand { display: flex; align-items: center; gap: 10px; }
.cb-site-preview-brand > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 16px; background: linear-gradient(135deg,var(--site-accent,#f72585),var(--site-primary,#701689)); color: white; font-size: 21px; }
.cb-site-preview-brand > img { display: block; width: auto; max-width: 180px; height: 48px; object-fit: contain; }
.cb-site-preview-brand > img + div { display: none; }
.cb-site-preview-brand div { display: flex; flex-direction: column; line-height: 1.05; }
.cb-site-preview-brand strong { color: var(--site-primary,#701689); font-family: var(--site-font-display,"Quicksand",sans-serif); font-size: 18px; }
.cb-site-preview-brand small { margin-top: 4px; color: var(--site-accent,#f72585); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cb-site-preview-nav nav { display: flex; align-items: center; gap: 5px; }
.cb-site-preview-nav nav span { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.cb-site-preview-menu { display: none; color: var(--site-primary,#701689); font-size: 24px; }
.cb-site-preview-footer { margin-top: 80px; background: linear-gradient(135deg,var(--site-accent,#f72585),var(--site-primary,#701689)); color: white; }
.cb-site-preview-footer > div { display: grid; max-width: var(--site-content-width,1200px); grid-template-columns: 1.3fr .7fr 1fr; gap: 32px; margin: auto; padding: 44px 16px; }
.cb-site-preview-footer h3,
.cb-site-preview-footer h4 { margin: 0 0 12px; color: inherit; font-family: var(--site-font-display,"Quicksand",sans-serif); }
.cb-site-preview-footer p { margin: 0; font-size: 14px; line-height: 1.65; }
.cb-site-preview-footer > small { display: block; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.2); text-align: center; }

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

.cb-page img,
.cb-page video,
.cb-page iframe {
  max-width: 100%;
}

.cb-section {
  position: relative;
  width: 100%;
  min-height: 80px;
  padding: var(--site-section-spacing, 4rem) 1.25rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cb-container {
  position: relative;
  width: 100%;
  max-width: var(--site-content-width, 1200px);
  min-height: 24px;
  margin-right: auto;
  margin-left: auto;
}

.cb-container--narrow { max-width: var(--site-narrow-width, 800px); }

.cb-heading {
  margin: 0 0 0.65em;
  color: inherit;
  font-family: var(--cb-font-display);
  font-weight: var(--site-heading-weight, 700);
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

h1.cb-heading { font-size: clamp(2.5rem, 6vw, 5.25rem); }
h2.cb-heading { font-size: clamp(2rem, 4vw, 3.4rem); }
h3.cb-heading { font-size: clamp(1.35rem, 2.3vw, 2rem); }
h4.cb-heading { font-size: 1.25rem; }
.cb-heading--display { color: var(--cb-primary); }
.cb-heading--display span { color: var(--cb-accent); }

.cb-text {
  margin: 0 0 1.25rem;
  color: inherit;
  font-family: var(--cb-font-body);
  font-size: var(--site-base-font-size, 1rem);
  line-height: var(--site-line-height, 1.7);
}

.cb-text--lead {
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.cb-rich-text {
  overflow-wrap: anywhere;
}

.cb-rich-text > :first-child { margin-top: 0; }
.cb-rich-text > :last-child { margin-bottom: 0; }
.cb-rich-text h1,
.cb-rich-text h2,
.cb-rich-text h3,
.cb-rich-text h4,
.cb-rich-text h5,
.cb-rich-text h6 {
  margin: 1.25em 0 0.45em;
  color: var(--cb-primary);
  font-family: var(--cb-font-display);
  font-weight: var(--site-heading-weight, 700);
  line-height: 1.2;
}
.cb-rich-text h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.cb-rich-text h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.cb-rich-text h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.cb-rich-text p { margin: 0 0 1.15rem; }
.cb-rich-text a { color: var(--cb-accent); text-decoration: underline; text-underline-offset: 0.16em; }
.cb-rich-text ul,
.cb-rich-text ol { margin: 1rem 0; padding-left: 1.6rem; }
.cb-rich-text li { margin: 0.35rem 0; }
.cb-rich-text blockquote,
.cb-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--cb-accent);
  border-radius: 0 18px 18px 0;
  background: color-mix(in srgb, var(--cb-accent) 9%, var(--cb-surface));
  font-size: 1.15rem;
  font-style: italic;
}
.cb-rich-text pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 14px;
  background: #2b0036;
  color: white;
}
.cb-rich-text code:not(pre code) {
  padding: 0.12rem 0.35rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--cb-primary) 9%, var(--cb-surface));
}

.cb-columns,
.cb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cb-column,
.cb-stack,
.cb-row,
.cb-card {
  position: relative;
  min-width: 0;
  min-height: 48px;
}

.cb-column { width: 100%; }
.cb-stack { display: flex; flex-direction: column; gap: 1rem; }
.cb-row { display: flex; flex-flow: row wrap; align-items: center; gap: 1rem; }

.cb-card {
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--cb-border);
  border-radius: var(--site-radius, 24px);
  background: var(--cb-surface);
  box-shadow: 0 14px 42px -30px rgba(79, 13, 98, 0.65);
}

.cb-card:hover { box-shadow: 0 18px 48px -28px rgba(79, 13, 98, 0.72); }

.cb-button-wrap { margin: 1rem 0; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.cb-actions .cb-button-wrap { margin: 0; }

.cb-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--site-button-radius, 999px);
  background: linear-gradient(135deg, var(--cb-accent), var(--cb-primary));
  color: #fff;
  font-family: var(--cb-font-display);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 25px -16px rgba(112, 22, 137, 0.8);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cb-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(112, 22, 137, 0.85); }
.cb-button--secondary { background: var(--cb-secondary); }
.cb-button--outline { border-color: var(--cb-primary); background: transparent; color: var(--cb-primary); }
.cb-button--ghost { border-color: transparent; background: transparent; color: var(--cb-accent); box-shadow: none; }

.cb-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.cb-badge-wrap { margin: 0 0 0.75rem; }
.cb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cb-accent) 9%, var(--cb-surface));
  color: var(--cb-accent);
  font-family: var(--cb-font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cb-divider {
  width: 100%;
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid var(--cb-border);
}
.cb-spacer { width: 100%; height: 3rem; }

.cb-image-frame {
  position: relative;
  width: 100%;
  margin: 1.25rem 0;
}
.cb-image-frame > a { display: inline-block; max-width: 100%; }
.cb-image {
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: var(--site-radius, 24px);
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 18px 46px -28px rgba(79, 13, 98, 0.7);
}
.cb-image-frame figcaption { margin-top: 0.6rem; color: var(--cb-muted); font-size: 0.88rem; }

[data-cb-mobile-fluid="true"] { max-width: 100%; }

.cb-video,
.cb-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--site-radius, 24px);
  background: color-mix(in srgb, var(--cb-primary) 12%, var(--cb-surface));
  aspect-ratio: 16 / 9;
}
.cb-video iframe,
.cb-video video,
.cb-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.cb-table-wrap { width: 100%; overflow-x: auto; border-radius: var(--site-radius, 24px); border: 1px solid var(--cb-border); }
.cb-table { width: 100%; border-collapse: collapse; background: var(--cb-surface); }
.cb-table th,
.cb-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--cb-border); text-align: left; }
.cb-table th { background: color-mix(in srgb, var(--cb-primary) 10%, var(--cb-surface)); color: var(--cb-primary); font-family: var(--cb-font-display); }
.cb-table tr:last-child td { border-bottom: 0; }

.cb-data-table { width: 100%; margin: 1.5rem 0; }
.cb-data-table__toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--cb-border);
  border-radius: var(--site-radius, 24px);
  background: var(--cb-surface);
}
.cb-data-table__toolbar label { display: grid; flex: 1; gap: 0.32rem; color: var(--cb-text); font-size: 0.82rem; font-weight: 800; }
.cb-data-table__toolbar input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--cb-border);
  border-radius: 10px;
  background: var(--cb-background);
  color: var(--cb-text);
  font: inherit;
  outline: 0;
}
.cb-data-table__toolbar input:focus { border-color: var(--cb-primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--cb-primary) 15%,transparent); }
.cb-data-table__toolbar [data-cb-table-count] { flex: 0 0 auto; padding-bottom: 0.65rem; color: var(--cb-muted); font-size: 0.85rem; font-weight: 800; }
.cb-data-table [data-cb-sortable-column] { position: relative; padding-right: 2.2rem; cursor: pointer; user-select: none; }
.cb-data-table [data-cb-sortable-column] b { position: absolute; top: 50%; right: 0.8rem; opacity: 0.45; font-family: sans-serif; transform: translateY(-50%); }
.cb-data-table [data-cb-sortable-column][aria-sort="ascending"] b,
.cb-data-table [data-cb-sortable-column][aria-sort="descending"] b { opacity: 1; }
.cb-data-table [data-cb-sortable-column][aria-sort="ascending"] b { font-size: 0; }
.cb-data-table [data-cb-sortable-column][aria-sort="ascending"] b::after { font-size: 0.9rem; content: "↑"; }
.cb-data-table [data-cb-sortable-column][aria-sort="descending"] b { font-size: 0; }
.cb-data-table [data-cb-sortable-column][aria-sort="descending"] b::after { font-size: 0.9rem; content: "↓"; }
.cb-data-table tbody tr:nth-child(even) { background: color-mix(in srgb,var(--cb-primary) 4%,var(--cb-surface)); }
.cb-data-table tbody tr:hover { background: color-mix(in srgb,var(--cb-accent) 8%,var(--cb-surface)); }
.cb-data-table__source { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.7rem; color: var(--cb-muted); font-size: 0.82rem; }
.cb-data-table__source a { color: var(--cb-primary); font-weight: 800; }

.cb-review { position: relative; }
.cb-review__stars { margin-bottom: 0.6rem; color: #f3a712; font-size: 1.2rem; letter-spacing: 0.12em; }
.cb-review__author { margin-top: 1rem; color: var(--cb-primary); font-family: var(--cb-font-display); font-weight: 700; }

.cb-icon-text { display: flex; align-items: flex-start; gap: 1rem; }
.cb-feature-icon {
  display: inline-grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--site-radius, 24px);
  background: color-mix(in srgb, var(--cb-accent) 9%, var(--cb-surface));
  font-size: 1.65rem;
}

.cb-hero {
  display: flex;
  min-height: min(720px, 82vh);
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb,var(--cb-accent) 13%,var(--cb-surface)), color-mix(in srgb,var(--cb-secondary) 10%,var(--cb-surface)) 52%, color-mix(in srgb,var(--cb-primary) 7%,var(--cb-surface)));
}
.cb-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb,var(--cb-accent) 23%,transparent), transparent 70%);
  content: "";
  pointer-events: none;
}
.cb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr); align-items: center; gap: 3rem; }
.cb-yarn-art { position: relative; z-index: 1; font-size: clamp(9rem, 20vw, 17rem); line-height: 1; text-align: center; filter: drop-shadow(0 20px 30px rgba(112,22,137,.22)); }
.cb-social-proof { margin: 1rem 0 0; color: var(--cb-muted); font-weight: 700; }

.cb-cta {
  overflow: hidden;
  background: linear-gradient(135deg, var(--cb-accent), var(--cb-primary));
  color: white;
  text-align: center;
}
.cb-cta .cb-text--lead { margin-right: auto; margin-left: auto; }

.cb-gallery-grid .cb-image-frame { height: 100%; margin: 0; }
.cb-gallery-grid .cb-image { height: 100%; min-height: 260px; }

.cb-carousel {
  display: flex;
  width: 100%;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cb-secondary) color-mix(in srgb,var(--cb-secondary) 10%,var(--cb-surface));
}
.cb-carousel > * { min-width: min(82vw, 430px); scroll-snap-align: start; }

.cb-video-file video {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: var(--site-radius, 24px);
  background: #18021e;
  object-fit: contain;
}
.cb-video-file figcaption { margin-top: 0.55rem; color: var(--cb-muted); font-size: 0.9rem; text-align: center; }
.cb-presentation {
  width: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb,var(--cb-primary) 18%,transparent);
  border-radius: var(--site-radius, 24px);
  background: #18021e;
  box-shadow: 0 16px 42px rgba(43,0,54,.18);
}
.cb-presentation__viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #18021e; }
.cb-presentation__slide { display: none; width: 100%; height: 100%; margin: 0; }
.cb-presentation__slide.is-active { display: block; }
.cb-presentation__slide .cb-image { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: contain; box-shadow: none; }
.cb-presentation__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.75rem; background: var(--cb-surface); color: var(--cb-text); }
.cb-presentation__controls button { min-height: 40px; padding: 0.55rem 0.9rem; border: 0; border-radius: var(--site-button-radius, 999px); background: var(--cb-primary); color: white; font: 800 0.85rem/1 var(--cb-font-body); cursor: pointer; }
.cb-presentation__controls span { min-width: 4.5rem; text-align: center; font-weight: 800; }
.cb-presentation__download { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; background: color-mix(in srgb,var(--cb-primary) 7%,var(--cb-surface)); color: var(--cb-text); }
.cb-presentation__download a { color: var(--cb-primary); font-weight: 800; }
.cb-presentation--office iframe { display: block; width: 100%; height: min(74vh,800px); min-height: 520px; border: 0; background: white; }
.cb-document-viewer {
  overflow: hidden;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--cb-primary) 18%, transparent);
  border-radius: var(--site-radius, 24px);
  background: var(--cb-surface);
  box-shadow: 0 12px 34px rgba(43,0,54,.12);
}
.cb-document-viewer iframe { display: block; width: 100%; height: min(72vh, 780px); min-height: 440px; border: 0; background: white; }
.cb-document-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; }
.cb-document-actions strong { color: var(--cb-text); }
.cb-document-actions a,
.cb-download-card > a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0.65rem 1rem; border-radius: var(--site-button-radius, 999px); background: var(--cb-primary); color: white; font-weight: 800; text-decoration: none; }
.cb-download-card { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid color-mix(in srgb, var(--cb-primary) 20%, transparent); border-radius: var(--site-radius, 24px); background: var(--cb-surface); box-shadow: 0 10px 28px rgba(43,0,54,.1); }
.cb-download-card > div { display: grid; gap: 0.18rem; }
.cb-download-card strong { color: var(--cb-text); font-family: var(--cb-font-display); }
.cb-download-card span { color: var(--cb-muted); font-size: 0.85rem; }

.cb-marquee {
  width: 100%;
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--cb-primary);
  color: white;
  font-family: var(--cb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}
.cb-marquee__track { display: inline-flex; min-width: max-content; gap: 3rem; padding-left: 100%; animation: cb-marquee 18s linear infinite; }
@keyframes cb-marquee { to { transform: translateX(-100%); } }

/* Persistent visual-builder background layers. These rules are shared by the
   editing canvas and the public site, so saved changes appear identically. */
[data-cb-background="true"] {
  position: relative;
  isolation: isolate;
}
[data-cb-background-layer="true"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  pointer-events: none;
}
[data-cb-background-video="true"] {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center center;
}
[data-cb-background-pattern="true"] { z-index: -2; }
[data-cb-background-overlay="true"] { z-index: -1; }

[data-cb-background-animation="gradient-flow"] {
  background-size: 260% 260% !important;
  animation: cb-background-gradient-flow 10s ease infinite;
}
[data-cb-background-animation="gentle-drift"] {
  animation: cb-background-drift 16s ease-in-out infinite alternate;
}
[data-cb-background-animation="gentle-drift"] > [data-cb-background-pattern="true"] {
  animation: cb-pattern-drift 18s linear infinite;
}
[data-cb-background-animation="video-zoom"] > [data-cb-background-video="true"] {
  animation: cb-background-video-zoom 18s ease-in-out infinite alternate;
}
[data-cb-background-animation="overlay-pulse"] > [data-cb-background-overlay="true"] {
  animation: cb-background-overlay-pulse 5s ease-in-out infinite alternate;
}
@keyframes cb-background-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes cb-background-drift {
  from { background-position: 45% 45%; }
  to { background-position: 58% 55%; }
}
@keyframes cb-pattern-drift {
  from { background-position: 0 0; }
  to { background-position: 120px 80px; }
}
@keyframes cb-background-video-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@keyframes cb-background-overlay-pulse {
  from { filter: saturate(.92) brightness(.94); }
  to { filter: saturate(1.12) brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  [data-cb-background-animation] { animation: none !important; }
  [data-cb-background-animation] > [data-cb-background-layer="true"] { animation: none !important; }
}

.cb-faq { border-top: 1px solid var(--cb-border); }
.cb-faq details { padding: 1rem 0; border-bottom: 1px solid var(--cb-border); }
.cb-faq summary { cursor: pointer; color: var(--cb-primary); font-family: var(--cb-font-display); font-size: 1.1rem; font-weight: 700; }
.cb-faq details > div { padding-top: 0.75rem; }

.cb-dynamic { min-height: 120px; }
.cb-editor-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 1.5rem;
  border: 2px dashed color-mix(in srgb, var(--cb-primary) 30%, var(--cb-border));
  border-radius: var(--site-radius, 24px);
  background: color-mix(in srgb, var(--cb-surface) 82%, transparent);
  color: var(--cb-primary);
  font-family: var(--cb-font-display);
  font-weight: 700;
  text-align: center;
}
.cb-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cb-live-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--cb-border); border-radius: var(--site-radius, 24px); background: var(--cb-surface); box-shadow: 0 14px 36px -28px rgba(79,13,98,.65); }
.cb-live-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cb-live-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem; }
.cb-live-card__body h3 { margin: 0 0 0.5rem; color: var(--cb-primary); font-family: var(--cb-font-display); }
.cb-live-card__body p { margin: 0 0 1rem; }
.cb-live-card__body a { margin-top: auto; color: var(--cb-accent); font-weight: 700; }
.cb-product-card__image { position: relative; display: block; overflow: hidden; }
.cb-product-card__image img { transition: transform .3s ease; }
.cb-product-card:hover .cb-product-card__image img { transform: scale(1.035); }
.cb-product-card__flag { position: absolute; top: .8rem; left: .8rem; padding: .4rem .65rem; border-radius: 999px; background: linear-gradient(135deg,var(--cb-accent),var(--cb-primary)); color: #fff; font-size: .72rem; font-weight: 900; box-shadow: 0 8px 20px -12px rgba(43,0,54,.8); }
.cb-product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .5rem; }
.cb-product-card__price { color: var(--cb-primary); font-family: var(--cb-font-display); font-size: 1.1rem; font-weight: 900; }
.cb-product-card__price s { color: var(--cb-muted); font-size: .78em; font-weight: 600; }
.cb-product-card__button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: .55rem .85rem; border-radius: var(--site-button-radius,999px); background: var(--cb-primary); color: #fff !important; font-size: .78rem; text-decoration: none; }
.cb-social-feed { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.cb-social-feed a { display: inline-flex; min-height: 46px; align-items: center; gap: .55rem; padding: .65rem 1rem; border: 1px solid var(--cb-border); border-radius: 999px; background: var(--cb-surface); color: var(--cb-primary); text-decoration: none; box-shadow: 0 10px 26px -22px rgba(43,0,54,.8); transition: transform .2s ease,border-color .2s ease; }
.cb-social-feed a:hover { transform: translateY(-2px); border-color: var(--cb-accent); }
.cb-social-feed a > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--cb-accent) 14%,var(--cb-surface)); font-weight: 900; }
.cb-live-gallery { columns: 3 260px; column-gap: 1rem; }
.cb-live-gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.cb-live-gallery img { display: block; width: 100%; border-radius: var(--site-radius, 24px); }

/* Reusable forms are generated from the selected Studio form definition. */
.cb-runtime-form {
  width: 100%;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: clamp(1.2rem, 3vw, 2.25rem);
  border: 1px solid var(--cb-form-border, var(--cb-border));
  border-radius: var(--cb-form-radius, var(--site-radius, 24px));
  background: var(--cb-form-background, var(--cb-surface));
  color: var(--cb-form-text, var(--cb-text));
  box-shadow: 0 18px 50px -38px rgba(43,0,54,.55);
}
.cb-runtime-form--full { max-width: none; }
.cb-runtime-form--wide { max-width: 1200px; }
.cb-runtime-form--standard { max-width: 960px; }
.cb-runtime-form--narrow { max-width: 680px; }
.cb-runtime-form__header { margin-bottom: 1.5rem; }
.cb-runtime-form__header h2 { margin: 0; color: var(--cb-form-accent, #701689); font-family: var(--cb-font-display); font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.15; }
.cb-runtime-form__header p { max-width: 65ch; margin: .55rem 0 0; color: inherit; opacity: .76; }
.cb-runtime-form__fields { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1.1rem; }
.cb-runtime-form--stacked .cb-runtime-form__fields { grid-template-columns: 1fr; }
.cb-runtime-form__width-full { grid-column: 1 / -1; }
.cb-runtime-form__width-half { grid-column: span 3; }
.cb-runtime-form__width-third { grid-column: span 2; }
.cb-runtime-form--stacked .cb-runtime-form__field,
.cb-runtime-form--stacked .cb-runtime-form__static { grid-column: 1; }
.cb-runtime-form__field { display: grid; min-width: 0; gap: .4rem; margin: 0; padding: 0; border: 0; }
.cb-runtime-form__label,
.cb-runtime-form__field legend { color: var(--cb-form-text, #2b0036); font-weight: 800; }
.cb-runtime-form__label b { color: var(--cb-form-accent, #701689); }
.cb-runtime-form__field > input:not([type="checkbox"]):not([type="radio"]),
.cb-runtime-form__field > textarea,
.cb-runtime-form__field > select {
  width: 100%;
  min-height: 48px;
  padding: .75rem .85rem;
  border: 2px solid var(--cb-form-border, #eaddef);
  border-radius: max(8px, calc(var(--cb-form-radius, 18px) * .58));
  outline: 0;
  background: var(--cb-form-field, #fff9ff);
  color: var(--cb-form-text, #2b0036);
  font: inherit;
}
.cb-runtime-form__field > textarea { min-height: 140px; resize: vertical; }
.cb-runtime-form__field > input:focus,
.cb-runtime-form__field > textarea:focus,
.cb-runtime-form__field > select:focus { border-color: var(--cb-form-accent, #701689); box-shadow: 0 0 0 4px color-mix(in srgb,var(--cb-form-accent,#701689) 13%,transparent); }
.cb-runtime-form__field .is-invalid { border-color: #d92d20 !important; }
.cb-runtime-form__choices { align-content: start; }
.cb-runtime-form__choices legend { margin-bottom: .4rem; }
.cb-runtime-form__choices > label,
.cb-runtime-form__consent > span { display: flex; align-items: flex-start; gap: .55rem; margin: .18rem 0; font-weight: 650; }
.cb-runtime-form__choices input,
.cb-runtime-form__consent input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .15rem; accent-color: var(--cb-form-accent, #701689); }
.cb-runtime-form__help { color: inherit; font-size: .8rem; opacity: .66; }
.cb-runtime-form__error { min-height: .95rem; color: #b42318; font-size: .78rem; font-weight: 700; }
.cb-runtime-form__static h3 { margin: .25rem 0; color: var(--cb-form-accent, #701689); font-family: var(--cb-font-display); font-size: 1.3rem; }
.cb-runtime-form__static p { margin: .25rem 0; }
.cb-runtime-form__captcha { min-height: 65px; margin-top: 1.25rem; overflow-x: auto; overflow-y: hidden; }
.cb-runtime-form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.35rem; }
.cb-runtime-form__actions button { min-height: 48px; padding: .75rem 1.35rem; border: 2px solid var(--cb-form-accent, #701689); border-radius: max(9px, calc(var(--cb-form-radius, 18px) * .65)); background: var(--cb-form-accent, #701689); color: #fff; cursor: pointer; font: 800 1rem/1 var(--cb-font-display); }
.cb-runtime-form--button-outline .cb-runtime-form__actions button { background: transparent; color: var(--cb-form-accent, #701689); }
.cb-runtime-form__actions button:disabled { cursor: wait; opacity: .55; }
.cb-runtime-form__status { flex: 1; min-width: 200px; font-size: .9rem; font-weight: 700; }
.cb-runtime-form__status.is-success { color: #067647; }
.cb-runtime-form__status.is-error { color: #b42318; }
.cb-runtime-form__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.cb-post-hero { padding-bottom: 2rem; background: linear-gradient(180deg, #fff0fa, var(--cb-background)); }
.cb-post-meta { margin: 0.5rem 0 1.5rem; color: var(--cb-muted); font-weight: 700; }

/* The editor uses these empty-state outlines only while GrapesJS is active. */
body.gjs-dashed .cb-section { outline: 1px dashed rgba(112, 22, 137, 0.35); outline-offset: -1px; }
body.gjs-dashed .cb-container,
body.gjs-dashed .cb-column,
body.gjs-dashed .cb-card { min-height: 56px; outline: 1px dashed rgba(247, 37, 133, 0.35); outline-offset: -3px; }

/* Direct manipulation control injected only inside the visual editor canvas. */
body.gjs-dashed .cb-image-rotate-control {
  position: fixed;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -100%);
  pointer-events: none;
  color: #701689;
  font-family: "Nunito", "Segoe UI", sans-serif;
}
body.gjs-dashed .cb-image-rotate-control.is-below {
  flex-direction: column-reverse;
  transform: translate(-50%, 0);
}
body.gjs-dashed .cb-image-rotate-control > span {
  display: block;
  width: 2px;
  height: 20px;
  background: #aa22d1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7);
}
body.gjs-dashed .cb-image-rotate-control button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 2px solid #aa22d1;
  border-radius: 50%;
  outline: 3px solid rgba(255,255,255,.9);
  background: white;
  color: #701689;
  box-shadow: 0 4px 14px rgba(43,0,54,.24);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  font: 800 21px/1 "Nunito", "Segoe UI", sans-serif;
}
body.gjs-dashed .cb-image-rotate-control button:hover,
body.gjs-dashed .cb-image-rotate-control button.is-rotating {
  background: #701689;
  color: white;
}
body.gjs-dashed .cb-image-rotate-control button.is-rotating { cursor: grabbing; }
body.gjs-dashed .cb-image-rotate-control output {
  position: absolute;
  top: 3px;
  left: calc(50% + 23px);
  min-width: 44px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #2b0036;
  color: white;
  box-shadow: 0 3px 10px rgba(43,0,54,.2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
body.gjs-dashed .cb-image-rotate-control.is-below output { top: auto; bottom: 3px; }

@media (max-width: 900px) {
  .cb-section { padding: 3rem 1rem; }
  .cb-columns,
  .cb-grid,
  .cb-live-grid,
  .cb-hero__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cb-yarn-art { font-size: 8rem; }
  .cb-live-gallery { columns: 2 220px; }
}

@media (max-width: 600px) {
  [data-cb-mobile-fluid="true"] { width: 100% !important; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; }
  .cb-page { font-size: 15px; }
  .cb-section { padding: 2.5rem 0.9rem; }
  h1.cb-heading { font-size: clamp(2.15rem, 12vw, 3.5rem); }
  h2.cb-heading { font-size: clamp(1.75rem, 9vw, 2.6rem); }
  .cb-actions,
  .cb-row { align-items: stretch; flex-direction: column; }
  .cb-actions .cb-button-wrap,
  .cb-button { width: 100%; }
  .cb-live-gallery { columns: 1; }
  .cb-product-card__footer { align-items: stretch; flex-direction: column; }
  .cb-product-card__button { width: 100%; }
  .cb-carousel > * { min-width: 88vw; }
  .cb-document-viewer iframe { height: 62vh; min-height: 360px; }
  .cb-presentation--office iframe { height: 62vh; min-height: 380px; }
  .cb-presentation__controls { justify-content: space-between; gap: 0.4rem; }
  .cb-presentation__controls button { padding-inline: 0.7rem; }
  .cb-presentation__download,
  .cb-data-table__toolbar,
  .cb-data-table__source { align-items: stretch; flex-direction: column; }
  .cb-data-table__toolbar [data-cb-table-count] { padding-bottom: 0; }
  .cb-document-actions,
  .cb-download-card { align-items: stretch; flex-direction: column; }
  .cb-document-actions a,
  .cb-download-card > a { width: 100%; }
  .cb-site-preview-nav nav { display: none; }
  .cb-site-preview-menu { display: block; }
  .cb-site-preview-footer > div { grid-template-columns: 1fr; }
  .cb-runtime-form__width-half,
  .cb-runtime-form__width-third { grid-column: 1 / -1; }
  .cb-runtime-form__actions { align-items: stretch; flex-direction: column; }
  .cb-runtime-form__actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-marquee__track { animation: none; padding-left: 0; }
  .cb-button { transition: none; }
}
