/* 350SA Dates Store - كل القواعد محصورة داخل .sa350 عشان ما تتأثر بالثيم */
.sa350 {
	--sa-ink: #24180f;
	--sa-palm: #1f3d2b;
	--sa-palm-2: #2d5740;
	--sa-gold: #c28a2e;
	--sa-gold-deep: #8f6119;
	--sa-line: #e3dccf;
	--sa-muted: #6b5e52;
	--sa-wash: #f6f3ec;

	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	color: var(--sa-ink);
	font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
	line-height: 1.7;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}
.sa350 *,
.sa350 *::before,
.sa350 *::after {
	box-sizing: inherit;
}
.sa350 a {
	color: inherit;
	text-decoration: none;
}
.sa350 img {
	display: block;
	max-width: 100%;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

/* الواجهة الرئيسية */
.sa350-hero {
	max-width: none;
	padding: 0;
	background: var(--sa-palm);
	color: #fff;
}
.sa350-hero__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 72px 16px 80px;
}
.sa350-hero h1 {
	margin: 0 0 16px;
	max-width: 14em;
	font-size: clamp(2rem, 6vw, 3.6rem);
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
}
.sa350-hero p {
	margin: 0 0 28px;
	max-width: 32em;
	font-size: 1.1rem;
	color: #e5dccb;
}

/* الأزرار */
.sa350-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--sa-palm);
	border-radius: 4px;
	background: var(--sa-palm);
	color: #fff !important;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.sa350-btn:hover {
	background: var(--sa-palm-2);
}
.sa350-btn--gold {
	background: var(--sa-gold);
	border-color: var(--sa-gold);
	color: var(--sa-ink) !important;
}
.sa350-btn--gold:hover {
	background: #d99a36;
}
.sa350-btn--line {
	background: transparent;
	color: var(--sa-palm) !important;
}
.sa350-btn--line:hover {
	background: var(--sa-wash);
}
.sa350 a:focus-visible,
.sa350 .sa350-btn:focus-visible {
	outline: 3px solid var(--sa-gold);
	outline-offset: 2px;
}

/* الأقسام */
.sa350-section {
	padding-block: 48px;
}
.sa350-title {
	margin: 0 0 24px;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 700;
	color: var(--sa-palm);
}

/* أنواع التمور */
.sa350-types {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}
.sa350-type {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sa-line);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s;
}
.sa350-type:hover {
	border-color: var(--sa-gold);
}
.sa350-type__img {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--sa-wash);
}
.sa350-type__name {
	padding: 10px 12px 0;
	font-weight: 700;
	font-size: 1.05rem;
}
.sa350-type__count {
	padding: 0 12px 12px;
	font-size: 0.85rem;
	color: var(--sa-muted);
}

/* المنتجات */
.sa350-products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (min-width: 720px) {
	.sa350-products {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1000px) {
	.sa350-products {
		grid-template-columns: repeat(4, 1fr);
	}
}
.sa350-product {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sa350-product__img {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 4px;
	overflow: hidden;
	background: var(--sa-wash);
}
.sa350-product__name {
	margin: 8px 0 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
}
.sa350-product__price {
	margin-bottom: 6px;
	font-weight: 500;
	color: var(--sa-gold-deep);
}
.sa350-product__price del {
	color: var(--sa-muted);
	font-weight: 400;
}
.sa350-product__price ins {
	text-decoration: none;
}
.sa350-product .sa350-btn {
	margin-top: auto;
	text-align: center;
}

/* بديل الصورة */
.sa350-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--sa-wash);
	color: var(--sa-gold);
	font-size: 3rem;
	font-weight: 700;
}
.sa350-note {
	padding: 12px;
	border: 1px dashed var(--sa-gold);
	color: var(--sa-gold-deep);
}

@media (prefers-reduced-motion: reduce) {
	.sa350 * {
		transition: none !important;
	}
}
