/*
	Theme Name: Plantify
	Theme URI: https://test.ananievds.ru
	Description: Landing theme for Plantify Plant Shop. Responsive, mobile-first layout. Based on Figma Community design.
	Author: Plantify
	Author URI: https://test.ananievds.ru
	Version: 1.0.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: plantify
	Tags: custom-logo, custom-menu, featured-images, full-site-editing, post-thumbnails, theme-options, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   CSS Variables (Plantify – by Figma mockup)
   ========================================================================== */
:root {
	--color-primary: #004D40;
	--color-primary-dark: #00352c;
	--color-primary-light: #00695c;
	--color-text: #1a1a1a;
	--color-text-muted: #5a5a5a;
	--color-bg: #F8FDFB;
	--color-bg-alt: #e8f5f1;
	--color-cta-bg: #F5E9E7;
	--color-white: #ffffff;
	--color-border: #e0e0e0;

	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-heading: "Inter", var(--font-sans);

	--container-max: 75rem;
	--container-padding: 1.25rem;
	--section-padding-y: 2.5rem;
	--gap: 1rem;

	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 1rem;
	--shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Layout – Container
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.2;
	margin-top: 0;
	margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
	margin-top: 0;
	margin-bottom: 1em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.btn--primary:hover {
	background-color: var(--color-primary-dark);
	text-decoration: none;
}

.btn--secondary {
	background-color: var(--color-bg-alt);
	color: var(--color-primary);
}

.btn--secondary:hover {
	background-color: var(--color-primary-light);
	color: var(--color-white);
	text-decoration: none;
}

/* ==========================================================================
   Sections common
   ========================================================================== */
.plantify-section {
	padding-top: var(--section-padding-y);
	padding-bottom: var(--section-padding-y);
}

.section-title {
	text-align: center;
	margin-bottom: 1.5rem;
}

.section-title .subtitle {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   Header (dark green, left nav – center logo – right icons)
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--color-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}


.site-branding {
	order: 2;
	text-align: center;
}

.site-branding a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: var(--color-white);
	font-family: var(--font-sans);
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.site-branding a:hover {
	color: var(--color-white);
	text-decoration: none;
	opacity: 0.95;
}

.site-branding .logo-sub {
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.9;
	margin-top: 0.15rem;
}

.site-branding img {
	max-height: 2.5rem;
	width: auto;
}

.header-actions {
	order: 3;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header-actions a,
.header-actions .icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--color-white);
	text-decoration: none;
	transition: opacity 0.2s;
}

.header-actions a:hover,
.header-actions .icon-btn:hover {
	color: var(--color-white);
	opacity: 0.85;
	text-decoration: none;
}

.header-actions .cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 1.125rem;
	height: 1.125rem;
	padding: 0 4px;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.125rem;
	text-align: center;
	background: var(--color-white);
	color: var(--color-primary);
	border-radius: 999px;
}

.cart-wrap {
	position: relative;
}

/* Burger + mobile nav */
.menu-toggle {
	order: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-white);
}

.menu-toggle:focus {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

.menu-toggle svg {
	width: 1.5rem;
	height: 1.5rem;
}

.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle .icon-close { display: none; }

.main-navigation {
	order: 1;
}

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

.main-navigation a {
	color: var(--color-white);
	font-weight: 500;
	text-decoration: none;
}

.main-navigation a:hover {
	color: var(--color-white);
	opacity: 0.9;
	text-decoration: none;
}

.main-navigation.is-open ul {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-primary);
	padding: 1rem var(--container-padding);
	gap: 0.5rem;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
	.site-header .header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	.menu-toggle {
		display: none;
	}

	.main-navigation {
		order: 1;
	}

	.main-navigation ul {
		display: flex;
		position: static;
		background: none;
		box-shadow: none;
		padding: 0;
		flex-direction: row;
	}

	.site-branding {
		order: 2;
	}

	.header-actions {
		order: 3;
		justify-content: flex-end;
	}
}

/* ==========================================================================
   Hero (dark green, white text, Shop Now + Find More, dots, right image grid)
   ========================================================================== */
.section-hero {
	background: var(--color-primary);
	color: var(--color-white);
	min-height: clamp(22rem, 55vw, 32rem);
	display: flex;
	align-items: center;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.section-hero .container {
	display: grid;
	gap: 1.5rem;
}

.hero-content h1 {
	color: var(--color-white);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
	line-height: 1.2;
}

.hero-content .lead {
	font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 1.5rem;
	line-height: 1.6;
	max-width: 28rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero-actions .btn--hero-primary {
	background: var(--color-white);
	color: var(--color-primary);
}

.hero-actions .btn--hero-primary:hover {
	background: var(--color-bg);
	text-decoration: none;
}

.hero-actions .btn--hero-outline {
	background: transparent;
	color: var(--color-white);
	border: 2px solid var(--color-white);
}

.hero-actions .btn--hero-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}

.hero-dots {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.hero-dots span {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transition: background 0.2s;
}

.hero-dots span.is-active {
	background: var(--color-white);
}

.hero-media {
	display: none;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 0.75rem;
	max-height: 20rem;
}

.hero-grid__item {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-primary-dark);
	min-height: 6rem;
}

.hero-grid__item--tall {
	min-height: 12rem;
}

.hero-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-grid__item--small-top { grid-row: 1; }
.hero-grid__item--small-bottom { grid-row: 2; }
.hero-grid__item--tall { grid-column: 2; grid-row: 1 / -1; }

.hero-grid__badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.6);
	color: var(--color-white);
	border-radius: var(--radius-sm);
}

.hero-grid__card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: var(--color-white);
}

.hero-grid__card-content .btn {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

@media (min-width: 768px) {
	.section-hero .container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 2rem;
	}

	.hero-media {
		display: block;
	}

	.hero-grid {
		max-height: 24rem;
	}
}

/* ==========================================================================
   Featured (tabs + product carousel)
   ========================================================================== */
.section-featured {
	background: var(--color-bg);
}

.section-featured .section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.section-featured .section-head h2 {
	color: var(--color-primary);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	margin: 0;
}

.featured-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.featured-tabs a {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--color-text-muted);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.featured-tabs a:hover,
.featured-tabs a.is-active {
	color: var(--color-primary);
	text-decoration: none;
}

.featured-tabs a.is-active {
	border-bottom-color: var(--color-primary);
}

.featured-carousel-wrap {
	position: relative;
	overflow: hidden;
}

.featured-carousel {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
}

.featured-carousel::-webkit-scrollbar {
	display: none;
}

.featured-carousel .product-card {
	flex: 0 0 min(100%, 12rem);
	scroll-snap-align: start;
}

@media (min-width: 480px) {
	.featured-carousel .product-card { flex: 0 0 min(50%, 14rem); }
}

@media (min-width: 768px) {
	.featured-carousel .product-card { flex: 0 0 min(33.333%, 16rem); }
}

@media (min-width: 1024px) {
	.featured-carousel .product-card { flex: 0 0 min(20%, 14rem); }
}

.featured-carousel .product-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.product-card .color-swatches {
	display: flex;
	gap: 0.25rem;
	margin: 0.5rem 0;
}

.product-card .color-swatches span {
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 50%;
	border: 1px solid var(--color-border);
}

.featured-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1rem;
}

.featured-carousel-nav .carousel-dots {
	display: flex;
	gap: 0.5rem;
}

.featured-carousel-nav .carousel-dots span {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--color-border);
	cursor: pointer;
}

.featured-carousel-nav .carousel-dots span.is-active {
	background: var(--color-primary);
}

.featured-carousel-nav .carousel-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--color-primary);
	background: none;
	border: none;
	cursor: pointer;
}

.section-divider {
	height: 1px;
	background: var(--color-border);
	margin: 0;
}

/* ==========================================================================
   Products grid
   ========================================================================== */
.section-products .products-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 480px) {
	.section-products .products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.section-products .products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.section-products .products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.product-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
	transform: translateY(-0.25rem);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.product-card__image {
	aspect-ratio: 1;
	background: var(--color-bg-alt);
	overflow: hidden;
}

.product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__body {
	padding: 1rem;
}

.product-card__title {
	font-size: 1rem;
	margin-bottom: 0.25rem;
}

.product-card__title a {
	color: var(--color-text);
	text-decoration: none;
}

.product-card__title a:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.product-card__price {
	font-weight: 600;
	color: var(--color-primary);
}

.product-card .btn--buy {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* ==========================================================================
   Colorful New Arrivals (4 square images)
   ========================================================================== */
.section-arrivals {
	background: var(--color-bg);
}

.section-arrivals .section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.section-arrivals .section-head h2 {
	color: var(--color-primary);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	margin: 0;
}

.section-arrivals .view-all {
	color: var(--color-primary);
	font-weight: 500;
	text-decoration: none;
}

.section-arrivals .view-all:hover {
	text-decoration: underline;
}

.arrivals-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.arrivals-grid__item {
	aspect-ratio: 1;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-bg-alt);
}

.arrivals-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.arrivals-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==========================================================================
   Plant Stands (3 images)
   ========================================================================== */
.section-stands {
	background: var(--color-bg);
}

.section-stands h2 {
	color: var(--color-primary);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.stands-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.stands-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.stands-grid__item {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-primary);
	aspect-ratio: 4/5;
}

.stands-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Free Shipping CTA (pinkish-beige bg, right image)
   ========================================================================== */
.section-cta {
	background: var(--color-cta-bg);
	color: var(--color-text);
	padding-top: var(--section-padding-y);
	padding-bottom: var(--section-padding-y);
}

.section-cta .container {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.section-cta h2 {
	color: var(--color-text);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.section-cta .lead {
	color: var(--color-text-muted);
	margin-bottom: 1rem;
	max-width: 32rem;
}

.section-cta .cta-image {
	display: none;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-bg-alt);
}

.section-cta .cta-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section-cta .btn--primary:hover {
	text-decoration: none;
}

@media (min-width: 768px) {
	.section-cta .container {
		grid-template-columns: 1fr 1fr;
	}

	.section-cta .cta-image {
		display: block;
		min-height: 14rem;
	}
}

/* ==========================================================================
   Footer (Visit Us + map, then copyright + socials)
   ========================================================================== */
.site-footer {
	background: var(--color-primary);
	color: var(--color-white);
}

.footer-top {
	padding-top: var(--section-padding-y);
	padding-bottom: var(--section-padding-y);
}

.footer-top .container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.footer-top .container {
		grid-template-columns: 1fr 1.5fr;
		align-items: start;
	}
}

.footer-visit h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--color-white);
}

.footer-visit p,
.footer-visit a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	margin: 0 0 0.25rem;
	display: block;
}

.footer-visit a:hover {
	color: var(--color-white);
	text-decoration: underline;
}

.footer-map {
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-primary-dark);
	min-height: 12rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
}

.footer-bottom {
	padding: 1rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-copyright {
	font-size: 0.875rem;
	opacity: 0.9;
	margin: 0;
}

.footer-socials {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--color-white);
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s;
}

.footer-socials a:hover {
	opacity: 1;
	text-decoration: none;
}

.footer-socials svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* ==========================================================================
   Pages & entries (штатные страницы и записи)
   ========================================================================== */
.page-content .container,
.single-content .container {
	max-width: var(--container-max);
}

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

.entry-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 0.5rem;
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.entry-content {
	margin-top: 1rem;
}

.entry-content > * + * {
	margin-top: 1em;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.search-form .search-field {
	flex: 1;
	min-width: 12rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.search-results-list {
	margin-top: 1.5rem;
}

.search-result-item {
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border);
}

.search-result-item .entry-title { font-size: 1.125rem; }

/* WooCommerce: базовая интеграция */
.plantify-woo-container .woocommerce-products-header,
.plantify-woo-container .woocommerce-result-count,
.plantify-woo-container .woocommerce-ordering {
	margin-bottom: 1rem;
}

.woocommerce-wrap ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

/* ==========================================================================
   Utility
   ========================================================================== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
