/* /css/style.css */

:root {
    --bar-height: 40px;
    --nav-height: 70px;
    --total-header-height: 110px;
}

html, body {
    scroll-behavior: smooth;
    background-color: #fdfbf7;
    overflow-x: hidden;
}

body {
    transition: none !important;
}

/* التنسيقات العامة للهيدر */
header, #navbar, #announcement-bar {
    z-index: 10000;
}

#announcement-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10001;
    min-height: var(--bar-height);
    background-color: #064e3b;
    color: #C6A75E;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

#navbar {
    position: fixed;
    top: var(--bar-height) !important;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: #064e3b;
    border-bottom: 1px solid rgba(198, 167, 94, 0.8);
    transition: transform 0.5s ease, background-color 0.5s ease;
}

/* وضع السكرول */
body.is-scrolled #announcement-bar {
    transform: translateY(-100%);
}

body.is-scrolled #navbar {
    transform: translateY(calc(var(--bar-height) * -1));
    background-color: rgba(6, 78, 59, 0.98);
    border-bottom: 1.5px solid #C6A75E !important;
}

/* السكاشن كاملة الشاشة */
.full-screen-section {
    min-height: calc(100dvh - var(--total-header-height));
    scroll-margin-top: var(--total-header-height);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    box-sizing: border-box;
}


/* 2. إصلاح موقع الهيرو ليبدأ من نهاية الناف بار بدقة */
#hero {
    margin-top: 0 !important;
    padding-top: var(--total-header-height) !important; /* استخدام المتغير الديناميكي */
    min-height: 100dvh;
    display: flex;
    align-items: center;
}
.nav-link { 
    position: relative; 
    padding: 8px 0; 
    color: rgba(255,255,255,0.8); 
}
.nav-link::after { 
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0%; 
    height: 1.5px; 
    background: #C6A75E; 
    transition: width 0.4s ease; 
}
.nav-link:hover::after { 
    width: 100%; 
}
.nav-link:hover { 
    color: #C6A75E !important; 
}
::-webkit-scrollbar { 
    width: 6px; 
}
::-webkit-scrollbar-thumb { 
    background: #C6A75E; 
    border-radius: 10px; 
}
.custom-menu-scroll::-webkit-scrollbar { 
    width: 4px; 
}
.custom-menu-scroll::-webkit-scrollbar-thumb { 
    background: #C6A75E; 
    border-radius: 10px; 
}


/* أنميشن اللمعة للأزرار */
@keyframes glareSwipe { 
    0% { transform: translateX(-150%) skewX(-30deg); opacity: 0; } 
    50% { opacity: 1; } 
    100% { transform: translateX(150%) skewX(-30deg); opacity: 0; } 
}

.luxury-btn { position: relative; overflow: hidden; z-index: 1; }
.luxury-btn::after { 
    content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); 
    transform: translateX(-150%) skewX(-30deg); opacity: 0; 
}
.luxury-btn:hover::after { animation: glareSwipe 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes glareSwipe { 0% { transform: translateX(-150%) skewX(-30deg); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(150%) skewX(-30deg); opacity: 0; } }
.luxury-btn::after { content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transform: translateX(-150%) skewX(-30deg); opacity: 0; }
.luxury-btn:hover::after { animation: glareSwipe 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.float-element { animation: floating 4s ease-in-out infinite; }
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.quality-seal { animation: rotate-slow 15s linear infinite; }
.seal-shadow { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }

/* أنميشن نبض القلب */
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
}
.pulse-heart { display: inline-block; animation: heartBeat 1.5s infinite; }

/* المنيو الجانبي */
#mobile-menu {
    background-color: #064e3b;
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.active { 
    transform: translateX(0); 
    opacity: .8;
}
.mobile-link {
    color: #C6A75E !important;
    margin: 1.5rem 0;
    font-size: 1.8rem !important;
    font-family: 'Amiri', serif;
    transition: transform 0.6s ease;
    opacity: 1;
}
.mobile-link:hover {
    opacity: 1;
    transform: scale(1.1);
}
.close-menu-btn {
    position: absolute;
    top: 40px;
    left: 40px; 
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
}
.logo-line {
    width: 100%;
    height: 1px;
    background: rgba(198, 167, 94, 0.4);
    margin-top: 4px;
    transform: scaleX(0.5);
    transition: transform 0.5s ease;
    transform-origin: right;
}
.group:hover .logo-line {
    transform: scaleX(1);
}


/* حماية عرض اللاب توب */
@media (min-width: 1024px) {
    #mobile-menu { display: none !important; }
}

/* معرض الصور */
#gallery-grid { transition: opacity 0.3s ease-in-out; }
.active-gallery-btn { 
    background-color: #064e3b !important; 
    color: #C6A75E !important; 
}

.filter-btn {
    padding: 10px 20px;
    font-size: 12px;
    background: transparent;
    border: 1px solid #C6A75E;
    color: #064e3b;
    transition: 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
    background: #C6A75E;
    color: #064e3b;
}

.flying-particle {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #C6A75E;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.special-item-card {
    position: relative;
    border: 1px solid rgba(198, 167, 94, 0.3) !important;
    background: linear-gradient(to bottom, #ffffff, #fdfbf7);
}

.special-item-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #C6A75E;
    border-radius: inherit;
    opacity: 0.1;
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { opacity: 0.1; }
    50% { opacity: 0.4; }
    100% { opacity: 0.1; }
}

.sticky-controls {
    position: sticky;
    top: 80px; /* تحت الناف بار */
    z-index: 50;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: 10px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.05);
}

/* ستايل الموبايل (أقل من 768px) */
@media (max-width: 767px) {
    #navbar {
        padding: 10px 0 !important;
        background: rgba(6, 78, 59, 0.8) !important; /* أخضر زمردي شفاف */
        border-bottom: 1px solid rgba(198, 167, 94, 0.2);
        top: unset; /* يتبع التدفق الطبيعي بعد البار لو كان في هيدر واحد */
    }

    .nav-logo-text { font-size: 1.2rem !important; }
    .nav-logo-sub { font-size: 7px !important; }

    /* جعل زر السلة والمنيو أوضح */
    .mobile-action-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }
}