/* ==========================================================================
   Alia Trading – 2026 refresh (home Option 1 / products Option A)
   Shared tokens, top bar, footer and small building blocks.
   Every class is prefixed "av-" so nothing clashes with the theme.
   ========================================================================== */

:root {
    --av-ink: #212020;
    --av-muted: #5f5b55;
    --av-gold: #dcbc95;
    --av-gold-text: #8a6a3f;
    --av-tile: #f4f1ec;
    --av-band: #f7f5f1;
    --av-line: #ece7df;
    --av-field: #d9d2c6;
    --av-topbar-h: 40px;
}

.av-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.av-wrap *, .av-wrap *::before, .av-wrap *::after { box-sizing: border-box; }

/* ---------- top bar (above the theme header) ---------- */
.av-topbar { position: relative; z-index: 10; height: var(--av-topbar-h); overflow: hidden; background: var(--av-ink); color: #d9d4cc; font-size: 13px; }
.av-topbar .av-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.av-topbar a { color: #f3efe8; text-decoration: none; white-space: nowrap; }
.av-topbar a:hover { color: var(--av-gold); }
.av-topbar span { white-space: nowrap; }
.av-has-topbar header.mextreo-header-area { top: var(--av-topbar-h); }
.av-has-topbar header.mextreo-header-area.nav-fixed { top: 0; }
@media (max-width: 767px) {
    .av-topbar .av-hide-sm { display: none; }
    .av-topbar .av-wrap { justify-content: center; }
}

/* ---------- header logo (round badge) ----------
   Fixed height on every breakpoint; the theme's 512px rule (width:100%) would blow the circle up. */
header.mextreo-header-area { padding: 8px 0; }
header.mextreo-header-area > .container > .row { align-items: center; }
header.mextreo-header-area .logo-wrapper { padding-top: 0; }
header.mextreo-header-area .logo-wrapper img { height: 64px; width: auto; }
@media (max-width: 512px) {
    header.mextreo-header-area .logo-wrapper img { height: 52px; width: auto; }
}

/* ---------- floating buttons ----------
   Arabic: WhatsApp bottom-left, back-to-top bottom-right (theme default).
   English: mirrored, so WhatsApp sits bottom-right. */
[dir="ltr"] .whatsapp-fab { left: auto; right: 20px; }
[dir="ltr"] .scroll-top { right: auto; left: 20px; }

/* ---------- buttons ---------- */
.av-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 22px; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; }
.av-btn-dark { background: var(--av-ink); color: #fff !important; }
.av-btn-dark:hover { background: var(--av-gold); color: var(--av-ink) !important; }
.av-btn-gold { background: var(--av-gold); color: var(--av-ink) !important; }
.av-btn-gold:hover { background: #fff; }
.av-btn-line { border: 1px solid var(--av-ink); color: var(--av-ink) !important; background: transparent; }
.av-btn-line:hover { background: var(--av-ink); color: #fff !important; }

/* ---------- section headings ---------- */
.av-sec { padding-top: 88px; }
.av-sec-title { margin: 0 0 8px; text-align: center; font-size: 32px; font-weight: 600; color: var(--av-ink); }
.av-sec-sub { margin: 0 0 36px; text-align: center; font-size: 15px; color: var(--av-muted); }
.av-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--av-gold-text); }
[dir="rtl"] .av-eyebrow { letter-spacing: 0; }

/* the theme puts letter-spacing on body; the refreshed parts use normal spacing */
.av-topbar, .av-footer, .av-home, .av-products { letter-spacing: normal; }

/* ---------- footer ---------- */
footer.av-footer { margin-top: 96px; padding: 0; border-top: 0; background: var(--av-ink); color: #d9d4cc; }
.av-footer .av-cols { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.av-footer h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #fff; }
.av-footer p, .av-footer a { display: block; margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #d9d4cc; text-decoration: none; }
.av-footer a:hover { color: var(--av-gold); }
.av-footer .av-ltr { direction: ltr; unicode-bidi: isolate; }
.av-footer-bottom { border-top: 1px solid #3a3734; }
.av-footer-bottom .av-wrap { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 32px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #a8a29a; }
.av-footer-bottom a { display: inline; margin: 0; font-size: 13px; color: #d9d4cc; }
@media (max-width: 900px) { .av-footer .av-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .av-footer .av-cols { grid-template-columns: 1fr; } }
