/* Stream Lab Peptides — layout & UI fixes (original blue palette) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap");

:root {
  --streamlab-primary: #2872fa;
  --streamlab-primary-dark: #1559ed;
  --streamlab-primary-light: #e8f1ff;
  --streamlab-accent: #1269ed;
  --streamlab-ink: #071432;
  --streamlab-muted: #64748b;
  --streamlab-surface: #f8fafc;
  --streamlab-border: #dbe8f5;
  --streamlab-radius: 14px;
  --streamlab-shadow: 0 10px 40px rgba(13, 76, 145, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  color: var(--streamlab-ink);
  overflow-x: hidden;
}

/* Do not apply global media rules to header icons/logo — they collapse to 0px. */
main img,
main video,
.site-main img,
.woocommerce img,
.woocommerce-page img,
.slp-modern-home img {
  max-width: 100%;
  height: auto;
}

main svg:not(.ct-icon),
.site-main svg:not(.ct-icon) {
  max-width: 100%;
  height: auto;
}

/* ── Header ── */
[data-header*="type-1"] .ct-header {
  background: #fff !important;
  border-bottom: 1px solid var(--streamlab-border) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: visible !important;
}

[data-header*="type-1"] .ct-sticky-container,
[data-header*="type-1"] .ct-header [data-row*="middle"] {
  overflow: visible !important;
}

.site-logo-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  line-height: 0 !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  position: relative !important;
  z-index: 3 !important;
}

.site-logo-container img.default-logo,
.site-logo-container .default-logo {
  display: block !important;
  width: auto !important;
  height: clamp(64px, 7.5vw, 96px) !important;
  max-width: min(340px, 48vw) !important;
  min-height: 56px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.home #header .site-logo-container img.default-logo,
body.home #header .site-logo-container .default-logo {
  height: clamp(72px, 8.5vw, 108px) !important;
  max-width: min(380px, 54vw) !important;
}

#header .ct-container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(16px, 3vw, 40px) !important;
  padding-right: clamp(16px, 3vw, 40px) !important;
}

#header,
#header .ct-header,
#header [data-row="middle"],
#header .ct-container-fluid,
#header [data-column="middle"],
#header .menu-container,
#header nav[class*="menu"] {
  overflow: visible !important;
}

#header [data-row="middle"] > .ct-container-fluid {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  overflow: visible !important;
}

#header {
  position: relative !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}

#header [data-column="start"] {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 14 !important;
}

#header [data-column="end"] {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 16 !important;
}

#header [data-column="middle"] {
  flex: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  z-index: 8 !important;
  overflow: visible !important;
}

#header [data-column="end"] [data-items],
#header [data-column="end"] [data-items="primary"] {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#header [data-device="desktop"] [data-column="end"] [data-id="search"] {
  order: 1 !important;
}

#header [data-device="desktop"] [data-column="end"] [data-id="account"] {
  order: 2 !important;
}

#header [data-device="desktop"] [data-column="end"] [data-id="cart"] {
  order: 3 !important;
}

#header [data-column="middle"] [data-items],
#header [data-column="middle"] .menu-container {
  display: block !important;
  max-width: 100% !important;
  overflow: visible !important;
}

#header .menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

#header .menu > li {
  position: relative !important;
  flex: 0 0 auto !important;
}

#header .menu > li > a,
#header .ct-header-search,
#header .ct-account-item,
#header .ct-cart-item,
#header .site-logo-container,
#header .site-logo-container a {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
}

#header .ct-toggle-dropdown-desktop-ghost {
  pointer-events: none !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  padding-inline: clamp(4px, 0.55vw, 10px) !important;
  white-space: nowrap !important;
}

#header .menu > .menu-item-has-children,
#header .menu > .animated-submenu-block {
  position: relative !important;
}

#header .menu > .menu-item-has-children::before,
#header .animated-submenu-block::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  height: 14px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

#header .menu > .menu-item-has-children > .sub-menu,
#header .animated-submenu-block > .sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 50 !important;
  min-width: 250px !important;
  margin-top: 0 !important;
  padding: 6px 0 !important;
  background: #29333c !important;
  border-radius: 4px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0, 8px, 0) !important;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease !important;
}

#header .menu > .menu-item-has-children.ct-active > .sub-menu,
#header .animated-submenu-block.ct-active > .sub-menu,
#header .menu > .menu-item-has-children:hover > .sub-menu,
#header .animated-submenu-block:hover > .sub-menu,
#header .menu > .menu-item-has-children.streamlab-submenu-open > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
}


#header .menu > .menu-item-has-children > .sub-menu,
#header .animated-submenu-block > .sub-menu {
  display: block !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

#header .sub-menu > .menu-item,
#header .sub-menu > .menu-item > a,
#header .sub-menu .ct-menu-link {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  text-transform: none !important;
  color: #fff !important;
}
#header .sub-menu .menu-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.14) !important;
}

#header .sub-menu .menu-item:first-child {
  border-top: none !important;
}

#header .sub-menu .ct-menu-link,
#header .sub-menu a {
  display: block !important;
  color: #fff !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

#header .sub-menu .ct-menu-link:hover,
#header .sub-menu a:hover {
  color: #2872fa !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

#header .ct-header-search,
#header .ct-header-account,
#header .ct-header-cart,
#header .ct-account-item,
#header .ct-cart-item,
#header .ct-icon-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
  color: var(--streamlab-primary) !important;
}

#header svg.ct-icon,
#header .ct-header-search svg,
#header .ct-account-item svg,
#header .ct-cart-item svg,
#header .ct-icon-container svg {
  width: var(--theme-icon-size, 18px) !important;
  height: var(--theme-icon-size, 18px) !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  display: block !important;
  fill: currentColor !important;
}

#header .menu > li > a.ct-menu-link,
#header .menu > li > .ct-sub-menu-parent > a.ct-menu-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(12px, 0.88vw, 14px) !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #071432 !important;
  -webkit-font-smoothing: antialiased !important;
}

[data-header*="type-1"] .menu > li > a {
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

[data-header*="type-1"] .menu > li > a:hover,
[data-header*="type-1"] .menu > li.current-menu-item > a {
  color: var(--streamlab-primary) !important;
}

[data-header*="type-1"] [data-id="search"],
[data-header*="type-1"] [data-id="account"],
[data-header*="type-1"] [data-id="cart"] {
  --theme-icon-color: var(--streamlab-primary) !important;
  --theme-icon-hover-color: var(--streamlab-primary-dark) !important;
}

#account-modal.ct-panel:not(.active) {
  display: none !important;
}

#streamlab-account-backdrop {
  pointer-events: none !important;
}

body.streamlab-account-open #streamlab-account-backdrop {
  pointer-events: auto !important;
}
/* ── Login modal ── */
#account-modal.ct-panel {
  position: fixed !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) scale(0.97) !important;
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: 440px !important;
  min-height: 0 !important;
  max-height: min(90vh, 640px) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid var(--streamlab-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22) !important;
  overflow: hidden auto !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s !important;
}

#account-modal.ct-panel.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

#account-modal .ct-panel-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 28px 28px 32px !important;
  box-sizing: border-box !important;
}

#account-modal .ct-panel-actions {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 2 !important;
}

#account-modal .ct-toggle-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid var(--streamlab-border) !important;
  background: var(--streamlab-surface) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

#account-modal .ct-account-modal {
  width: 100% !important;
  max-width: 100% !important;
}

#account-modal .login p {
  margin: 0 0 16px !important;
}

#account-modal .login label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--streamlab-muted) !important;
  margin-bottom: 6px !important;
}

#account-modal .login .input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--streamlab-border) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}

#account-modal .login .input:focus {
  outline: none !important;
  border-color: var(--streamlab-primary) !important;
  box-shadow: 0 0 0 3px rgba(40, 114, 250, 0.12) !important;
}

#account-modal .login-remember {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

#account-modal .ct-button,
#account-modal .ct-account-login-submit,
#account-modal .ct-account-lost-password-submit {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 10px !important;
  background: var(--streamlab-primary) !important;
  border-color: var(--streamlab-primary) !important;
  font-weight: 700 !important;
}

#account-modal .ct-button:hover {
  background: var(--streamlab-primary-dark) !important;
  border-color: var(--streamlab-primary-dark) !important;
}

html.streamlab-account-open,
body.streamlab-account-open {
  overflow: hidden !important;
}

/* Button/link colors: defer to theme-blue-overrides.css */

/* ── Homepage hero ── */
.slp-modern-home .slp-hero {
  background:
    linear-gradient(90deg, #fff 0 38%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0.15) 72%, transparent 100%),
    url("hero-complete-coa-banner.png") right center / auto 100% no-repeat !important;
  border-color: var(--streamlab-border) !important;
}

.slp-modern-home .slp-hero h1 span,
.slp-modern-home .slp-kicker {
  color: var(--slp-blue, #2872fa) !important;
}

.slp-modern-home .slp-panel,
.slp-modern-home .slp-product,
.slp-modern-home .slp-b2b-card,
.slp-modern-home .slp-cat {
  border-radius: var(--streamlab-radius) !important;
  border-color: var(--streamlab-border) !important;
  box-shadow: var(--streamlab-shadow) !important;
}

.slp-modern-home .slp-dark {
  background: linear-gradient(135deg, #08264d 0%, #0b55d8 58%, #1269ed 100%) !important;
}

/* ── Layout / responsive (content only — not header) ── */
.ct-container:not(#header .ct-container),
[data-container="normal"]:not(#header [data-container="normal"]),
.slp-shell {
  width: min(100%, var(--theme-normal-container-max-width, 1200px)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 3vw, 28px) !important;
  padding-right: clamp(16px, 3vw, 28px) !important;
  box-sizing: border-box !important;
}

.slp-shell {
  width: min(1550px, calc(100vw - clamp(24px, 4vw, 64px))) !important;
}

.slp-modern-home .slp-products,
.slp-modern-home .slp-glp-products,
.slp-modern-home .slp-cats,
.slp-modern-home .slp-b2b,
.slp-modern-home .slp-trust-grid,
.slp-modern-home .slp-resources {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

.slp-modern-home .slp-hero-copy {
  width: min(760px, 100%) !important;
  max-width: 100% !important;
}

.slp-modern-home .slp-product figure img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.ff-t-container,
.ff-el-group,
.fluentform .ff-el-form-control {
  max-width: 100% !important;
}

.ff-t-container {
  flex-wrap: wrap !important;
}

.ff-t-cell {
  min-width: 0 !important;
  flex: 1 1 220px !important;
}

/* ── Footer ── */
.bpc-footer-logo {
  max-height: 56px !important;
  width: auto !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ── Product / shop pages ── */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
  gap: 20px !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}


/* ── Products archive layout ── */
.woocommerce-page .site-main:has(.product-category-container),
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.product-category-container {
  width: min(1600px, calc(100vw - 40px)) !important;
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.product-category-container ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.product-category-container .product-card {
  pointer-events: auto !important;
  will-change: box-shadow !important;
}

.product-category-container .product-card:hover {
  transform: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
}

.product-category-container .product-card a {
  pointer-events: auto !important;
  display: block !important;
}

@media (max-width: 1200px) {
  .product-category-container ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .product-category-container ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .product-category-container ul.products {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1180px) {
  .slp-modern-home .slp-hero {
    background:
      linear-gradient(90deg, #fff 0 44%, rgba(255, 255, 255, 0.88) 66%, rgba(255, 255, 255, 0.3) 100%),
      url("hero-complete-coa-banner.png") 94% center / auto 100% no-repeat !important;
  }
}

@media (max-width: 720px) {
  .site-logo-container {
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .site-logo-container img.default-logo,
  .site-logo-container .default-logo {
    height: 56px !important;
    max-width: min(250px, 68vw) !important;
  }

  #header [data-column="end"] [data-items] {
    gap: 6px !important;
  }

  .slp-modern-home .slp-hero {
    background:
      linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.97)),
      url("hero-complete-coa-banner.png") 62% center / cover no-repeat !important;
    min-height: 0 !important;
  }

  #account-modal .ct-panel-content {
    padding: 24px 20px 28px !important;
  }
}

/* ── Account modal form states (Blocksy JS not loaded in static mirror) ── */
#account-modal .ct-account-forms {
  position: relative !important;
}

#account-modal .ct-login-form:not(.active),
#account-modal .ct-forgot-password-form:not(.active) {
  display: none !important;
}

#account-modal .ct-login-form.active,
#account-modal .ct-forgot-password-form.active {
  display: block !important;
}

#account-modal .ct-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

#account-modal .ct-button-loader {
  display: none !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

#account-modal .account-password-input {
  position: relative !important;
  display: block !important;
}

#account-modal .account-password-input .input {
  padding-right: 44px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#account-modal .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent center / 18px 18px no-repeat !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
  cursor: pointer !important;
  opacity: 0.75 !important;
}

#account-modal .show-password-input.is-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") !important;
}

#account-modal .login-remember {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#account-modal .login-remember .ct-checkbox {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--streamlab-primary) !important;
}

#account-modal .ct-forgot-password,
#account-modal .ct-back-to-login {
  color: var(--streamlab-primary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

#account-modal .ct-back-to-login {
  display: inline-block !important;
  margin-top: 12px !important;
}

/* Keep the legacy Stream Lab top-level nav items visible. */
#header #menu-home > li.menu-item-617,
#header #menu-home > li.menu-item-780,
#header #menu-home > li.menu-item-647,
#header #menu-home-1 > li.menu-item-617,
#header #menu-home-1 > li.menu-item-780,
#header #menu-home-1 > li.menu-item-647 {
  display: list-item !important;
}

#header .streamlab-more-menu > .sub-menu > li {
  display: block !important;
}
