/*
Theme Name: kinepeps
Description: Laboratory catalogue block theme for WooCommerce.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: kinepeps
*/
:root {
  color-scheme: light;
  --white: #FFFFFF;
  --graphite: #2B2E33;
  --secondary: #5A6068;
  --line: #E1E5E3;
  --mist: #F1F3F2;
  --green: #2F7D5B;
  --z-dropdown: 10;
}

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

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
.button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.button:focus-visible,
.currency-toggle button:focus-visible {
  outline-color: var(--graphite);
}

h1,
h2,
h3,
h4,
.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: var(--z-dropdown);
  padding: 12px 16px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: 3px;
}

.skip-link:focus {
  transform: translateY(0);
}

.research-banner {
  padding-block: 9px;
  background: var(--graphite);
  color: var(--white);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  min-height: 80px;
}

.wordmark {
  display: inline-block;
  color: var(--graphite);
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.currency-toggle {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.currency-toggle button {
  min-height: 32px;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  background: var(--white);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.currency-toggle a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 3px;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}
.currency-toggle a[aria-current] { background: var(--green); color: var(--white); }

.currency-toggle button[aria-pressed="true"] {
  background: var(--green);
  color: var(--white);
}

.cart-button,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--graphite);
}

.cart-button {
  font-size: 12px;
  white-space: nowrap;
}

.menu-button {
  width: 30px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  order: 3;
  width: 100%;
  padding-block: 8px 18px;
  gap: 0 24px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--graphite);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.js .site-nav:not(.is-open) {
  display: none;
}

.hero {
  display: grid;
  gap: 28px;
  padding-block: 44px 48px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-intro {
  margin-top: 22px;
  color: var(--secondary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

a.button:hover {
  background: var(--graphite);
  border-color: var(--graphite);
}

.hero-button {
  margin-top: 26px;
}

.hero-button span {
  font-size: 19px;
  line-height: 1;
}

.spec-panel {
  max-width: 510px;
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 4px;
  background: var(--mist);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.spec-panel div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding-block: 6px;
}

.spec-panel dt {
  color: var(--secondary);
}

.hero-product {
  align-self: center;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.hero-product img {
  width: 100%;
  background: var(--white);
  object-fit: contain;
}

.hero-product figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.hero-product figcaption a {
  font-weight: 600;
  text-decoration: none;
}

.hero-product figcaption a:hover {
  text-decoration: underline;
}

.hero-product figcaption span {
  color: var(--secondary);
}

.catalogue {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.section-heading p {
  max-width: 70ch;
  margin-top: 12px;
  color: var(--secondary);
  font-size: 14px;
}

.catalogue-count {
  color: var(--secondary);
  font-size: 12px;
  white-space: nowrap;
}

.prototype-note {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.product-image {
  display: block;
  padding: 10px;
  background: var(--white);
}

.product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 12px 14px;
}

.product-label {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 11px;
}

.product-details h3 {
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-details h3 a {
  color: var(--graphite);
  text-decoration: none;
}

.product-details h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}

.product-description {
  margin-top: 9px;
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.price {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.add-to-cart {
  width: 100%;
  min-height: 44px;
  padding: 10px 5px;
  font-size: 12px;
  cursor: default;
}

.product-information {
  display: grid;
  gap: 28px;
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
}

.information-intro > p {
  max-width: 30ch;
  margin-top: 16px;
  color: var(--secondary);
  font-size: 14px;
}

.information-list > div {
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}

.information-list > div:first-child {
  padding-top: 0;
}

.information-list dt {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
}

.information-list dd {
  color: var(--secondary);
  font-size: 14px;
}

.shipping-strip {
  border-block: 1px solid var(--line);
}

.shipping-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 24px;
  color: var(--secondary);
  font-size: 13px;
}

.research-section {
  padding-block: 40px;
}

.research-panel {
  padding: 28px 24px;
  border-radius: 4px;
  background: var(--mist);
}

.research-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2rem);
}

.research-panel p {
  max-width: 70ch;
  margin-top: 16px;
  color: var(--secondary);
  font-size: 14px;
}

.site-footer {
  padding-block: 36px 22px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-identity .wordmark {
  margin-bottom: 20px;
  font-size: 2.25rem;
}

.email {
  display: block;
  width: fit-content;
  font-size: 14px;
}

.footer-identity p {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 24px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}

.policy-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 24px;
  color: var(--secondary);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 11px;
  margin-top: 28px;
}

/* WooCommerce blocks retain the approved catalogue's proportions. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-woocommerce-product-collection { margin-top: 32px; }
.wp-block-woocommerce-product-template {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0;
  margin: 0;
}
.wp-block-woocommerce-product-template > li {
  display: flex; flex-direction: column; min-width: 0; width: 100% !important; max-width: none !important; margin: 0 !important;
  border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: var(--white);
}
.wc-block-components-product-image { margin: 0; padding: 10px; }
.wc-block-components-product-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain !important; }
.product-details > * { width: 100%; margin-block-start: 0; }
.product-label a { color: var(--secondary); text-decoration: none; }
.product-details .wp-block-woocommerce-product-price { margin-top: auto; margin-bottom: 12px; text-align: left; font-variant-numeric: tabular-nums; }
.product-details .wp-block-button { width: 100%; align-items: stretch; }
.product-details .wp-block-button .wp-block-button__link { display: flex; min-height: 44px; padding: 10px 5px; width: 100%; font-size: 12px; flex: 1; }
.product-details .wc-block-components-product-button { margin: 0; }
.wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-block-search__button {
  border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: var(--white);
  padding: 11px 20px; font: 600 14px/1.4 "Public Sans", Arial, sans-serif;
  cursor: pointer; text-decoration: none; min-height: 44px;
}
button:disabled { opacity: .6; cursor: not-allowed; }
.cart-button { text-decoration: none; }
.store-content { padding-block: 40px 56px; min-height: 50vh; }
.store-content > h1, .store-content > .wp-block-query-title { margin-bottom: 28px; }
.store-content h1 { font-size: clamp(2rem, 4vw, 3rem); overflow-wrap: anywhere; }
.woocommerce-breadcrumb { margin-bottom: 28px; font-size: 13px; color: var(--secondary); }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.single-product div.product > * { min-width: 0; }
.woocommerce-product-gallery { background: white; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; object-fit: contain; }
.summary h1 { margin-bottom: 20px; }
.summary .price { margin-bottom: 24px; font-size: 24px; }
.summary form.cart { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.woocommerce .quantity .qty { width: 76px; }
.research-notice { margin-top: 18px; padding: 16px; background: var(--mist); border-radius: 4px; font-size: 13px; }
.woocommerce-product-details__short-description { margin-top: 24px; max-width: 70ch; }
.product-full-description { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
.product-full-description h2 { margin-bottom: 24px; }
.product-full-description p { max-width: 70ch; margin-block: 16px; }
.product-full-description h3 { margin-top: 24px; font-size: 24px; }
.woocommerce table, .product-full-description table { width: 100%; border-collapse: collapse; margin-block: 24px; font-variant-numeric: tabular-nums; }
.woocommerce th, .woocommerce td, .product-full-description th, .product-full-description td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.woocommerce th, .product-full-description th { background: var(--mist); font-weight: 600; }
.product-full-description table { table-layout: fixed; }
.product-full-description th { width: 32%; }
.woocommerce .form-row { margin-bottom: 18px; }
.woocommerce label { display: block; margin-bottom: 6px; font-size: 14px; }
.woocommerce input:not([type=checkbox]):not([type=radio]):not([type=submit]), .woocommerce select, .woocommerce textarea, .wp-block-search__input {
  max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; padding: 10px; background: white; color: var(--graphite); font: inherit;
}
.woocommerce .input-text, .woocommerce select { width: 100%; }
.woocommerce input[type=checkbox], .woocommerce input[type=radio] { accent-color: var(--green); }
.woocommerce label.checkbox { line-height: 1.6; }
.woocommerce .required { color: var(--graphite); text-decoration: none; }
.woocommerce .form-row-first, .woocommerce .form-row-last { width: 100%; }
.woocommerce form h3, .woocommerce .cart_totals h2 { margin-block: 24px 18px; font-size: 28px; }
.woocommerce-error, .woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner {
  list-style: none; padding: 18px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 3px; background: var(--mist); color: var(--graphite);
}
.woocommerce-error { border-color: var(--graphite); }
.woocommerce .wc-block-components-notice-banner.is-info,
.woocommerce .wc-block-components-notice-banner.is-success,
.woocommerce .wc-block-components-notice-banner.is-error {
  border-color: var(--line); background: var(--mist); color: var(--graphite);
}
.woocommerce .wc-block-components-notice-banner > svg { background: var(--graphite); }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message .button { margin-right: 12px; }
.woocommerce .cart img { width: 70px; height: auto; }
.woocommerce .cart .actions { text-align: right; }
.woocommerce .coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.woocommerce .coupon input { width: 160px; }
.cart_totals { margin-left: auto; max-width: 560px; }
.checkout-button { width: 100%; }
.woocommerce-checkout #payment { background: var(--mist); padding: 20px; border-radius: 4px; }
.wc_payment_methods { padding: 0; list-style: none; }
.place-order { margin-top: 24px; }
.woocommerce-privacy-policy-text { margin-block: 20px; font-size: 13px; }
.woocommerce-MyAccount-navigation ul { padding: 0; margin: 0 0 24px; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.woocommerce-MyAccount-content p { margin-bottom: 16px; }
.woocommerce-order-overview { padding: 20px; background: var(--mist); list-style: none; }
.woocommerce-order-overview li { margin-bottom: 12px; }
.woocommerce .select2-container { max-width: 100%; font-size: inherit; }
.woocommerce .select2-container .select2-selection--single {
  display: flex; align-items: center; height: auto; min-height: 44px;
  border-color: var(--line); padding: 10px;
}
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 20px 0 0; line-height: 1.55;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0; height: 100%;
}
.wp-block-search { margin-bottom: 24px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { min-width: 0; }
@media (max-width: 599px) {
  .woocommerce-cart table.shop_table_responsive thead { display: none; }
  .woocommerce-cart table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding-block: 12px; }
  .woocommerce-cart table.shop_table_responsive td { display: block; border: 0; padding: 8px 0; }
  .woocommerce-cart table.shop_table_responsive td[data-title]::before { content: attr(data-title) ": "; font-weight: 600; }
  .woocommerce-cart .product-thumbnail { display: none !important; }
  .woocommerce-cart .quantity { display: inline-block; }
  .woocommerce-cart .cart_totals table.shop_table_responsive tr { display: table-row; }
  .woocommerce-cart .cart_totals table.shop_table_responsive td { display: table-cell; padding: 14px 12px; }
  .woocommerce-cart .cart_totals table.shop_table_responsive td::before { content: none; }
  .woocommerce-checkout-review-order-table { table-layout: fixed; }
  .woocommerce-checkout-review-order-table th:last-child { width: 34%; }
}
@media (min-width: 600px) {
  .currency-toggle a { padding-inline: 10px; font-size: 11px; }
  .wp-block-woocommerce-product-template { gap: 20px !important; }
  .wc-block-components-product-image { padding: 20px; }
  .product-details .wp-block-button .wp-block-button__link { font-size: 14px; }
  .woocommerce .form-row-first { width: 48%; float: left; }
  .woocommerce .form-row-last { width: 48%; float: right; }
  .woocommerce .form-row-wide, .woocommerce .clear { clear: both; }
}
@media (min-width: 960px) {
  .wp-block-woocommerce-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .wp-block-woocommerce-product-collection { margin-top: 36px; }
  .single-product div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 48px; }
  .woocommerce-checkout #customer_details { grid-row: 1 / 4; }
  .woocommerce-checkout #order_review_heading { margin-top: 0; }
}

@media (min-width: 600px) {
  .container {
    width: min(1200px, calc(100% - 64px));
  }

  .research-banner {
    font-size: 12px;
  }

  .header-actions {
    gap: 20px;
  }

  .currency-toggle button {
    padding-inline: 10px;
    font-size: 11px;
  }

  .cart-button {
    font-size: 14px;
  }

  .hero {
    padding-top: 56px;
  }

  .product-grid {
    gap: 20px;
  }

  .product-image {
    padding: 20px;
  }

  .product-details {
    padding: 8px 20px 20px;
  }

  .product-details h3 {
    font-size: 22px;
  }

  .product-description {
    font-size: 13px;
  }

  .add-to-cart {
    font-size: 14px;
  }

  .spec-panel {
    font-size: 13px;
  }

  .information-list > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .information-list dt {
    margin-bottom: 0;
  }

  .research-panel {
    padding: 36px 40px;
  }
}

@media (min-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
    min-height: 96px;
    gap: 44px;
  }

  .wordmark {
    font-size: 2.4rem;
  }

  .site-nav,
  .js .site-nav:not(.is-open) {
    display: flex;
    order: 0;
    width: auto;
    padding: 0;
    gap: 26px;
  }

  .menu-button {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
    padding-block: 56px 64px;
  }

  .hero-intro {
    font-size: 17px;
  }

  .spec-panel {
    margin-top: 36px;
  }

  .hero-product {
    max-width: 440px;
  }

  .catalogue {
    padding-block: 56px 72px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 36px;
  }

  .product-details h3 {
    font-size: 21px;
  }

  .product-information {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 80px;
    padding-block: 56px 64px;
  }

  .shipping-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .research-section {
    padding-block: 48px;
  }

  .research-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: 56px;
    padding: 40px;
  }

  .research-panel p {
    margin-top: 0;
  }

  .site-footer {
    padding-top: 44px;
  }

  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    gap: 64px;
  }

  .footer-nav {
    justify-content: flex-end;
    max-width: 620px;
  }
}
