/* =========================================================
   BRISALA — SINGLE POST (modern blog layout)
   Naudoja temos auksinę/tamsią sistemą. Prefiksas .bpost
   ========================================================= */

/* Įrašuose: atlaisvinam Astra konteinerį (jis ribojo plotį), bet turinį
   centruojam ties 1320px – TIKSLIAI kaip header'io .bh-inner, kad kraštai sutaptų. */
.single #content > .ast-container,
.single .site-content > .ast-container,
.single .ast-container {
	max-width: 100% !important;
	width: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: block !important;   /* išjungiam Astra flex, kad margin:auto centruotų */
}
.single #content { padding-top: 0 !important; padding-bottom: 0 !important; }

.single #primary.bpost {
	max-width: 1320px !important;   /* = .bh-inner header'io plotis */
	width: 100% !important;
	margin: 32px auto !important;   /* tarpas viršuje/apačioje (matosi pilkas fonas) */
	padding: 64px 24px 72px !important;  /* matomas padding viršuje/apačioje */
	float: none !important;
	background: #fff !important;    /* baltas fonas */
	border-radius: 20px;
	box-shadow: 0 14px 44px rgba(0,0,0,.05);
}

/* Astra "separate container" deda baltą kortelę su dideliu padding/margin – nuimam */
.single .ast-article-single,
.single .ast-separate-container .ast-article-single {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.bpost {
	--bp-accent: var(--brisala-accent, #c8a96e);
	--bp-accent-dark: var(--brisala-accent-dark, #b3925a);
	--bp-ink: #1a1a1a;
	--bp-muted: #8a8a8a;
	--bp-border: #ececec;
	--bp-bg-soft: #faf7f1;
	--bp-radius: 16px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 48px 24px 80px;        /* šoninis 24px = kaip header'io .bh-inner */
	color: var(--bp-ink);
}

/* Apsauga: parduotuvės filtrų UI ("Filtrai") niekada nerodyti įrašuose –
   jis skirtas tik parduotuvės/kategorijų archyvams. */
.single .shop-filter-toggle,
.single #shop-filter-toggle,
.single .shop-sidebar,
.single .shop-overlay { display: none !important; }

/* skaitymo progreso juosta */
.bpost-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--bp-accent);
	z-index: 9999;
	transition: width .1s linear;
}

/* ---------------- HERO ---------------- */
.bpost__hero {
	max-width: 820px;
	margin: 0 auto 38px;
	text-align: center;
}
.bpost__crumbs,
.bpost__crumbs span,
.bpost__crumbs a {
	font-size: 13px;
	color: var(--bp-muted);
	text-decoration: none;
}
.bpost__crumbs { margin-bottom: 20px; }
.bpost__crumbs a:hover { color: var(--bp-accent-dark); }

.bpost__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--bp-accent-dark);
	margin-bottom: 14px;
}
.bpost__title {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	font-weight: 800;
	text-transform: none;
	margin: 0 0 18px;
	color: var(--bp-ink);
}
.bpost__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	font-size: 14px;
	color: var(--bp-muted);
}
.bpost__meta span { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.bpost__meta span + span::before {
	content: "";
	position: absolute;
	left: -13px;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--bp-border);
}

.bpost__cover {
	margin: 34px auto 0;
	max-width: 1040px;
}
.bpost__cover img {
	width: 100%;
	height: auto;
	border-radius: var(--bp-radius);
	box-shadow: 0 22px 50px rgba(0,0,0,.10);
	display: block;
}

/* ---------------- GRID: turinys + sidebar ---------------- */
.bpost__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 56px;
	align-items: start;
	max-width: none;
	margin: 0;
}

/* ---------------- ARTICLE TYPOGRAPHY ---------------- */
.bpost__main {
	font-size: 17.5px;
	line-height: 1.8;
	color: #2b2b2b;
	min-width: 0;
}
.bpost__main > h2,
.bpost__main > h3,
.bpost__main > h4 {
	color: var(--bp-ink);
	text-transform: none;
	line-height: 1.3;
	scroll-margin-top: 110px;
}
.bpost__main > h2 {
	font-size: 27px;
	font-weight: 800;
	margin: 1.9em 0 .55em;
	padding-left: 16px;
	border-left: 4px solid var(--bp-accent);
}
.bpost__main > h3 {
	font-size: 21px;
	font-weight: 700;
	margin: 1.6em 0 .5em;
}
.bpost__main > h4 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; }
.bpost__main p { margin: 0 0 1.25em; }
.bpost__main a {
	color: var(--bp-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.bpost__main a:hover { color: var(--bp-ink); }
.bpost__main ul,
.bpost__main ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.bpost__main li { margin: .5em 0; padding-left: 4px; }
.bpost__main ul li::marker { color: var(--bp-accent); }
.bpost__main ol li::marker { color: var(--bp-accent-dark); font-weight: 700; }
.bpost__main img { border-radius: 12px; height: auto; }
.bpost__main blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	background: var(--bp-bg-soft);
	border-left: 4px solid var(--bp-accent);
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: #44413c;
}
.bpost__main strong { color: var(--bp-ink); }
.bpost__main hr { border: 0; border-top: 1px solid var(--bp-border); margin: 2.4em 0; }

/* plugino mygtukai turinyje: be pabraukimo + matomas tekstas (nesilieja su fonu) */
.bpost__main a.bse-cta__btn,
.bpost__main a.bse-cat__btn,
.bpost__main a.bse-product__btn,
.bpost__main .bse-product__btn { text-decoration: none !important; }
.bpost__main a.bse-cat__btn,
.bpost__main a.bse-cat__btn:hover { color: #fff !important; }   /* auksinis fonas -> baltas tekstas */
.bpost__main a.bse-cta__btn,
.bpost__main a.bse-cta__btn:hover { color: var(--bp-accent-dark) !important; }  /* baltas pill -> tamsus tekstas */

/* produktų kortelės: visa kortelė yra nuoroda -> jokio pabraukimo viduje */
.bpost__main .bse-product,
.bpost__main .bse-product:hover,
.bpost__main .bse-product *,
.bpost__main .bse-product__name,
.bpost__main .bse-product__price,
.bpost__main .bse-product__btn { text-decoration: none !important; }
.bpost__main .bse-product__name {
	color: var(--bp-ink) !important;
	font-weight: 700;
}
/* kaina – kitoks stilius nei pavadinimas */
.bpost__main .bse-product__price {
	color: var(--bp-accent-dark) !important;
	font-weight: 800;
	font-style: normal;
	font-size: 1.05rem;
	letter-spacing: .3px;
	font-variant-numeric: tabular-nums;
}
.bpost__main .bse-product__price del { color: var(--bp-muted) !important; font-weight: 500; }

/* DUK akordeono mygtukas: Astra <button> stiliai uždeda tamsų foną hover/focus/active,
   todėl tekstas dingsta. Priverstinai – permatomas fonas, tamsus matomas tekstas. */
.bpost__main .bse-faq__q,
.bpost__main .bse-faq__q:hover,
.bpost__main .bse-faq__q:focus,
.bpost__main .bse-faq__q:active,
.bpost__main .bse-faq__item.is-open .bse-faq__q {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--bp-ink) !important;
	box-shadow: none !important;
	border: 0 !important;
	outline: none !important;
	text-shadow: none !important;
}
.bpost__main .bse-faq__item.is-open { border-color: var(--bp-accent); }

/* plugino shortcode'ai (.bse-*) – perdažom į temos auksinę spalvą, kad derėtų */
.bpost__main {
	--bse-accent: var(--bp-accent);
	--bse-accent-dark: var(--bp-accent-dark);
	--bse-bg-soft: var(--bp-bg-soft);
	--bse-border: #ece2cf;
	--bse-text: var(--bp-ink);
	--bse-muted: var(--bp-muted);
}

/* žymos */
.bpost__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--bp-border);
}
.bpost__tags > span { font-size: 14px; color: var(--bp-muted); margin-right: 4px; }
.bpost__tags a {
	font-size: 13px;
	text-decoration: none;
	color: var(--bp-ink);
	background: var(--bp-bg-soft);
	border: 1px solid var(--bp-border);
	padding: 6px 14px;
	border-radius: 999px;
}
.bpost__tags a:hover { border-color: var(--bp-accent); color: var(--bp-accent-dark); }

/* ---------------- SIDEBAR ---------------- */
.bpost__side {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.bp-widget {
	background: #fff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 22px 22px 24px;
}
.bp-widget__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--bp-ink);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bp-border);
	position: relative;
}
.bp-widget__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 42px; height: 2px;
	background: var(--bp-accent);
}

/* sidebar kategorijos */
.bp-widget ul { list-style: none; margin: 0; padding: 0; }
.bp-widget li { margin: 0; }
.bp-cats li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid #f4f4f4;
	font-size: 14.5px;
	color: var(--bp-muted);
}
.bp-cats li a {
	color: var(--bp-ink);
	text-decoration: none;
}
.bp-cats li:last-child { border-bottom: 0; }
.bp-cats li a:hover { color: var(--bp-accent-dark); }

/* sidebar naujausi įrašai */
.bp-recent li { margin-bottom: 14px; }
.bp-recent li:last-child { margin-bottom: 0; }
.bp-recent a {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	color: var(--bp-ink);
}
.bp-recent img {
	width: 64px; height: 64px;
	object-fit: cover;
	border-radius: 10px;
	flex: 0 0 64px;
	background: var(--bp-bg-soft);
}
.bp-recent__t { font-size: 14px; line-height: 1.4; font-weight: 600; }
.bp-recent a:hover .bp-recent__t { color: var(--bp-accent-dark); }

/* sidebar promo CTA */
.bp-promo {
	background: linear-gradient(150deg, var(--bp-ink), #333);
	color: #fff;
	border: 0;
	text-align: center;
}
.bp-promo .bp-widget__title { color: #fff; border-color: rgba(255,255,255,.18); }
.bp-promo .bp-widget__title::after { left: 50%; transform: translateX(-50%); }
.bp-promo p { font-size: 14px; color: rgba(255,255,255,.82); margin: 0 0 16px; line-height: 1.6; }
.bp-promo__btn {
	display: inline-block;
	background: var(--bp-accent);
	color: #1a1a1a;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 999px;
}
.bp-promo__btn:hover { background: var(--bp-accent-dark); color: #fff; }

/* ---------------- RELATED ---------------- */
.bpost__related {
	margin: 56px 0 0;
	padding-top: 50px;
	border-top: 1px solid var(--bp-border);
}
.bpost__related-h {
	font-size: 24px;
	font-weight: 800;
	text-transform: none;
	margin: 0 0 26px;
}
.bp-rel-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.bp-rel-card {
	display: block;
	text-decoration: none;
	color: var(--bp-ink);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	overflow: hidden;
	background: #fff;
	transition: transform .18s ease, box-shadow .18s ease;
}
.bp-rel-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.08); }
.bp-rel-card__img { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--bp-bg-soft); display: block; }
.bp-rel-card__no-img { aspect-ratio: 16/10; background: var(--bp-bg-soft); }
.bp-rel-card__body { padding: 16px 18px 20px; }
.bp-rel-card__date { font-size: 12px; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .5px; }
.bp-rel-card__t { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 8px 0 0; }
.bp-rel-card:hover .bp-rel-card__t { color: var(--bp-accent-dark); }

/* "Jums gali būti įdomu" – Swiper karuselė */
.bp-swiper { position: relative; padding: 4px 0 46px; }
.bp-swiper .swiper-slide { height: auto; }
.bp-swiper .saga-card { height: 100%; }
/* nuimam pilką foną prie nuotraukos (poste) */
.bpost .saga-card__img-wrap { background: #fff; }
.bp-swiper .swiper-button-next,
.bp-swiper .swiper-button-prev {
	color: var(--bp-ink);
	background: #fff;
	width: 44px; height: 44px;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0,0,0,.12);
	top: 38%;
}
.bp-swiper .swiper-button-next:after,
.bp-swiper .swiper-button-prev:after { font-size: 17px; font-weight: 700; }
.bp-swiper .swiper-button-next:hover,
.bp-swiper .swiper-button-prev:hover { color: var(--bp-accent-dark); }
.bp-swiper .swiper-button-disabled { opacity: 0; }
.bp-swiper .swiper-pagination { bottom: 8px; }
.bp-swiper .swiper-pagination-bullet { background: var(--bp-muted); opacity: .5; }
.bp-swiper .swiper-pagination-bullet-active { background: var(--bp-accent); opacity: 1; }

/* "Pirkti pagal kategoriją" – švarios tekstinės plytelės (be paveikslėlių) */
.bpost__cats { margin-top: 56px; }
.bp-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.bp-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 122px;
	padding: 22px 22px 20px;
	background: #fff;
	border: 1px solid var(--bp-border);
	border-radius: 14px;
	text-decoration: none;
	color: var(--bp-ink);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bp-cat-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 3px;
	background: var(--bp-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.bp-cat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0,0,0,.07);
	border-color: var(--bp-accent);
}
.bp-cat-card:hover::before { transform: scaleX(1); }
.bp-cat-card__name {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--bp-ink);
}
.bp-cat-card__count { font-size: 13px; color: var(--bp-muted); }
.bp-cat-card__arrow {
	margin-top: auto;
	font-size: 20px;
	font-weight: 700;
	color: var(--bp-accent-dark);
	transition: transform .2s ease;
}
.bp-cat-card:hover .bp-cat-card__arrow { transform: translateX(5px); }

/* ---------------- COMMENTS ---------------- */
.bpost #comments,
.bpost .comment-respond {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.bpost .comments-title,
.bpost .comment-reply-title {
	font-size: 22px;
	font-weight: 800;
	text-transform: none;
}
.bpost .comment-form input[type="text"],
.bpost .comment-form input[type="email"],
.bpost .comment-form input[type="url"],
.bpost .comment-form textarea {
	border: 1px solid var(--bp-border) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	background: #fff !important;
}
.bpost .comment-form input:focus,
.bpost .comment-form textarea:focus {
	border-color: var(--bp-accent) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(200,169,110,.18) !important;
}
.bpost .comment-form .submit,
.bpost .form-submit .submit {
	background: var(--bp-ink) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 13px 30px !important;
	font-weight: 700 !important;
	color: #fff !important;
}
.bpost .comment-form .submit:hover { background: var(--bp-accent-dark) !important; }
.bpost .comment-list { list-style: none; margin: 24px 0 0; padding: 0; }
.bpost .comment-body {
	border: 1px solid var(--bp-border);
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

/* ---------------- RESPONSYVUMAS ---------------- */
@media (max-width: 980px) {
	.bpost__grid { grid-template-columns: 1fr; gap: 40px; }
	.bpost__side { position: static; top: auto; }
	.bp-rel-grid { grid-template-columns: 1fr 1fr; }
	.bp-cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.bpost { padding: 30px 16px 60px; }
	.bp-rel-grid { grid-template-columns: 1fr; }
	.bp-cat-grid { grid-template-columns: 1fr 1fr; }
}
