/* Opticalia Blog Elementor Widget */
.obw-wrap,
.obw-wrap * {
	box-sizing: border-box;
}

.obw-wrap {
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto;
	font-family: "neue-haas-grotesk-text", Inter, Arial, sans-serif;
}

/* Featured grid */
.obw-featured-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	min-height: 620px;
	width: 100%;
}

.obw-featured-tile {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	color: #000;
	background: #fff;
	border-radius: 0;
}

.obw-main-card {
	grid-row: span 2;
}

.obw-main-card img,
.obw-product-image-wrap img,
.obw-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.obw-main-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.55) 100%);
	pointer-events: none;
}

.obw-main-title {
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 52px;
	color: #fff;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
}

.obw-promo-card,
.obw-cta-card {
	background: #F9E486;
}

.obw-promo-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 34px 28px 26px;
	text-align: center;
}

.obw-promo-photo {
	width: 72%;
	max-width: 180px;
	aspect-ratio: 4 / 5;
	background: #fff;
	padding: 12px;
	transform: rotate(-3deg);
	box-shadow: 0 4px 10px rgba(0,0,0,.06);
	display: block;
}

.obw-promo-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.obw-promo-text {
	display: block;
	margin-top: 22px;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.obw-product-card {
	border: 1px solid #ededed;
	background: #fff;
}

.obw-heart {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	font-size: 28px;
	line-height: 1;
	color: #333;
	font-weight: 300;
}

.obw-product-image-wrap {
	position: absolute;
	inset: 0 0 60px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 34px;
}

.obw-product-image-wrap img {
	object-fit: contain;
}

.obw-product-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 60px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px 12px;
	border-top: 1px solid #efefef;
	background: #fff;
}

.obw-product-name,
.obw-product-price {
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	color: #000;
}

.obw-product-brand {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 400;
	color: #555;
}

.obw-product-price {
	white-space: nowrap;
}

.obw-dots {
	position: absolute;
	right: 12px;
	bottom: 8px;
	display: flex;
	gap: 4px;
}

.obw-dots i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #d7d7d7;
	display: block;
}

.obw-dots i:nth-child(2) {
	background: #5B6CE1;
}

.obw-dots i:nth-child(3) {
	background: #E3D45A;
}

.obw-cta-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 44px 48px;
}

.obw-cta-title {
	font-family: Georgia, serif;
	font-size: 38px;
	font-weight: 400;
	line-height: .95;
	letter-spacing: -0.04em;
	color: #000;
	margin-bottom: 72px;
}

.obw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 36px;
	padding: 0 24px;
	background: #000;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
	transition: opacity .2s ease, transform .2s ease;
}

.obw-button:hover {
	color: #fff;
	opacity: .75;
	transform: translateY(-1px);
}

/* Posts grid */
.obw-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 34px;
}

.obw-post-card {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 0;
	overflow: hidden;
	min-width: 0;
}

.obw-post-thumb {
	display: block;
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f3f3f3;
}

.obw-category-label {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 8px 10px;
	text-decoration: none;
}

.obw-post-body {
	padding: 28px;
}

.obw-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	color: #555;
	font-size: 12px;
	line-height: 1.4;
	margin-bottom: 18px;
}

.obw-meta span + span::before {
	content: "▢";
	font-size: 10px;
	margin-right: 7px;
	color: #111;
}

.obw-post-title {
	margin: 0 0 16px;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #000;
}

.obw-post-title a {
	color: inherit;
	text-decoration: none;
}

.obw-post-title a:hover {
	text-decoration: underline;
}

.obw-post-excerpt {
	margin: 0 0 26px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: #555;
}

/* Pagination */
.obw-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 42px;
}

.obw-pagination a,
.obw-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	color: #000;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	border: 0;
	background: transparent;
}

.obw-pagination .current {
	background: #000;
	color: #fff;
}

.obw-empty {
	text-align: center;
	margin: 32px auto;
	color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
	.obw-wrap {
		width: calc(100% - 32px);
	}

	.obw-featured-grid {
		grid-template-columns: 1.25fr 1fr 1fr;
		min-height: 520px;
	}

	.obw-main-title {
		left: 28px;
		right: 28px;
		bottom: 36px;
		font-size: 28px;
	}

	.obw-cta-card {
		padding: 32px;
	}

	.obw-cta-title {
		font-size: 31px;
		margin-bottom: 50px;
	}
}

@media (max-width: 767px) {
	.obw-wrap {
		width: calc(100% - 28px);
	}

	.obw-featured-grid {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		min-height: initial;
	}

	.obw-featured-tile {
		min-height: 280px;
	}

	.obw-main-card {
		grid-row: auto;
		min-height: 460px;
	}

	.obw-main-title {
		left: 22px;
		right: 22px;
		bottom: 34px;
		font-size: 27px;
	}

	.obw-promo-card {
		min-height: 320px;
	}

	.obw-product-card {
		min-height: 330px;
	}

	.obw-cta-card {
		min-height: 290px;
		padding: 36px;
	}

	.obw-posts-grid {
		grid-template-columns: 1fr;
	}

	.obw-post-thumb {
		height: 230px;
	}

	.obw-post-body {
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.obw-main-card {
		min-height: 400px;
	}

	.obw-main-title {
		font-size: 24px;
	}

	.obw-cta-title {
		font-size: 34px;
	}
}


/* Secondary post tiles inside featured grid, added in v1.1.0 */
.obw-secondary-post-card {
	position: relative;
	background: #f6f6f6;
	border: 1px solid #ededed;
	min-height: 0;
}

.obw-secondary-post-image {
	position: absolute;
	inset: 0;
	display: block;
}

.obw-secondary-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.obw-secondary-post-card:hover .obw-secondary-post-image img {
	transform: scale(1.035);
}

.obw-secondary-post-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.68) 100%);
	pointer-events: none;
}

.obw-secondary-post-content {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.obw-secondary-post-content .obw-category-label {
	position: static;
	top: auto;
	left: auto;
	display: inline-flex;
	width: fit-content;
}

.obw-secondary-date {
	display: block;
	color: rgba(255,255,255,.82);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.obw-secondary-post-title {
	display: block;
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.obw-secondary-excerpt {
	display: block;
	color: rgba(255,255,255,.86);
	font-size: 13px;
	line-height: 1.35;
}

.obw-secondary-post-card-empty {
	background: #f4f4f4;
}

.obw-secondary-post-card-empty::after {
	background: none;
}

.obw-secondary-post-card-empty .obw-secondary-post-title {
	color: #777;
}

@media (max-width: 767px) {
	.obw-secondary-post-card {
		min-height: 300px;
	}
}
