/* ==========================================================================
   Ovalete Design — قسم «ماركات القهوة» في الصفحة الرئيسية (coffee.php)
   يُحمَّل بعد ovalete.css و ovalete-mobile.css و ovalete-featured.css.
   ========================================================================== */

.ovd .ovd-coffee {
	--ovd-coffee-cream: #fbf1df;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(48px, 5.6vw, 84px);
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(198, 162, 86, 0.16), transparent 60%),
		radial-gradient(50% 70% at 0% 100%, rgba(198, 162, 86, 0.1), transparent 60%),
		linear-gradient(160deg, #57291b 0%, var(--ovd-choco) 45%, var(--ovd-choco-deep) 100%);
	color: var(--ovd-coffee-cream);
}

/* حبوب قهوة باهتة في الخلفية */
.ovd .ovd-coffee::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c6a256' stroke-width='1.4' stroke-linecap='round'%3E%3Cg transform='rotate(35 30 30)'%3E%3Cellipse cx='30' cy='30' rx='8' ry='12'/%3E%3Cpath d='M30 18c-4 6 4 18 0 24'/%3E%3C/g%3E%3Cg transform='rotate(-25 90 88)'%3E%3Cellipse cx='90' cy='88' rx='7' ry='10.5'/%3E%3Cpath d='M90 77.5c-3.5 5.2 3.5 15.8 0 21'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	background-size: 120px 120px;
	opacity: 0.07;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
	mask-image: linear-gradient(to bottom, #000, transparent 75%);
	pointer-events: none;
}

/* العنوان ------------------------------------------------------------------ */

.ovd .ovd-coffee .ovd-head {
	margin-bottom: clamp(26px, 3vw, 40px);
}

.ovd .ovd-coffee .ovd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	padding: 5px 12px 3px;
	background: rgba(198, 162, 86, 0.12);
	border: 1px solid rgba(198, 162, 86, 0.35);
	border-radius: 999px;
	color: var(--ovd-gold);
	font-size: 13.5px;
	font-weight: 600;
}

.ovd .ovd-coffee .ovd-icon--bean {
	width: 15px;
	height: 15px;
	margin-top: -2px;
}

.ovd .ovd-coffee .ovd-title {
	color: #fff;
	font-size: clamp(25px, 2.7vw, 36px);
}

.ovd .ovd-coffee .ovd-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 12px;
	background: var(--ovd-gold);
	border-radius: 3px;
}

.ovd .ovd-coffee .ovd-head__sub {
	max-width: 62ch;
	margin-top: 12px;
	color: rgba(251, 241, 223, 0.78);
	font-size: 15.5px;
	line-height: 1.8;
}

.ovd .ovd-coffee .ovd-coffee__all {
	border-color: var(--ovd-gold);
	color: var(--ovd-coffee-cream);
}

.ovd .ovd-coffee .ovd-coffee__all .ovd-more__count {
	background: rgba(198, 162, 86, 0.2);
	color: var(--ovd-gold);
}

.ovd .ovd-coffee .ovd-coffee__all:hover {
	background: var(--ovd-gold);
	color: var(--ovd-choco-deep);
}

.ovd .ovd-coffee .ovd-coffee__all:hover .ovd-more__count {
	background: rgba(44, 20, 12, 0.14);
	color: var(--ovd-choco-deep);
}

/* البطاقات ----------------------------------------------------------------- */

.ovd .ovd-coffee__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.8vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ovd .ovd-coffee__item {
	margin: 0;
}

.ovd .ovd-coffee__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--ovd-coffee-cream);
	border-radius: 22px;
	box-shadow: 0 0 0 1px rgba(198, 162, 86, 0.25), 0 22px 40px -24px rgba(0, 0, 0, 0.7);
	color: var(--ovd-ink);
	text-decoration: none;
	transition: transform 0.45s var(--ovd-ease), box-shadow 0.45s var(--ovd-ease);
}

.ovd .ovd-coffee__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #e9e4dc;
}

.ovd .ovd-coffee__media img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
	transition: transform 0.8s var(--ovd-ease);
}

/* انتقال ناعم من الصورة إلى لوحة المعلومات */
.ovd .ovd-coffee__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 22%;
	background: linear-gradient(to top, rgba(251, 241, 223, 0.55), transparent);
	pointer-events: none;
}

.ovd .ovd-coffee__num {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 26px;
	padding: 2px 10px 0;
	background: rgba(44, 20, 12, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: 999px;
	color: var(--ovd-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
}

.ovd .ovd-coffee__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(16px, 1.6vw, 22px);
}

.ovd .ovd-coffee__note {
	margin-bottom: 4px;
	color: var(--ovd-gold-deep);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.ovd .ovd-coffee__name {
	color: var(--ovd-ink);
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 700;
	line-height: 1.3;
}

.ovd .ovd-coffee__latin {
	margin-top: 2px;
	color: var(--ovd-muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-transform: uppercase;
}

.rtl.ovd .ovd-coffee__latin {
	align-self: flex-start;
}

.ovd .ovd-coffee__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
}

.ovd .ovd-coffee__meta {
	color: var(--ovd-text);
	font-size: 13.5px;
	line-height: 1.4;
}

.ovd .ovd-coffee__go {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 2px 16px 0;
	background: var(--ovd-choco);
	border-radius: 999px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.25s, color 0.25s, gap 0.25s var(--ovd-ease);
}

.ovd .ovd-coffee__go .ovd-icon {
	width: 15px;
	height: 15px;
	margin-top: -2px;
}

@media (hover: hover) {
	.ovd .ovd-coffee__card:hover {
		transform: translateY(-6px);
		box-shadow: 0 0 0 1px rgba(198, 162, 86, 0.7), 0 30px 50px -24px rgba(0, 0, 0, 0.85);
	}

	.ovd .ovd-coffee__card:hover .ovd-coffee__media img {
		transform: scale(1.06);
	}

	.ovd .ovd-coffee__card:hover .ovd-coffee__go {
		gap: 10px;
		background: var(--ovd-gold);
		color: var(--ovd-choco-deep);
	}
}

.ovd .ovd-coffee__card:focus-visible {
	outline: 3px solid var(--ovd-gold);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.ovd .ovd-coffee__card,
	.ovd .ovd-coffee__media img {
		transition: none;
	}
}

/* تابلت -------------------------------------------------------------------- */

@media (max-width: 999.98px) {
	.ovd .ovd-coffee .ovd-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ovd .ovd-coffee__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* موبايل ------------------------------------------------------------------- */

@media (max-width: 689.98px) {
	.ovd .ovd-coffee {
		padding-block: 44px 48px;
	}

	.ovd .ovd-coffee .ovd-head {
		gap: 18px;
		margin-bottom: 24px;
	}

	.ovd .ovd-coffee .ovd-title {
		font-size: 24px;
	}

	.ovd .ovd-coffee .ovd-head__sub {
		font-size: 14.5px;
		line-height: 1.75;
	}

	.ovd .ovd-coffee .ovd-head__actions {
		width: 100%;
	}

	.ovd .ovd-coffee .ovd-coffee__all {
		justify-content: center;
		width: 100%;
	}

	.ovd .ovd-coffee__list {
		gap: 12px;
	}

	.ovd .ovd-coffee__card {
		border-radius: 18px;
	}

	.ovd .ovd-coffee__num {
		inset-block-start: 10px;
		inset-inline-start: 10px;
		min-width: 32px;
		height: 22px;
		font-size: 11px;
	}

	.ovd .ovd-coffee__body {
		padding: 12px;
	}

	.ovd .ovd-coffee__note {
		display: none;
	}

	.ovd .ovd-coffee__name {
		font-size: 17px;
	}

	.ovd .ovd-coffee__latin {
		font-size: 10px;
		letter-spacing: 0.12em;
	}

	.ovd .ovd-coffee__foot {
		padding-top: 10px;
	}

	.ovd .ovd-coffee__meta {
		font-size: 12px;
	}

	.ovd .ovd-coffee__go {
		width: 30px;
		height: 30px;
		padding: 0;
		justify-content: center;
		font-size: 0;
	}

	.ovd .ovd-coffee__go .ovd-icon {
		margin-top: 0;
	}
}
