:root {
  --lwnh-green: #197149;
  --lwnh-green-dark: #12583a;
  --lwnh-wine: #5c0c2e;
  --lwnh-ink: #202823;
  --lwnh-muted: #68716c;
  --lwnh-line: #e2e9e5;
  --lwnh-soft: #f3f7f5;
}

.lwnh-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lwnh-green) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.lwnh-card-link span {
  transition: transform .2s ease;
}

.lwnh-card-link:hover span {
  transform: translateX(3px);
}

.lwnh-expert-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 5px;
  border: 0 !important;
  background: var(--lwnh-wine) !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  text-decoration: none !important;
}

.lwnh-expert-badge * {
  color: #fff !important;
}

.lwnh-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, #edf4f0, #dce9e2);
  color: var(--lwnh-green);
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: .1em;
}

.lwnh-scroll-hint {
	display: none;
}

/* Product description: use the real full tab width only when news exists. */
.lwp-panel[data-lwp-panel="description"] > .lwp-copy:has(.lwnh-product-description-layout) {
  max-width: none !important;
}

.lwnh-product-description-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.lwnh-product-description-main {
  min-width: 0;
  max-width: 900px;
}

.lwnh-product-news {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--lwnh-line);
  border-radius: 14px;
  background: #fff;
}

.lwnh-product-news__heading {
  margin-bottom: 13px;
}

.lwnh-product-news__heading > span {
  display: block;
  margin-bottom: 4px;
  color: var(--lwnh-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lwnh-product-news__heading h2 {
  margin: 0 !important;
  color: var(--lwnh-ink);
  font-size: 21px !important;
  line-height: 1.2;
}

	.lwnh-product-news__list {
  display: grid;
  gap: 12px;
}

.lwnh-compact-card {
  overflow: hidden;
  border: 1px solid var(--lwnh-line);
  border-radius: 10px;
  background: #fff;
}

.lwnh-compact-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--lwnh-soft);
}

.lwnh-compact-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

.lwnh-compact-card__body {
  padding: 12px;
}

.lwnh-compact-card__body h3 {
  margin: 0 0 9px !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.3;
}

.lwnh-compact-card__body h3 a {
  color: var(--lwnh-ink) !important;
  text-decoration: none !important;
}

/* Reusable news card. */
.lwnh-news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--lwnh-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

.lwnh-news-card:hover {
  border-color: #c7d8cf;
  transform: translateY(-2px);
}

.lwnh-news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--lwnh-soft);
}

.lwnh-news-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

.lwnh-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.lwnh-news-card__category {
  margin-bottom: 7px;
  color: var(--lwnh-green);
  font-family: "PT Sans", Arial, sans-serif !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lwnh-news-card__title {
  margin: 0 0 9px !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
}

.lwnh-news-card__title a {
  color: var(--lwnh-ink) !important;
  text-decoration: none !important;
}

.lwnh-news-card__body > p {
  margin: 0 0 14px;
  color: var(--lwnh-muted);
  font-size: 14px;
  line-height: 1.5;
}

.lwnh-news-card__body .lwnh-card-link {
  margin-top: auto;
}

/* Homepage: same heading scale and links as the existing product sections. */
.lwnh-home-news {
  background: #f7f8f7;
}

.lwnh-home-news__heading {
  gap: 18px;
}

.lwnh-home-news__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 18px;
}

.lwnh-home-news__links .ob-section__all {
  white-space: nowrap;
}

.lwnh-telegram-link {
	display: inline-flex !important;
	width: auto !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid var(--lwnh-green) !important;
	border-radius: 8px !important;
	background: var(--lwnh-green) !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	color: #fff !important;
	font-family: "PT Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .2s ease, border-color .2s ease !important;
}

.lwnh-telegram-link:hover {
	border-color: var(--lwnh-green-dark) !important;
	background: var(--lwnh-green-dark) !important;
	color: #fff !important;
}

.lwnh-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Main blog: expert content is a real section, not a button or virtual URL. */
.lwnh-blog-expert {
	padding: 44px 0 16px;
}

.lwnh-blog-expert + .ob-blog-hero {
	padding-top: 12px;
}

.lwnh-blog-expert__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-left: 4px solid var(--lwnh-wine);
  border-radius: 0 12px 12px 0;
  background: #fff;
}

.lwnh-blog-expert__heading > div:first-child > span {
  display: block;
  margin-bottom: 4px;
  color: var(--lwnh-wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lwnh-blog-expert__heading h2 {
  margin: 0;
  color: var(--lwnh-ink);
  font-size: 28px;
  line-height: 1.15;
}

.lwnh-blog-expert__action {
	display: flex;
	max-width: 500px;
	align-items: flex-end;
	flex-direction: column;
	gap: 11px;
}

.lwnh-blog-expert__action p {
  max-width: 470px;
  margin: 0;
	text-align: right;
  color: var(--lwnh-muted);
  font-size: 15px;
  line-height: 1.5;
}

.lwnh-blog-expert__action > a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border: 1px solid var(--lwnh-wine);
	border-radius: 8px;
	background: var(--lwnh-wine);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.lwnh-blog-expert__action > a:hover {
	background: #460923;
	color: #fff !important;
}

.lwnh-expert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lwnh-blog-switcher {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: -8px;
}

.lwnh-blog-switcher a {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(25, 113, 73, .18);
  border-radius: 999px;
  background: #fff;
  color: #354039;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.lwnh-blog-switcher a:hover,
.lwnh-blog-switcher a.is-active {
  border-color: var(--lwnh-green);
  background: var(--lwnh-green);
  color: #fff;
}

/* Full-width editorial row; it does not consume one or two product cells. */
.wc-content ul.products > li.lwnh-catalog-news,
.woocommerce ul.products > li.lwnh-catalog-news,
ul.products > li.lwnh-catalog-news {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: 1 / -1 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.lwnh-catalog-news > article {
  display: grid;
	height: 260px;
	min-height: 0;
	max-height: 260px;
  overflow: hidden;
	grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
  border: 1px solid var(--lwnh-line);
  border-radius: 14px;
	background: #fff;
	clip-path: inset(0 round 14px);
	isolation: isolate;
}

.lwnh-catalog-news__media {
  position: relative;
  display: block;
	width: 100%;
	height: 260px;
	min-height: 0;
  overflow: hidden;
	background: #fff;
}

.lwnh-catalog-news__image {
	position: absolute;
	inset: 0;
  display: block;
	width: 100% !important;
	max-width: none !important;
  height: 100% !important;
	max-height: none !important;
  margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
  object-fit: cover;
	object-position: center;
}

.lwnh-catalog-news__media .lwnh-card__placeholder {
	position: absolute;
	inset: 0;
}

.lwnh-catalog-news__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 30px;
	background: #f4f8f5;
}

.lwnh-catalog-news__body > span {
  margin-bottom: 7px;
  color: var(--lwnh-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lwnh-catalog-news__body h2 {
  margin: 0 0 10px !important;
  font-size: 25px !important;
  line-height: 1.22;
}

.lwnh-catalog-news__body h2 a {
  color: var(--lwnh-ink) !important;
  text-decoration: none !important;
}

.lwnh-catalog-news__body p {
  margin: 0 0 15px;
  color: var(--lwnh-muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  .lwnh-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .lwnh-product-description-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lwnh-product-description-main {
    max-width: none;
  }

  .lwnh-product-news__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

	.lwnh-blog-expert__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.lwnh-blog-expert__action {
		max-width: none;
		align-items: flex-start;
	}

	.lwnh-blog-expert__action p {
		max-width: none;
		text-align: left;
	}
}

@media (max-width: 767px) {
	.lwnh-blog-expert .container,
	.lwnh-home-news .container,
	.lwnh-product-news {
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
	}

  .lwnh-product-description-layout {
    gap: 25px;
  }

  .lwnh-product-news {
    padding: 15px;
  }

  .lwnh-product-news__list {
		display: flex;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 12px;
		padding-bottom: 7px;
		overscroll-behavior-inline: contain;
		scroll-snap-type: none;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
  }

	.lwnh-product-news__list::-webkit-scrollbar,
	.lwnh-home-grid::-webkit-scrollbar,
	.lwnh-expert-grid::-webkit-scrollbar {
		display: none;
	}

  .lwnh-compact-card {
		min-width: 0;
		flex: 0 0 76%;
		scroll-snap-align: none;
  }

  .lwnh-home-news__heading {
    align-items: flex-start;
    flex-direction: column;
  }

	.lwnh-home-news__links {
		justify-content: flex-start;
		align-items: center;
		gap: 12px;
	}

  .lwnh-home-grid {
		display: flex;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 8px;
		overscroll-behavior-inline: contain;
		scroll-snap-type: none;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
  }

  .lwnh-news-card {
		min-width: 0;
		flex: 0 0 76%;
		scroll-snap-align: none;
  }

  .lwnh-news-card:hover {
    transform: none;
  }

  .lwnh-blog-expert {
		padding: 20px 0 28px;
  }

  .lwnh-blog-expert__heading {
    gap: 10px;
    padding: 17px 18px;
  }

  .lwnh-blog-expert__heading h2 {
    font-size: 23px;
  }

  .lwnh-expert-grid {
		display: flex;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 14px;
		padding-bottom: 8px;
		overscroll-behavior-inline: contain;
		scroll-snap-type: none;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
  }

	.lwnh-scroll-hint {
		display: flex;
		width: 100%;
		min-width: 0;
		align-items: center;
		gap: 12px;
		margin-top: 9px;
		color: #65736c;
		font-family: "PT Sans", Arial, sans-serif !important;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .06em;
		line-height: 1;
		text-transform: uppercase;
	}

	.lwnh-scroll-hint[hidden] {
		display: none !important;
	}

	.lwnh-scroll-hint__label {
		flex: 0 0 auto;
	}

	.lwnh-scroll-hint__track {
		position: relative;
		height: 4px;
		min-width: 0;
		max-width: 190px;
		flex: 1 1 150px;
		overflow: hidden;
		border-radius: 999px;
		background: #dce7e1;
	}

	.lwnh-scroll-hint__thumb {
		position: absolute;
		top: 0;
		left: 0;
		display: block;
		height: 100%;
		border-radius: inherit;
		background: var(--lwnh-green);
		will-change: transform;
	}

  .lwnh-blog-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .lwnh-blog-switcher::-webkit-scrollbar {
    display: none;
  }

  .lwnh-blog-switcher a {
    flex: 0 0 auto;
  }

	.lwnh-catalog-news > article {
		height: 180px;
		min-height: 0;
		max-height: 180px;
		grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
	}

	.lwnh-catalog-news__media {
		height: 180px;
	}

  .lwnh-catalog-news__body {
    padding: 16px;
  }

  .lwnh-catalog-news__body h2 {
    font-size: 18px !important;
  }

	.lwnh-catalog-news__body p {
		display: none;
	}

}

@media (prefers-reduced-motion: reduce) {
  .lwnh-news-card,
  .lwnh-card-link span {
    transition: none !important;
  }
}
