/*
 * ShahdNature — brand layer on top of WoodMart (RTL storefront).
 *
 * 1. Tokens          5. Footer & zellige
 * 2. Base / RTL      6. CodWoo order form
 * 3. Header          7. WhatsApp
 * 4. Products        8. Pages
 *                    9. Product descriptions
 */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
	--shahd-green: #0B3D1E;
	--shahd-green-soft: #14522B;
	--shahd-olive: #5E7D12;
	--shahd-amber: #E8A317;
	--shahd-amber-dark: #CF8F0C;
	--shahd-cream: #F5EEDC;
	--shahd-cream-light: #FBF7EE;
	--shahd-ink: #1F2A21;
	--shahd-muted: #5B6459;
	--shahd-border: #E7DEC8;
	--shahd-radius: 14px;
	--shahd-zellige: url("../img/zellige.svg");
}

/* 2. Base / RTL ------------------------------------------------------------- */
body { color: var(--shahd-ink); }
p { line-height: 1.85; }
::selection { background: var(--shahd-amber); color: var(--shahd-green); }

/* Arabic has no letter case and should not be letter-spaced. */
.rtl .text-uppercase,
.rtl [class*="title"],
.rtl .wd-nav > li > a,
.rtl .btn,
.rtl .button { letter-spacing: 0 !important; }

/* Numbers, prices and phone numbers stay left-to-right inside RTL text. */
.rtl .woocommerce-Price-amount bdi,
.rtl .codwo-btn-price,
.rtl .codwo-price,
.rtl input[type="tel"] { unicode-bidi: isolate; }
.rtl input[type="tel"] { direction: ltr; text-align: right; }

/* Sale badge: keep "-25%" readable in RTL. */
.rtl .product-labels .onsale { direction: ltr; unicode-bidi: isolate; }

:focus-visible { outline: 2px solid var(--shahd-amber); outline-offset: 2px; }

/* 3. Header ----------------------------------------------------------------- */
.header-banner { font-weight: 500; }
.header-banner p { letter-spacing: 0; }
@media (max-width: 575px) {
	.header-banner p { font-size: 12.5px; line-height: 1.4; white-space: nowrap; }
}

/* Hero slides sit on light (cream) images: dark, readable copy. */
.wd-slide .wd-text-block,
.wd-slide .wd-text-block p { color: var(--shahd-ink) !important; font-weight: 500; }

/* Phones: carousels are swiped; side arrows would hang past the screen edge. */
@media (max-width: 768px) {
	.wd-carousel-container .wd-nav-arrows { display: none !important; }
}

/* 4. Products --------------------------------------------------------------- */

.single-product .product_title { font-weight: 700; line-height: 1.5; }
.woocommerce-product-details__short-description ul,
.woocommerce-Tabs-panel ul { padding-inline-start: 1.2em; }

/* Checkout: the fixed "Morocco" country row is not a choice. */
.shahd-hidden-field { display: none !important; }

/* 5. Footer & zellige ------------------------------------------------------- */
/* Zellige only on light, text-free surfaces: footer ground and thin dividers. */
.footer-container {
	position: relative;
	background-color: var(--shahd-cream) !important;
	isolation: isolate;
}
.footer-container::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--shahd-zellige);
	background-size: 96px 96px;
	opacity: .035;
	pointer-events: none;
	z-index: -1;
}
.wd-copyrights,
.copyrights-wrapper {
	background-color: var(--shahd-green) !important;
	color: var(--shahd-cream) !important;
}
.wd-copyrights a,
.copyrights-wrapper a { color: var(--shahd-amber) !important; }

/* Footer brand row (HTML block #403): the logo (216px, 180px on phones) is set in
   Elementor; the tagline's «N» mark is saved at 96px and shown at 48px for retina. */
.shahd-footer-logo img { display: block; width: 100%; height: auto; }
.shahd-footer-tagline .info-box-icon img { width: 48px; height: auto; }

/* Thin zellige band used as a section divider (add class "shahd-zellige-band"). */
.shahd-zellige-band {
	position: relative;
}
.shahd-zellige-band::before {
	content: "";
	display: block;
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 22px;
	background-image: var(--shahd-zellige);
	background-size: 22px 22px;
	background-repeat: repeat-x;
	opacity: .10;
	pointer-events: none;
}

.shahd-contact-list { list-style: none; margin: 0; padding: 0; }
.shahd-contact-list li { margin-bottom: 8px; line-height: 1.7; }
.shahd-contact-list__label { font-weight: 600; color: var(--shahd-green); }

/* 6. CodWoo order form ------------------------------------------------------ */
/* Honeypot: CodWoo parks it at left:-10000px, which in an RTL document becomes
   scrollable overflow on phones. Same trap, no offset. */
.codwo-product-form-wrapper .codwo-hp,
.rtl .codwo-product-form-wrapper .codwo-hp {
	position: absolute !important;
	left: auto !important;
	right: auto !important;
	inset-inline-start: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* 7. WhatsApp ---------------------------------------------------------------- */
.shahd-wa-float {
	position: fixed;
	inset-inline-start: 18px; /* right edge in RTL; WoodMart's scroll-to-top button owns the left corner */
	bottom: 22px;
	z-index: 390;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(11, 61, 30, .25);
	transition: transform .2s ease;
}
.shahd-wa-float:hover { transform: scale(1.06); }
.shahd-wa-float svg { width: 30px; height: 30px; }
@media (max-width: 768px) {
	.shahd-wa-float { width: 50px; height: 50px; inset-inline-start: 14px; bottom: 18px; }
	.shahd-wa-float svg { width: 27px; height: 27px; }
}

/* Product pages on phones: CodWoo's sticky order bar owns the bottom edge. */
@media (max-width: 1024px) {
	.single-product .shahd-wa-float { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

.shahd-wa-inline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25D366 !important;
	color: #fff !important;
	border-radius: 999px;
	padding: 12px 22px;
	font-weight: 700;
}
.shahd-wa-inline svg { width: 22px; height: 22px; }

/* 8. Pages ------------------------------------------------------------------ */
.shahd-page { max-width: 860px; margin-inline: auto; }
.shahd-page h2 { color: var(--shahd-green); margin-top: 1.6em; }

.shahd-faq details {
	border: 1px solid var(--shahd-border);
	border-radius: var(--shahd-radius);
	background: #fff;
	margin-bottom: 12px;
	padding: 0 20px;
}
.shahd-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 0;
	font-weight: 700;
	color: var(--shahd-green);
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.shahd-faq summary::-webkit-details-marker { display: none; }
.shahd-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--shahd-amber-dark); }
.shahd-faq details[open] summary::after { content: "–"; }
.shahd-faq details > div { padding: 0 0 16px; color: var(--shahd-muted); }

/* 9. Product descriptions ---------------------------------------------------- */
/* Each product's description is a .shahd-desc block (built by
   ~/Local Sites/shahdnature/product-descriptions/). Icons are Font Awesome
   glyphs set here from .sd-ic--* classes rather than <i> tags, which the
   classic editor strips when a product is opened in it. */

.sd-ic::before,
.sd-list li::before,
.shahd-checks li::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-style: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}
.sd-ic::before { display: inline-grid; place-items: center; flex: none; }
.sd-ic--leaf::before { content: "\f06c"; }
.sd-ic--location::before { content: "\f3c5"; }
.sd-ic--calendar::before { content: "\f073"; }
.sd-ic--jar::before { content: "\e516"; }
.sd-ic--droplet::before { content: "\f043"; }
.sd-ic--spoon::before { content: "\f2e5"; }
.sd-ic--truck::before { content: "\f48b"; }
.sd-ic--cash::before { content: "\f53a"; }
.sd-ic--shield::before { content: "\f3ed"; }
.sd-ic--temp::before { content: "\f2c9"; }
.sd-ic--warning::before { content: "\f071"; }
.sd-ic--seedling::before { content: "\f4d8"; }
.sd-ic--tea::before { content: "\f7b6"; }
.sd-ic--palette::before { content: "\f53f"; }
.sd-ic--crystal::before { content: "\f2dc"; }
.sd-ic--utensils::before { content: "\f2e7"; }
.sd-ic--box::before { content: "\f49e"; }
.sd-ic--phone::before { content: "\f2a0"; }
.sd-ic--sun::before { content: "\f185"; }
.sd-ic--mountain::before { content: "\e52f"; }
.sd-ic--fire::before { content: "\f06d"; }
.sd-ic--lemon::before { content: "\f094"; }
.sd-ic--gem::before { content: "\f3a5"; }
.sd-ic--bowl::before { content: "\e4c6"; }
.sd-ic--info::before { content: "\f05a"; }
.sd-ic--star::before { content: "\f005"; }
.sd-ic--heart::before { content: "\f4be"; }

.shahd-desc {
	--sd-gap: clamp(44px, 6vw, 76px);
	display: flex;
	flex-direction: column;
	gap: var(--sd-gap);
	max-width: 1120px;
	margin-inline: auto;
	padding-block: 12px 8px;
}
.shahd-desc p { color: var(--shahd-muted); font-size: 16px; margin: 0 0 14px; }
.shahd-desc p:last-child { margin-bottom: 0; }
.shahd-desc strong { color: var(--shahd-ink); font-weight: 700; }
.shahd-desc a { color: var(--shahd-olive); text-decoration: underline; text-underline-offset: 3px; }
.shahd-desc h2,
.shahd-desc h3,
.shahd-desc h4 { color: var(--shahd-green); line-height: 1.45; }
.shahd-desc h3 { font-size: clamp(21px, 2.3vw, 26px); margin: 0 0 14px; }
.shahd-desc ul { list-style: none; margin: 0; padding: 0; }
.shahd-desc li { margin: 0; }

/* Section heading with a round icon (h3.sd-ic). */
.shahd-desc h3.sd-ic { display: flex; align-items: center; gap: 12px; }
.shahd-desc h3.sd-ic::before {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--shahd-cream);
	color: var(--shahd-olive);
	font-size: 17px;
}

/* Intro: kicker, title, lead, four highlights. */
.sd-intro { text-align: center; }
.shahd-desc .sd-kicker {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--shahd-cream);
	color: var(--shahd-olive);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}
.sd-intro h2 { font-size: clamp(25px, 3.2vw, 34px); max-width: 820px; margin: 0 auto 14px; }
.shahd-desc .sd-lead { font-size: 17.5px; max-width: 820px; margin-inline: auto; }
.shahd-desc .sd-highlights {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.sd-highlights li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 22px 14px 18px;
	border: 1px solid var(--shahd-border);
	border-radius: var(--shahd-radius);
	background: var(--shahd-cream-light);
	text-align: center;
}
.sd-highlights li::before {
	width: 48px;
	height: 48px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--shahd-green);
	color: var(--shahd-amber);
	font-size: 19px;
}
.sd-highlights strong { color: var(--shahd-green); font-size: 16px; line-height: 1.5; }
.sd-highlights span { color: var(--shahd-muted); font-size: 14px; line-height: 1.6; }

/* Photo + text rows; --flip puts the photo on the other side. */
.sd-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.sd-row--flip .sd-media { order: 2; }
.sd-row--text { grid-template-columns: minmax(0, 1fr); max-width: 860px; width: 100%; margin-inline: auto; }
.sd-row--text .sd-text {
	padding: clamp(22px, 4vw, 36px);
	border: 1px solid var(--shahd-border);
	border-radius: 22px;
	background: #fff;
}
.sd-media {
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 12px;
	border-radius: 26px;
	background: var(--shahd-cream);
}
.sd-media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background-image: var(--shahd-zellige);
	background-size: 64px 64px;
	opacity: .09;
}
.sd-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 18px 40px -26px rgba(11, 61, 30, .5);
}

/* Checklist inside rows. */
.shahd-desc .sd-list { display: grid; gap: 12px; margin-top: 18px; }
.sd-list li { position: relative; padding-inline-start: 34px; color: var(--shahd-muted); line-height: 1.8; }
.sd-list li::before {
	content: "\f00c";
	position: absolute;
	inset-inline-start: 0;
	top: 4px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--shahd-amber);
	color: var(--shahd-green);
	font-size: 11px;
}
.sd-list strong { color: var(--shahd-green); }

/* Steps with their own icons (ordering, delivery, payment). */
.shahd-desc .sd-steps { display: grid; gap: 14px; margin-top: 18px; }
.sd-steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--shahd-muted); line-height: 1.75; }
.sd-steps li::before {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--shahd-green);
	color: var(--shahd-amber);
	font-size: 15px;
}
.sd-steps strong { display: block; color: var(--shahd-green); }

.shahd-desc .sd-note {
	margin-top: 18px;
	padding: 12px 16px;
	border-inline-start: 4px solid var(--shahd-amber);
	border-radius: 10px;
	background: var(--shahd-cream-light);
	font-size: 15px;
}

/* Ingredient chips (honey with nuts). */
.shahd-desc .sd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sd-chips li {
	padding: 6px 14px;
	border: 1px solid var(--shahd-border);
	border-radius: 999px;
	background: #fff;
	color: var(--shahd-green);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

/* Product card (spec sheet). */
.sd-specs {
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--shahd-border);
	border-radius: 22px;
	background: var(--shahd-cream-light);
}
.shahd-desc .sd-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 8px; }
.sd-spec-grid li {
	display: grid;
	grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px dashed var(--shahd-border);
	font-size: 15.5px;
	line-height: 1.7;
}
.sd-spec-grid strong { color: var(--shahd-green); }
.sd-spec-grid span { color: var(--shahd-ink); }

/* Storage / warning / delivery cards. */
.shahd-desc .sd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sd-card {
	padding: 26px 22px;
	border: 1px solid var(--shahd-border);
	border-radius: var(--shahd-radius);
	background: #fff;
}
.shahd-desc .sd-card h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 18px; }
.sd-card h4::before {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--shahd-cream);
	color: var(--shahd-green);
	font-size: 16px;
}
.sd-card--warn h4::before { background: #FDF1D8; color: var(--shahd-amber-dark); }
.shahd-desc .sd-card p { font-size: 15px; }

/* FAQ: same look as the FAQ page (.shahd-faq). */
.sd-faq { width: 100%; max-width: 860px; margin-inline: auto; }
.shahd-desc .sd-faq h3 { justify-content: center; margin-bottom: 22px; }
.sd-faq details > div p { margin: 0; }

/* Short description (above the order form). */
.shahd-checks { list-style: none; margin: 14px 0 0; padding: 0 !important; display: grid; gap: 8px; }
.shahd-checks li { position: relative; margin: 0; padding-inline-start: 30px; color: var(--shahd-ink); font-weight: 500; line-height: 1.7; }
.shahd-checks li::before {
	content: "\f00c";
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--shahd-green);
	color: #fff;
	font-size: 10px;
}

@media (max-width: 1024px) {
	.shahd-desc .sd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shahd-desc .sd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shahd-desc .sd-spec-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
	.sd-row { grid-template-columns: minmax(0, 1fr); }
	.sd-row--flip .sd-media { order: 0; }
	.sd-media { padding: 8px; border-radius: 20px; }
	.sd-media img { border-radius: 14px; }
	.shahd-desc .sd-cards { grid-template-columns: minmax(0, 1fr); }
	.shahd-desc .sd-lead { font-size: 16.5px; }
}
@media (max-width: 420px) {
	.shahd-desc .sd-highlights { gap: 10px; }
	.sd-highlights li { padding: 16px 8px 14px; }
	.sd-highlights li::before { width: 42px; height: 42px; font-size: 17px; }
	.sd-spec-grid li { grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
}
