/*
Theme Name: Nova Peptide
Theme URI: https://novapeps.org
Author: Nova Peptide
Description: Block theme for a WooCommerce store of research-use-only peptides. English storefront.
Version: 3.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nova-peptide
*/

/* ---------- Base ---------- */
:root{
	--np-ink:var(--wp--preset--color--ink);
	--np-muted:var(--wp--preset--color--muted);
	--np-line:var(--wp--preset--color--line);
	--np-accent:var(--wp--preset--color--accent);
	--np-paper:var(--wp--preset--color--base);
	--np-tile:#e8ecf2;
	--np-display:var(--wp--preset--font-family--display);
}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-underline-offset:3px}
:where(.wp-site-blocks) :focus-visible{outline:2px solid var(--np-accent);outline-offset:3px;border-radius:4px}
.np-wrap{max-width:1240px;margin-inline:auto;padding-inline:24px}
.np-muted{color:var(--np-muted)}
.wp-site-blocks>header,.wp-site-blocks>footer{margin-block-start:0}

/* ---------- Notice bar and header ---------- */
.np-ruobar{background:var(--np-ink);color:#c9d3e3;font-size:.8125rem;text-align:center;padding:9px 16px;line-height:1.4}
.np-header{position:sticky;top:0;z-index:40;background:rgba(242,244,247,.9);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--np-line)}
.np-header__in{display:flex;align-items:center;gap:32px;min-height:72px}
.np-logo{display:inline-flex;align-items:center;color:var(--np-ink);text-decoration:none;flex:none}
.np-logo__word{font-family:var(--np-display);font-weight:700;font-size:1.5rem;letter-spacing:-.03em;line-height:1}
.np-logo__img{height:40px;width:auto;max-width:220px;display:block}
.np-nav{display:flex;gap:30px;margin-left:auto}
.np-nav a,.np-menu__panel a{color:var(--np-ink);text-decoration:none;font-weight:500}
.np-nav a:hover{color:var(--np-accent)}
.np-tools{display:flex;align-items:center;gap:6px}
.np-acct,.np-cart,.np-menu>summary{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--np-ink);cursor:pointer}
.np-acct:hover,.np-cart:hover,.np-menu>summary:hover{background:#fff}
.np-acct svg,.np-cart svg,.np-menu svg{width:24px;height:24px}
.np-cart__n{position:absolute;top:3px;right:1px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--np-accent);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.np-cart__n[hidden]{display:none}
.np-menu{display:none;position:relative}
.np-menu>summary{list-style:none}
.np-menu>summary::-webkit-details-marker{display:none}
.np-menu__panel{position:absolute;right:0;top:52px;min-width:230px;background:#fff;border:1px solid var(--np-line);border-radius:16px;padding:8px;box-shadow:0 24px 48px -20px rgba(11,27,51,.3);display:grid}
.np-menu__panel a{padding:12px 14px;border-radius:10px}
.np-menu__panel a:hover{background:var(--np-paper)}
@media (max-width:860px){
	.np-nav{display:none}
	.np-menu{display:block}
	.np-tools{margin-left:auto}
	.np-header__in{min-height:64px;gap:12px}
	.np-logo__word{font-size:1.35rem}
}

/* ---------- Buttons ---------- */
.wp-element-button,.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{border-radius:999px!important;font-weight:600!important;transition:background-color .15s,color .15s,border-color .15s}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--np-ink)!important;color:#fff!important}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.wp-block-button:not(.is-style-outline)>.wp-block-button__link:hover{background:var(--np-accent)!important;color:#fff!important}
.is-style-outline>.wp-block-button__link{border:1.5px solid var(--np-ink)!important;color:var(--np-ink)!important;background:transparent!important;padding:12.5px 26.5px!important}
.is-style-outline>.wp-block-button__link:hover{background:var(--np-ink)!important;color:#fff!important}

/* ---------- Hero ---------- */
.np-hero{padding-top:clamp(40px,6vw,88px);padding-bottom:clamp(40px,6vw,88px);background:radial-gradient(46% 78% at 78% 44%,var(--wp--preset--color--tint) 0%,rgba(223,230,255,0) 70%)}
.np-hero h1{font-size:clamp(2.75rem,5.5vw,4.9rem);line-height:.98;letter-spacing:-.032em;margin:0;text-wrap:balance}
.np-hero .np-lead{font-size:clamp(1.0625rem,1.5vw,1.25rem);line-height:1.5;color:var(--np-muted);max-width:30em;margin-top:24px}
.np-heroimg img{border-radius:28px;width:100%;height:auto;display:block}
.np-trio{position:relative;width:100%;max-width:600px;margin-inline:auto;aspect-ratio:1/.88}
.np-trio__i{position:absolute;display:block;aspect-ratio:1;border-radius:26px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(11,27,51,.05),0 30px 60px -28px rgba(11,27,51,.42);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.np-trio__i img{display:block;width:100%!important;height:100%!important;object-fit:cover;margin:0!important;border-radius:0!important}
.np-trio__i--c{width:50%;left:25%;top:0;z-index:3}
.np-trio__i--l{width:41%;left:0;top:42%;z-index:2;transform:rotate(-7deg)}
.np-trio__i--r{width:41%;right:0;top:46%;z-index:1;transform:rotate(6deg)}
.np-trio__i--c:hover{transform:translateY(-6px)}
.np-trio__i--l:hover{transform:rotate(-7deg) translateY(-6px)}
.np-trio__i--r:hover{transform:rotate(6deg) translateY(-6px)}
.np-trio--1{aspect-ratio:1/.62}
.np-trio--1 .np-trio__i--c{width:60%;left:20%}
.np-trio--2 .np-trio__i--c{left:8%}
.np-trio--2 .np-trio__i--l{left:auto;right:0}
@media (prefers-reduced-motion:no-preference){
	.np-trio__i--l{animation:np-fan-l .7s cubic-bezier(.2,.7,.2,1) both}
	.np-trio__i--r{animation:np-fan-r .7s cubic-bezier(.2,.7,.2,1) .06s both}
	@keyframes np-fan-l{from{transform:translate(48%,-52%) rotate(0);opacity:0}}
	@keyframes np-fan-r{from{transform:translate(-48%,-58%) rotate(0);opacity:0}}
}
@media (max-width:781px){
	.np-hero .wp-block-columns{gap:44px}
	.np-trio{max-width:440px}
}

/* ---------- Facts under the hero ---------- */
.np-factsband{border-block:1px solid var(--np-line);background:#fff}
.np-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));list-style:none;margin:0;padding:0}
.np-facts li{padding:22px 24px;border-left:1px solid var(--np-line);display:grid;gap:2px}
.np-facts li:first-child{border-left:0;padding-left:0}
.np-facts strong{font-family:var(--np-display);font-weight:600;font-size:1.0625rem;letter-spacing:-.015em}
.np-facts span{color:var(--np-muted);font-size:.9375rem}
@media (max-width:900px){
	.np-facts{grid-template-columns:1fr 1fr}
	.np-facts li{padding:18px 16px;border-left:0;border-top:1px solid var(--np-line)}
	.np-facts li:nth-child(-n+2){border-top:0}
	.np-facts li:nth-child(odd){padding-left:0}
	.np-facts li:nth-child(even){border-left:1px solid var(--np-line)}
}

/* ---------- Sections ---------- */
.np-section{padding-top:clamp(56px,7vw,104px)}
.np-section--last{padding-bottom:clamp(64px,8vw,112px)}
.np-section h2{margin:0}
.np-sechead{margin-bottom:32px}
.np-sechead p{margin:0;font-weight:500}
.np-steps{list-style:none;counter-reset:np-step;display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin:36px auto 0;padding:0;max-width:1240px}
.np-steps li{counter-increment:np-step;border-top:1.5px solid var(--np-ink);padding-top:20px}
.np-steps li::before{content:counter(np-step);display:block;font-family:var(--np-display);font-weight:600;font-size:3.25rem;line-height:1;letter-spacing:-.04em;color:var(--np-accent);margin-bottom:18px}
.np-steps h3{font-family:var(--np-display);font-size:1.3125rem;font-weight:600;letter-spacing:-.02em;margin:0 0 8px}
.np-steps p{color:var(--np-muted);margin:0;max-width:34ch}
@media (max-width:781px){.np-steps{grid-template-columns:1fr;gap:28px}}
.np-coaband{max-width:1240px;margin-inline:auto!important;box-sizing:border-box;width:100%;background:var(--np-ink);color:#fff;border-radius:32px;padding:clamp(32px,5vw,64px);display:flex;align-items:flex-end;justify-content:space-between;gap:32px;flex-wrap:wrap}
.np-coaband h2{color:#fff;font-size:clamp(1.9rem,3.6vw,3.1rem);max-width:13em;text-wrap:balance}
.np-coaband p{color:#b9c5d9;margin:16px 0 0;max-width:36em}
.np-coaband__btn{display:inline-block;background:#fff;color:var(--np-ink);font-weight:600;text-decoration:none;border-radius:999px;padding:14px 28px;white-space:nowrap;transition:background-color .15s}
.np-coaband__btn:hover{background:var(--wp--preset--color--tint)}
.np-faq details{border-top:1px solid var(--np-line);padding:20px 0}
.np-faq details:last-child{border-bottom:1px solid var(--np-line)}
.np-faq summary{font-family:var(--np-display);font-weight:600;font-size:1.1875rem;letter-spacing:-.015em;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
.np-faq summary::-webkit-details-marker{display:none}
.np-faq summary::after{content:"+";font-weight:400;font-size:1.5rem;line-height:1;color:var(--np-muted)}
.np-faq details[open] summary::after{content:"–"}
.np-faq details p{color:var(--np-muted);margin:12px 0 0;max-width:60ch}
.np-cats{display:flex;flex-wrap:wrap;gap:10px}
.np-cat-tile{display:inline-flex;align-items:baseline;gap:10px;background:#fff;border:1px solid var(--np-line);border-radius:999px;padding:10px 18px;text-decoration:none!important;color:var(--np-ink)}
.np-cat-tile:hover{border-color:var(--np-ink)}
.np-cat-tile b{font-weight:600}
.np-cat-tile span{font-size:.875rem;color:var(--np-muted)}

/* ---------- Footer ---------- */
.np-footer{background:var(--np-ink);color:#b9c5d9;padding:64px 0 40px}
.np-fgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.np-footer .np-logo{color:#fff}
.np-fbrand p{margin:14px 0 18px;max-width:30ch}
.np-footer nav{display:grid;gap:8px;align-content:start}
.np-footer nav h2{font-family:inherit;font-size:1rem;font-weight:600;letter-spacing:0;color:#fff;margin:0 0 6px}
.np-footer nav a{color:#b9c5d9;text-decoration:none}
.np-footer nav a:hover{color:#fff}
.np-footer .np-fine{font-size:.8125rem;line-height:1.55;color:#8695ad;margin:40px 0 0;padding-top:24px;border-top:1px solid rgba(255,255,255,.12)}
.np-paylist{display:flex;flex-wrap:wrap;gap:8px}
.np-paylist span{border:1px solid rgba(255,255,255,.22);border-radius:8px;padding:4px 10px;font-size:.8125rem;color:#dfe6f3}
@media (max-width:781px){.np-fgrid{grid-template-columns:1fr 1fr}.np-fbrand{grid-column:1/-1}}

/* ---------- Product grid ---------- */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px;margin:0!important;padding:0}
.woocommerce.columns-4 ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;padding:0!important;display:flex;flex-direction:column}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;text-decoration:none}
.woocommerce ul.products li.product a img{margin:0 0 18px!important;background:var(--np-tile);aspect-ratio:1;object-fit:cover;width:100%;border-radius:22px;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.woocommerce ul.products li.product a:hover img{transform:scale(1.015)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--np-display);font-size:1.3125rem!important;font-weight:600;letter-spacing:-.02em;line-height:1.15;padding:0!important;margin:0!important;color:var(--np-ink)}
.woocommerce ul.products li.product br,.woocommerce ul.products li.product p:empty{display:none}
.np-sizes{display:flex;flex-wrap:wrap;gap:0 8px;padding:4px 0 0;margin:0;color:var(--np-muted);font-size:.9375rem}
.np-sizes span+span::before{content:"/";margin-right:8px;color:var(--np-line)}
.woocommerce ul.products li.product .price{display:block;color:var(--np-ink)!important;font-weight:600;font-size:1.0625rem!important;margin:8px 0 0!important;padding:0}
.woocommerce ul.products li.product .button{margin:14px 0 0!important;align-self:flex-start;padding:11px 22px!important;font-size:.9375rem}
.woocommerce ul.products li.product .onsale{left:14px;right:auto;top:14px;margin:0;background:var(--np-accent);border-radius:999px;min-height:0;min-width:0;line-height:1;padding:7px 12px;font-weight:600}
.woocommerce ul.products li.product .added_to_cart{margin-top:10px;font-weight:500}
@media (max-width:900px){.woocommerce ul.products,.woocommerce.columns-4 ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 16px}}
@media (max-width:600px){
	.woocommerce ul.products li.product a img{border-radius:16px;margin-bottom:12px!important}
	.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.0625rem!important}
	.woocommerce ul.products li.product .button{padding:10px 16px!important;font-size:.875rem}
}
.woocommerce .woocommerce-result-count{color:var(--np-muted)}
.woocommerce .woocommerce-ordering select{border:1px solid var(--np-line);border-radius:10px;padding:10px 12px;background:#fff}
.woocommerce-products-header__title{font-size:clamp(2.2rem,4.5vw,3.4rem);margin:0 0 24px}

/* ---------- Single product ---------- */
.woocommerce div.product div.images img{border-radius:24px;background:var(--np-tile)}
.woocommerce div.product .product_title{font-family:var(--np-display);font-size:clamp(2.1rem,4.2vw,3.25rem);letter-spacing:-.035em;line-height:1}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--np-ink)!important;font-weight:600;font-size:1.6rem!important}
.woocommerce div.product .stock{color:var(--np-muted)!important}
.woocommerce div.product form.cart .variations select{border:1px solid var(--np-line);border-radius:10px;padding:10px 12px;min-width:180px;background:#fff}
.woocommerce div.product form.cart .button{padding:15px 32px!important}
.woocommerce .quantity .qty{border:1px solid var(--np-line);border-radius:999px;padding:13px 10px;width:5em;background:#fff}
.product_meta .sku_wrapper{display:none}
.product_meta{color:var(--np-muted);font-size:.9375rem}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0!important;margin:0 0 18px!important;border-bottom:1px solid var(--np-line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none!important;border:0!important;border-radius:0!important;margin:0 22px 0 0!important;padding:0!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:12px 0!important;font-weight:600;color:var(--np-muted)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--np-ink)!important;box-shadow:inset 0 -2px 0 var(--np-ink)}
.woocommerce div.product .woocommerce-tabs .panel>h2:first-child{display:none}
.np-spec{width:100%;border-collapse:collapse}
.np-spec th,.np-spec td{text-align:left;padding:12px 0;border-bottom:1px solid var(--np-line);vertical-align:top}
.np-spec th{width:38%;color:var(--np-muted);font-weight:500}
.np-batch{margin:6px 0 14px;font-size:.9375rem;color:var(--np-muted)}
.np-batch strong{color:var(--np-ink)}
img.nova-ph{background:var(--np-tile)}
.np-tablewrap{overflow-x:auto}
.np-coa th,.np-coa td{padding:14px 16px 14px 0;text-align:left;white-space:nowrap}
.np-coa td:first-child{white-space:normal}
.np-coa thead th{color:var(--np-muted);font-weight:500;font-size:.9375rem;width:auto}
.np-pending{display:inline-block;padding:2px 10px;border-radius:99px;background:var(--np-tile);color:var(--np-muted);font-size:.8125rem;font-weight:600}

/* ---------- Notices, forms, cart, checkout ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:14px;border-top-width:0!important;background:#fff;box-shadow:inset 3px 0 0 var(--np-accent);color:var(--np-ink)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--np-accent)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid var(--np-line);border-radius:10px;padding:12px 14px;background:#fff}
.woocommerce-checkout #payment,.woocommerce-cart .cart_totals{background:#fff;border:1px solid var(--np-line);border-radius:20px}
.woocommerce-checkout #payment div.payment_box{background:var(--np-paper);color:var(--np-ink);border-radius:12px}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--np-paper)}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--np-line)}
.woocommerce-checkout #payment #place_order{width:100%;padding:17px 22px;font-size:1.0625rem;margin-top:8px}
#nova_ruo_attest_field label{font-size:.9375rem}
#nova_ruo_attest_field input{flex:none;width:18px;height:18px}
.woocommerce-cart .cart_totals{padding:20px}
.woocommerce-cart .cart_totals h2{margin-top:0;font-size:1.5rem}
.woocommerce table.shop_table{border-radius:16px;border-color:var(--np-line);background:#fff}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- Pages ---------- */
.np-page .wp-block-post-title{font-size:clamp(2.2rem,4.5vw,3.4rem);margin-bottom:28px}
.np-page .wp-block-post-content>p,.np-page .wp-block-post-content>ul,.np-page .wp-block-post-content>ol,.np-page .wp-block-post-content>h2,.np-page .wp-block-post-content>h3{max-width:68ch;margin-inline:0}
.np-page .wp-block-post-content>h2{font-size:1.5rem;letter-spacing:-.02em;margin-top:2em}
.np-page .wp-block-post-content>.woocommerce{max-width:none;width:100%;margin-inline:0}
