/*
Theme Name: PeptideStore
Theme URI: https://peptid-shop.code378.ru/
Author: PeptideStore
Author URI: https://peptid-shop.code378.ru/
Description: Тема для магазина пептидов PeptideStore.
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peptidestore
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce-ready, e-commerce, one-column, two-columns
*/

/* ==========================================================================
   Base
   ========================================================================== */

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

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
	background: #fff;
}

a {
	color: #2271b1;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

body.is-landing .site-main {
	padding: 0;
}

.site-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.site-header {
	padding: 1rem 0;
	border-bottom: 1px solid #e0e0e0;
}

body.is-landing .site-header {
	border-bottom-color: rgba( 214, 218, 241, 0.5 );
}

.site-branding .site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: inherit;
	margin: 0;
}

.site-branding .site-title:hover {
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #666;
}

.main-navigation ul.primary-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0 1.5rem;
}

.main-navigation a {
	display: block;
	padding: 0.25rem 0;
	color: inherit;
}

.main-navigation a:hover {
	text-decoration: none;
	opacity: 0.8;
}

.site-main {
	padding: 2rem 0;
	min-height: 50vh;
}

.site-footer-inner {
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.site-footer {
	padding: 2rem 0;
	margin-top: 0;
	border-top: 1px solid #e0e0e0;
	font-size: 0.875rem;
	color: #666;
}

body.is-landing .site-footer {
	margin-top: 0;
	border-top-color: #D6DAF1;
}

.site-footer-copy {
	margin: 0;
}

.site-footer a {
	color: inherit;
}

.footer-navigation ul.footer-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	gap: 0 1rem;
}

.footer-navigation a:hover {
	text-decoration: underline;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0;
}

.search-form .search-field {
	padding: 0.5rem;
	min-width: 200px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* ==========================================================================
   Content
   ========================================================================== */

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.entry-content {
	margin-bottom: 2rem;
}

.entry-content p {
	margin: 0 0 1rem;
}

.page-header {
	margin-bottom: 2rem;
}

.posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.posts-list li {
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

.posts-list li:last-child {
	border-bottom: 0;
}

.posts-list .entry-title {
	font-size: 1.25rem;
}

.no-results {
	text-align: center;
	padding: 3rem 1rem;
}

/* ==========================================================================
   Каталог пептидов (макет Figma)
   Цвета: dark blue #032279, gray #9295B6, border #D6DAF1, black #1C1C20, sidebar #5A5C70
   ========================================================================== */

.catalog-page {
	box-sizing: border-box;
	background: #fff;
}

.catalog-page-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 42px;
	display: flex;
	flex-direction: column;
	gap: 42px;
}

/* Хлебные крошки */
.catalog-breadcrumb {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 16px;
	line-height: 22px;
	color: #9295B6;
}

.catalog-breadcrumb a {
	color: #9295B6;
	text-decoration: none;
}

.catalog-breadcrumb a:hover {
	color: #032279;
	text-decoration: none;
}

.catalog-breadcrumb-sep {
	margin: 0 4px;
}

.catalog-breadcrumb-current {
	color: #1C1C20;
}

/* Заголовок + поиск */
.catalog-header-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.catalog-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 500;
	font-size: 60px;
	line-height: 1.13;
	color: #1C1C20;
	margin: 0;
}

.catalog-search-form {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: 16px 24px;
	gap: 10px;
	width: 100%;
	max-width: 348px;
	height: 60px;
	border: 1px solid #D6DAF1;
	border-radius: 72px;
	background: #fff;
}

.catalog-search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 20px;
	line-height: 28px;
	color: #1C1C20;
}

.catalog-search-input::placeholder {
	color: #9295B6;
}

.catalog-search-input:focus {
	outline: none;
}

.catalog-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: #73747C;
	cursor: pointer;
}

.catalog-search-btn:hover {
	color: #032279;
}

/* Табы категорий */
.catalog-tabs {
	width: 100%;
}

.catalog-tabs-list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.catalog-tab {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	min-height: 72px;
	background: #fff;
	border: 1px solid #D6DAF1;
	border-radius: 50px;
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	color: #032279;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.catalog-tab:hover {
	text-decoration: none;
	border-color: #032279;
	background: #f5f7ff;
}

.catalog-tab.is-active {
	background: #032279;
	color: #fff;
	border-color: #032279;
}

.catalog-tab.is-active:hover {
	color: #fff;
	background: #031a5c;
}

/* Layout: сайдбар + сетка */
.catalog-layout {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 42px;
}

/* Сайдбар «Направления» */
.catalog-sidebar {
	flex: none;
	width: 305px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.catalog-sidebar-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 42px;
	color: #032279;
	margin: 0 0 0;
}

.catalog-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.catalog-sidebar-link {
	display: flex;
	align-items: center;
	padding: 16px;
	min-height: 60px;
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 28px;
	color: #5A5C70;
	text-decoration: none;
	transition: color 0.2s, font-weight 0.2s;
}

.catalog-sidebar-link:hover {
	text-decoration: none;
	color: #032279;
}

.catalog-sidebar-link.is-active {
	font-weight: 700;
	color: #032279;
	background: #fff;
}

/* Сетка карточек */
.catalog-content {
	flex: 1;
	min-width: 0;
}

.peptide-catalog {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.peptide-card-inner {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	height: 100%;
	min-height: 615px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s;
}

.peptide-card-inner:hover {
	box-shadow: 0 8px 24px rgba(3, 34, 121, 0.12);
}

/* Верх карточки — изображение или градиент */
.peptide-card-top {
	position: relative;
	width: 100%;
	height: 371px;
	flex: none;
	overflow: hidden;
	background: linear-gradient(281.35deg, #FF651E 8.36%, #AB1A00 100%);
}

.peptide-card-top img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.peptide-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(281.35deg, #FF651E 8.36%, #AB1A00 100%);
}

/* Низ карточки — стеклянный блок */
.peptide-card-bottom {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px;
	gap: 16px;
	background: #fff;
	border-radius: 0 0 16px 16px;
	flex: 1;
	min-height: 244px;
}

.peptide-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.peptide-card-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 28px;
	color: #032279;
	margin: 0;
}

.peptide-card-excerpt {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: #032279;
	margin: 0;
	flex: 1;
}

.peptide-card-excerpt p {
	margin: 0;
}

.peptide-card-price {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	color: #032279;
	margin: 0;
}

.peptide-card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 24px;
	min-height: 52px;
	background: #032279;
	border-radius: 40px;
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s;
	box-sizing: border-box;
}

.peptide-card-btn:hover {
	background: #031a5c;
	color: #fff;
	text-decoration: none;
}

/* Пустой результат */
.catalog-no-results {
	text-align: center;
	padding: 3rem 1rem;
}

.catalog-no-results-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: #032279;
	margin: 0 0 1rem;
}

.catalog-no-results .peptide-card-btn {
	display: inline-flex;
	width: auto;
}

/* Пагинация в каталоге */
.catalog-content .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #D6DAF1;
}

.catalog-content .nav-links a,
.catalog-content .nav-links span {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-family: 'Manrope', system-ui, sans-serif;
	color: #032279;
	text-decoration: none;
	border-radius: 8px;
}

.catalog-content .nav-links a:hover {
	background: #f0f2ff;
	text-decoration: none;
}

.catalog-content .nav-links .current {
	background: #032279;
	color: #fff;
}

/* ----- Мобильная версия (по макету 375px) ----- */
@media (max-width: 1023px) {
	.catalog-page-inner {
		padding: 42px 16px;
		gap: 24px;
	}

	.catalog-title {
		font-size: 36px;
		line-height: 1.1;
	}

	.catalog-search-form {
		max-width: 100%;
		width: 100%;
	}

	.catalog-tabs-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 16px;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.catalog-tab {
		min-height: 58px;
		padding: 24px 24px 24px 24px;
		font-size: 16px;
		line-height: 22px;
		flex-shrink: 0;
	}

	.catalog-layout {
		flex-direction: column;
		gap: 24px;
	}

	.catalog-sidebar {
		width: 100%;
	}

	.catalog-sidebar-title {
		font-size: 30px;
		line-height: 34px;
	}

	.catalog-sidebar-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0;
	}

	.catalog-sidebar-link {
		padding: 16px;
		font-size: 24px;
		min-height: 60px;
		flex: 1 1 auto;
	}

	.peptide-catalog {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.peptide-card-inner {
		min-height: 0;
	}

	.peptide-card-top {
		height: 256px;
	}

	.peptide-card-bottom {
		min-height: 0;
		padding: 16px;
		border-radius: 0 0 38px 38px;
	}

	.peptide-card-title {
		font-size: 24px;
		line-height: 28px;
	}

	.peptide-card-excerpt {
		font-size: 16px;
		line-height: 22px;
	}

	.peptide-card-price {
		font-size: 20px;
		line-height: 24px;
	}

	.peptide-card-btn {
		min-height: 52px;
		font-size: 20px;
		padding: 14px 24px;
	}
}

@media (max-width: 480px) {
	.catalog-page-inner {
		padding: 24px 16px;
	}

	.peptide-catalog {
		gap: 16px;
	}

	.peptide-card-top {
		height: 200px;
	}
}

/* Карточка одного пептида (single) */
.peptide-single-header {
	margin-bottom: 1.5rem;
}

.peptide-sku {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #666;
}

.peptide-sku code {
	background: #f0f0f0;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
}

.peptide-categories {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
}

.peptide-single-content {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (min-width: 640px) {
	.peptide-single-content {
		grid-template-columns: 1fr 1.5fr;
	}
}

.peptide-single-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.peptide-single-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2271b1;
	margin: 0 0 1rem;
}

.peptide-single-nav {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e0e0e0;
}

.peptide-single-nav a {
	color: inherit;
}

.peptide-single-nav a:hover {
	text-decoration: none;
	opacity: 0.8;
}

/* Общие стили для архивов: акции, блог, истории, направления */
.content-archive .catalog-header-block {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.content-card-meta {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #5A5C70;
	margin: 0;
}

.content-single-meta {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #666;
}

/* ==========================================================================
   Лендинг: Hero и блоки секций
   ========================================================================== */

.landing-page {
	width: 100%;
}

/* Hero — на весь экран по ширине */
.landing-hero {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 135deg, #032279 0%, #0a3a9e 50%, #1C1C20 100% );
	color: #fff;
	text-align: center;
	padding: 4rem 1rem;
	box-sizing: border-box;
}

.landing-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.landing-hero-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
}

.landing-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
}

.landing-hero-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp( 2rem, 5vw, 60px );
	line-height: 1.15;
	margin: 0 0 1rem;
	color: #fff;
}

.landing-hero-subtitle {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: clamp( 1rem, 2vw, 20px );
	line-height: 1.5;
	margin: 0 0 2rem;
	color: rgba( 255, 255, 255, 0.9 );
}

.landing-hero-btn {
	display: inline-flex;
	width: auto;
	padding: 16px 40px;
	background: #fff;
	color: #032279;
}

.landing-hero-btn:hover {
	background: #f0f2ff;
	color: #032279;
}

/* Секции лендинга */
.landing-block {
	padding: 4rem 0;
	border-bottom: 1px solid #D6DAF1;
}

.landing-block:last-of-type {
	border-bottom: 0;
}

.landing-block-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 42px;
}

.landing-block-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp( 28px, 4vw, 48px );
	line-height: 1.2;
	color: #032279;
	margin: 0 0 2rem;
}

.landing-block-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.landing-block-grid .peptide-card-inner {
	min-height: 0;
}

.landing-block-more {
	margin: 2rem 0 0;
	text-align: center;
}

.landing-block-more-btn {
	display: inline-flex;
	width: auto;
}

.landing-block-empty {
	font-family: 'Manrope', system-ui, sans-serif;
	color: #5A5C70;
	margin: 0;
}

@media (max-width: 1023px) {
	.landing-block-inner {
		padding: 0 16px;
	}
	.landing-block {
		padding: 3rem 0;
	}
	.landing-block-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media (max-width: 480px) {
	.landing-block-grid {
		grid-template-columns: 1fr;
	}
	.landing-hero {
		min-height: 50vh;
		padding: 3rem 1rem;
	}
}
