/* Add custom CSS styles below */ 
.s-advertisement-content-main {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    text-align: center;
    background: linear-gradient(90deg, #111, #1c1c1c, #111);
    animation: slideDown 1s ease forwards;
    opacity: 0;
}
.s-advertisement-content-main::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shine 4s infinite;
}
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shine {
    0% { right: -100%; }
    50% { right: 100%; }
    100% { right: 100%; }
}

.s-advertisement-content-main a {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: #f5d77a;
    transition: all 0.3s ease;
}
.s-advertisement-content-main a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c89b3c, #f5d77a);
    transition: width 0.4s ease;
}

.s-advertisement-content-main:hover {
    box-shadow: 0 8px 25px rgba(200,155,60,0.25);
}

.s-advertisement-content-main a:hover {
    transform: scale(1.07);
    text-shadow: 0 0 12px rgba(245,215,122,0.7);
}

.s-advertisement-content-main a:hover::after {
    width: 100%;
    left: 0;
}

.s-advertisement-content-icon {
    transition: 0.3s ease;
}

.s-advertisement-content-main:hover .s-advertisement-content-icon {
    transform: rotate(-12deg) scale(1.15);
    color: #f5d77a;
}

/* نخلي الحاوية الأساسية مرجع للتموضع */
#mainnav .flex.items-stretch.justify-between {
    position: relative;
}

/* توسيط اللوجو */
#mainnav .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* نخلي الصورة بحجم منطقي */
#mainnav .navbar-brand img {
    max-height: 60px;
    width: auto;
}
@media (max-width: 1024px) {
    #mainnav .navbar-brand {
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
}
#mainnav .navbar-brand:hover img {
    animation: logoPulse 0.8s ease forwards;
}

@keyframes logoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}


/* ============================= */
/* شكل البطاقة العام */
.s-product-card-entry {
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
}

.s-product-card-entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ============================= */
/* تأثير الصورة */
.s-product-card-image {
    position: relative;
    overflow: hidden;
}

.s-product-card-image img {
    transition: transform 0.6s ease;
}

.s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1.08);
}

/* طبقة إضاءة خفيفة عند الهوفر */
.s-product-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.s-product-card-entry:hover .s-product-card-image::after {
    opacity: 1;
}

/* ============================= */
/* أيقونة المفضلة */
.s-product-card-wishlist-btn {
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.7) !important;
    border-radius: 50%;
    transition: 0.3s ease;
}

.s-product-card-wishlist-btn:hover {
    background: #c89b3c !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* ============================= */
/* عنوان المنتج */
.s-product-card-content-title a {
    transition: 0.3s ease;
}

.s-product-card-entry:hover .s-product-card-content-title a {
    color: #c89b3c;
}

/* ============================= */
/* السعر */
.s-product-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #111;
    transition: 0.3s ease;
}

.s-product-card-entry:hover .s-product-card-price {
    color: #c89b3c;
}

/* ============================= */
/* زر نفدت الكمية */
.s-button-disabled {
    background: #eee !important;
    color: #999 !important;
    border-radius: 10px !important;
}

/* ============================= */
/* لو فيه خصم */
.s-product-card-price del {
    color: #999;
    font-size: 14px;
    margin-left: 6px;
}

.s-product-card-price ins {
    color: #c89b3c;
    text-decoration: none;
}

/* ====== Preloader Overlay ====== */
#global-loader {
    position: fixed;
    inset: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* إخفاء ناعم */
#global-loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* اللوجو */
#global-loader img {
    width: 120px;
    margin-bottom: 20px;
    animation: logoFade 1.5s ease-in-out infinite alternate;
}

@keyframes logoFade {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* سبينر ذهبي */
.loader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid #f1b788;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================= */
/* PREMIUM GLOBAL LOADER */
/* ============================= */

#premium-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* منع الاسكرول */
body.loading-active {
    overflow: hidden;
}

/* اخفاء ناعم */
#premium-loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* اللوجو */
#premium-loader img {
    width: 140px;
    margin-bottom: 30px;
    animation: premiumFade 1.5s ease-in-out infinite alternate;
}

@keyframes premiumFade {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* شريط التحميل */
.premium-progress {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* الجزء المتحرك */
.premium-progress::after {
    content: "";
    position: absolute;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #f1b788, #cb9162);
    animation: premiumLoading 1.5s linear infinite;
}

@keyframes premiumLoading {
    0% { right: -50%; }
    100% { right: 100%; }
}

/* ========================= */
/* ELITE REVEAL LOADER */
/* ========================= */

#elite-loader {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    overflow: hidden;
}

/* نصفي الستارة */
#elite-loader::before,
#elite-loader::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #111, #1c1c1c);
    transition: transform 1.2s cubic-bezier(.77,0,.18,1);
}

#elite-loader::before {
    left: 0;
    border-right: 1px solid rgba(241,183,136,0.3);
}

#elite-loader::after {
    right: 0;
    border-left: 1px solid rgba(241,183,136,0.3);
}

/* عند الإخفاء */
#elite-loader.reveal::before {
    transform: translateX(-100%);
}

#elite-loader.reveal::after {
    transform: translateX(100%);
}

/* اللوجو */
.elite-logo {
    width: 150px;
    z-index: 2;
    animation: logoPulse 1.5s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* خط ذهبي في المنتصف */
.elite-line {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #f1b788, transparent);
    animation: lineGlow 1.5s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* منع الاسكرول */
body.elite-loading {
    overflow: hidden;
}

/* ========================= */
/* Home Reveal Animation */
/* ========================= */

body.index main {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* بعد التحميل */
body.index.loaded main {
    opacity: 1;
    transform: translateY(0);
}

/* ================================= */
/* DARK LUXURY ADD TO CART BUTTON */
/* ================================= */

.s-button-primary-outline {
    background: linear-gradient(135deg, #1b1b1b, #2a2a2a);
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 28px !important;
    padding: 12px 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* توزيع النص والأيقونة */
.s-button-primary-outline .s-button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Hover - يتحول لذهبي */
.s-button-primary-outline:hover {
    background: linear-gradient(135deg, #f1b788, #cb9162);
    color: #111 !important;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(241,183,136,0.35);
    border-color: transparent !important;
}

/* لمعان فاخر */
.s-button-primary-outline::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

.s-button-primary-outline:hover::before {
    right: 100%;
}

/* حركة الأيقونة */
.s-button-primary-outline i {
    transition: 0.3s ease;
}

.s-button-primary-outline:hover i {
    transform: translateX(-4px) scale(1.1);
}

/* تأثير الضغط */
.s-button-primary-outline:active {
    transform: scale(0.96);
}

/* ============================= */
/* Compact Product Cards */
/* ============================= */

/* تصغير عرض السلايد شوية */
.s-products-slider-card {
    padding: 8px !important;
}

/* تقليل المسافة داخل الكارت */
.s-product-card-entry {
    padding: 10px !important;
    border-radius: 16px;
}

/* تصغير ارتفاع الصورة */
.s-product-card-image {
    margin-bottom: 0px !important;
}

.s-product-card-image img {
    max-height: 180px;
    object-fit: contain;
}

/* تقليل مسافة العنوان */
.s-product-card-content-title {
    margin-bottom: 4px !important;
}

.s-product-card-content-title a {
    font-size: 14px;
    line-height: 1.4;
}

/* تقليل مسافة السعر */
.s-product-card-content-sub {
    margin-bottom: 6px !important;
}

/* تصغير السعر */
.s-product-card-price,
.s-product-card-sale-price h4 {
    font-size: 16px;
}

/* تقليل مسافة الفوتر */
.s-product-card-content-footer {
    margin-top: 6px !important;
}

/* تصغير زر السلة */
.s-product-card-content-footer .s-button-primary-outline {
    padding: 8px 14px !important;
    font-size: 13px;
    border-radius: 22px !important;
}

/* نخلي الكارت flex عمودي */
.s-product-card-entry {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* نقلل المسافة قبل الفوتر */
.s-product-card-content-footer {
    margin-top: 8px !important;
}

/* نقلل المسافة بين السعر والزر */
.s-product-card-content-sub {
    margin-bottom: 4px !important;
}

/* ================================= */
/* Scroll Reveal Animation (Home) */
/* ================================= */

/* الحالة قبل الظهور */
body.index .reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(.22,.61,.36,1);
}

/* بعد الظهور */
body.index .reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= */
/* LUXURY MENU LINKS EFFECT */
/* ============================= */

/* تجهيز الرابط */
.main-menu > li > a {
    position: relative;
    padding: 10px 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* تأثير الخط الذهبي */
.main-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f1b788, #cb9162);
    transition: width 0.35s ease;
}

/* عند المرور */
.main-menu > li > a:hover {
    color: #f1b788 !important;
    transform: translateY(-3px);
}

/* تمدد الخط */
.main-menu > li > a:hover::after {
    width: 100%;
    left: 0;
}

/* تأثير خلفية ناعم */
.main-menu > li > a:hover {
    background: rgba(241,183,136,0.08);
    border-radius: 8px;
}

.main-menu > li > a:hover {
    color: #f1b788 !important;
    text-shadow: 0 0 8px rgba(241,183,136,0.5);
}
.main-menu > li > a.active,
.main-menu > li.active > a {
    color: #f1b788 !important;
}

.max-w-sm h3.ql-direction-rtl {
    font-size: 14px;
    line-height: 2;
    font-weight: 500;
  text-align: justify;
}