/* SOSPADE — global design system for Blocksy + Gutenberg + WooCommerce */
:root {
  --sospade-ink: #111111;
  --sospade-paper: #f4f3ef;
  --sospade-acid: #d7ff3f;
  --sospade-muted: #77756f;
  --sospade-line: rgba(17,17,17,.15);
  --sospade-content: 1320px;
  --sospade-gutter: clamp(20px, 4vw, 64px);
}

html { scroll-behavior: smooth; }
body.sospade-global-optimizer {
  color: var(--sospade-ink);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.sospade-global-optimizer a { text-underline-offset: .18em; }

/* Consistent centered page canvas — prevents the right-shifted appearance. */
body.sospade-global-optimizer .site-main,
body.sospade-global-optimizer #main-container,
body.sospade-global-optimizer .ct-container,
body.sospade-global-optimizer .ct-container-fluid,
body.sospade-global-optimizer .content-area,
body.sospade-global-optimizer .entry-content,
body.sospade-global-optimizer .woocommerce-page .site-main {
  box-sizing: border-box;
}
body.sospade-global-optimizer .site-main > .ct-container,
body.sospade-global-optimizer #main-container > .ct-container,
body.sospade-global-optimizer .content-area > article,
body.sospade-global-optimizer .entry-content > .wp-block-group:not(.alignfull),
body.sospade-global-optimizer .entry-content > .wp-block-columns:not(.alignfull),
body.sospade-global-optimizer .entry-content > .wp-block-cover:not(.alignfull) {
  margin-left: auto !important;
  margin-right: auto !important;
}
body.sospade-global-optimizer .entry-content {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}
body.sospade-global-optimizer .entry-content > *:not(.alignfull):not(.alignwide) {
  max-width: min(var(--sospade-content), calc(100% - 2 * var(--sospade-gutter)));
  margin-left: auto;
  margin-right: auto;
}
body.sospade-global-optimizer .entry-content > .alignwide {
  max-width: min(1480px, calc(100% - 2 * var(--sospade-gutter)));
  margin-left: auto !important;
  margin-right: auto !important;
}
body.sospade-global-optimizer .entry-content > .alignfull,
body.sospade-global-optimizer .entry-content > .wp-block-cover.alignfull,
body.sospade-global-optimizer .entry-content > .wp-block-group.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Blocksy header: balanced full-width frame and understated typography. */
body.sospade-global-optimizer .ct-header [data-row] > div,
body.sospade-global-optimizer .ct-header [data-row] .ct-container,
body.sospade-global-optimizer .site-header .ct-container {
  width: min(100% - 2 * var(--sospade-gutter), 1480px);
  max-width: 1480px;
  margin-inline: auto;
}
body.sospade-global-optimizer .ct-header {
  background: #fff;
  color: var(--sospade-ink);
  border-bottom: 1px solid var(--sospade-line);
}
body.sospade-global-optimizer .ct-header .site-title,
body.sospade-global-optimizer .ct-header .site-description {
  color: var(--sospade-ink);
}
body.sospade-global-optimizer .ct-header .site-title {
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1;
  text-transform: uppercase;
}
body.sospade-global-optimizer .ct-header .site-description { display: none; }
body.sospade-global-optimizer .ct-header .menu a,
body.sospade-global-optimizer .ct-header .ct-header-text,
body.sospade-global-optimizer .ct-header .ct-menu-link {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Remove excess theme-generated top gaps without disturbing block spacing. */
body.sospade-global-optimizer .site-main,
body.sospade-global-optimizer #main-container {
  padding-top: 0;
}
body.sospade-global-optimizer .content-area,
body.sospade-global-optimizer article.page {
  min-width: 0;
}
body.sospade-global-optimizer .entry-content > .wp-block-cover:first-child,
body.sospade-global-optimizer .entry-content > .wp-block-group:first-child {
  margin-top: 0 !important;
}
body.sospade-global-optimizer .entry-content .wp-block-cover {
  overflow: hidden;
}
body.sospade-global-optimizer .entry-content .wp-block-cover__inner-container {
  width: min(100%, 1320px);
  margin-inline: auto;
}

/* SOSPADE visual language across headings, links and buttons. */
body.sospade-global-optimizer h1,
body.sospade-global-optimizer h2,
body.sospade-global-optimizer h3,
body.sospade-global-optimizer .woocommerce-products-header__title {
  color: var(--sospade-ink);
  letter-spacing: -.045em;
  line-height: .98;
  font-weight: 850;
}
body.sospade-global-optimizer .wp-block-button__link,
body.sospade-global-optimizer .woocommerce a.button,
body.sospade-global-optimizer .woocommerce button.button,
body.sospade-global-optimizer .woocommerce input.button,
body.sospade-global-optimizer button.single_add_to_cart_button {
  border-radius: 0 !important;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.sospade-global-optimizer .wp-block-image img,
body.sospade-global-optimizer .woocommerce ul.products li.product img,
body.sospade-global-optimizer .woocommerce div.product div.images img {
  display: block;
  width: 100%;
  height: auto;
}

/* WooCommerce catalog and product pages: centered, clean, responsive. */
body.sospade-global-optimizer.woocommerce .site-main,
body.sospade-global-optimizer.woocommerce-page .site-main {
  width: 100%;
}
body.sospade-global-optimizer .woocommerce .products,
body.sospade-global-optimizer .woocommerce-page .products {
  gap: clamp(16px, 2vw, 30px);
}
body.sospade-global-optimizer .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
body.sospade-global-optimizer .woocommerce div.product .product_title {
  font-size: clamp(32px, 5vw, 64px);
}

/* Footer: keep the designed SOSPADE footer; suppress only the theme's duplicate copyright strip. */
body.sospade-global-optimizer .ct-footer [data-row="bottom"] .ct-footer-copyright,
body.sospade-global-optimizer .ct-footer .ct-footer-copyright {
  font-size: 11px;
}
body.sospade-global-optimizer .ct-footer [data-row="bottom"] {
  border-top: 1px solid var(--sospade-line);
}
body.sospade-global-optimizer .ct-footer .ct-footer-copyright a {
  color: inherit;
}

/* Hide WordPress admin bar spacing artifacts from logged-in front-end view only. */
body.admin-bar.sospade-global-optimizer .ct-header { top: 0; }

@media (max-width: 900px) {
  :root { --sospade-gutter: 22px; }
  body.sospade-global-optimizer .entry-content > *:not(.alignfull):not(.alignwide),
  body.sospade-global-optimizer .entry-content > .alignwide {
    max-width: calc(100% - 2 * var(--sospade-gutter));
  }
  body.sospade-global-optimizer .ct-header [data-row] > div,
  body.sospade-global-optimizer .ct-header [data-row] .ct-container,
  body.sospade-global-optimizer .site-header .ct-container {
    width: calc(100% - 2 * var(--sospade-gutter));
  }
}
@media (max-width: 600px) {
  :root { --sospade-gutter: 16px; }
  body.sospade-global-optimizer .entry-content > .wp-block-cover.alignfull {
    min-height: 540px !important;
  }
  body.sospade-global-optimizer .entry-content .wp-block-cover__inner-container {
    padding-inline: 4px;
  }
  body.sospade-global-optimizer h1 { font-size: clamp(42px, 14vw, 76px); }
  body.sospade-global-optimizer .wp-block-buttons { gap: 10px; }
  body.sospade-global-optimizer .wp-block-button__link { padding: 13px 15px; }
}
