/* ============================================================
   VEMINS — Africa Goods landing page (v1)
   Loads after algeria.css; reuses its navy/cyan/gold tokens.
   ============================================================ */

/* ---------- HERO ---------- */
.af-hero {
    padding: 74px 0 64px;
    background:
        radial-gradient(760px 360px at 88% 8%, rgba(0,229,255,0.08), transparent 70%),
        radial-gradient(720px 340px at 8% 92%, rgba(255,199,107,0.08), transparent 72%),
        var(--bg);
    border-bottom: 1px solid var(--gold-line);
}
.af-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: center; }
.af-hero-copy .pill {
    display: inline-block; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--gold-line); background: rgba(255,199,107,0.1);
    color: var(--gold-soft); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.af-hero-copy h1 { margin: 0 0 16px; font-family: var(--font-h); font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -0.5px; }
.af-hero-copy h1 em { color: var(--gold); font-style: normal; }
.hero-fast { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--teal); font-weight: 700; font-size: 14px; }
.hero-fast svg { flex: 0 0 auto; }
.af-hero-copy .lead { max-width: 640px; color: var(--txt-2); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.af-hero-copy .pts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.af-hero-copy .pts li { display: flex; gap: 11px; align-items: flex-start; color: var(--txt-2); font-size: 14.5px; }
.af-hero-copy .pts svg { color: var(--teal); flex: 0 0 auto; margin-top: 4px; }
.af-hero-media { border: 1px solid var(--gold-line); border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 22px 60px rgba(2,12,28,0.55); }
.af-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* hero art — reserved slot for the African market illustration (v3) */
.af-hero-art {
    position: relative;
    border: 1px solid var(--gold-line); border-radius: 22px; overflow: hidden;
    background: radial-gradient(520px 300px at 85% 10%, rgba(0,229,255,0.1), transparent 70%),
                radial-gradient(480px 280px at 10% 90%, rgba(255,199,107,0.12), transparent 72%), var(--card);
    box-shadow: 0 22px 60px rgba(2,12,28,0.55);
    display: flex; align-items: stretch; min-height: 320px;
}
.af-hero-art-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center; display: block; }
.af-hero-art-slot {
    flex: 1; margin: 14px; padding: 38px 26px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    text-align: center;
    border: 1px dashed rgba(255,199,107,0.42); border-radius: 16px;
    background: rgba(6,32,64,0.32);
}
.af-hero-art-slot-icon { color: var(--gold); opacity: 0.9; flex: 0 0 auto; }
.af-hero-art-slot strong { color: #fff; font-family: var(--font-h); font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }
.af-hero-art-slot span { color: var(--txt-2); font-size: 13px; line-height: 1.6; max-width: 250px; }

/* placeholder — shown until products are added one by one (v2) */
.af-placeholder {
    border: 1px dashed var(--gold-line); border-radius: 18px; background: rgba(6,32,64,0.45);
    padding: 46px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.af-placeholder-mark { color: var(--gold); font-size: 26px; line-height: 1; }
.af-placeholder strong { color: #fff; font-family: var(--font-h); font-size: clamp(19px, 2.4vw, 26px); }
.af-placeholder p { margin: 0; max-width: 560px; color: var(--txt-2); font-size: 14.5px; line-height: 1.65; }
.af-placeholder-btn { margin-top: 10px; }

/* buttons (align with algeria.css .btn-wa if present) */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 12px; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 8px 22px rgba(37,211,102,0.25); }
.btn-wa:hover { filter: brightness(1.08); }

/* ---------- CATEGORY SECTIONS ---------- */
.af-cat { padding: 66px 0; background: var(--bg); }
.af-cat-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* category head — sand-gold flowing underline (v7) */
.af-cat-head { margin-bottom: 30px; }
.af-cat-head h2, .af-nameplate {
    position: relative;
    display: inline-block;
    margin: 0 0 18px;
    padding: 0 2px 15px;
    font-family: var(--font-h);
    font-size: clamp(20px, 2.35vw, 28px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.3px;
    color: #f0dcaa;
    background: linear-gradient(180deg, #fdf1d6 0%, #f0d79c 48%, #d9b571 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 14px rgba(255,199,107,0.18);
}
.af-cat-head h2::before, .af-nameplate::before { content: none; }
/* underline: static gold base (fades at both ends) + a bright bead flowing along it */
.af-cat-head h2::after, .af-nameplate::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    border-radius: 999px;
    background-image:
        linear-gradient(90deg,
            rgba(255,246,214,0.00) 0%,
            rgba(255,246,214,0.00) 16%,
            rgba(255,246,214,0.95) 25%,
            rgba(255,246,214,0.00) 34%,
            rgba(255,246,214,0.00) 50%,
            rgba(255,246,214,0.00) 66%,
            rgba(255,246,214,0.95) 75%,
            rgba(255,246,214,0.00) 84%,
            rgba(255,246,214,0.00) 100%),
        linear-gradient(90deg,
            rgba(230,201,141,0.00) 0%,
            rgba(230,201,141,0.55) 8%,
            #e8c283 30%,
            #e8c283 70%,
            rgba(230,201,141,0.55) 92%,
            rgba(230,201,141,0.00) 100%);
    background-size: 200% 100%, 100% 100%;
    background-repeat: repeat, no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
    animation: afGoldFlow 4.2s linear infinite;
    pointer-events: none;
}
@keyframes afGoldFlow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .af-cat-head h2::after, .af-nameplate::after { animation: none; }
}
.af-cat-head p { margin: 0; color: var(--txt-2); font-size: 15px; line-height: 1.6; max-width: 760px; }
html[dir="rtl"] .af-cat-head > div { text-align: right; }

/* breadcrumb back-link on category catalogue pages (v5) */
.af-crumb {
    display: inline-block; margin-bottom: 20px;
    color: var(--gold-soft); font-size: 13px; font-weight: 700;
    text-decoration: none; letter-spacing: 0.2px;
    transition: color .2s ease, transform .2s ease;
}
.af-crumb:hover, .af-crumb:focus-visible { color: var(--gold); transform: translateX(-3px); outline: none; }

/* ---------- 3-up category entry: nameplate + cover (v5) ---------- */
.af-cats { padding: 62px 0 70px; background: var(--bg); }
.af-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; align-items: start; }
.af-cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.af-cat-card .af-nameplate {
    margin: 0; max-width: 100%; overflow-wrap: anywhere;
    padding: 0 2px 13px; font-size: clamp(17px, 1.75vw, 22px);
}
.af-cat-cover {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
    border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden;
    background: #0a1f38; box-shadow: 0 16px 40px rgba(2,12,28,0.5);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.af-cat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.af-cat-cover:hover, .af-cat-cover:focus-visible {
    transform: translateY(-5px); border-color: rgba(255,199,107,0.6);
    box-shadow: 0 22px 52px rgba(2,12,28,0.62); outline: none;
}
.af-cat-cover:hover img, .af-cat-cover:focus-visible img { transform: scale(1.06); }
.af-cat-cover-cta {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    padding: 8px 16px; border-radius: 999px; white-space: nowrap;
    font-size: 12.5px; font-weight: 800; letter-spacing: 0.4px;
    color: #2a1a02; background: linear-gradient(180deg, #f9e6b8, #d8b169);
    box-shadow: 0 3px 0 #8a6626, 0 6px 16px rgba(0,0,0,0.42);
    opacity: .95; transition: opacity .25s ease, transform .25s ease;
}
.af-cat-cover:hover .af-cat-cover-cta, .af-cat-cover:focus-visible .af-cat-cover-cta {
    opacity: 1; transform: translateX(-50%) translateY(-2px);
}
.af-cat-note { margin: 0; color: var(--txt-2); font-size: 14px; line-height: 1.6; max-width: 340px; }
.af-prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.af-prod {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden; background: var(--card);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.af-prod:hover, .af-prod:focus-visible { transform: translateY(-5px); border-color: rgba(255,199,107,0.55); box-shadow: 0 18px 44px rgba(2,12,28,0.5); outline: none; }
.af-prod-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: #0a1f38; }
.af-prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.af-prod:hover .af-prod-media img { transform: scale(1.05); }
.af-prod-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.af-prod-body strong { color: #fff; font-family: var(--font-h); font-size: 16.5px; line-height: 1.35; margin-bottom: 8px; }
.af-prod-body > span:not(.af-prod-cta) { color: var(--txt-2); font-size: 13px; line-height: 1.55; flex: 1; }
.af-prod-cta { display: inline-block; margin-top: 14px; color: var(--gold-soft); font-size: 13px; font-weight: 700; }
.af-prod:hover .af-prod-cta { color: #fff; }

/* ---------- CTA ---------- */
.af-cta { padding: 58px 0; background: linear-gradient(135deg, rgba(255,199,107,0.09), rgba(0,229,255,0.06)), var(--bg); border-top: 1px solid var(--gold-line); }
.af-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.af-cta-in h2 { margin: 0 0 8px; font-family: var(--font-h); font-size: clamp(22px, 3vw, 30px); }
.af-cta-in p { margin: 0; color: var(--txt-2); font-size: 15px; }

/* ---------- RTL ---------- */
html[dir="rtl"] .af-hero-copy h1, html[dir="rtl"] .af-cat-head h2, html[dir="rtl"] .af-cta-in h2 { text-align: right; }
html[dir="rtl"] .af-hero-copy .pts li, html[dir="rtl"] .af-cta-in { direction: rtl; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .af-cats-grid { gap: 22px; }
    .af-cat-card .af-nameplate { font-size: clamp(16px, 1.9vw, 20px); padding: 0 2px 12px; }
}
@media (max-width: 900px) {
    .af-hero-grid { grid-template-columns: 1fr; }
    .af-hero-media { max-width: 520px; }
    .af-prod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .af-cats-grid { grid-template-columns: 1fr; gap: 34px; max-width: 460px; margin: 0 auto; }
    .af-cat-card .af-nameplate { font-size: 20px; }
}
@media (max-width: 620px) {
    .af-hero { padding: 52px 0 46px; }
    .af-cat { padding: 48px 0; }
    .af-cats { padding: 44px 0 52px; }
}
@media (max-width: 430px) {
    .bar-in .bar-logo { font-size: 0; gap: 0; }
    .bar-in .bar-logo img { height: 28px; }
    .bar-in .alg-lang-switch { gap: 2px; padding: 2px; }
    .bar-in .alg-lang-switch button { min-width: 30px; padding: 6px 6px; font-size: 10.5px; }
}
