/* Compound Purity: component styles theme.json can't express. Colors/fonts come from theme.json presets. */
:root {
  --cp-navy: var(--wp--preset--color--navy);
  --cp-teal: var(--wp--preset--color--teal);
  --cp-teal-50: var(--wp--preset--color--teal-50);
  --cp-ink: var(--wp--preset--color--ink);
  --cp-muted: var(--wp--preset--color--muted);
  --cp-line: var(--wp--preset--color--line);
  --cp-surface: var(--wp--preset--color--surface);
  --cp-success: var(--wp--preset--color--success);
  --cp-shadow: var(--wp--preset--shadow--card);
  --cp-radius: 16px;
}

/* Header */
.cp-announce p { margin: 0; font-weight: 500; }
/* Rotating messages share one grid cell; only the active one is visible (JS adds .is-active). */
.cp-announce { display: grid; }
.cp-announce > .cp-announce-msg { grid-area: 1 / 1; font-size: 14px; letter-spacing: .01em; transition: opacity .5s ease, transform .5s ease; }
.cp-announce > .cp-announce-msg:not(.is-active) { opacity: 0; transform: translateY(6px); pointer-events: none; }
.cp-announce strong { color: var(--wp--preset--color--teal-300); }
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
.cp-header { background: #fff !important; } /* no backdrop-filter: it would trap the fixed mobile menu inside the header */
.cp-header .wp-block-site-logo + .cp-site-title { display: none; } /* show the title only when no logo is set */
.cp-main-nav a:hover { color: var(--cp-navy); }
.cp-search .wp-block-search__inside-wrapper { background: var(--cp-surface); border: 1px solid var(--cp-line) !important; border-radius: 999px; padding: 2px 4px 2px 14px; }
.cp-search input { background: transparent; border: 0; font-size: 14px; width: 170px; }
.cp-search .wp-block-search__button { background: transparent; color: var(--cp-muted); padding: 6px 8px; }

/* Shared bits */
.cp-eyebrow { display: inline-block; font-size: 12.5px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--cp-teal); margin: 0 0 10px !important; }
.cp-section-head { margin-bottom: 28px; gap: 20px; }
.cp-section-head h2 { margin: 0; }
.cp-link-arrow { margin: 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.cp-link-arrow a::after { content: " →"; }
.cp-muted { color: var(--cp-muted); }

/* Hero */
.cp-hero { background: radial-gradient(1200px 500px at 85% 20%, #134a78 0%, transparent 60%), var(--wp--preset--gradient--hero) !important; }
.cp-hero h1 { margin-top: 0; }
.cp-hero-img { display: block; max-width: 560px; width: 100%; height: auto; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* Trust bar */
.cp-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: auto; }
.cp-trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 20px; }
.cp-trust-item + .cp-trust-item { border-left: 1px solid var(--cp-line); }
.cp-trust-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--cp-teal-50); color: var(--cp-teal); display: grid; place-items: center; }
.cp-trust-item h4 { margin: 0 0 2px; font-size: 15px; }
.cp-trust-item p { margin: 0; font-size: 13.5px; color: var(--cp-muted); }

/* Category tiles */
.cp-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-inline: auto; }
.cp-cat-tile { background: #fff; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--cp-ink) !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cp-cat-tile:hover { border-color: var(--wp--preset--color--teal-300); box-shadow: var(--cp-shadow); transform: translateY(-2px); }
.cp-cat-thumb { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.cp-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-cat-tile strong { font-weight: 600; }
.cp-cat-tile span:last-child:not(.cp-cat-thumb) { font-size: 13px; color: var(--cp-muted); }

/* Steps */
.cp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-inline: auto; }
.cp-step { background: #fff; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); padding: 26px; }
.cp-step-num { display: block; font-weight: 700; font-size: 13px; color: var(--cp-teal); letter-spacing: .1em; margin-bottom: 14px; }
.cp-step h3 { font-size: 18px; margin: 0 0 8px; }
.cp-step p { margin: 0; color: var(--cp-muted); font-size: 14.5px; }

/* Product cards (cp_product_card in functions.php) */
.cp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cp-cols, 4), minmax(0, 1fr)); gap: 20px; }
.cp-card { position: relative; background: #fff; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.cp-card:hover { box-shadow: 0 2px 4px rgba(11,43,74,.05), 0 16px 32px rgba(11,43,74,.10); border-color: #d3dce5; transform: translateY(-3px); }
.cp-card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cp-surface); }
.cp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; transition: transform .4s ease; }
.cp-card:hover .cp-card-media img { transform: scale(1.04); }
.cp-badges { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.cp-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--cp-navy); border: 1px solid var(--cp-line); backdrop-filter: blur(4px); }
.cp-badge--tested { color: var(--cp-success); }
.cp-badge--sale { background: var(--cp-teal); color: #fff; border-color: transparent; }
.cp-badge--promo { background: var(--cp-navy); color: #fff; border-color: transparent; font-weight: 700; letter-spacing: .02em; }
.cp-card-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cp-card-cat { font-size: 11.5px; color: var(--cp-muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.cp-card-title { color: var(--cp-ink) !important; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.cp-card-title:hover { color: var(--cp-teal) !important; }
.cp-card-title::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.cp-card-spec { margin: 2px 0 0; font-size: 13px; color: var(--cp-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cp-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.cp-price { font-weight: 600; color: var(--cp-ink); font-size: 17px; line-height: 1.2; }
.cp-price del { color: var(--cp-muted); font-weight: 400; font-size: 14px; margin-right: 4px; }
.cp-price ins { text-decoration: none; }
.cp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cp-success); margin-top: 2px; }
.cp-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(24,121,78,.15); }
.cp-stock--out { color: var(--cp-muted); }
.cp-stock--out::before { box-shadow: none; }
.cp-add { position: relative; z-index: 2; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--cp-navy); color: #fff !important; display: grid; place-items: center; transition: background .15s, transform .1s; }
.cp-add:hover { background: var(--cp-teal); }
.cp-add:active { transform: scale(.94); }
.cp-add .cp-add-check, .cp-add.added .cp-add-plus { display: none; }
.cp-add.added { background: var(--cp-success); }
.cp-add.added .cp-add-check { display: block; }
.cp-add.loading { opacity: .6; pointer-events: none; }
.cp-add.loading .cp-add-plus { animation: cp-spin .8s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-card .added_to_cart { display: none !important; } /* WooCommerce's "View cart" link; the mini-cart shows it */

/* WooCommerce product-collection blocks (e.g. related products on the product page) */
.wc-block-product-template { gap: 20px !important; }
.wc-block-product-template .wc-block-product { background: #fff; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); overflow: hidden; padding-bottom: 16px; transition: box-shadow .2s, transform .2s; }
.wc-block-product-template .wc-block-product:hover { box-shadow: 0 16px 32px rgba(11,43,74,.10); transform: translateY(-3px); }
.wc-block-product-template .wc-block-components-product-image { margin-bottom: 12px !important; }
.wc-block-product-template .wc-block-components-product-image img { border-radius: 0 !important; }
.wc-block-product-template .wp-block-post-title { font-size: 15px !important; font-weight: 600; padding: 0 14px; }
.wc-block-product-template .wc-block-components-product-price { padding: 0 14px; font-weight: 600; color: var(--cp-ink); }
.wc-block-product-template .wp-block-button__link { border-radius: 10px; font-size: 14px; }

/* Sale */
.cp-nav-sale a { color: var(--cp-teal) !important; font-weight: 600; }
.cp-sale-hero .wp-block-post-title { margin: 0 0 8px; }
.cp-badge--sale { font-weight: 700; }

/* Shop / category / search */
.cp-shop-head { padding: 36px 0 8px; }
.cp-shop-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 6px 0 0; }
.cp-shop-head .woocommerce-breadcrumb { font-size: 13px; color: var(--cp-muted); margin: 0; }
.cp-shop-head .woocommerce-breadcrumb a { color: var(--cp-muted); }
.cp-shop-head .woocommerce-breadcrumb a:hover { color: var(--cp-teal); }
.cp-crumb-sep { margin: 0 6px; opacity: .6; }
.cp-shop-desc { color: var(--cp-muted); max-width: 680px; margin-top: 8px; }
.cp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.cp-chips::-webkit-scrollbar { display: none; }
.cp-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--cp-line); background: #fff; color: var(--cp-ink) !important; font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.cp-chip span { font-size: 12px; color: var(--cp-muted); }
.cp-chip:hover { border-color: var(--cp-navy); }
.cp-chip.is-active { background: var(--cp-navy); border-color: var(--cp-navy); color: #fff !important; }
.cp-chip.is-active span { color: rgba(255,255,255,.7); }
.cp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 20px; font-size: 14px; }
.cp-sort select { font: inherit; font-size: 14px; padding: 9px 34px 9px 12px; border: 1px solid var(--cp-line); border-radius: 10px; background: #fff; color: var(--cp-ink); cursor: pointer; }
.cp-empty { padding: 60px 20px; text-align: center; color: var(--cp-muted); border: 1px dashed var(--cp-line); border-radius: var(--cp-radius); }
.cp-pagination { margin-top: 36px; display: flex; justify-content: center; }
.cp-pagination ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.cp-pagination a, .cp-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--cp-line); color: var(--cp-ink); font-weight: 500; }
.cp-pagination .current { background: var(--cp-navy); border-color: var(--cp-navy); color: #fff; }

/* Single product */
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 10px 10px 0 0; }
.woocommerce div.product form.cart .button { border-radius: 10px; }
.wc-block-components-product-image img, .woocommerce-product-gallery__image img { border-radius: 20px; }

/* Footer */
.cp-footer-links { list-style: none; padding: 0; margin: 0; }
.cp-footer-links li { padding: 3px 0; }

/* Responsive */
@media (max-width: 1080px) {
  .cp-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-grid { --cp-cols: 3 !important; }
  .cp-search input { width: 120px; }
}
@media (max-width: 781px) {
  .cp-hero .wp-block-columns { flex-direction: column-reverse; }
  .cp-hero-img { max-width: 300px; }
  .cp-trust-grid, .cp-steps { grid-template-columns: minmax(0, 1fr); }
  .cp-trust-item { padding: 16px 0; }
  .cp-trust-item + .cp-trust-item { border-left: 0; border-top: 1px solid var(--cp-line); }
  .cp-grid { --cp-cols: 2 !important; gap: 12px; }
  .cp-card-body { padding: 12px; }
  .cp-card-title { font-size: 14.5px; }
  .cp-badge--tested { display: none; }
  .cp-add { width: 38px; height: 38px; }
  .cp-toolbar { margin-top: 10px; }
}
@media (max-width: 420px) {
  .cp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================================
 * v0.6 — header, product page and mobile-first refinements (90% of visitors are on phones)
 * ======================================================================== */

/* Header layout: brand | nav | actions */
.cp-header-row { gap: 24px; }
.cp-brand { flex: none; }
.cp-brand .wp-block-site-logo img { height: 64px; width: auto !important; max-width: none; display: block; }
.cp-main-nav { flex: 1; }
.cp-actions { flex: none; }
.cp-actions .wp-block-customer-account a, .cp-actions .wc-block-mini-cart__button { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.cp-search-mobile { display: none; }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px 24px 40px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px !important; align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 24px; font-weight: 600; padding: 14px 0 !important; display: block; width: 100%; color: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open .cp-nav-sale .wp-block-navigation-item__content { color: var(--wp--preset--color--teal-300) !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: grid; place-items: center; }

/* Product page */
.cp-pdp-top .woocommerce-breadcrumb { font-size: 13px; color: var(--cp-muted); margin-bottom: 18px; }
.cp-pdp-top .woocommerce-breadcrumb a { color: var(--cp-muted); }
.cp-pdp-media .woocommerce-product-gallery { background: var(--cp-surface); border-radius: 20px; overflow: hidden; }
.cp-pdp-media .woocommerce-product-gallery__image img { border-radius: 0 !important; }
.cp-pdp-media .flex-control-thumbs { display: flex; gap: 8px; padding: 8px; }
.cp-pdp-media .flex-control-thumbs li { width: 72px !important; border-radius: 10px; overflow: hidden; }
.cp-pdp-cat { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.cp-pdp-cat a { color: var(--cp-teal); }
.cp-pdp-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 10px; }
.cp-pdp-price { font-size: 1.75rem !important; font-weight: 600; color: var(--cp-ink); margin-bottom: 8px; }
.cp-pdp-price del { font-size: 1.1rem; color: var(--cp-muted); font-weight: 400; }
.cp-pdp-price ins { text-decoration: none; }
.cp-pdp-excerpt { color: var(--cp-muted); margin-bottom: 20px; }
.cp-pdp-info form.cart { display: flex; gap: 12px; align-items: stretch; margin: 0 0 4px !important; }
.cp-pdp-info form.cart .quantity input.qty { height: 52px; width: 72px; border: 1px solid var(--cp-line); border-radius: 12px; font: inherit; font-weight: 600; text-align: center; }
.cp-pdp-info form.cart .single_add_to_cart_button { flex: 1; height: 52px; border-radius: 12px !important; font-size: 16px !important; font-weight: 600; background: var(--cp-navy) !important; color: #fff !important; }
.cp-pdp-info form.cart .single_add_to_cart_button:hover { background: var(--cp-teal) !important; }
.cp-pdp-trust { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--cp-line); display: grid; gap: 10px; font-size: 14px; color: var(--cp-ink); }
.cp-pdp-trust li { display: flex; align-items: center; gap: 10px; }
.cp-pdp-trust svg { color: var(--cp-teal); flex: none; }
.cp-pdp-details { margin-top: 48px; }
.cp-pdp-details .woocommerce-tabs ul.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 !important; margin: 0 0 20px !important; border: 0 !important; scrollbar-width: none; }
.cp-pdp-details .woocommerce-tabs ul.tabs::before, .cp-pdp-details .woocommerce-tabs ul.tabs li::before, .cp-pdp-details .woocommerce-tabs ul.tabs li::after { display: none !important; }
.cp-pdp-details .woocommerce-tabs ul.tabs li { flex: none; margin: 0 !important; padding: 0 !important; border: 1px solid var(--cp-line) !important; border-radius: 999px !important; background: #fff !important; }
.cp-pdp-details .woocommerce-tabs ul.tabs li a { display: block; padding: 9px 18px !important; font-size: 14px; font-weight: 500; color: var(--cp-ink) !important; }
.cp-pdp-details .woocommerce-tabs ul.tabs li.active { background: var(--cp-navy) !important; border-color: var(--cp-navy) !important; }
.cp-pdp-details .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.cp-pdp-details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.cp-related { margin-top: 56px; }
.cp-related h2 { margin: 0 0 20px; }

/* Sticky add-to-cart (phones only) */
.cp-sticky-buy { display: none; }
@media (max-width: 781px) {
  .cp-sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--cp-line); box-shadow: 0 -8px 24px rgba(11,43,74,.08); transform: translateY(110%); transition: transform .25s ease; }
  .cp-sticky-buy.is-visible { transform: none; }
  .cp-sticky-buy-info { display: flex; flex-direction: column; min-width: 0; }
  .cp-sticky-buy-title { font-size: 13px; color: var(--cp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cp-sticky-buy-price { font-weight: 700; color: var(--cp-ink); font-size: 17px; }
  .cp-sticky-buy-price del { display: none; }
  .cp-sticky-buy-price ins { text-decoration: none; }
  .cp-sticky-buy-price * { margin: 0 !important; font-size: inherit !important; }
  .cp-sticky-buy button { flex: none; height: 48px; padding: 0 26px; border-radius: 12px; border: 0; font-weight: 600; font-size: 15px; }
  body.has-sticky-buy .cp-footer { padding-bottom: 96px !important; }
}

/* ---- Phones ---- */
@media (max-width: 781px) {
  /* Header: logo left, then search · account · cart · menu on the right */
  .cp-header { padding-top: 8px !important; padding-bottom: 8px !important; }
  .cp-header-row { gap: 4px; }
  .cp-brand { order: 1; margin-right: auto; }
  .cp-brand .wp-block-site-logo img { height: 48px; }
  .cp-actions { order: 2; }
  .cp-main-nav { order: 3; flex: none; }
  .cp-search { display: none !important; }
  .cp-search-mobile { display: block; }
  .cp-search-mobile .wp-block-search__button { width: 44px; height: 44px; padding: 0; background: transparent; color: var(--cp-ink); border: 0; }
  .cp-search-mobile.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper { border: 0; }
  .cp-search-mobile:not(.wp-block-search__searchfield-hidden) { position: absolute; left: 16px; right: 16px; top: 8px; z-index: 5; background: #fff; }
  .cp-search-mobile:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { border: 1px solid var(--cp-line); border-radius: 999px; padding-left: 14px; height: 48px; }
  .cp-search-mobile:not(.wp-block-search__searchfield-hidden) input { font-size: 16px; } /* 16px stops iOS zoom */
  .cp-announce > .cp-announce-msg { font-size: 13.5px; }

  /* Hero: compact, image first, thumb-friendly buttons */
  .cp-hero { padding-top: 28px !important; padding-bottom: 36px !important; }
  .cp-hero .wp-block-columns { gap: 8px !important; }
  .cp-hero-img { max-width: 330px; width: 100%; }
  .cp-hero h1 { font-size: 2rem !important; line-height: 1.15; }
  .cp-hero .has-large-font-size { font-size: 1rem !important; }
  .cp-hero .wp-block-buttons { margin-top: 20px !important; gap: 10px; flex-wrap: nowrap; }
  .cp-hero .wp-block-button { flex: 1; }
  .cp-hero .wp-block-button__link { width: 100%; padding: 14px 10px !important; }

  /* Trust bar: swipeable cards */
  .cp-trust-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 14px 0; scrollbar-width: none; }
  .cp-trust-grid::-webkit-scrollbar { display: none; }
  .cp-trust-item, .cp-trust-item + .cp-trust-item { flex: 0 0 82%; scroll-snap-align: start; border: 1px solid var(--cp-line); border-radius: 14px; padding: 14px; }

  /* Categories: swipeable row */
  .cp-cat-grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -16px; padding-right: 16px; padding-bottom: 4px; scrollbar-width: none; }
  .cp-cat-grid::-webkit-scrollbar { display: none; }
  .cp-cat-tile { flex: 0 0 40%; scroll-snap-align: start; padding: 10px; }
  .cp-cat-tile strong { font-size: 14px; }
  .cp-section-head { margin-bottom: 18px; }
  .cp-section-head h2 { font-size: 1.5rem; }

  /* Cards */
  .cp-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
  .cp-card-cat { font-size: 10.5px; }
  .cp-card-spec { display: none; }
  .cp-price { font-size: 16px; }
  .cp-add { width: 44px; height: 44px; }
  .cp-badges { left: 8px; right: 8px; bottom: 8px; }
  .cp-badge { font-size: 10.5px; padding: 3px 7px; }

  /* Shop: sticky chips under the header */
  .cp-shop-head { padding-top: 18px; }
  .cp-toolbar { margin: 8px 0 14px; }

  /* Product page */
  .cp-pdp { gap: 20px !important; }
  .cp-pdp-media .woocommerce-product-gallery { border-radius: 16px; margin: 0 -4px; }
  .cp-pdp-info h1 { font-size: 1.6rem; }
  .cp-pdp-price { font-size: 1.5rem !important; }
  .cp-pdp-details { margin-top: 32px; }
  .cp-related { margin-top: 40px; }
  .cp-related .cp-grid { --cp-cols: 2 !important; }

  /* Footer */
  .cp-footer .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .cp-footer .wp-block-column:first-child { grid-column: 1 / -1; }
}

/* Variable products: option pickers */
.cp-pdp-info form.variations_form { display: block; }
.cp-pdp-info table.variations { width: 100%; border: 0; margin: 0 0 16px; border-collapse: collapse; }
.cp-pdp-info table.variations tr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cp-pdp-info table.variations th, .cp-pdp-info table.variations td { padding: 0; border: 0; text-align: left; }
.cp-pdp-info table.variations label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--cp-muted); }
.cp-pdp-info table.variations select { width: 100%; height: 50px; padding: 0 40px 0 14px; border: 1.5px solid var(--cp-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231F2933' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; font: inherit; font-size: 16px; color: var(--cp-ink); appearance: none; -webkit-appearance: none; }
.cp-pdp-info table.variations select:focus { outline: none; border-color: var(--cp-teal); }
.cp-pdp-info .reset_variations { font-size: 13px; color: var(--cp-muted); }
.cp-pdp-info .single_variation_wrap .woocommerce-variation-price { font-size: 1.25rem; font-weight: 600; color: var(--cp-ink); margin-bottom: 12px; }
.cp-pdp-info .woocommerce-variation-add-to-cart { display: flex; gap: 12px; }
.cp-pdp-info .single_add_to_cart_button.disabled { opacity: .5; }

/* v0.7 homepage sections */
.cp-section-head--block { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.cp-steps--stack { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
.cp-steps--stack .cp-step { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.cp-steps--stack .cp-step-num { margin: 2px 0 0; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--cp-teal-50); display: grid; place-items: center; letter-spacing: 0; }
.cp-media-coa-sample img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 2px 6px rgba(11,43,74,.06), 0 24px 48px rgba(11,43,74,.14); transform: rotate(1.5deg); }
.cp-faq { display: grid; gap: 10px; margin-top: 28px; }
.cp-faq-item { background: #fff; border: 1px solid var(--cp-line); border-radius: 14px; padding: 0 20px; }
.cp-faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--cp-ink); display: flex; justify-content: space-between; gap: 16px; }
.cp-faq-item summary::-webkit-details-marker { display: none; }
.cp-faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--cp-teal); font-weight: 400; }
.cp-faq-item[open] summary::after { content: "–"; }
.cp-faq-item p { margin: 0 0 18px; color: var(--cp-muted); }

@media (max-width: 781px) {
  /* Swipeable product rows with the next card peeking */
  .cp-grid--carousel { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -16px; padding: 4px 16px 8px 0; scrollbar-width: none; }
  .cp-grid--carousel::-webkit-scrollbar { display: none; }
  .cp-grid--carousel .cp-card { flex: 0 0 46%; scroll-snap-align: start; }
  .cp-grid--carousel .cp-card:hover { transform: none; }
  .cp-section-head--block { margin-bottom: 16px; }
  .cp-section-head--block h2 { font-size: 1.5rem; margin: 0; }
  .cp-testing { flex-direction: column-reverse; gap: 24px !important; }
  .cp-media-coa-sample img { max-width: 300px; margin: 0 auto; display: block; }
  .cp-steps--stack .cp-step { padding: 16px; }
}

/* v0.8 animated hero showcase (blocks/hero-showcase + assets/js/theme.js) */
.cp-showcase { position: relative; height: clamp(340px, 34vw, 470px); isolation: isolate; }
.cp-showcase-net { position: absolute; inset: -40px -20px; width: calc(100% + 40px); height: calc(100% + 80px); z-index: -2; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.cp-showcase-glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(circle, rgba(0,117,160,.55), rgba(0,117,160,0) 65%); filter: blur(10px); animation: cp-glow 7s ease-in-out infinite; }
@keyframes cp-glow { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.08); } }
.cp-showcase-stage { position: absolute; inset: 0; }
.cp-vial { position: absolute; bottom: 4%; aspect-ratio: 520 / 1080; will-change: transform; transform-origin: 50% 90%; }
.cp-vial--center { height: 92%; left: 50%; translate: -50% 0; z-index: 3; } /* translate is separate from the JS transform */
.cp-vial--left, .cp-vial--right { height: 72%; z-index: 2; }
.cp-vial--left { left: 4%; transform: rotate(-6deg); }
.cp-vial--right { right: 4%; transform: rotate(6deg); }
.cp-vial-float { width: 100%; height: 100%; animation: cp-float 6s ease-in-out infinite; }
.cp-vial--left .cp-vial-float { animation-delay: -2s; animation-duration: 7s; }
.cp-vial--right .cp-vial-float { animation-delay: -4s; animation-duration: 6.5s; }
@keyframes cp-float { 50% { transform: translateY(-12px); } }
.cp-vial-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 34px rgba(0,0,0,.45)); opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.cp-showcase.is-ready .cp-vial-img { opacity: 1; transform: none; }
.cp-showcase.is-ready .cp-vial--left .cp-vial-img { transition-delay: .15s; }
.cp-showcase.is-ready .cp-vial--right .cp-vial-img { transition-delay: .3s; }
.cp-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cp-hero-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #DCE8F2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; }
.cp-hero-chips svg { color: var(--wp--preset--color--teal-300); }
@media (prefers-reduced-motion: reduce) {
  .cp-vial-float, .cp-showcase-glow { animation: none; }
  .cp-vial-img { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 781px) {
  .cp-showcase { height: 300px; margin: 8px -16px 0; }
  .cp-vial--center { height: 90%; }
  .cp-vial--left, .cp-vial--right { height: 64%; bottom: 6%; }
  .cp-vial--left { left: 7%; }
  .cp-vial--right { right: 7%; }
  .cp-announce > .cp-announce-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cp-hero-chips { margin-top: 16px; }
  .cp-hero-chips li { font-size: 12px; padding: 5px 10px; }
}

/* v0.8.1: flush page sections, cleaner mobile header + menu, shorter hero */
.wp-site-blocks > * { margin-block-start: 0 !important; } /* no white gap between header, page and footer */
.cp-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.cp-actions { align-items: center; }
.cp-actions > * { display: flex; align-items: center; }
.cp-actions .wp-block-customer-account a { width: 44px; height: 44px; display: grid; place-items: center; }
.cp-nav-mobile-only { display: none !important; }

@media (max-width: 781px) {
  /* Header: logo · search · cart · menu, all 44px and evenly spaced (account lives in the menu) */
  .cp-header-row { gap: 0; }
  .cp-actions { gap: 0 !important; }
  .cp-account { display: none !important; }
  .cp-search-mobile { margin: 0; }
  .cp-search-mobile .wp-block-search__inside-wrapper { padding: 0 !important; border: 0 !important; }
  .cp-search-mobile .wp-block-search__button { display: grid; place-items: center; margin: 0; }
  .cp-search-mobile .wp-block-search__button svg { width: 22px; height: 22px; }
  .cp-main-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }

  /* Full-screen navy menu */
  .wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px 32px !important; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { max-width: none; height: 100%; display: flex; flex-direction: column; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 64px 12px 0 !important; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 26px; letter-spacing: -.01em; padding: 16px 0 !important; }
  .wp-block-navigation__responsive-container.is-menu-open .cp-nav-mobile-only { display: block !important; }
  .wp-block-navigation__responsive-container.is-menu-open .cp-nav-mobile-only .wp-block-navigation-item__content { font-size: 17px; font-weight: 500; color: #B9CCDC !important; }
  .wp-block-navigation__responsive-container.is-menu-open .cp-nav-mobile-only:not(.cp-nav-mobile-only + .cp-nav-mobile-only) { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
  .wp-block-navigation__responsive-container-close { top: 6px !important; right: 4px !important; color: #fff; }
  .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

  /* Hero: about half a screen, so the trust strip and categories peek in */
  .cp-hero { padding-top: 12px !important; padding-bottom: 26px !important; }
  .cp-showcase { height: 230px; margin-top: 0; }
  .cp-hero .cp-eyebrow { margin-bottom: 6px !important; }
  .cp-hero h1 { font-size: 1.8rem !important; margin-bottom: 10px; }
  .cp-hero .has-large-font-size { font-size: .95rem !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
  .cp-hero .wp-block-buttons { margin-top: 18px !important; }
  .cp-hero-chips { display: none; } /* the trust strip right below says the same thing */
}

/* ===========================================================================
 * v0.9 — first-visit intro, glass sheen, CoA zoom, batch reveal
 * ======================================================================== */
.wp-site-blocks { overflow-x: clip; } /* scaled/animated elements never cause sideways scroll */

/* First-visit intro (JS adds .cp-intro to the hero once per session) */
.cp-intro .cp-vial-img { transition: none; }
.cp-intro .cp-vial--center .cp-vial-img { animation: cp-drop 1.25s cubic-bezier(.2,.9,.25,1.15) .25s both; }
.cp-intro .cp-vial--left .cp-vial-img { animation: cp-swing-l 1.3s cubic-bezier(.2,.9,.3,1.05) .55s both; }
.cp-intro .cp-vial--right .cp-vial-img { animation: cp-swing-r 1.3s cubic-bezier(.2,.9,.3,1.05) .65s both; }
@keyframes cp-drop { 0% { opacity: 0; transform: translateY(-120px) scale(1.25); filter: blur(10px) drop-shadow(0 28px 34px rgba(0,0,0,.45)); } 60% { opacity: 1; filter: blur(0) drop-shadow(0 28px 34px rgba(0,0,0,.45)); } 100% { opacity: 1; transform: none; } }
@keyframes cp-swing-l { 0% { opacity: 0; transform: translateX(-70vw) rotate(-40deg); } 100% { opacity: 1; transform: none; } }
@keyframes cp-swing-r { 0% { opacity: 0; transform: translateX(70vw) rotate(40deg); } 100% { opacity: 1; transform: none; } }
.cp-intro .cp-showcase-glow { animation: cp-flash 1.6s ease-out .9s both, cp-glow 7s ease-in-out 2.5s infinite; }
@keyframes cp-flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.35); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.cp-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.cp-word > span { display: inline-block; animation: cp-word-up .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i) * .07s); }
@keyframes cp-word-up { from { transform: translateY(110%); } to { transform: none; } }
.cp-intro .cp-hero-copy .cp-eyebrow, .cp-intro .cp-hero-copy .has-large-font-size, .cp-intro .cp-hero-copy .wp-block-buttons, .cp-intro .cp-hero-chips { animation: cp-fade-up .8s ease both; }
.cp-intro .cp-hero-copy .cp-eyebrow { animation-delay: .15s; }
.cp-intro .cp-hero-copy .has-large-font-size { animation-delay: .9s; }
.cp-intro .cp-hero-copy .wp-block-buttons { animation-delay: 1.1s; }
.cp-intro .cp-hero-chips { animation-delay: 1.3s; }
@keyframes cp-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Glass sheen, masked to each vial's own shape */
.cp-vial-float { position: relative; }
.cp-vial-float::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.1) 54%, transparent 62%) no-repeat; background-size: 300% 100%; background-position: 150% 0; -webkit-mask: var(--cp-vial-mask) center / contain no-repeat; mask: var(--cp-vial-mask) center / contain no-repeat; animation: cp-sheen 6s ease-in-out 2.2s infinite; mix-blend-mode: screen; }
.cp-vial--left .cp-vial-float::after { animation-delay: 2.8s; }
.cp-vial--right .cp-vial-float::after { animation-delay: 3.4s; }
@keyframes cp-sheen { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }

/* CoA zoom (transform set by JS) */
.cp-media-coa-sample img { transition: transform .1s linear; will-change: transform; transform-origin: 50% 40%; }

/* Batch reveal section */
.cp-batch { height: 230vh; background: linear-gradient(180deg, #fff 0%, var(--cp-surface) 100%); }
.cp-batch-sticky { position: sticky; top: var(--cp-header-h, 110px); height: calc(100vh - var(--cp-header-h, 110px)); max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; }
.cp-batch-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 14px; }
.cp-batch-text { color: var(--cp-muted); font-size: 16px; margin: 0 0 20px; }
.cp-batch-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.cp-batch-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--cp-ink); opacity: calc(.35 + var(--q, 0) * 2); }
.cp-batch-steps li:nth-child(2) { opacity: calc(.35 + (var(--q, 0) - .25) * 2); }
.cp-batch-steps li:nth-child(3) { opacity: calc(.35 + (var(--q, 0) - .5) * 2); }
.cp-batch-steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cp-navy); color: #fff; font-size: 13px; font-weight: 700; }
.cp-batch-stage { position: relative; height: min(70vh, 560px); perspective: 1400px; }
.cp-bvial { position: absolute; bottom: 4%; height: 74%; aspect-ratio: 520 / 1080; transform-origin: 50% 95%; will-change: transform; }
.cp-bvial--left { left: 2%; }
.cp-bvial--center { left: 36%; height: 88%; z-index: 2; }
.cp-bvial--right { left: 70%; }
.cp-bvial-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cp-bvial .cp-vial-img { opacity: 1; transform: none; filter: drop-shadow(0 22px 26px rgba(11,43,74,.28)); }
/* The flap is hinged at the vial's right edge and peels open toward the viewer */
.cp-flap { position: absolute; left: 86%; top: 50%; width: 92%; transform-origin: 0 50%; transform: rotateY(calc(95deg - var(--open, 0) * 117deg)); z-index: 3; }
.cp-flap-face { display: grid; justify-items: center; gap: 4px; padding: 10px 8px 9px; background: #fff; border-radius: 4px 10px 10px 4px; border: 1px solid var(--cp-line); border-top: 5px solid var(--cp-navy); box-shadow: 0 14px 30px rgba(11,43,74,calc(var(--open, 0) * .28)); text-align: center; }
.cp-flap-kicker { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cp-muted); }
.cp-flap-batch { font-size: clamp(12px, 1.4vw, 17px); font-weight: 700; color: var(--cp-navy); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cp-flap-batch--generic { font-size: 11px; letter-spacing: 0; }
.cp-flap-qr { width: 78%; max-width: 110px; aspect-ratio: 1; }
.cp-flap-qr svg { width: 100%; height: 100%; display: block; }
.cp-flap-scan { font-size: 9px; font-weight: 600; color: var(--cp-teal); letter-spacing: .04em; }
.cp-bvial--center .cp-flap { width: 100%; }
.cp-batch.is-open .cp-bvial { --open: 1; }
@media (max-width: 781px) {
  .cp-batch { height: 200vh; }
  .cp-batch-sticky { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 12px; padding: 0 16px; }
  .cp-batch-copy h2 { font-size: 1.45rem; margin-bottom: 8px; }
  .cp-batch-text { font-size: 14px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cp-batch-steps { display: none; }
  .cp-batch-btn { padding: 10px 18px !important; font-size: 14px !important; }
  .cp-batch-stage { order: -1; height: 46vh; }
  .cp-bvial--left { left: 0; }
  .cp-bvial--center { left: 33%; }
  .cp-bvial--right { left: 66%; }
  .cp-flap { width: 84%; left: 80%; }
  .cp-flap-kicker, .cp-flap-scan { font-size: 7.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-batch { height: auto; }
  .cp-batch-sticky { position: static; height: auto; padding-block: 64px; }
  .cp-vial-float::after { display: none; }
}
/* Batch reveal layout: big QR flap on the centre vial; side vials get small batch tags that peel outward */
.cp-bvial--left, .cp-bvial--right { height: 66%; z-index: 1; }
.cp-bvial--left { left: 0; }
.cp-bvial--right { left: 74%; }
.cp-bvial--center { left: 28%; }
.cp-bvial--center .cp-flap { width: 108%; }
.cp-bvial--left .cp-flap, .cp-bvial--right .cp-flap { width: 70%; top: 56%; }
.cp-bvial--left .cp-flap { left: auto; right: 86%; transform-origin: 100% 50%; transform: rotateY(calc(-95deg + var(--open, 0) * 117deg)); }
.cp-bvial--left .cp-flap-face { border-radius: 10px 4px 4px 10px; }
.cp-bvial--left .cp-flap-qr, .cp-bvial--right .cp-flap-qr, .cp-bvial--left .cp-flap-scan, .cp-bvial--right .cp-flap-scan { display: none; }
@media (max-width: 781px) {
  .cp-batch-stage { height: 44vh; }
  .cp-bvial--left, .cp-bvial--right { height: 56%; opacity: .55; filter: saturate(.8); }
  .cp-bvial--left { left: -4%; }
  .cp-bvial--right { left: 78%; }
  .cp-bvial--center { left: 22%; height: 86%; }
  .cp-bvial--left .cp-flap, .cp-bvial--right .cp-flap { display: none; }
  .cp-bvial--center .cp-flap { width: 118%; left: 80%; }
  .cp-flap-qr { max-width: 96px; }
  .cp-flap-batch { font-size: 14px; }
}
/* Desktop: keep the outward-opening side tags inside the stage */
@media (min-width: 782px) {
  .cp-bvial--left { left: 15%; }
  .cp-bvial--center { left: 33%; }
  .cp-bvial--right { left: 60%; }
}
.cp-bvial--right .cp-flap { display: none; } /* the centre QR flap opens over it */
