/* =========================================================
   Athar (أثر) – site-wide: tokens, header, footer, pack builder.
   ========================================================= */

.athar-layout {
	--a-red: #850000;
	--a-red-dark: #6a0000;
	--a-ink: #151413;
	--a-paper: #f3f1ee;
	--a-sand: #efece7;
	--a-off: #f2f2f2;
	--a-stone: #77716b;
	--a-stone-dark: #4b4642;
	--a-muted: #66605a;
	--a-line: rgba(21, 20, 19, .12);
	--a-display-font: "Noto Naskh Arabic", "Times New Roman", serif;
	--a-wrap: 1240px;
	--a-gap: clamp(16px, 2.4vw, 32px);
	--a-section: clamp(56px, 8vw, 104px);
}

/* Switch off WoodMart's footer – Athar prints its own. The header stays WoodMart's. */
.athar-layout .footer-container,
.athar-layout .wd-prefooter { display: none !important; }

.a-ico { display: block; flex: none; }

/* ---------- Shared primitives ---------- */
.a-wrap { width: min(100% - 2 * var(--a-gap), var(--a-wrap)); margin-inline: auto; }
.a-display { font-family: var(--a-display-font); font-weight: 700; line-height: 1.25; letter-spacing: 0; margin: 0; }
.a-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--a-red);
}
.a-eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex: none; }
.a-eyebrow--light { color: var(--a-off); }
.a-eyebrow--light::before { background: var(--a-red); }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 3.5vw, 40px); }
.a-head--center { justify-content: center; text-align: center; }
.a-head--stack { flex-direction: column; align-items: center; gap: 12px; }
.a-head--stack .a-eyebrow { margin: 0; }
.a-head__title { font-size: clamp(28px, 3.4vw, 46px); color: var(--a-ink); }
.a-stroke { display: block; width: 160px; height: 8px; background: var(--a-red); border-radius: 0 4px 4px 0; }
.a-wm { position: absolute; max-width: none; pointer-events: none; user-select: none; }

.a-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 0 30px; border: 1px solid transparent; border-radius: 0;
	font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.a-btn:hover { transform: translateY(-2px); }
.a-btn--red, .a-btn--red:visited { background: var(--a-red); color: #fff; }
.a-btn--red:hover { background: var(--a-red-dark); color: #fff; }
.a-btn--ghost, .a-btn--ghost:visited { border-color: rgba(255,255,255,.6); color: var(--a-off); }
.a-btn--ghost:hover { background: var(--a-off); color: var(--a-ink); }

.athar-layout :is(.a-footer, .athar-home) :focus-visible { outline: 2px solid var(--a-red); outline-offset: 3px; }

/* ---------- Footer (confirmed design) ---------- */
.a-footer {
	position: relative; overflow: hidden; color: #c9c4be;
	background-color: var(--a-ink);
	background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
}
.a-footer a { color: #c9c4be; text-decoration: none; }
.a-footer a:hover { color: #fff; }
.a-footer__wm { position: absolute; max-width: none; pointer-events: none; left: 50%; bottom: -140px; width: 1100px; transform: translateX(-50%); opacity: .05; }
.a-footer__grid {
	position: relative; max-width: 1280px; margin: 0 auto; padding: 72px 24px 40px;
	display: flex; flex-wrap: wrap; gap: 48px 40px;
}
.a-footer__brand { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.a-footer__logo { width: 170px; height: auto; }
.a-footer__tagline { margin: 0; font-family: var(--a-display-font); font-size: 22px; font-weight: 700; color: #fff; }
.a-footer__about { margin: 0; font-size: 15px; line-height: 1.9; max-width: 34ch; }
.a-footer__social { display: flex; gap: 10px; }
.a-footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.a-footer__social a:hover { border-color: var(--a-red); background: var(--a-red); }
.a-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 14px; }
.a-footer__col > strong { color: #fff; font-size: 16px; }
.a-flinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.a-flinks li { margin: 0; }
.a-footer__wa { align-self: flex-start; margin-top: 6px; }
.a-footer .a-footer__wa, .a-footer .a-footer__wa:hover { color: #fff; }
.a-footer__bar { position: relative; border-top: 1px solid rgba(255,255,255,.1); }
.a-footer__bar-in {
	max-width: 1280px; margin: 0 auto; padding: 20px 24px;
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
	font-size: 14px; color: #a8a29b;
}
.a-footer__bar a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--a-red); }

@media (prefers-reduced-motion: reduce) {
	.a-btn { transition: none !important; animation: none !important; }
}

/* ---------- Product page: cleaner summary column (works with WoodMart's own markup) ---------- */
.single-product .entry-summary { text-align: start; }
.single-product .entry-summary .product_title { font-family: var(--a-display-font); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; }
.single-product .entry-summary .price { margin-bottom: 6px; }
.single-product .entry-summary .woocommerce-product-details__short-description { color: #5b5550; line-height: 1.9; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--a-line); }
.single-product .entry-summary .variations th,
.single-product .entry-summary .variations td { text-align: start; }
.single-product .entry-summary .wd-swatch.wd-text { min-width: 48px; height: 44px; border-radius: 0; font-weight: 700; }
.single-product .entry-summary .single_add_to_cart_button { min-height: 52px; border-radius: 0; font-weight: 800; }
