/* لوحة الألوان الفاخرة الهادئة والدافئة - Warm Editorial Luxury */
:root {
    --bg-warm: #fcfbfa;         /* خلفية كريمية ناعمة جداً مريحة للعين */
    --surface-white: #ffffff;  /* أبيض ناصع لعزل البطاقات والعناصر */
    --text-main: #232120;       /* أسود فاحم دافئ للنصوص الرئيسية */
    --text-soft: #686563;       /* رمادي ترابي ناعم للنصوص الثانوية */
    --gold-accent: #c5a880;    /* ذهبي مطفأ راقٍ (قماش صوفي/رملي) */
    --gold-light: #f4efe9;     /* تدرج ذهبي فاتح جداً للخلفيات الصغيرة */
    --border-soft: #eae6e1;     /* حدود ناعمة بلون الرمال الناعمة */
    
    --font-serif: 'Amiri', serif;
    --transition-elegant: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Cairo', sans-serif; 
}

body.luxury-light-theme {
    background-color: var(--bg-warm);
    color: var(--text-main);
    overflow-x: hidden;
    letter-spacing: -0.2px;
}

/* شريط الإعلان العلوى */
.top-announcement {
    background-color: var(--text-main);
    color: var(--bg-warm);
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* الهيدر الانسيابي المرتفع */
.main-header {
    background: rgba(252, 251, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* القوائم والأزرار */
.nav-right {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-elegant);
    position: relative;
    padding: 5px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--gold-accent);
    transition: var(--transition-elegant);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* الشعار الفاخر */
.brand-logo a {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}
.editorial-amp {
    font-family: var(--font-serif);
    color: var(--gold-accent);
    font-style: italic;
}

/* أيقونة السلة المتطورة */
.premium-cart-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.cart-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
}

.cart-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-elegant);
}

.premium-cart-trigger:hover .cart-icon-wrapper {
    border-color: var(--gold-accent);
    background: var(--gold-light);
    transform: scale(1.05);
}

#cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold-accent);
    color: var(--surface-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-icon-btn {
    margin-right: 15px;
    color: var(--text-soft);
    font-size: 16px;
    transition: var(--transition-elegant);
}
.logout-icon-btn:hover {
    color: #b91c1c;
}

/* قسم الهيرو الجديد (Warm Hero Section) */
.editorial-hero {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content-box {
    padding-left: 20px;
}

.hero-sub {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.hero-main-title {
    font-size: 54px;
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 25px;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-accent);
    font-weight: 200;
}

.hero-p {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 300;
}

/* زر الرفاهية الأساسي */
.btn-luxury-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 35px;
    background: var(--text-main);
    color: var(--bg-warm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0; /* زوايا قائمة كلاسيكية فاخرة */
    transition: var(--transition-elegant);
}
.btn-luxury-primary:hover {
    background: var(--gold-accent);
    padding-left: 45px;
}

/* السلايدر المتزن ناعم الحواف */
.hero-gallery-slider {
    position: relative;
    width: 100%;
}

.slider-frame {
    height: 520px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 70px rgba(35, 33, 32, 0.06);
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item.active {
    opacity: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تحكم السلايدر الهادئ السفلي */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 10px;
}

.ctrl-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-soft);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-elegant);
}
.ctrl-btn:hover {
    color: var(--gold-accent);
}

.slider-dots-nav {
    display: flex;
    gap: 8px;
}

.dot-luxury {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-soft);
    cursor: pointer;
    transition: var(--transition-elegant);
}

.dot-luxury.active {
    background: var(--gold-accent);
    transform: scale(1.3);
}

/* فئات المنتجات الأنيقة */
.categories-section {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 40px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 300;
}

/* كروت التصفح الدائرية الناعمة جداً */
.categories-luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.category-luxury-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    transition: var(--transition-elegant);
}

.category-card-inner {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-overlay-hover {
    position: absolute;
    inset: 0;
    background: rgba(35, 33, 32, 0.02);
    transition: var(--transition-elegant);
}

.category-info-box {
    padding: 25px;
    text-align: center;
    background: var(--surface-white);
    border-top: 1px solid var(--border-soft);
}

.category-info-box h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 5px;
}

.explore-btn-text {
    font-size: 12px;
    color: var(--gold-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    transition: var(--transition-elegant);
}

/* تأثيرات التحويم الجذابة للعين */
.category-luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(35, 33, 32, 0.04);
    border-color: var(--gold-accent);
}

.category-luxury-card:hover .category-image-wrapper img {
    transform: scale(1.05);
}

.category-luxury-card:hover .explore-btn-text {
    color: var(--text-main);
}

/* التنبيهات الراقية المنبثقة (Toasts) */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--text-main);
    color: var(--bg-warm);
    padding: 15px 30px;
    font-size: 13px;
    z-index: 10000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-elegant);
}
.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* فوتر المتجر */
.luxury-footer {
    background: var(--surface-white);
    border-top: 1px solid var(--border-soft);
    padding: 70px 0 30px 0;
    margin-top: 120px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-main-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-brand-col h3 {
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-brand-col p {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 300;
}

.footer-links-col h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-elegant);
}
.footer-links-col ul li a:hover {
    color: var(--gold-accent);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-soft);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-soft);
}

.developer a {
    color: var(--gold-accent);
    text-decoration: none;
}

/* الأنيميشن اللطيف عند ظهور الصفحة */
.reveal-init {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* التوافق التام مع الشاشات والهواتف الذكية */
@media (max-width: 1024px) {
    .editorial-hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content-box { padding-left: 0; }
    .hero-main-title { font-size: 40px; }
    .slider-frame { height: 400px; }
}

@media (max-width: 768px) {
    .header-container { padding: 0 20px; height: 75px; }
    .nav-right { display: none; } /* إخفاء الروابط النصية بالهواتف لراحة المستخدم */
    .editorial-hero, .categories-section { padding: 0 20px; margin: 30px auto; }
    .hero-main-title { font-size: 30px; }
    .categories-luxury-grid { grid-template-columns: 1fr; }
    .footer-main-row { flex-direction: column; gap: 30px; }
    .footer-bottom-bar { flex-direction: column; gap: 15px; text-align: center; }
}