/*
Theme Name: ییلاق
Theme URI: https://yeylaghshop.ir
Author: Yeylagh
Description: قالب اختصاصی فروشگاه محصولات لبنی ییلاق، سازگار با ووکامرس و راست‌چین.
Version: 1.4.3
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: yeylagh
*/

:root {
	--yy-cream: #fffaf0;
	--yy-paper: #f7efd9;
	--yy-green: #31533a;
	--yy-green-dark: #203a29;
	--yy-sage: #80946e;
	--yy-yellow: #ffd814;
	--yy-orange: #f58516;
	--yy-brown: #5b3a25;
	--yy-ink: #25221e;
	--yy-white: #fff;
	--yy-radius: 24px;
	--yy-shadow: 0 16px 45px rgba(70, 53, 30, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--yy-cream);
	color: var(--yy-ink);
	font-family: Tahoma, Arial, sans-serif;
	line-height: 1.8;
	direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.yy-container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.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;
}

.yy-preloader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	background:
		radial-gradient(circle at 50% 45%, rgba(255, 216, 20, .13), transparent 26%),
		rgba(255, 250, 240, .98);
	opacity: 1;
	visibility: visible;
	transition: opacity .4s ease, visibility .4s ease;
}
.yy-preloader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.yy-preloader-mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 174px;
	height: 174px;
	padding: 22px;
	border-radius: 50%;
	background: var(--yy-white);
	box-shadow: 0 18px 50px rgba(49, 83, 58, .14);
}
.yy-preloader-mark img {
	position: relative;
	z-index: 2;
	display: block;
	width: 130px;
	max-height: 88px;
	object-fit: contain;
}
.yy-preloader-ring {
	position: absolute;
	inset: -8px;
	border: 4px solid rgba(49, 83, 58, .13);
	border-top-color: var(--yy-green);
	border-right-color: var(--yy-yellow);
	border-radius: 50%;
	animation: yy-preloader-spin 1s linear infinite;
}
.yy-preloader-ring::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 2px dashed rgba(245, 133, 22, .55);
	border-radius: inherit;
}
.yy-preloader-text {
	color: var(--yy-green-dark);
	font-size: .95rem;
	font-weight: 800;
}
@keyframes yy-preloader-spin {
	to { transform: rotate(360deg); }
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 250, 240, .94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(91, 58, 37, .1);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
	min-height: 82px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 130px; max-height: 64px; object-fit: contain; }
.brand-copy strong { display: block; color: var(--yy-green-dark); font-size: 1.2rem; }
.brand-copy span { font-size: .76rem; color: #776c5f; }
.main-nav ul { display: flex; list-style: none; gap: 26px; margin: 0; padding: 0; }
.main-nav a { font-weight: 700; color: var(--yy-green-dark); }
.main-nav a:hover { color: var(--yy-orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--yy-green);
	color: white;
	padding: 10px 15px;
	border-radius: 999px;
	font-weight: 700;
}
.cart-count {
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--yy-yellow);
	color: var(--yy-ink);
	font-size: .75rem;
}
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.7rem; }

.yy-hero {
	position: relative;
	overflow: hidden;
	min-height: 640px;
	background: #f7f1e5;
}
.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	align-items: center;
	gap: 0;
	width: 100%;
	min-height: 640px;
}
.hero-copy {
	position: relative;
	z-index: 3;
	max-width: 620px;
	padding: 75px clamp(32px, 7vw, 120px) 85px 35px;
}
.hero-kicker {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.7);
	color: var(--yy-green-dark);
	font-weight: 700;
}
.hero-title {
	margin: 16px 0 10px;
	color: var(--yy-green-dark);
	font-size: clamp(2.6rem, 6vw, 5.5rem);
	line-height: 1.12;
	letter-spacing: -.05em;
}
.hero-subtitle { margin: 0 0 14px; color: var(--yy-brown); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 700; }
.hero-description { max-width: 570px; font-size: 1.05rem; color: #423c34; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.yy-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	padding: 13px 22px;
	background: var(--yy-orange);
	color: white;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.yy-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(245,133,22,.25); background: var(--yy-orange); color: white; }
.yy-button.secondary { background: white; color: var(--yy-green-dark); }
.hero-media {
	position: relative;
	align-self: stretch;
	min-height: 640px;
	overflow: hidden;
}
.hero-media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 22%;
	background: linear-gradient(90deg, transparent, #f7f1e5);
	pointer-events: none;
}

.yy-strip { position: relative; z-index: 3; margin-top: -55px; }
.strip-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--yy-white);
	border-radius: var(--yy-radius);
	box-shadow: var(--yy-shadow);
	overflow: hidden;
}
.strip-item { padding: 25px 20px; text-align: center; border-left: 1px dashed #ded1b9; }
.strip-item:last-child { border-left: 0; }
.strip-icon { display: block; font-size: 1.8rem; }
.strip-item strong { display: block; color: var(--yy-green-dark); }
.strip-item small { color: #7b7064; }

.yy-section { padding-block: 90px; }
.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-eyebrow { color: var(--yy-orange); font-weight: 800; }
.section-heading h2 { margin: 5px 0 8px; color: var(--yy-green-dark); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.3; }
.section-heading p { color: #71675d; }

.yy-products { background: var(--yy-paper); }
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 14px 14px 20px;
	background: var(--yy-white);
	border: 1px solid rgba(91,58,37,.09);
	border-radius: 24px;
	box-shadow: 0 8px 24px rgba(73, 54, 30, .06);
	text-align: right;
	overflow: hidden;
}
.woocommerce ul.products li.product a img { border-radius: 17px; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--yy-green-dark); font-size: 1.08rem; }
.woocommerce ul.products li.product .price { color: var(--yy-orange); font-weight: 800; }
.woocommerce span.onsale { min-width: auto; min-height: auto; line-height: 1; padding: 9px 11px; margin: 12px; background: var(--yy-orange); }
.placeholder-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.placeholder-card { padding: 18px; border-radius: 24px; background: white; box-shadow: 0 8px 24px rgba(73,54,30,.06); }
.placeholder-image {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 18px;
	background: linear-gradient(145deg, #fff4bd, #f5d56b);
	font-size: 4rem;
}
.placeholder-card h3 { margin-bottom: 4px; color: var(--yy-green-dark); }
.placeholder-card p { margin: 0; color: var(--yy-orange); font-weight: 800; }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.story-visual {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	border-radius: 44px 18px 44px 18px;
	background:
		linear-gradient(180deg, rgba(31, 58, 39, .04), rgba(31, 58, 39, .16)),
		url("assets/images/hero-landscape.png") center center / cover no-repeat;
	box-shadow: var(--yy-shadow);
}
.story-copy h2 { margin: 0 0 14px; color: var(--yy-green-dark); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.35; }
.story-list { list-style: none; padding: 0; }
.story-list li { margin: 10px 0; }
.story-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 8px; border-radius: 50%; background: var(--yy-yellow); color: var(--yy-green-dark); font-weight: 900; }

.yy-cta {
	margin-bottom: 80px;
	padding: 45px;
	border-radius: 34px;
	background: var(--yy-green-dark);
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}
.yy-cta h2 { margin: 0 0 6px; font-size: 2rem; }
.yy-cta p { margin: 0; color: #d8e5d7; }

.site-main { min-height: 50vh; }
.content-area { padding-block: 60px; }
.entry-card { padding: clamp(22px, 5vw, 52px); border-radius: var(--yy-radius); background: white; box-shadow: var(--yy-shadow); }
.page-title, .entry-title { color: var(--yy-green-dark); }

.yy-contact-page { background: var(--yy-cream); }
.yy-contact-hero {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(24, 55, 34, .82), rgba(24, 55, 34, .38)),
		url("assets/images/hero-landscape.png") center 58% / cover no-repeat;
}
.contact-hero-copy {
	position: relative;
	z-index: 2;
	max-width: 1160px;
	padding-top: 92px;
	padding-bottom: 135px;
	color: white;
}
.contact-eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--yy-yellow);
	font-weight: 800;
}
.contact-hero-copy h1 {
	max-width: 650px;
	margin: 0 0 12px;
	color: white;
	font-size: clamp(2.5rem, 6vw, 5rem);
	line-height: 1.2;
}
.contact-hero-copy p {
	max-width: 650px;
	margin: 0;
	color: #f4f0e8;
	font-size: clamp(1rem, 2vw, 1.25rem);
}
.contact-cards-wrap {
	position: relative;
	z-index: 4;
	margin-top: -76px;
}
.contact-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
.contact-card {
	min-width: 0;
	padding: 24px 18px;
	border: 1px solid rgba(91, 58, 37, .09);
	border-radius: 22px;
	background: white;
	box-shadow: var(--yy-shadow);
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(70, 53, 30, .16); }
.contact-card-icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 12px;
	border-radius: 18px;
	background: var(--yy-paper);
	color: var(--yy-orange);
	font-size: 1.65rem;
	font-weight: 900;
}
.contact-card strong {
	display: block;
	margin-bottom: 5px;
	color: var(--yy-green-dark);
}
.contact-card a,
.contact-card > span:last-child {
	display: block;
	overflow-wrap: anywhere;
	color: #75695f;
	font-size: .88rem;
}
.contact-card a:hover { color: var(--yy-orange); }
.contact-main { padding-top: 72px; padding-bottom: 95px; }
.contact-layout {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 28px;
	align-items: stretch;
}
.contact-form-card,
.contact-info-panel {
	padding: clamp(26px, 5vw, 48px);
	border-radius: 30px;
	box-shadow: var(--yy-shadow);
}
.contact-form-card { background: white; }
.contact-form-card h2,
.contact-info-panel h2 {
	margin: 5px 0 12px;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.35;
}
.contact-form-card h2 { color: var(--yy-green-dark); }
.contact-form-content > :first-child { margin-top: 0; }
.contact-form-content > :last-child { margin-bottom: 0; }
.contact-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form-card select,
.contact-form-card textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid #d9cfbd;
	border-radius: 12px;
	background: #fffdf8;
	font: inherit;
}
.contact-form-card textarea { min-height: 145px; resize: vertical; }
.contact-form-card input[type="submit"],
.contact-form-card button[type="submit"] {
	min-height: 48px;
	padding: 11px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--yy-orange);
	color: white;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.contact-editor-note {
	padding: 16px 18px;
	border: 1px dashed #d9b26c;
	border-radius: 14px;
	background: #fff8dc;
	color: #695033;
}
.contact-info-panel {
	background:
		radial-gradient(circle at 12% 15%, rgba(255, 216, 20, .13), transparent 30%),
		var(--yy-green-dark);
	color: white;
}
.contact-info-panel p { color: #d8e5d7; }
.contact-address {
	display: grid;
	gap: 3px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.14);
}
.contact-address strong { color: var(--yy-yellow); }
.contact-address span { color: #e7eee7; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.contact-socials a {
	padding: 7px 13px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 999px;
	color: white;
	font-size: .86rem;
}
.contact-socials a:hover { background: var(--yy-yellow); color: var(--yy-green-dark); }

.site-footer {
	padding: 72px 0 24px;
	background:
		radial-gradient(circle at 12% 20%, rgba(255, 216, 20, .08), transparent 24%),
		#173c24;
	color: #edf3ed;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.footer-logo {
	display: block;
	width: 150px;
	max-height: 82px;
	margin-bottom: 15px;
	padding: 8px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .94);
	object-fit: contain;
}
.footer-brand p { max-width: 330px; margin: 0; color: #d2e0d5; }
.footer-title { margin: 0 0 17px; color: var(--yy-yellow); font-size: 1.08rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 7px 0; color: #d9e6db; }
.footer-menu a { transition: color .2s ease, padding .2s ease; }
.footer-menu a:hover { padding-right: 5px; color: var(--yy-yellow); }
.footer-contact-item { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: #d9e6db; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-socials a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	color: white;
	font-size: .82rem;
	transition: background .2s ease, color .2s ease;
}
.footer-socials a:hover { background: var(--yy-yellow); color: var(--yy-green-dark); }
.footer-news {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 46px;
	padding: 27px 30px;
	border: 1px solid rgba(255,255,255,.17);
	border-radius: 22px;
	background: rgba(255,255,255,.045);
}
.footer-news h3 { margin: 0 0 4px; color: white; font-size: 1.25rem; }
.footer-news p { margin: 0; color: #c8d8cb; }
.footer-news-button { flex: 0 0 auto; }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,.12);
	color: #aebdae;
	font-size: .86rem;
}
.footer-bottom a:hover { color: var(--yy-yellow); }

.woocommerce .quantity .qty { min-height: 42px; border: 1px solid #ddd0b8; border-radius: 12px; }
.woocommerce div.product { padding: 30px; background: white; border-radius: var(--yy-radius); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--yy-orange); }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--yy-green); background: white; border-radius: 14px; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--yy-green); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
	min-height: 48px;
	padding: 9px 12px;
	border: 1px solid #d9cfbd;
	border-radius: 12px;
	background: white;
}

@media (max-width: 900px) {
	.admin-bar .site-header { top: 46px; }
	.menu-toggle { display: block; }
	.main-nav {
		display: none;
		position: absolute;
		inset: 82px 16px auto;
		padding: 18px;
		background: white;
		border-radius: 18px;
		box-shadow: var(--yy-shadow);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 12px; }
	.brand-copy { display: none; }
	.hero-inner { grid-template-columns: 1fr; text-align: center; }
	.hero-copy { max-width: none; padding: 50px 24px 45px; }
	.hero-description { margin-inline: auto; }
	.hero-buttons { justify-content: center; }
	.hero-media { min-height: 430px; grid-row: 2; }
	.hero-media::after {
		inset: 0 0 auto;
		width: 100%;
		height: 20%;
		background: linear-gradient(180deg, #f7f1e5, transparent);
	}
	.strip-grid { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products,
	.placeholder-products { grid-template-columns: repeat(2, 1fr); }
	.story-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.header-inner { min-height: 70px; }
	.brand-logo { width: 105px; }
	.cart-link { padding: 9px 11px; font-size: .84rem; }
	.yy-hero,
	.hero-inner { min-height: auto; }
	.hero-media { min-height: 330px; }
	.strip-grid,
	.woocommerce ul.products,
	.placeholder-products { grid-template-columns: 1fr; }
	.yy-section { padding-block: 65px; }
	.yy-cta { padding: 30px 22px; flex-direction: column; text-align: center; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-news,
	.footer-bottom { align-items: stretch; flex-direction: column; text-align: center; }
	.footer-news-button { width: 100%; }
	.yy-contact-hero { min-height: 390px; background-position: 40% center; }
	.contact-hero-copy { padding-top: 70px; padding-bottom: 120px; text-align: center; }
	.contact-cards { grid-template-columns: 1fr; }
	.contact-cards-wrap { margin-top: -62px; }
	.contact-main { padding-top: 55px; padding-bottom: 70px; }
	.yy-preloader-mark { width: 145px; height: 145px; }
	.yy-preloader-mark img { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
	.yy-preloader-ring { animation-duration: 2.4s; }
	.yy-preloader { transition-duration: .15s; }
}
