/* ==========================================================================
   ZOVA TRADING - MAHNURE BRAND SPOTLIGHT (ماهنور)
   سكشن العلامة التجارية + حركات ذهبية لافتة لصفحة مستحضرات التجميل فقط
   ========================================================================== */

@property --mhn-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ---------- Hero image: slow zoom + golden shine sweep ---------- */
.mhn-hero-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--zova-border-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.12);
}

.mhn-hero-img img {
    display: block;
    width: 100%;
    height: auto;
    animation: mhnKenBurns 14s ease-in-out infinite alternate;
}

.mhn-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 170, 0.35) 48%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 236, 170, 0.35) 52%, transparent 70%);
    transform: translateX(-120%);
    animation: mhnShine 5.5s ease-in-out infinite;
}

@keyframes mhnKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

@keyframes mhnShine {
    0%, 55% { transform: translateX(-120%); }
    100%    { transform: translateX(120%); }
}

/* ---------- Spotlight section ---------- */
.mhn-spotlight {
    position: relative;
    margin: 20px 0 70px;
    padding: 2px;
    border-radius: 26px;
    background: conic-gradient(from var(--mhn-angle), #a88219, #f5e6be, #d4af37, #3a2c08, #d4af37, #f5e6be, #a88219);
    animation: mhnBorderSpin 6s linear infinite;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 175, 55, 0.15);
}

@keyframes mhnBorderSpin {
    to { --mhn-angle: 360deg; }
}

.mhn-inner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at var(--mhn-mx, 70%) var(--mhn-my, 30%), rgba(212, 175, 55, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(168, 130, 25, 0.12) 0%, transparent 40%),
        linear-gradient(160deg, #0b0d12 0%, #040507 60%, #0a0803 100%);
}

/* Floating gold particles (created by zova-mahnure.js) */
.mhn-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mhn-particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6d6 0%, #d4af37 45%, rgba(212, 175, 55, 0) 70%);
    opacity: 0;
    animation: mhnFloat linear infinite;
}

@keyframes mhnFloat {
    0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { opacity: 0.6; }
    100% { transform: translate(var(--mhn-drift, 20px), -560px) scale(1); opacity: 0; }
}

.mhn-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 50px 45px 40px;
}

/* ---------- Text side ---------- */
.mhn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 30px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--zova-border-gold);
    color: var(--zova-gold-bright);
    font-size: 0.95rem;
    font-weight: 700;
}

.mhn-eyebrow i {
    animation: mhnCrown 2.4s ease-in-out infinite;
}

@keyframes mhnCrown {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-3px) rotate(-8deg); }
}

.mhn-title {
    margin: 18px 0 4px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mhn-title-ar,
.mhn-title-en {
    background: linear-gradient(100deg, #a88219 0%, #d4af37 20%, #fff3c4 40%, #d4af37 60%, #a88219 80%, #d4af37 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4af37;
    animation: mhnGoldText 4s linear infinite;
}

.mhn-title-ar {
    font-family: 'El Messiri', 'Cairo', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
}

.mhn-title-en {
    font-family: 'Cairo', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.35em;
}

@keyframes mhnGoldText {
    from { background-position: 100% 0; }
    to   { background-position: -150% 0; }
}

.mhn-tagline {
    color: var(--zova-gold-light);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin: 6px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mhn-tagline::before,
.mhn-tagline::after {
    content: "";
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.mhn-desc {
    color: var(--zova-text-light);
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 0 0 22px;
}

.mhn-desc strong {
    color: var(--zova-gold-bright);
}

/* Free-from badges */
.mhn-free {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mhn-free li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 92px;
    color: var(--zova-gold-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.mhn-free-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1.5px solid #d4af37;
    color: #d4af37;
    font-size: 1.25rem;
    background: rgba(212, 175, 55, 0.06);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.mhn-free-icon::after {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: 50%;
    border: 1.5px solid #d4af37;
    animation: mhnPulse 2.6s ease-out infinite;
}

.mhn-free li:nth-child(2) .mhn-free-icon::after { animation-delay: 0.6s; }
.mhn-free li:nth-child(3) .mhn-free-icon::after { animation-delay: 1.2s; }

.mhn-free li:hover .mhn-free-icon {
    transform: translateY(-4px) rotate(-8deg);
    background: #d4af37;
    color: #000;
}

@keyframes mhnPulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Product range chips */
.mhn-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.mhn-range span {
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--zova-text-light);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.mhn-range span:hover {
    color: #000;
    background: #d4af37;
    border-color: #d4af37;
}

.mhn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mhn-btn,
.mhn-btn-outline {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.mhn-btn {
    background: linear-gradient(135deg, #f5e6be 0%, #d4af37 45%, #a88219 100%);
    color: #000;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.mhn-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: mhnBtnShine 3.2s ease-in-out infinite;
}

@keyframes mhnBtnShine {
    0%, 60% { left: -60%; }
    100%    { left: 130%; }
}

.mhn-btn-outline {
    color: var(--zova-gold-bright);
    border: 1.5px solid #d4af37;
    background: transparent;
}

.mhn-btn:hover,
.mhn-btn-outline:hover {
    transform: translateY(-3px);
}

.mhn-btn-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

/* ---------- Visual side (3D tilt + float) ---------- */
.mhn-visual {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.mhn-visual::before {
    content: "";
    position: absolute;
    width: 85%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 65%);
    filter: blur(20px);
    animation: mhnGlow 4s ease-in-out infinite alternate;
}

@keyframes mhnGlow {
    from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
    to   { opacity: 1;    transform: translate(-50%, -50%) scale(1.05); }
}

.mhn-float {
    position: relative;
    width: 100%;
    max-width: 420px;
    animation: mhnBob 6s ease-in-out infinite;
}

@keyframes mhnBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.mhn-tilt {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.25);
    transform: rotateX(var(--mhn-rx, 0deg)) rotateY(var(--mhn-ry, 0deg));
    transition: transform 0.25s ease-out;
    transform-style: preserve-3d;
}

.mhn-tilt img {
    display: block;
    width: 100%;
    height: auto;
}

/* Orbiting gold ring around the visual */
.mhn-orbit {
    position: absolute;
    width: 115%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    transform: translate(-50%, -50%);
    animation: mhnOrbit 30s linear infinite;
    pointer-events: none;
}

.mhn-orbit::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f5e6be;
    box-shadow: 0 0 14px 4px rgba(212, 175, 55, 0.8);
}

@keyframes mhnOrbit {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Marquee ribbon ---------- */
.mhn-marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.08));
    padding: 14px 0;
    direction: ltr;
}

.mhn-marquee-track {
    display: flex;
    width: max-content;
    animation: mhnMarquee 28s linear infinite;
}

.mhn-marquee:hover .mhn-marquee-track {
    animation-play-state: paused;
}

.mhn-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    color: var(--zova-gold-light);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    white-space: nowrap;
}

.mhn-marquee-track span::after {
    content: "\2726";
    color: #d4af37;
    letter-spacing: 0;
}

@keyframes mhnMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Staggered entrance (class added by JS) ---------- */
.mhn-js .mhn-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mhn-js .mhn-visual.mhn-reveal {
    transform: translateY(30px) scale(0.92);
}

.mhn-js .mhn-in .mhn-reveal {
    opacity: 1;
    transform: none;
}

.mhn-in .mhn-reveal:nth-child(2) { transition-delay: 0.12s; }
.mhn-in .mhn-reveal:nth-child(3) { transition-delay: 0.24s; }
.mhn-in .mhn-reveal:nth-child(4) { transition-delay: 0.36s; }
.mhn-in .mhn-reveal:nth-child(5) { transition-delay: 0.48s; }
.mhn-in .mhn-reveal:nth-child(6) { transition-delay: 0.6s; }
.mhn-in .mhn-reveal:nth-child(7) { transition-delay: 0.72s; }

/* ---------- Mahnure product cards ---------- */
.mhn-products .zova-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mhn-products .zova-gallery-card {
    flex: 1 1 300px;
    max-width: 330px;
}

.mhn-products .zova-gallery-img-box {
    height: 360px;
    background: radial-gradient(circle at 50% 60%, #1a1508 0%, #000 70%);
}

/* Golden sweep across product image on hover */
.mhn-products .zova-gallery-img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 190, 0.45) 50%, transparent 65%);
    transform: translateX(-130%);
    transition: transform 0.9s ease;
    pointer-events: none;
}

.mhn-products .zova-gallery-card:hover .zova-gallery-img-box::after {
    transform: translateX(130%);
}

.mhn-products .zova-gallery-badge {
    animation: mhnBadge 2.8s ease-in-out infinite;
}

@keyframes mhnBadge {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(212, 175, 55, 0.6); }
    50%      { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(212, 175, 55, 0); }
}

.mhn-size {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    background: var(--zova-gold-light);
    align-self: flex-start;
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------- LTR (English page) ---------- */
html[dir="ltr"] .mhn-products .zova-gallery-badge {
    right: auto;
    left: 15px;
}

html[dir="ltr"] .mhn-title-en {
    font-size: 3.4rem;
    letter-spacing: 0.18em;
}

html[dir="ltr"] .mhn-title-ar {
    font-size: 2rem;
}

@media (max-width: 520px) {
    html[dir="ltr"] .mhn-title-en { font-size: 2.3rem; letter-spacing: 0.12em; }
    html[dir="ltr"] .mhn-title-ar { font-size: 1.6rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .mhn-grid {
        grid-template-columns: 1fr;
        padding: 40px 24px 32px;
        text-align: center;
    }

    .mhn-title { align-items: center; }
    .mhn-tagline,
    .mhn-free,
    .mhn-range,
    .mhn-actions { justify-content: center; }

    .mhn-visual { order: -1; }
    .mhn-float { max-width: 340px; }
}

@media (max-width: 520px) {
    .mhn-title-ar { font-size: 3.1rem; }
    .mhn-title-en { font-size: 1.35rem; letter-spacing: 0.25em; }
    .mhn-tagline { letter-spacing: 0.15em; font-size: 0.8rem; }
    .mhn-tagline::before,
    .mhn-tagline::after { width: 20px; }
    .mhn-free { gap: 6px; flex-wrap: nowrap; }
    .mhn-free li { flex: 1 1 0; min-width: 0; font-size: 0.78rem; }
    .mhn-actions a { width: 100%; justify-content: center; }
    .mhn-orbit { display: none; }
    .mhn-products .zova-gallery-img-box { height: 320px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .mhn-spotlight,
    .mhn-hero-img img,
    .mhn-shine,
    .mhn-particle,
    .mhn-title-ar,
    .mhn-title-en,
    .mhn-eyebrow i,
    .mhn-free-icon::after,
    .mhn-btn::after,
    .mhn-visual::before,
    .mhn-float,
    .mhn-orbit,
    .mhn-marquee-track,
    .mhn-products .zova-gallery-badge {
        animation: none !important;
    }

    .mhn-shine,
    .mhn-particles { display: none; }

    .mhn-js .mhn-reveal {
        opacity: 1;
        transform: none;
    }
}
