/* =========================================
   Zawia Shelf Eid Theme CSS (Light Mode)
   ========================================= */
:root {
    --z-primary: #aed8e0;
    --z-primary-dark: #89bacc;
    --z-dark: #1a2b3c;
    --z-bg: #ffffff;
    --z-surface: #f2f9fa;
    --z-text: #1a2b3c;
    --z-text-muted: #6b7c8c;
    --z-accent: #ffd700;
    --z-border: rgba(174, 216, 224, 0.4);
}

/* ----------------------------------------
   1. Beam/Shimmer Animation
   ---------------------------------------- */
.shimmer-wrap {
    position: relative !important;
    display: inline-block !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
    margin-top: 0 !important;
}

.shimmer-wrap::before {
    content: "" !important;
    position: absolute !important;
    top: -100% !important;
    left: -100% !important;
    width: 300% !important;
    height: 300% !important;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 80deg,
            var(--z-primary) 90deg,
            transparent 100deg,
            transparent 360deg) !important;
    animation: shimmer-travel 3s linear infinite !important;
    z-index: 999999 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    will-change: transform !important;
}

.shimmer-wrap>* {
    position: relative !important;
    z-index: 1000000 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Animation Keyframes */
@keyframes shimmer-travel {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Speed Variations */
.shimmer-fast::before {
    animation-duration: 1.5s !important;
}

.shimmer-slow::before {
    animation-duration: 5s !important;
}

/* Color Variations */
.shimmer-brand::before,
.shimmer-secondary::before {
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 80deg,
            var(--z-primary) 90deg,
            transparent 100deg,
            transparent 360deg) !important;
}

.shimmer-accent::before {
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 80deg,
            var(--z-dark) 90deg,
            transparent 100deg,
            transparent 360deg) !important;
}

@media (prefers-reduced-motion: reduce) {
    .shimmer-wrap::before {
        animation: none !important;
        opacity: 0.3 !important;
    }
}

/* ----------------------------------------
   2. Slider & Hero Content
   ---------------------------------------- */
.advanced-slider__caption__inner__content__button {
    margin-top: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    padding: 18px 40px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.advanced-slider__caption__inner__content__text {
    margin-bottom: 2rem;
    margin-top: 40px;
    color: var(--z-text) !important;
}

.advanced-slider__caption__inner__content__heading {
    color: var(--z-dark) !important;
}

/* Glassmorphism Contrast Box (Light Scheme) */
.advanced-slider__caption__inner__content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--z-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.advanced-slider .swiper .swiper-slide-active h2 {
    line-height: 1.3;
}

/* Desktop Font Sizing */
@media (min-width: 1280px) {
    .advanced-slider__caption__inner__content__heading {
        font-size: 2.75rem;
    }
}

/* ----------------------------------------
   3. Details Table Overrides
   ---------------------------------------- */
#details_table,
#details_table h2,
#details_table p,
#details_table span,
#details_table strong {
    color: var(--z-text) !important;
}

#details_table {
    background: var(--z-bg) !important;
}

#details_table a {
    color: var(--z-primary) !important;
}

/* ----------------------------------------
   4. Hero Delivery Banner
   ---------------------------------------- */
.hero-delivery-banner {
    background: linear-gradient(135deg, var(--z-surface) 0%, #ffffff 100%);
    border: 1px solid var(--z-primary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(174, 216, 224, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
    text-align: right;
}

/* Banner Glow Animation */
.hero-delivery-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(174, 216, 224, 0.25), transparent);
    animation: banner-shine 3s infinite;
}

@keyframes banner-shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.hero-delivery-icon {
    background: rgba(174, 216, 224, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--z-border);
}

.hero-delivery-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--z-primary);
    animation: truck-bounce 2s infinite ease-in-out;
}

@keyframes truck-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.hero-delivery-content {
    flex: 1;
}

.hero-delivery-title {
    color: var(--z-dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
    display: block;
}

.hero-delivery-text {
    color: var(--z-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Banner Mobile Responsiveness */
@media (max-width: 480px) {
    .hero-delivery-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .hero-delivery-title {
        font-size: 18px;
    }

    .hero-delivery-text {
        font-size: 15px;
    }
}

/* ----------------------------------------
   5. Dynamic JS Components Styles
   ---------------------------------------- */
/* Trust Badges Container */
.trust-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--z-text);
    font-weight: 500;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--z-primary);
}

/* Social Proof Widget */
.social-proof-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--z-text);
}

.proof-count {
    font-weight: bold;
    color: var(--z-dark);
}

.proof-sub {
    font-size: 12px;
    opacity: 0.8;
    color: var(--z-text-muted);
}

/* Strategic FAQ */
.strategic-faq {
    margin-top: 40px;
    border-top: 1px solid var(--z-border);
    padding-top: 30px;
}

.faq-header {
    margin-bottom: 20px;
}

.faq-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--z-dark);
    margin-bottom: 5px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--z-border);
    border-radius: 12px;
    background: var(--z-surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 15px;
    background: none;
    border: none;
    color: var(--z-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    color: var(--z-primary);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    color: var(--z-text-muted);
    line-height: 1.6;
    font-size: 14px;
}

.faq-answer.open {
    padding-bottom: 15px;
}

/* ----------------------------------------
   6. Festive Elements (Eid Crescent)
   ---------------------------------------- */
.zawia-festive {
    position: fixed;
    top: 90px;
    z-index: 10000;
    pointer-events: none;
    animation: float-up-down 4s ease-in-out infinite alternate;
}

.decor-right {
    right: 20px;
}

.decor-left {
    left: 20px;
    animation-delay: 2s;
}

.zawia-crescent {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-left: 4px solid var(--z-primary);
    border-bottom: 4px solid var(--z-primary);
    transform: rotate(-45deg);
    margin-bottom: 15px;
    box-shadow: -5px 5px 15px rgba(174, 216, 224, 0.6);
}

.zawia-star {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid var(--z-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--z-primary);
    animation: twinkle 1.5s infinite alternate;
}

.star-z-1 {
    top: -10px;
    left: 10px;
    animation-delay: 0s;
}

.star-z-2 {
    top: 20px;
    left: -20px;
    transform: scale(0.6);
    animation-delay: 0.5s;
}

.zawia-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--z-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    animation: explode 1.5s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}


@keyframes float-up-down {
    from {
        transform: translateY(0px) rotate(0deg);
    }

    to {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes twinkle {
    from {
        opacity: 0.5;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .zawia-festive {
        transform: scale(0.5);
        top: 65px;
    }

    /* Hide on very small screens if it overlaps content */
    @media (max-width: 350px) {
        .zawia-festive {
            display: none;
        }
    }
}

/* ----------------------------------------
   7. Urgency Elements (Countdown)
   ---------------------------------------- */
.zawia-countdown {
    background: linear-gradient(135deg, var(--z-surface) 0%, #ffffff 100%);
    border: 1px solid var(--z-border);
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--z-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--z-dark);
    font-weight: bold;
}

.countdown-timer {
    display: flex;
    gap: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.timer-part {
    background: rgba(174, 216, 224, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--z-dark);
}

/* ----------------------------------------
   8. Interaction (Toast)
   ---------------------------------------- */
.zawia-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    background: var(--z-bg);
    border: 1px solid var(--z-border);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    width: 350px;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .zawia-toast {
    left: 20px;
    right: auto;
}

.zawia-toast.active {
    transform: translateY(0);
}

.toast-icon {
    font-size: 24px;
    color: var(--z-primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    color: var(--z-dark);
    font-weight: bold;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 2px;
}

.toast-text {
    color: var(--z-text-muted);
    font-size: 0.85rem;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.toast-close:hover {
    color: var(--z-dark);
}

/* Hide Toast on Mobile */
@media (max-width: 768px) {
    .zawia-toast {
        display: none !important;
    }
}

#karzoun-widget-send-button {
    bottom: 115px;
}