/*
Theme Name: Laundry (Astra Child)
Theme URI: https://laundry.mn
Description: laundry.mn сайтын дизайн — Astra theme-ийн child. Enfold хувилбарын харагдацыг ойролцоо хадгалсан.
Author: laundry.mn
Template: astra
Version: 2.0.1
Text Domain: laundry
*/

/* ---------------------------------------------------------------
 * 1. Үндсэн тохиргоо
 * ------------------------------------------------------------ */
:root {
	--laundry-blue: #375875;
	--laundry-blue-dark: #2c4760;
	--laundry-blue-light: #eaf5ff;
	--laundry-text: #36393d;
	--laundry-footer: #404852;
	--laundry-border: #e1e1e1;
}

body,
.site {
	color: var(--laundry-text);
}

html {
	font-size: 16px;
}

/* ---------------------------------------------------------------
 * 2. Гарчиг
 * ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
	color: var(--laundry-blue);
	font-weight: 600;
}

h2.wp-block-heading {
	position: relative;
	padding-bottom: 18px;
	margin-bottom: 28px;
}

/* Enfold-ийн "modern-quote" зураас */
h2.wp-block-heading::after {
	content: "";
	display: block;
	width: 90px;
	height: 3px;
	background: var(--laundry-blue);
	margin-top: 14px;
}

.wp-block-group[style*="background-color:#375875"] h2.wp-block-heading,
.wp-block-group[style*="background-color:#375875"] h2.wp-block-heading::after {
	color: #ffffff;
	background-color: #ffffff;
}

.wp-block-group[style*="background-color:#375875"] h2.wp-block-heading {
	color: #ffffff;
	background-color: transparent;
}

.wp-block-group[style*="background-color:#375875"] h2.wp-block-heading::after {
	background-color: #ffffff;
}

.avia-subheading {
	color: var(--laundry-blue);
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	margin-top: -18px;
	margin-bottom: 36px;
	opacity: 0.85;
}

.wp-block-group[style*="background-color:#375875"] .avia-subheading,
.wp-block-group[style*="background-color:#375875"] p {
	color: #eaf5ff;
}

/* ---------------------------------------------------------------
 * 3. Section-ууд
 * ------------------------------------------------------------ */
.wp-block-group.is-layout-constrained {
	padding-top: 64px;
	padding-bottom: 64px;
	padding-left: 24px;
	padding-right: 24px;
}

/* Бүтэн өргөнтэй фон */
.wp-block-group[style*="background-color"] {
	max-width: 100% !important;
	width: 100%;
}

.entry-content > .wp-block-group[style*="background-color"] {
	margin-left: 0;
	margin-right: 0;
}

/* ---------------------------------------------------------------
 * 4. Slideshow
 * ------------------------------------------------------------ */
/* JS ачаалагдах хүртэл зураг цуварахгүй */
.wp-block-gallery.avia-slideshow:not(.is-ready) {
	display: block;
	gap: 0;
	overflow: hidden;
}

.wp-block-gallery.avia-slideshow:not(.is-ready) .wp-block-image:first-child img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1900 / 501 !important;
	object-fit: cover !important;
}

.wp-block-gallery.avia-slideshow:not(.is-ready) .wp-block-image:not(:first-child) {
	display: none;
}

.wp-block-gallery.avia-slideshow,
.wp-block-gallery.avia-slideshow.is-layout-flex,
.wp-block-gallery.avia-slideshow.wp-block-gallery-is-layout-flex,
.wp-block-gallery.avia-slideshow[class*="wp-container-core-gallery-is-layout-"] {
	position: relative !important;
	display: block !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	overflow: hidden !important;
	background: #1f2b36;
	line-height: 0;
}

/* Core-ийн inline layout CSS-ийг давах */
.wp-block-gallery.avia-slideshow {
	grid-template-columns: none !important;
}

.wp-block-gallery.avia-slideshow > .laundry-slider__viewport {
	overflow: hidden;
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
	display: block !important;
}

.laundry-slider__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: 100% !important;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.wp-block-gallery.avia-slideshow .laundry-slider__slide {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	margin: 0 !important;
	position: relative;
}

.wp-block-gallery.avia-slideshow .laundry-slider__slide img,
.wp-block-gallery.avia-slideshow .laundry-slider__slide .wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1900 / 501 !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	max-height: none !important;
}

/* Сумнууд */
.laundry-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: rgba(55, 88, 117, 0.55);
	cursor: pointer;
	z-index: 3;
	opacity: 0;
	transition: opacity 0.25s ease, background-color 0.2s ease;
}

.wp-block-gallery.avia-slideshow:hover .laundry-slider__arrow,
.laundry-slider__arrow:focus {
	opacity: 1;
}

.laundry-slider__arrow:hover {
	background: rgba(55, 88, 117, 0.9);
}

.laundry-slider__arrow span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
}

.laundry-slider__arrow--prev {
	left: 16px;
}

.laundry-slider__arrow--prev span {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.laundry-slider__arrow--next {
	right: 16px;
}

.laundry-slider__arrow--next span {
	transform: translate(-70%, -50%) rotate(45deg);
}

/* Цэгүүд */
.laundry-slider__dots {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 3;
}

.laundry-slider__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	margin: 0;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.laundry-slider__dot.is-active,
.laundry-slider__dot:hover {
	background: #ffffff;
	transform: scale(1.15);
}

/* ---------------------------------------------------------------
 * 5. Бүтээгдэхүүн / мэдээний grid
 * ------------------------------------------------------------ */
.avia-blog-grid .wp-block-post-template {
	gap: 24px;
	margin: 0;
}

.avia-blog-grid .wp-block-post {
	background: #ffffff;
	border: 1px solid var(--laundry-border);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.avia-blog-grid .wp-block-post:hover {
	box-shadow: 0 8px 24px rgba(55, 88, 117, 0.18);
	transform: translateY(-4px);
}

.avia-blog-grid .wp-block-post-featured-image {
	margin: 0;
	background: #f7fafd;
}

/* Бүтээгдэхүүний зураг — босоо (465x700), бүтэн харагдана */
.avia-blog-grid .type-portfolio .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4 !important;
	object-fit: contain !important;
	background: #f7fafd;
	display: block;
}

/* Мэдээний зураг — хэвтээ, карт дүүргэнэ */
.avia-blog-grid .type-post .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10 !important;
	object-fit: cover !important;
	display: block;
}

.avia-blog-grid .wp-block-post-title {
	margin: 14px 16px 6px;
	font-size: 1rem;
	line-height: 1.4;
}

.avia-blog-grid .wp-block-post-title a {
	color: var(--laundry-blue);
	text-decoration: none;
}

.avia-blog-grid .wp-block-post-title a:hover {
	color: var(--laundry-blue-dark);
	text-decoration: underline;
}

.avia-blog-grid .wp-block-post-date {
	margin: 0 16px 16px;
	font-size: 0.8rem;
	color: #8b939c;
}

/* ---------------------------------------------------------------
 * 6. Товчнууд
 * ------------------------------------------------------------ */
.wp-block-button__link,
.ast-button,
button,
input[type="submit"] {
	background-color: var(--laundry-blue) !important;
	color: #ffffff !important;
	border-radius: 3px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 0.85rem;
	padding: 12px 28px;
	transition: background-color 0.2s ease, color 0.2s ease;
	border: 2px solid var(--laundry-blue);
}

.wp-block-button__link:hover,
.ast-button:hover,
button:hover,
input[type="submit"]:hover {
	background-color: #ffffff !important;
	color: var(--laundry-blue) !important;
}

/* Харанхуй хэсэг доторх товч */
.wp-block-group[style*="background-color:#375875"] .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--laundry-blue) !important;
}

.wp-block-group[style*="background-color:#375875"] .wp-block-button__link:hover {
	background-color: transparent !important;
	color: #ffffff !important;
	border-color: #ffffff;
}

/* ---------------------------------------------------------------
 * 7. Header
 * ------------------------------------------------------------ */
.site-header {
	border-bottom: 1px solid var(--laundry-border);
}

.ast-primary-header-bar {
	background-color: #ffffff;
}

.site-title a,
.site-title a:visited {
	color: var(--laundry-blue);
	text-decoration: none;
}

.site-description {
	color: #8b939c;
}

.main-header-menu > .menu-item > .menu-link {
	color: var(--laundry-blue);
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	line-height: 1.3;
	padding-top: 8px;
	padding-bottom: 8px;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
	color: var(--laundry-blue-dark);
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* Хуучин ::after зураасны оронд Astra-ийн доогуур зураасыг ашиглах */
.main-header-menu > .menu-item > .menu-link::after {
	content: none;
	display: none;
}

/* ---------------------------------------------------------------
 * 8. Footer
 * ------------------------------------------------------------ */
.site-below-footer-wrap,
.site-footer {
	background-color: var(--laundry-footer);
	color: #a7abb1;
}

.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p,
.site-below-footer-wrap a {
	color: #a7abb1;
}

.site-below-footer-wrap a:hover {
	color: #ffffff;
}

/* ---------------------------------------------------------------
 * 9. Topbar — утас, имэйл, Facebook
 * ------------------------------------------------------------ */
.laundry-topbar {
	background-color: var(--laundry-blue);
	color: #ffffff;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
}

.laundry-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.laundry-topbar a,
.laundry-topbar a:visited {
	color: #eaf5ff;
	text-decoration: none;
}

.laundry-topbar a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.laundry-topbar__left {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.laundry-topbar__left i {
	margin-right: 6px;
	opacity: 0.85;
}

/* ---------------------------------------------------------------
 * 10. Footer холбоо барих
 * ------------------------------------------------------------ */
.laundry-footer-contact {
	background-color: #375875;
	color: #c9d4e0;
	padding: 48px 24px;
}

.laundry-footer-contact__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.laundry-footer-contact__col h4 {
	color: #ffffff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.25);
	display: inline-block;
}

.laundry-footer-contact__col p {
	margin: 0 0 10px;
	line-height: 1.7;
}

.laundry-footer-contact__col a,
.laundry-footer-contact__col a:visited {
	color: #eaf5ff;
	text-decoration: none;
}

.laundry-footer-contact__col a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.laundry-footer-contact__col i {
	margin-right: 8px;
	opacity: 0.85;
	width: 16px;
	display: inline-block;
}

@media (max-width: 768px) {
	.laundry-footer-contact__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ---------------------------------------------------------------
 * 11. Responsive
 * ------------------------------------------------------------ */
/* ---------------------------------------------------------------
 * 13. Цэс — дунд зэргийн дэлгэцэд багтаах
 * ------------------------------------------------------------ */
@media (min-width: 1024px) and (max-width: 1360px) {
	.main-header-menu > .menu-item > .menu-link {
		font-size: 0.82rem;
		padding-left: 0.62em;
		padding-right: 0.62em;
		letter-spacing: 0.02em;
	}

	.site-title {
		font-size: 1.25rem;
	}

	header .custom-logo-link img,
	.astra-logo-svg {
		max-width: 150px;
		width: 150px;
	}
}

/* Цэс хэзээ ч 2 мөр болохгүй */
.main-header-menu {
	flex-wrap: nowrap !important;
}

@media (min-width: 1024px) {
	.main-header-menu > .menu-item {
		flex: 0 0 auto;
	}
}

@media (max-width: 921px) {
	.wp-block-group.is-layout-constrained {
		padding-top: 40px;
		padding-bottom: 40px;
	}
	h2.wp-block-heading {
		font-size: 1.5rem;
	}

	.avia-blog-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.wp-block-gallery.avia-slideshow .laundry-slider__slide img,
	.wp-block-gallery.avia-slideshow:not(.is-ready) .wp-block-image:first-child img {
		aspect-ratio: 1900 / 620;
	}
}

@media (max-width: 544px) {
	.avia-blog-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.wp-block-gallery.avia-slideshow .laundry-slider__slide img,
	.wp-block-gallery.avia-slideshow:not(.is-ready) {
		height: 240px;
		max-height: 240px;
	}

	.laundry-slider__arrow {
		width: 36px;
		height: 36px;
	}
}

/* ---------------------------------------------------------------
 * 12. Нийт overflow / зураг хамгаалалт
 * ------------------------------------------------------------ */
html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

.site,
.site-content,
.ast-container,
.entry-content,
.entry-content > * {
	max-width: 100%;
}

img,
video,
iframe,
embed,
object,
svg {
	max-width: 100%;
}

.entry-content img {
	height: auto;
}

/* feature-image-гүй карт */
.avia-blog-grid .wp-block-post-featured-image img {
	background: var(--laundry-blue-light);
}

/* Stretch хийгдсэн бүтээгдэхүүний зургийг засах */
.entry-content .wp-block-image img,
.entry-content figure img {
	object-fit: cover;
	height: auto;
}

.entry-content .wp-block-columns {
	align-items: flex-start;
}

/* Astra-ийн хүнд сүүдрийг арилгах (Enfold-д байгаагүй) */
.ast-article-single figure,
.ast-article-single img:not(figure img),
.ast-article-post figure,
.ast-article-post img:not(figure img),
.entry-content figure,
.entry-content img,
.wp-block-image img,
.wp-block-gallery img {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

/* Нэг бүтээгдэхүүний хуудасны gallery (slider-т халдахгүй) */
body.single-portfolio .ast-article-single .wp-block-gallery:not(.avia-slideshow) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

body.single-portfolio .ast-article-single .wp-block-gallery:not(.avia-slideshow) .wp-block-image {
	margin: 0;
}

body.single-portfolio .ast-article-single .wp-block-gallery:not(.avia-slideshow) .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	background: #f7fafd;
}

/* Нэг бүтээгдэхүүний үндсэн зураг */
body.single-portfolio .ast-article-single > .entry-content > .wp-block-image img {
	width: auto;
	max-width: 100%;
	max-height: 620px;
	margin: 0 auto;
}

/* ---------------------------------------------------------------
 * 14. Бүтээгдэхүүний архив — зураг шахагдахгүй
 * ------------------------------------------------------------ */
.tax-portfolio_entries .ast-article-post .post-thumb,
.tax-portfolio_entries .ast-article-post .ast-blog-featured-section,
.post-type-archive-portfolio .ast-article-post .post-thumb,
.post-type-archive-portfolio .ast-article-post .ast-blog-featured-section {
	background: #f7fafd;
}

.tax-portfolio_entries .ast-article-post img,
.post-type-archive-portfolio .ast-article-post img,
.tax-portfolio_entries .ast-article-post .post-thumb img,
.tax-portfolio_entries .ast-article-post .ast-blog-featured-section img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 4 !important;
	object-fit: contain !important;
	background: #f7fafd;
}

/* Мэдээний архив — хэвтээ зураг, карт дүүргэнэ */
.category .ast-article-post img,
.tag .ast-article-post img,
.date .ast-article-post img,
.author .ast-article-post img,
.blog .ast-article-post img {
	object-fit: cover !important;
}

/* ---------------------------------------------------------------
 * 15. Барааны дэлгэрэнгүй — уншихад эвтэйхэн
 * ------------------------------------------------------------ */

/* Хуудасны гарчиг */
body.single-portfolio .entry-header {
	margin-bottom: 28px;
}

body.single-portfolio .entry-header .entry-title {
	font-size: 2rem;
	line-height: 1.25;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 3px solid var(--laundry-blue);
	display: inline-block;
}

/* Accent зураас (separator) */
body.single-portfolio .entry-content > .wp-block-separator {
	max-width: 90px;
	margin: 0 0 36px;
	border: 0;
	border-top: 3px solid var(--laundry-blue);
	opacity: 1;
}

/* Баганууд: 1/3 зураг + 2/3 контент */
body.single-portfolio .laundry-product-cols {
	align-items: flex-start;
	gap: 44px;
	margin-top: 0;
}

body.single-portfolio .laundry-product-cols > .wp-block-column:first-child {
	flex: 0 0 34%;
	max-width: 34%;
}

body.single-portfolio .laundry-product-cols > .wp-block-column:last-child {
	flex: 1 1 auto;
	min-width: 0;
}

/* Барааны зураг — карт хэлбэрээр */
body.single-portfolio .laundry-product-cols > .wp-block-column:first-child .wp-block-image {
	margin: 0;
	background: #f7fafd;
	border: 1px solid var(--laundry-border);
	border-radius: 6px;
	padding: 20px;
}

body.single-portfolio .laundry-product-cols > .wp-block-column:first-child img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	box-shadow: none !important;
}

/* Онцлох үзүүлэлтүүд — жагсаалт */
body.single-portfolio .laundry-product-cols .wp-block-list {
	list-style: none !important;
	margin: 0 0 30px;
	padding: 0;
	display: grid;
	gap: 12px;
}

body.single-portfolio .laundry-product-cols .wp-block-list li {
	position: relative;
	margin: 0 !important;
	padding: 15px 20px 15px 52px;
	background: #f7fafd;
	border-left: 3px solid var(--laundry-blue);
	border-radius: 0 4px 4px 0;
	font-size: 1rem;
	line-height: 1.6;
}

body.single-portfolio .laundry-product-cols .wp-block-list li::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background: var(--laundry-blue);
	border-radius: 50%;
}

body.single-portfolio .laundry-product-cols .wp-block-list li::after {
	content: "";
	position: absolute;
	left: 26px;
	top: 50%;
	width: 4px;
	height: 8px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: translateY(-62%) rotate(45deg);
}

/* Татах товч */
body.single-portfolio .laundry-product-cols .wp-block-button__link {
	display: inline-block;
	padding: 14px 32px;
	font-size: 0.9rem;
}

/* Тайлбарын текст */
body.single-portfolio .laundry-product-cols .wp-block-column:last-child p {
	font-size: 1rem;
	line-height: 1.75;
	margin-bottom: 1em;
	max-width: 74ch;
}

body.single-portfolio .laundry-product-cols .wp-block-column:last-child p:empty {
	display: none;
}

body.single-portfolio .laundry-product-cols .wp-block-column:last-child strong {
	color: #1f2b36;
	font-weight: 700;
}

/* PDF / танилцуулгын панел */
body.single-portfolio .laundry-catalogue {
	margin-top: 52px;
	border: 1px solid var(--laundry-border);
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
}

body.single-portfolio .laundry-catalogue__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 22px;
	background: var(--laundry-blue);
	color: #ffffff;
}

body.single-portfolio .laundry-catalogue__title {
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

body.single-portfolio .laundry-catalogue__open {
	color: #eaf5ff !important;
	font-size: 0.85rem;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 3px;
	padding: 7px 14px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.single-portfolio .laundry-catalogue__open:hover {
	background: #ffffff;
	color: var(--laundry-blue) !important;
}

body.single-portfolio .laundry-catalogue__body {
	background: #eef1f4;
	height: 720px;
}

body.single-portfolio .laundry-catalogue__body iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Зөвхөн зурагтай бараа */
body.single-portfolio .entry-content > .wp-block-image {
	margin: 0 0 32px;
}

body.single-portfolio .entry-content > .wp-block-image img {
	max-height: 620px;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
}

/* Responsive */
@media (max-width: 921px) {
	body.single-portfolio .laundry-product-cols {
		gap: 28px;
	}

	body.single-portfolio .laundry-product-cols > .wp-block-column {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}

	body.single-portfolio .laundry-catalogue__body {
		height: 460px;
	}

	body.single-portfolio .entry-header .entry-title {
		font-size: 1.5rem;
	}
}

/* =========================================================================
 * §16. Баруун sidebar — бүтээгдэхүүний архив + барааны дэлгэрэнгүй
 *
 * Хуучин Enfold сайтын `sidebar_right` (sidebar_shadow) харагдацыг дуурайна.
 * Зөвхөн portfolio контекстод гарна (functions.php-ийн astra_page_layout).
 * ========================================================================= */

.laundry-sidebar-context #secondary {
	padding-left: 34px;
}

/* Widget тус бүр */
.laundry-sidebar-context #secondary .widget {
	margin-bottom: 34px;
}

.laundry-sidebar-context #secondary .widget:last-child {
	margin-bottom: 0;
}

/* Widget гарчиг — Enfold-ийн widgettitle шиг доогуур зураастай */
.laundry-sidebar-context #secondary .widget-title,
.laundry-sidebar-context #secondary .widgettitle {
	font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--laundry-blue);
	margin: 0 0 18px;
	padding: 0 0 12px;
	border-bottom: 2px solid rgba(55, 88, 117, 0.15);
	position: relative;
}

.laundry-sidebar-context #secondary .widget-title::after,
.laundry-sidebar-context #secondary .widgettitle::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 2px;
	background: var(--laundry-blue);
}

/* --- Widget: Бүтээгдэхүүний ангилал (nav menu) --- */

.laundry-sidebar-context #secondary .widget_nav_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.laundry-sidebar-context #secondary .widget_nav_menu li {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.laundry-sidebar-context #secondary .widget_nav_menu li:last-child {
	border-bottom: 0;
}

.laundry-sidebar-context #secondary .widget_nav_menu li a {
	display: block;
	position: relative;
	padding: 11px 0 11px 20px;
	color: #36393d;
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.35;
	transition: color 0.18s ease, padding-left 0.18s ease;
}

.laundry-sidebar-context #secondary .widget_nav_menu li a::before {
	content: '\203A';
	position: absolute;
	left: 2px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--laundry-blue);
	opacity: 0.55;
	font-size: 1.1rem;
	line-height: 1;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.laundry-sidebar-context #secondary .widget_nav_menu li a:hover,
.laundry-sidebar-context #secondary .widget_nav_menu li.current-menu-item > a {
	color: var(--laundry-blue);
}

.laundry-sidebar-context #secondary .widget_nav_menu li a:hover {
	padding-left: 24px;
}

.laundry-sidebar-context #secondary .widget_nav_menu li a:hover::before {
	opacity: 1;
}

.laundry-sidebar-context #secondary .widget_nav_menu li.current-menu-item > a {
	font-weight: 600;
}

/* --- Widget: Шинэ мэдээ --- */

.laundry-sidebar-context #secondary .laundry-news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.laundry-sidebar-context #secondary .laundry-news-list__item {
	margin: 0 0 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	padding-bottom: 16px;
}

.laundry-sidebar-context #secondary .laundry-news-list__item:last-child {
	margin-bottom: 0;
	border-bottom: 0;
	padding-bottom: 0;
}

.laundry-sidebar-context #secondary .laundry-news-list__link {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	text-decoration: none;
	color: #36393d;
}

.laundry-sidebar-context #secondary .laundry-news-list__thumb {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	overflow: hidden;
	background: #eef1f4;
	display: block;
}

.laundry-sidebar-context #secondary .laundry-news-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.laundry-sidebar-context #secondary .laundry-news-list__title {
	font-size: 0.92rem;
	line-height: 1.4;
	padding-top: 2px;
	transition: color 0.18s ease;
}

.laundry-sidebar-context #secondary .laundry-news-list__link:hover .laundry-news-list__title {
	color: var(--laundry-blue);
}

/* Sidebar-гүй үед контент бүтэн өргөнтэй байх */
body:not(.laundry-sidebar-context) .ast-no-sidebar .site-content .ast-container {
	/* Astra өөрөө зохицуулна — нэмэлт заавар шаардлагагүй */
}

/* Tablet (769-921px): Astra-ийн default нь sidebar-ийг бүтэн өргөнөөр
   доош унагадаг. Хуучин Enfold сайт энэ мужид БАГАНА хэлбэрээр харуулж
   байсан тул бид мөн адил багана хэлбэрээр үлдээнэ. */
@media (min-width: 769px) and (max-width: 921px) {
	.laundry-sidebar-context.ast-right-sidebar #primary {
		width: 70%;
		flex: 0 0 70%;
		max-width: 70%;
	}

	.laundry-sidebar-context.ast-right-sidebar #secondary {
		width: 30%;
		flex: 0 0 30%;
		max-width: 30%;
		margin-top: 0;
		padding-top: 0;
		padding-left: 24px;
	}

	.laundry-sidebar-context #secondary .widget-title,
	.laundry-sidebar-context #secondary .widgettitle {
		font-size: 0.98rem;
	}

	.laundry-sidebar-context #secondary .widget_nav_menu li a {
		font-size: 0.88rem;
		padding: 9px 0 9px 16px;
	}

	.laundry-sidebar-context #secondary .laundry-news-list__thumb {
		flex: 0 0 52px;
		width: 52px;
		height: 52px;
	}

	.laundry-sidebar-context #secondary .laundry-news-list__title {
		font-size: 0.85rem;
	}
}

/* Smartphone (≤768px): sidebar-ийг бүрэн нуух.
   Хуучин Enfold тохиргоонд `smartphones_sidebar = disabled` байсан. */
@media (max-width: 768px) {
	.laundry-sidebar-context #secondary {
		display: none !important;
	}

	.laundry-sidebar-context.ast-right-sidebar #primary {
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
		border-right: 0;
	}
}
