/* ===== شريط التنقل السفلي (يحاكي Apple TV) ===== */
body {
	padding-bottom: 70px;
}

.ghayat-bottom-tabs {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	justify-content: space-around;
	align-items: center;
	background: rgba(10, 10, 12, 0.92);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--wp--preset--color--chrome-dim);
	padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}

.ghayat-bottom-tabs a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--wp--preset--color--chrome);
	text-decoration: none;
}

.ghayat-bottom-tabs__icon {
	width: 22px;
	height: 22px;
}

.ghayat-bottom-tabs a.is-active {
	color: var(--wp--preset--color--accent);
}

/* ===== حالة الترحيب قبل توفر الكتب ===== */
.ghayat-hero-empty {
	margin: 24px 16px;
	padding: 48px 20px;
	border-radius: 20px;
	text-align: center;
	background: radial-gradient(circle at top, var(--wp--preset--color--surface), var(--wp--preset--color--base));
	border: 1px solid var(--wp--preset--color--chrome-dim);
}

.ghayat-hero-empty__mark {
	width: 64px;
	height: auto;
	margin-bottom: 16px;
	opacity: 0.9;
}

.ghayat-hero-empty__title {
	margin: 0 0 8px;
	color: var(--wp--preset--color--contrast);
}

.ghayat-hero-empty__desc {
	margin: 0;
	color: var(--wp--preset--color--chrome);
}

/* ===== عنوان الصفحة الكبير (مثل "الرئيسية" في Apple TV) ===== */
.ghayat-page-title {
	margin: 18px 20px 4px;
	font-size: 30px;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

/* ===== تجميع الأغلفة الرئيسي (تركيب متداخل غير منتظم) ===== */
.ghayat-hero-collage {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	padding: 28px 22px 44px;
	background: linear-gradient(180deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--base) 85%);
}

.ghayat-hero-collage__item {
	display: block;
	padding: 6px;
	transition: transform 0.2s ease;
}

.ghayat-hero-collage__item img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.ghayat-hero-collage__item:nth-child(1) { transform: translateY(14px) rotate(-4deg); }
.ghayat-hero-collage__item:nth-child(2) { transform: translateY(-16px) scale(1.12); z-index: 2; }
.ghayat-hero-collage__item:nth-child(3) { transform: translateY(20px) rotate(4deg); }
.ghayat-hero-collage__item:nth-child(4) { transform: translateY(-4px) rotate(3deg); }
.ghayat-hero-collage__item:nth-child(5) { transform: translateY(16px) rotate(-3deg); z-index: 1; }
.ghayat-hero-collage__item:nth-child(6) { transform: translateY(-12px) rotate(-2deg); }

/* ===== بانر ترويجي (أكبر وأكثر حضورًا، يحاكي بانر Apple TV) ===== */
.ghayat-promo-banner {
	border-radius: 24px;
	overflow: hidden;
	margin: -28px 16px 16px;
	padding: 40px 24px;
	text-align: center;
	position: relative;
	background: radial-gradient(circle at 50% 0%, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--base) 70%);
	border: 1px solid var(--wp--preset--color--chrome-dim);
}

.ghayat-promo-banner__mark {
	width: 36px;
	height: auto;
	margin-bottom: 12px;
	opacity: 0.95;
}

.ghayat-promo-banner__eyebrow {
	color: var(--wp--preset--color--chrome);
	font-size: 13px;
	letter-spacing: 0.05em;
	margin: 0 0 6px;
}

.ghayat-promo-banner__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
}

.ghayat-promo-banner__desc {
	color: var(--wp--preset--color--chrome);
}

.ghayat-promo-banner__cta {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 30px;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: none;
}

.ghayat-promo-banner__dots {
	margin-top: 18px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.ghayat-promo-banner__dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--chrome-dim);
	display: inline-block;
}

.ghayat-promo-banner__dots span.is-active {
	background: var(--wp--preset--color--contrast);
}

/* ===== صف الكاروسيل (بلوك ghayat/carousel) ===== */
.ghayat-carousel-row {
	margin-block: 24px;
}

.ghayat-carousel-row__title {
	padding-inline: 16px;
	margin-bottom: 12px;
	font-weight: 600;
}

.ghayat-carousel-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-inline: 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ghayat-carousel-track::-webkit-scrollbar {
	display: none;
}

.ghayat-carousel-card {
	flex: 0 0 auto;
	width: 140px;
	scroll-snap-align: start;
	text-decoration: none;
	display: block;
}

.ghayat-carousel-card img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.ghayat-carousel-card span {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--wp--preset--color--chrome);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ===== شارات المنتج ===== */
.ghayat-format-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--chrome);
	font-size: 13px;
}

.ghayat-sibling-link a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* ===== شبكة المتجر (archive-product) بشكل أغلفة كتب ===== */
.woocommerce ul.products li.product img {
	border-radius: 14px;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

/* ===== نماذج وجداول WooCommerce (السلة/الدفع/حسابي) بالوضع الداكن ===== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--chrome-dim);
	color: var(--wp--preset--color--contrast);
	border-radius: 10px;
}

.woocommerce table.shop_table,
.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
	border-color: var(--wp--preset--color--chrome-dim);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--wp--preset--color--chrome-dim);
	color: var(--wp--preset--color--contrast);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-checkout-place-order-button {
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--wp--preset--color--chrome-dim);
	padding: 10px 0;
}

.woocommerce-MyAccount-navigation li a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: var(--wp--preset--color--accent);
}
