/* ==========================================================================
   Evil Peptides — design layer on top of Blocksy
   Clean white: white canvas, near-black type and buttons, soft grey surfaces.
   Red lives ONLY in the logo — never use it in the UI.
   Display: Archivo Black (logo wordmark). Body: Manrope.
   ========================================================================== */

:root {
  --ep-bg: #ffffff;
  --ep-soft: #f5f5f6;      /* image wells, soft panels */
  --ep-soft-2: #ededef;
  --ep-line: #e6e6e9;
  --ep-ink: #0e0e10;       /* headings, buttons */
  --ep-text: #3a3a40;      /* body copy */
  --ep-muted: #7a7a82;
  --ep-radius: 10px;
  --ep-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ep-display: 'Archivo Black', 'Manrope', Impact, sans-serif;
}

/* Blocksy palette: its inline :root loads after ours, so win with html:root + !important */
html:root {
  --theme-palette-color-1: #0e0e10 !important;  /* accent = ink */
  --theme-palette-color-2: #3a3a40 !important;  /* accent hover */
  --theme-palette-color-3: #3a3a40 !important;  /* body text */
  --theme-palette-color-4: #0e0e10 !important;  /* headings */
  --theme-palette-color-5: #e6e6e9 !important;  /* borders */
  --theme-palette-color-6: #ffffff !important;  /* site background */
  --theme-palette-color-7: #f5f5f6 !important;  /* soft surfaces */
  --theme-palette-color-8: #ffffff !important;  /* white */
  --theme-font-family: var(--ep-font) !important;
  --theme-link-initial-color: #0e0e10;
  --theme-link-hover-color: #3a3a40;
}

html { overflow-x: clip; }
body {
  background: var(--ep-bg) !important;
  color: var(--ep-text);
  font-family: var(--ep-font);
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: var(--ep-font); }

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .product_title, .woocommerce-loop-product__title {
  font-family: var(--ep-font) !important;
  color: var(--ep-ink);
  letter-spacing: -.01em;
}
.page-title, .product_title, .ep-hero__title, .woocommerce-products-header__title {
  font-family: var(--ep-display) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: .005em;
}
::selection { background: var(--ep-ink); color: #fff; }

/* ---------- announcement strip ---------- */
.ep-topbar { background: var(--ep-ink); color: #fff; overflow: hidden; position: sticky; top: 0; z-index: 1002; }
.ep-topbar__rot { position: relative; height: 32px; }
.ep-topbar__msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; opacity: 0;
}
.ep-topbar__msg a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: .35em; }
.ep-topbar__msg:nth-child(1) { animation: ep-rot-a 10s infinite; }
.ep-topbar__msg:nth-child(2) { animation: ep-rot-b 10s infinite; }
@keyframes ep-rot-a { 0%,46% { opacity: 1 } 50%,96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes ep-rot-b { 0%,48% { opacity: 0 } 52%,94% { opacity: 1 } 98%,100% { opacity: 0 } }
@media (max-width: 480px) { .ep-topbar__msg { font-size: .68rem; letter-spacing: .05em; } }
@media (prefers-reduced-motion: reduce) {
  .ep-topbar__rot { height: auto; display: flex; flex-direction: column; align-items: center; padding: .35rem 0; }
  .ep-topbar__msg { position: static; opacity: 1; animation: none; }
}

/* ---------- header ---------- */
#header [data-row] { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--ep-line); }
#header .ct-menu-link, #header .ct-header-search, #header .ct-header-cart, #header .ct-header-account { color: var(--ep-ink) !important; }
#header .ct-menu-link { font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
#header .ct-menu-link:hover { color: var(--ep-muted) !important; }
#header .current-menu-item > .ct-menu-link { box-shadow: inset 0 -2px 0 var(--ep-ink); }
.site-title-container { display: none !important; }
/* logo: Blocksy caps it via --logo-max-height; raise it + the header row height */
#header [data-id="logo"], #header .site-logo-container { --logo-max-height: 76px !important; }
.site-logo-container img { max-height: 76px !important; height: 76px !important; width: auto !important; }
#header [data-device="desktop"] [data-row="middle"] { --height: 104px !important; }
@media (max-width: 999.98px) {
  #header [data-id="logo"], #header .site-logo-container { --logo-max-height: 54px !important; }
  .site-logo-container img { max-height: 54px !important; height: 54px !important; }
  #header [data-device="mobile"] [data-row="middle"] { --height: 76px !important; }
}

/* offcanvas mobile menu */
#offcanvas .ct-panel-inner { background: #fff !important; }
#offcanvas .ct-menu-link { color: var(--ep-ink) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
#offcanvas .ct-toggle-close { color: var(--ep-ink) !important; }

/* mobile header icons */
.ep-mh-icons { display: none; }
@media (max-width: 999.98px) {
  .ep-mh-icons { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
  .ep-mh-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--ep-ink); background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
  .ep-mh-btn svg { width: 22px; height: 22px; }
  .ep-mh-count { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--ep-ink); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
  .ep-mh-count[data-count="0"] { display: none; }
}
.ep-mh-searchbar { position: fixed; inset: 0; z-index: 99999; background: rgba(14,14,16,.4); }
.ep-mh-searchbar[hidden] { display: none; }
.ep-mh-searchbar-top { background: #fff; display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; }
.ep-mh-form { flex: 1; display: flex; align-items: center; gap: .6rem; border-bottom: 1.5px solid var(--ep-ink); padding-bottom: .45rem; min-width: 0; }
.ep-mh-sicon, .ep-mh-close { display: inline-flex; background: none; border: 0; padding: 0; color: var(--ep-ink); cursor: pointer; }
.ep-mh-sicon svg, .ep-mh-close svg { width: 22px; height: 22px; }
.ep-mh-input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 0 !important; font-size: 18px; color: var(--ep-ink); box-shadow: none !important; }
.ep-mh-input:focus { outline: none; }

/* ---------- hero ---------- */
.home .hero-section, .home .woocommerce-products-header { display: none !important; }
.home #main > .ct-container, .home .site-main > .ct-container { padding-top: 0 !important; }
.ep-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(20px, 4vw, 64px);
  width: 100vw; margin: 0 calc(50% - 50vw) 44px; padding: clamp(32px, 5.5vw, 80px) max(20px, calc(50vw - 640px));
  background: var(--ep-soft);
  border-bottom: 1px solid var(--ep-line);
}
.ep-hero__kicker { margin: 0 0 14px; color: var(--ep-muted); font-weight: 700; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.ep-hero__title { margin: 0 0 18px; font-size: clamp(2.2rem, 5.2vw, 4.3rem); line-height: .98; color: var(--ep-ink); }
.ep-hero__title span { color: var(--ep-ink); }
.ep-hero__lead { max-width: 30em; margin: 0 0 28px; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.65; color: var(--ep-text); }
.ep-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ep-hero__media { justify-self: end; width: 100%; max-width: 620px; }
.ep-hero__img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 24px 60px rgba(14,14,16,.14); }
@media (max-width: 860px) {
  .ep-hero { grid-template-columns: 1fr; }
  .ep-hero__media { justify-self: stretch; }
}

/* ---------- buttons ---------- */
.ep-btn, .button, button.button, .wp-element-button, .single_add_to_cart_button, .checkout-button, .added_to_cart {
  border-radius: 999px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem !important;
}
.ep-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.ep-btn--primary, .single_add_to_cart_button, .checkout-button, .woocommerce a.button.alt, .wc-block-components-button:not(.is-link) {
  background: var(--ep-ink) !important; color: #fff !important; border: 1px solid var(--ep-ink) !important;
}
.ep-btn--primary:hover, .single_add_to_cart_button:hover, .checkout-button:hover, .wc-block-components-button:not(.is-link):hover { background: #2b2b30 !important; border-color: #2b2b30 !important; }
.ep-btn--ghost { color: var(--ep-ink); border: 1px solid var(--ep-ink); background: transparent; }
.ep-btn--ghost:hover { background: var(--ep-ink); color: #fff; }

/* ---------- shop grid ---------- */
ul.products li.product {
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-radius);
  padding: 0 0 16px !important; overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
ul.products li.product:hover { border-color: #cfcfd4; box-shadow: 0 10px 30px rgba(14,14,16,.08); }
ul.products li.product figure, ul.products li.product .ct-media-container { margin: 0 0 14px !important; border-radius: 0 !important; background: var(--ep-soft); }
ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; font-weight: 700 !important; padding: 0 16px; }
ul.products li.product .price { color: var(--ep-ink) !important; font-weight: 700; padding: 0 16px; font-variant-numeric: tabular-nums; }
ul.products li.product .entry-meta, ul.products li.product .ct-woo-card-extra, ul.products li.product .ct-product-categories { display: none !important; }
ul.products li.product .button {
  margin: 4px 16px 0 !important; background: transparent !important; color: var(--ep-ink) !important; border: 1px solid var(--ep-ink) !important; min-height: 40px;
}
ul.products li.product .button:hover { background: var(--ep-ink) !important; color: #fff !important; }
.price del { color: var(--ep-muted) !important; font-weight: 500; }
.price ins { text-decoration: none; }
.onsale, .ct-woo-badge-onsale { background: var(--ep-ink) !important; color: #fff !important; font-weight: 700; border-radius: 999px !important; text-transform: uppercase; letter-spacing: .06em; }
ul.products li.product img, .woocommerce-product-gallery img { object-fit: contain !important; }
@media (max-width: 689.98px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: .88rem !important; padding: 0 10px; }
  ul.products li.product .price { padding: 0 10px; font-size: .9rem; }
  ul.products li.product .button { margin: 4px 10px 0 !important; min-height: 36px; padding: 0 10px !important; font-size: .68rem !important; }
}

/* ---------- single product ---------- */
.product .product_title { font-size: clamp(1.9rem, 3.4vw, 3rem) !important; line-height: 1.02; margin-bottom: 10px; }
.product .summary .price { color: var(--ep-ink) !important; font-size: 1.6rem !important; font-weight: 800; font-variant-numeric: tabular-nums; }
.woocommerce-product-gallery { background: var(--ep-soft); border-radius: var(--ep-radius); overflow: hidden; }
.product_meta, .product_meta a { color: var(--ep-muted) !important; font-size: .85rem; }
.ep-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ep-line); }
.ep-trust__item { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--ep-soft); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ep-ink); }
.ep-trust__item svg { width: 18px; height: 18px; color: var(--ep-ink); flex: 0 0 auto; }
.ep-ruo { margin: 14px 0 0; font-size: .78rem; color: var(--ep-muted); }

/* un-tabbed product data: stacked panels */
.woocommerce-tabs ul.tabs, .woocommerce-tabs > .tabs { display: none !important; }
.woocommerce-tabs .woocommerce-Tabs-panel { display: block !important; opacity: 1 !important; visibility: visible !important; max-height: none !important; }
.woocommerce-tabs { padding-top: 24px !important; }
.woocommerce-tabs .woocommerce-Tabs-panel--reviews { border-top: 1px solid var(--ep-line); padding-top: 28px; }
.ep-moreinfo, .woocommerce-Tabs-panel--description { max-width: 820px; line-height: 1.75; }
.ep-moreinfo .pl-moreinfo__label { margin: 34px 0 10px; font-weight: 800; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ep-ink); }
.ep-moreinfo .pl-moreinfo__label:first-child { margin-top: 0; }
.ep-moreinfo a, .woocommerce-Tabs-panel a { color: var(--ep-ink); text-decoration: underline; text-underline-offset: 3px; }
.ep-moreinfo ol.pl-refs { font-size: .85rem; color: var(--ep-muted); padding-left: 1.3em; }
.ep-moreinfo ol.pl-refs li { margin-bottom: 6px; }

/* related products: one horizontal row */
.related.products ul.products {
  display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding: 4px 2px 14px; scroll-snap-type: x proximity;
}
.related.products ul.products li.product { flex: 0 0 auto !important; width: 180px !important; margin: 0 !important; scroll-snap-align: start; }
@media (min-width: 1000px) { .related.products ul.products li.product { width: 230px !important; } }
.single-product .up-sells.upsells { display: none !important; }
@media (max-width: 999.98px) { .single-product .related.products { display: block !important; } }

/* ---------- notices ---------- */
.woocommerce-info, .woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner {
  background: var(--ep-soft) !important; color: var(--ep-text) !important; border: 0 !important; border-left: 3px solid var(--ep-ink) !important; border-radius: 0;
}

/* ---------- footer ---------- */
.ct-footer { display: none !important; }
.ep-footer { background: var(--ep-soft); border-top: 1px solid var(--ep-line); color: var(--ep-muted); font-size: .9rem; }
.ep-footer__inner { max-width: 1290px; margin: 0 auto; padding: 56px 20px 26px; }
.ep-footer__cols { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.6fr; gap: 36px; }
.ep-footer__brand img { width: 130px; height: auto; margin-bottom: 14px; }
.ep-footer__brand p { margin: 0 0 12px; line-height: 1.6; max-width: 28em; }
.ep-footer__mail { color: var(--ep-ink); font-weight: 600; text-decoration: none; }
.ep-footer h3 { margin: 0 0 14px; color: var(--ep-ink); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.ep-footer ul { list-style: none; margin: 0; padding: 0; }
.ep-footer li { margin: 0 0 8px; }
.ep-footer a { color: var(--ep-text); text-decoration: none; }
.ep-footer a:hover { color: var(--ep-ink); text-decoration: underline; }
.ep-footer__index ul { columns: 2; column-gap: 24px; }
.ep-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ep-line); font-size: .78rem; }
@media (max-width: 860px) {
  .ep-footer__cols { grid-template-columns: 1fr 1fr; }
  .ep-footer__brand, .ep-footer__index { grid-column: 1 / -1; }
}

/* ---------- misc ---------- */
.ct-breadcrumbs, .woocommerce-breadcrumb { color: var(--ep-muted) !important; font-size: .78rem; }
.woocommerce-pagination { display: none; }
@media (max-width: 480px) { .single_add_to_cart_button { width: 100%; } }

/* product images are 4:3 renders — match the frames so nothing letterboxes */
.woocommerce-product-gallery .ct-media-container,
.woocommerce-product-gallery .ct-media-container img,
ul.products li.product .ct-media-container,
ul.products li.product .ct-media-container img { aspect-ratio: 4 / 3 !important; height: auto !important; }
.woocommerce-product-gallery { align-self: start; }

/* product data panels sit inside the page container, left-aligned */
.single-product .woocommerce-tabs { max-width: var(--theme-normal-container-max-width, 1290px); margin-inline: auto !important; padding-inline: 20px !important; }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel { max-width: 820px; margin: 0 !important; padding-inline: 0 !important; }
.single-product .woocommerce-Tabs-panel--description h2 { font-size: 1.5rem; margin-top: 1.8em; }
