/* ==========================================================================
   Footer. Layout, top to bottom:
   1. Grid: brand (logo · about · social) | top stores | quick links | categories
   2. Countries strip (flag chips)
   3. Bottom bar (copyright · affiliate note)
   Uses the tokens from sc-header.css.
   ========================================================================== */
/* Deep ink-green base, a green glow and a gold glow, a fine dot grid,
   and a scalloped "torn coupon" top edge (same motif as the page bands). */
.sc-footer { position: relative; overflow: hidden; margin-top: 18px; padding-top: 14px; color: rgba(255, 255, 255, .78);
	background:
		radial-gradient(520px 320px at 92% 8%, rgba(28, 160, 115, .45), transparent 70%),
		radial-gradient(460px 300px at 6% 96%, rgba(245, 184, 46, .16), transparent 70%),
		radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px,
		linear-gradient(180deg, #0C3A2D 0%, #072820 100%); }
/* Scalloped top edge: the bites take the colour of the section above
   (--sc-footer-cut); on the home page that's the white FAQ section. */
/* Real cut-outs (mask), so the bites always show whatever sits above —
   no colour to match on any page or screen size. */
.sc-footer { --bite: radial-gradient(circle 8px at 50% 0, #0000 96%, #000) 0 0 / 34px 14px repeat-x, linear-gradient(#000 0 0) 0 14px / 100% calc(100% - 14px) no-repeat; -webkit-mask: var(--bite); mask: var(--bite); }
/* Footer sits flush under the last section, so the bites show that section (not a strip of page background). */
.sc-footer { margin-top: 0; -webkit-mask-repeat: round no-repeat, no-repeat; mask-repeat: round no-repeat, no-repeat; }
.sc-footer::before { content: none; }
.home .sc-footer { --sc-footer-cut: #fff; margin-top: 0; }
/* Home without a running season: flip the sections after "latest" so white/cream keeps alternating. */
.home:not(:has(.sc-season)) .sc-hstores,
.home:not(:has(.sc-season)) .sc-hhow,
.home:not(:has(.sc-season)) .sc-about-home { background: #fff; }
.home:not(:has(.sc-season)) .sc-hcountries,
.home:not(:has(.sc-season)) .sc-hposts,
.home:not(:has(.sc-season)) .sc-hfaq { background: #F4F1EA; }
.home:not(:has(.sc-season)) .sc-footer { --sc-footer-cut: #F4F1EA; }
.sc-footer > .sc-wrap { position: relative; z-index: 1; }
.sc-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.sc-footer a:hover { color: #FFD86B; }

/* 1. Grid: brand | top stores | important links (2 sub-columns) | contact */
.sc-footer__grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr .85fr 1.15fr; gap: 36px; padding-top: 60px; padding-bottom: 44px; }
/* Important links: one clean column, a gold chevron that slides on hover. */
.sc-footer__col--links ul { gap: 11px; }
.sc-footer__col--links a::before { display: none; }
.sc-footer__col--links a::after { content: ""; order: -1; width: 7px; height: 7px; border-top: 2px solid #F5B82E; border-inline-start: 2px solid #F5B82E; transform: rotate(-135deg); opacity: .7; transition: transform .2s, opacity .2s; }
[dir="ltr"] .sc-footer__col--links a::after { transform: rotate(135deg); }
.sc-footer__col--links a:hover::after { opacity: 1; transform: translateX(-4px) rotate(-135deg); }
/* "كل الأقسام": same colour as the other links (gold only on hover), just a bit bolder. */
.sc-footer__all { font-weight: 700; }
[dir="ltr"] .sc-footer__col--links a:hover::after { transform: translateX(4px) rotate(135deg); }

/* Contact: icon tile + small label + value. */
.sc-footer__col--contact ul { gap: 14px; }
.sc-footer__col--contact a::before { display: none; }
.sc-footer__citem { display: flex; align-items: center; gap: 12px; }
.sc-footer__ci { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(245, 184, 46, .14); color: #FFD86B; transition: background .2s, color .2s; }
a.sc-footer__citem:hover .sc-footer__ci { background: #F5B82E; color: #0B4A38; }
.sc-footer__ctext { display: grid; line-height: 1.35; }
.sc-footer__ctext small { font-size: 12px; color: rgba(255, 255, 255, .5); }
.sc-footer__ctext b { font-size: 14px; font-weight: 600; color: #fff; text-align: start; unicode-bidi: plaintext; }
.sc-footer__logo { display: inline-block; margin-bottom: 14px; }
.sc-footer__logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.sc-footer__logo span { font-size: 26px; font-weight: 800; color: #fff; }
.sc-footer__about { margin: 0 0 20px; max-width: 380px; font-size: 14px; line-height: 1.95; }

.sc-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.sc-footer__social a:hover { transform: translateY(-3px); border-color: #F5B82E; background: #F5B82E; color: #0B4A38; }

.sc-footer__title { position: relative; margin: 0 0 20px; padding-bottom: 10px; font-size: 16px; font-weight: 800; color: #fff; }
.sc-footer__title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 3px; border-radius: 3px; background: #F5B82E; }
.sc-footer__col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.sc-footer__col a { display: inline-flex; align-items: center; gap: 9px; }
.sc-footer__col:not(.sc-footer__col--stores) a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 184, 46, .55); transition: transform .2s, background .2s; }
.sc-footer__col a:hover::before { transform: scale(1.5); background: #F5B82E; }

/* Top stores: small white logo tiles. */
.sc-footer__col--stores ul { gap: 10px; }
.sc-footer__slogo { display: grid; place-items: center; width: 30px; height: 30px; flex: none; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); transition: transform .2s; }
.sc-footer__slogo img { width: 100%; height: 100%; object-fit: cover; }
.sc-footer__col--stores a:hover .sc-footer__slogo { transform: rotate(-6deg) scale(1.08); }

/* 2. Affiliate note under the site intro */
.sc-footer__brand .sc-footer__note { margin: 10px 0 18px; color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.8; }

/* Country picker in the bottom bar (end side): a pill with this site's
   country; the picker panel opens upwards from the pill's edge. */
.sc-footer .sc-country__toggle { gap: 8px; height: 42px; padding-inline: 8px 16px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
[dir="rtl"] .sc-footer .sc-country__toggle { padding-inline: 8px 16px; }
.sc-footer .sc-country__toggle:hover,
.sc-footer .sc-country[open] .sc-country__toggle { background: #FFD86B; color: #2B2000; }
.sc-footer .sc-country__panel { position: absolute; top: auto; bottom: calc(100% + 12px); left: 0; right: auto; width: min(520px, 92vw); margin: 0; padding: 14px; color: var(--sc-ink); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
[dir="ltr"] .sc-footer .sc-country__panel { left: auto; right: 0; }
.sc-footer__bar-in > .sc-country { justify-self: end; text-align: start; }
.sc-footer .sc-country__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 3. Bottom bar */
.sc-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .16); }
.sc-footer__bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; }
.sc-footer__bar p { margin: 0; }
.sc-footer__note { color: rgba(255, 255, 255, .55); }
/* Bottom bar: three equal zones — copyright (start) | legal links (centre) | affiliate note (end). */
.sc-footer__bar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.sc-footer__bar-in > :first-child { justify-self: start; }
.sc-footer__bar-in > :last-child { justify-self: end; text-align: end; font-size: 12.5px; }
.sc-footer__legal { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.sc-footer__legal li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-inline: 14px; border-radius: 50%; background: #F5B82E; vertical-align: middle; }
.sc-footer__legal a { font-size: 13px; color: rgba(255, 255, 255, .85); }
.sc-footer__legal a:hover { color: #FFD86B; }


@media (max-width: 800px) {
	.sc-footer__bar-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.sc-footer__bar-in > :first-child, .sc-footer__bar-in > :last-child { justify-self: center; text-align: center; }
}

/* Tablet: brand on its own row, then the columns two by two. */
@media (max-width: 1000px) {
	.sc-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
	.sc-footer__brand { grid-column: 1 / -1; }
}

/* Mobile layout, top to bottom:
   brand (centred) · stores (2 cols, full width) · categories | links side by side ·
   contact (2×2 cards) · countries (wrapping chips) · bottom bar (stacked). */
@media (max-width: 600px) {
	.sc-footer__grid { grid-template-columns: 1fr 1fr; gap: 0 18px; padding-top: 40px; padding-bottom: 8px; }
	.sc-footer__grid > * { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
	.sc-footer__brand { grid-column: 1 / -1; padding-top: 0; border-top: 0; text-align: center; }
	.sc-footer__logo img { width: 200px; margin-inline: auto; }
	.sc-footer__about { margin: 0 auto 16px; font-size: 13.5px; }
	.sc-footer__social { justify-content: center; }

	.sc-footer__title { margin-bottom: 14px; font-size: 15px; }
	.sc-footer__col ul { gap: 10px; font-size: 13.5px; }
	.sc-footer__col--stores, .sc-footer__col--contact { grid-column: 1 / -1; }
	.sc-footer__col--stores ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
	.sc-footer__col--stores a { font-size: 13px; }
	.sc-footer__slogo { width: 26px; height: 26px; }

	/* Contact: compact 2×2 cards. */
	.sc-footer__col--contact ul { grid-template-columns: 1fr 1fr; gap: 10px; }
	.sc-footer__citem { gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
	.sc-footer__ci { width: 30px; height: 30px; border-radius: 9px; }
	.sc-footer__ctext b { font-size: 12.5px; }
	.sc-footer__ctext small { font-size: 11px; }

	/* Bottom bar, mobile: copyright on top; legal links and the country pill
	   share one row underneath. */
	.sc-footer__bar-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
	.sc-footer__bar-in > p:first-child { grid-column: 1 / -1; justify-self: center; text-align: center; }
	.sc-footer__bar-in .sc-footer__legal { justify-self: start; justify-content: flex-start; white-space: nowrap; }
	.sc-footer__legal a { font-size: 12px; }
	.sc-footer__legal li + li::before { margin-inline: 8px; }
	/* Contact cards: numbers and email stay on one line. */
	.sc-footer__ctext b[dir="ltr"] { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
	.sc-footer__ctext { min-width: 0; }
	.sc-footer__bar-in > .sc-country { justify-self: end; }
	.sc-footer .sc-country__toggle { gap: 6px; height: 36px; padding-inline: 5px 12px; font-size: 13px; }
	.sc-footer .sc-country__toggle .sc-flag { width: 24px !important; height: 24px !important; }

	/* The picker opens as a bottom sheet, same as in the mobile menu. */
	.sc-footer .sc-country[open]::before { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(7, 19, 15, .45); animation: sc-fade .2s ease; }
	.sc-footer .sc-country__panel, [dir="ltr"] .sc-footer .sc-country__panel { position: fixed; inset: auto 0 0 0; z-index: 61; width: auto; max-height: 82svh; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 26px 26px 0 0; transform: none; animation: sc-sheet .25s ease; }
	.sc-footer .sc-country__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.sc-footer .sc-country__link { gap: 8px; padding: 8px 10px; }
	.sc-footer .sc-country__link .sc-flag { width: 26px !important; height: 26px !important; }
	.sc-footer .sc-country__text small { display: none; }
	.sc-footer .sc-country__close { position: absolute; top: 50%; inset-inline-end: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
	.sc-footer__legal { justify-content: center; }
	.sc-footer__bar-in { gap: 8px; font-size: 12px; }
}
