/*
Theme Name: PSPeptides
Description: A classic WooCommerce theme for the PSPeptides storefront.
Version: 1.0.29
Text Domain: pspeptides-v1
*/

:root {
	--ps-ink: #182c2a;
	--ps-muted: #425c55;
	--ps-paper: #f5f3ea;
	--ps-surface: #fffdf7;
	--ps-line: #d0d9cf;
	--ps-brand: #184d43;
	--ps-accent: #cee96e;
	--ps-danger: #a23d38;
	--ps-radius: 14px;
	--ps-width: 1280px;
	--ps-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ps-display: Georgia, "Times New Roman", serif;
	--ps-gutter: clamp(18px, 3.3vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--ps-paper);
	color: var(--ps-ink);
	font: 1rem/1.55 var(--ps-font);
}

a { color: var(--ps-brand); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-inline-size: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ps-brand); outline-offset: 4px; }
.ps-wrap { width: min(var(--ps-width), calc(100% - var(--ps-gutter) * 2)); margin-inline: auto; }
.ps-sr-only, .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ps-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 44px;
	gap: 8px;
	padding: .6rem 1.15rem;
	border: 1px solid var(--ps-brand);
	border-radius: 7px;
	font-weight: 650;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}
.ps-button.ps-button--solid { color: var(--ps-surface); background: var(--ps-brand); }
.ps-button.ps-button--solid:hover { background: var(--ps-ink); }
.ps-button.ps-button--outline { color: var(--ps-brand); background: transparent; }
.ps-button.ps-button--outline:hover { background: #e8eee3; }
.ps-text-link { display: inline-flex; gap: .45em; align-items: center; font-weight: 650; text-underline-offset: .19em; }
.ps-text-link:hover { color: var(--ps-ink); }
.ps-skip-link { position: fixed; z-index: 1000; inset: 10px auto auto 10px; padding: .6rem 1rem; background: var(--ps-surface); transform: translateY(-180%); }
.ps-skip-link:focus { transform: none; }
#ps-content { scroll-margin-top: 130px; }

.ps-preview {
	padding: .45rem 1rem;
	border-bottom: 1px solid #2e6556;
	background: var(--ps-brand);
	color: var(--ps-surface);
	text-align: center;
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .035em;
}
.ps-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--ps-surface);
	border-bottom: 1px solid var(--ps-line);
}
body.admin-bar .ps-header { top: 32px; }
.ps-header__row { min-height: 74px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.ps-wordmark { display: inline-flex; gap: 9px; align-items: center; color: inherit; font-size: clamp(1.18rem, 2vw, 1.5rem); font-weight: 775; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.ps-wordmark__mark { width: 22px; height: 22px; display: inline-block; flex: 0 0 auto; border-radius: 50% 50% 50% 12%; background: var(--ps-brand); position: relative; transform: rotate(-12deg); }
.ps-wordmark__mark::after { content: ""; position: absolute; inset: 6px; border: 2px solid var(--ps-accent); border-radius: 50%; }
.ps-header__nav > ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 37px); margin: 0; padding: 0; list-style: none; }
.ps-header__nav a, .ps-header__actions > a, .ps-header__actions summary { color: var(--ps-ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.ps-header__nav a:hover, .ps-header__actions > a:hover, .ps-header__actions summary:hover { color: var(--ps-brand); text-decoration: underline; text-underline-offset: .23em; }
.ps-shop-nav { position: relative; }
.ps-header__nav > ul > li > a { display: block; padding-block: 22px; }
.ps-shop-nav > .sub-menu {
	display: none;
	position: absolute;
	z-index: 1;
	left: 0;
	top: 100%;
	width: min(530px, 60vw);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px 16px;
	margin: 0;
	padding: 14px;
	list-style: none;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	box-shadow: 0 16px 40px #182c2a1f;
	background: var(--ps-surface);
}
.ps-shop-nav:hover > .sub-menu, .ps-shop-nav:focus-within > .sub-menu { display: grid; }
.ps-shop-nav .sub-menu a { display: block; padding: 8px; line-height: 1.35; }
.ps-header__actions { display: flex; gap: clamp(12px, 1.9vw, 24px); align-items: center; }
.ps-header__actions summary { display: flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; }
.ps-header__actions summary::-webkit-details-marker { display: none; }
.ps-header__actions .ps-header__cart { display: inline-flex; align-items: center; gap: 6px; padding: .45rem .72rem; border-radius: 6px; background: var(--ps-accent); white-space: nowrap; }
.ps-search__panel, .ps-mobile-menu__panel {
	position: absolute;
	top: calc(100% + 1px);
	right: 0;
	z-index: 1;
	width: min(450px, 100%);
	padding: 14px;
	border: 1px solid var(--ps-line);
	border-radius: 0 0 var(--ps-radius) var(--ps-radius);
	box-shadow: 0 16px 36px #182c2a24;
	background: var(--ps-surface);
}
.ps-search-form { display: flex; gap: .5rem; max-width: 100%; }
.ps-search-form input { flex: 1 1 auto; width: 12rem; min-width: 0; padding: .6rem; color: var(--ps-ink); border: 1px solid var(--ps-line); border-radius: 7px; background: white; }
.ps-mobile-menu { display: none; }
.ps-mobile-menu__panel { max-height: min(76vh, 550px); overflow-y: auto; }
.ps-mobile-menu__panel .ps-search-form { margin-bottom: 8px; }
.ps-mobile-menu__panel > a { display: block; padding: 10px 6px; color: var(--ps-ink); text-decoration: none; }
.ps-mobile-menu__panel > a:hover { background: var(--ps-paper); }

.ps-home h1, .ps-home h2, .ps-page__title {
	margin: 0;
	font-family: var(--ps-display);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.055em;
}
.ps-home h2 { font-size: clamp(2rem, 4.25vw, 3.6rem); }
.ps-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(26px, 6vw, 95px); padding-block: clamp(27px, 4.2vw, 62px); }
.ps-hero__content { align-self: center; padding-block: clamp(12px, 2vw, 34px); }
.ps-kicker { color: var(--ps-brand); font-size: .79rem; font-weight: 720; letter-spacing: .115em; text-transform: uppercase; margin: 0 0 16px; }
.ps-hero h1 { max-width: 11ch; font-size: clamp(3rem, 6.15vw, 6.4rem); }
.ps-hero__summary { max-width: 43ch; margin-block: 22px 28px; color: var(--ps-muted); font-size: clamp(1rem, 1.75vw, 1.24rem); }
.ps-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ps-hero__visual {
	min-width: 0;
	min-height: clamp(270px, 36vw, 535px);
	position: relative;
	overflow: hidden;
	border-radius: var(--ps-radius);
	background: radial-gradient(ellipse at 75% 30%, #6a9178, #2b5145 39%, #152d2a 76%);
}
.ps-hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ps-home__categories, .ps-home__catalog { margin-bottom: clamp(38px, 6vw, 84px); }
.ps-section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.ps-category-grid, .ps-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.ps-category-grid a {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: .5rem;
	padding: .85rem 1rem;
	border: 1px solid var(--ps-line);
	border-radius: 8px;
	background: var(--ps-surface);
	font-weight: 650;
	text-decoration: none;
}
.ps-category-grid a:hover { background: #e8eee3; }
.ps-product-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-surface);
}
.ps-product-card__image { display: grid; place-items: center; position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--ps-radius) var(--ps-radius) 0 0; background: #e7ede5; }
.ps-product-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-product-card__badge { position: absolute; inset: 9px auto auto 9px; padding: .15rem .5rem; border-radius: 4px; color: var(--ps-ink); background: var(--ps-surface); font-size: .75rem; font-weight: 650; }
.ps-product-card__badge--sale { background: var(--ps-accent); }
.ps-product-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 15px; }
.ps-product-card h3 { margin: 0; font-size: clamp(.95rem, 1.55vw, 1.16rem); line-height: 1.35; overflow-wrap: anywhere; }
.ps-product-card h3 a { color: var(--ps-ink); text-decoration: none; }
.ps-product-card h3 a:hover { text-decoration: underline; }
.ps-product-card__price { margin: 0 0 .25rem; color: var(--ps-brand); font-size: .95rem; }
.ps-product-card__body .ps-button { margin-top: auto; }
.ps-product-card__body .added_to_cart { font-size: .9rem; }
.ps-empty { margin: 0; padding: 18px; border: 1px dashed #8da99d; border-radius: var(--ps-radius); color: var(--ps-muted); }
.ps-home__resources { padding-block: clamp(36px, 6vw, 77px); background: var(--ps-ink); color: var(--ps-surface); }
.ps-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ps-resource { position: relative; display: block; min-height: 135px; padding: 20px 38px 20px 20px; border: 1px solid #6e8b7c; border-radius: var(--ps-radius); color: var(--ps-surface); text-decoration: none; }
.ps-resource:hover { border-color: var(--ps-accent); background: #26423a; }
.ps-resource:focus-visible { outline-color: var(--ps-accent); }
.ps-resource h3 { margin: 0 0 .35rem; font-size: 1.13rem; }
.ps-resource p { margin: 0; color: #dae4d7; }
.ps-resource > span { position: absolute; top: 16px; right: 15px; color: var(--ps-accent); }
.ps-home__seo { padding-block: clamp(36px, 7vw, 90px); }
.ps-prose { max-width: 76ch; }
.ps-prose p { margin-block: .75rem 1.25rem; }
.ps-home__seo .ps-prose h2 { margin-bottom: 1.4rem; max-width: 22ch; }
.ps-home__seo .ps-prose p { color: var(--ps-muted); }
.ps-home__faq { display: grid; grid-template-columns: minmax(170px, .66fr) minmax(0, 1fr); gap: clamp(15px, 5vw, 75px); border-top: 1px solid var(--ps-line); padding-block: clamp(34px, 5vw, 63px); }
.ps-home__faq h2 { max-width: 11ch; }
.ps-faq details { border-bottom: 1px solid var(--ps-line); }
.ps-faq details:first-child { border-top: 1px solid var(--ps-line); }
.ps-faq summary { position: relative; padding: 15px 30px 15px 0; list-style: none; font-weight: 675; cursor: pointer; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; position: absolute; inset: 13px 2px auto auto; color: var(--ps-brand); font-size: 1.1rem; }
.ps-faq details[open] summary::after { content: "−"; }
.ps-faq p { margin: 0 0 15px; color: var(--ps-muted); }
.ps-home__support { display: flex; justify-content: space-between; align-items: center; gap: 14px 32px; padding: clamp(20px, 4.5vw, 50px); margin-bottom: clamp(35px, 5vw, 75px); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); background: #e4edc7; }
.ps-home__support p { max-width: 52ch; margin-block: 10px 0; }

.ps-page { padding-block: clamp(24px, 5vw, 70px); }
.ps-page__title { margin-bottom: 22px; font-size: clamp(2.4rem, 5vw, 4.25rem); }
.ps-post + .ps-post { border-top: 1px solid var(--ps-line); margin-top: 24px; }
.ps-footer { padding-block: clamp(31px, 5vw, 62px) 18px; border-top: 1px solid var(--ps-line); background: var(--ps-surface); }
.ps-footer__main { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)); gap: 17px; }
.ps-footer__main p { color: var(--ps-muted); }
.ps-footer__main h2 { margin: 0 0 9px; font-size: .95rem; }
.ps-footer__main ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ps-footer__main nav a, .ps-footer__legal a { text-decoration: none; }
.ps-footer__main nav a:hover, .ps-footer__legal a:hover { text-decoration: underline; text-underline-offset: .2em; }
.ps-footer__end { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; margin-top: 28px; border-top: 1px solid var(--ps-line); color: var(--ps-muted); }
.ps-footer__legal { display: flex; gap: 15px; font-size: .88rem; }

@media (max-width: 920px) {
	.ps-header__nav, .ps-header__actions .ps-search { display: none; }
	.ps-mobile-menu { display: block; }
	.ps-header__row { min-height: 63px; }
}

@media (max-width: 782px) {
	body.admin-bar .ps-header { top: 46px; }
}

@media (max-width: 700px) {
	.ps-hero { grid-template-columns: minmax(0, 1fr); gap: 13px; }
	.ps-hero__content { padding-block: 0 12px; }
	.ps-hero h1 { font-size: clamp(2.8rem, 10.65vw, 4.3rem); }
	.ps-hero__summary { margin-block: 13px 17px; }
	.ps-hero__visual { min-height: 240px; }
	.ps-category-grid, .ps-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-home__faq { grid-template-columns: minmax(0, 1fr); }
	.ps-home__faq h2 { max-width: none; }
	.ps-home__support { flex-wrap: wrap; }
	.ps-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-footer__main > div { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	body.admin-bar .ps-header { top: 0; }
	.ps-header__row { gap: 8px; }
	.ps-header__actions { gap: 8px; }
	.ps-header__actions > a, .ps-header__actions summary { font-size: .79rem; }
	.ps-header__actions .ps-header__cart { padding-inline: .55rem; }
	.ps-resource-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.ps-resource { min-height: auto; }
	.ps-category-grid a { padding: .65rem; font-size: .88rem; }
}

@media (max-width: 400px) {
	.ps-product-card__body { padding: 9px; }
	.ps-product-card__body .ps-button { min-block-size: 40px; padding-inline: .55rem; font-size: .86rem; }
}
