/**
 * Abu Al-Dahab Store — Sliders CSS Suite
 * 1. Promotional Top Slider (Small, compact, makka.store style)
 * 2. Main Hero Image Slider (Large, panoramic, responsive)
 */

/* ==========================================================================
   1. TOP PROMOTIONAL MINI SLIDER (MAKKA.STORE STYLE)
   ========================================================================== */

.dahab-top-promo-slider-section {
    position: relative;
    width: 100%;
    margin: 8px 0 12px;
    direction: rtl;
    box-sizing: border-box;
}

.dahab-top-promo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 220;
    min-height: 54px;
    max-height: 165px;
    height: auto;
    border-radius: var(--promo-radius, 12px);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.06);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    background: #0c2340;
}

.dahab-top-promo-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    direction: ltr;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.dahab-promo-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    direction: rtl;
    background: var(--slide-bg, #0c2340);
    overflow: hidden;
}

.dahab-promo-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
}

.dahab-promo-slide picture,
.dahab-promo-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
}

/* Promo Arrows */
.dahab-promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #0c2340;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    padding: 0;
}

.dahab-promo-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.dahab-promo-prev {
    right: 12px;
}

.dahab-promo-next {
    left: 12px;
}

/* Promo Dots */
.dahab-promo-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dahab-promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dahab-promo-dot.active {
    width: 22px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .dahab-top-promo-wrapper {
        aspect-ratio: 4.6 / 1;
        max-height: 120px;
    }
    .dahab-promo-arrow {
        display: none !important;
    }
}

/* ==========================================================================
   2. MAIN HERO IMAGE SLIDER (LARGE / PANORAMIC)
   ========================================================================== */

.dahab-hero-slider-section {
    position: relative;
    width: 100%;
    margin: 8px 0 20px;
    direction: rtl;
}

.dahab-slider-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--dahab-slider-radius, 16px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
    background: #0f172a;
    aspect-ratio: 2.36 / 1;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Slider Track & Slides */
.dahab-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.dahab-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}

.dahab-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
    position: relative;
}

.dahab-slide picture,
.dahab-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
}

/* Dynamic Live Slide Overlay (Optional live text over image) */
.dahab-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 30px 60px;
    z-index: 2;
    background: linear-gradient(90deg, rgba(12, 35, 64, 0.75) 0%, rgba(12, 35, 64, 0.35) 50%, transparent 100%);
    pointer-events: none;
}

.dahab-slide-overlay.align-right {
    justify-content: flex-start;
    text-align: right;
}

.dahab-slide-overlay.align-left {
    justify-content: flex-end;
    text-align: left;
    background: linear-gradient(270deg, rgba(12, 35, 64, 0.75) 0%, rgba(12, 35, 64, 0.35) 50%, transparent 100%);
}

.dahab-slide-overlay.align-center {
    justify-content: center;
    text-align: center;
    background: rgba(12, 35, 64, 0.45);
}

.dahab-slide-overlay-box {
    max-width: 520px;
    color: var(--overlay-color, #ffffff);
}

.dahab-slide-subtitle {
    display: inline-block;
    background: #c4122f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(196, 18, 47, 0.4);
}

.dahab-slide-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.dahab-slide-desc {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #f1f5f9;
    margin: 0 0 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.dahab-slide-cta-btn {
    display: inline-block;
    background: #c4122f;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(196, 18, 47, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.dahab-slide-link:hover .dahab-slide-cta-btn {
    background: #a50e26;
    transform: scale(1.05);
}

/* Navigation Arrows (Glassmorphism & Brand Accents) */
.dahab-slider-arrow,
.site-main button.dahab-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #0c2340 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    opacity: 0.9;
    padding: 0;
    outline: none !important;
}

.dahab-slider-arrow:hover,
.site-main button.dahab-slider-arrow:hover {
    background: #ffffff !important;
    color: #c4122f !important;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(196, 18, 47, 0.25) !important;
}

.dahab-slider-arrow:focus,
.dahab-slider-arrow:active,
.site-main button.dahab-slider-arrow:focus,
.site-main button.dahab-slider-arrow:active {
    outline: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0c2340 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.dahab-slider-prev {
    right: 18px;
}

.dahab-slider-next {
    left: 18px;
}

/* Pagination Dots / Indicators */
.dahab-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dahab-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dahab-slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.dahab-slider-dot.active {
    width: 26px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Trust Bar Below Slider */
.dahab-hero-trust-bar-horizontal {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dahab-hero-trust-bar-horizontal .trust-pill-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dahab-hero-trust-bar-horizontal .trust-pill-item .icon {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE / MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 992px) {
    .dahab-hero-trust-bar-horizontal {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dahab-slider-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    /* Top Promo Slider on Mobile */
    .dahab-top-promo-slider-section {
        margin: 6px 0 8px !important;
        padding: 0 !important;
    }
    .dahab-top-promo-wrapper {
        aspect-ratio: 1024 / 225 !important;
        height: auto !important;
        max-height: 110px !important;
        min-height: 65px !important;
        border-radius: 8px !important;
    }
    .dahab-promo-arrow {
        display: none !important;
    }
    .dahab-promo-dots {
        display: none !important;
    }

    /* Main Hero Slider on Mobile */
    .dahab-hero-slider-section {
        margin: 6px 0 12px !important;
    }
    .dahab-slider-wrapper {
        border-radius: 12px;
        aspect-ratio: 2.36 / 1;
        min-height: 0;
        height: auto;
    }
    .dahab-slide picture,
    .dahab-slide img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .dahab-slide-overlay {
        padding: 14px 20px !important;
    }
    .dahab-slide-title {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }
    .dahab-slide-subtitle {
        font-size: 10.5px !important;
        padding: 2px 8px !important;
        margin-bottom: 4px !important;
    }
    .dahab-slide-desc {
        display: none !important;
    }
    .dahab-slide-cta-btn {
        font-size: 11.5px !important;
        padding: 6px 14px !important;
    }
    .dahab-slider-arrow {
        width: 28px;
        height: 28px;
        opacity: 0.75;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .dahab-slider-arrow svg {
        width: 16px;
        height: 16px;
    }
    .dahab-slider-prev {
        right: 6px;
    }
    .dahab-slider-next {
        left: 6px;
    }
    .dahab-slider-dots {
        bottom: 6px;
        padding: 3px 8px;
        gap: 5px;
    }
    .dahab-slider-dot {
        width: 6px;
        height: 6px;
    }
    .dahab-slider-dot.active {
        width: 18px;
    }

    /* Compact 2x2 Trust Bar Grid on Mobile */
    .dahab-hero-trust-bar-horizontal {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-top: 8px !important;
    }
    .dahab-hero-trust-bar-horizontal .trust-pill-item {
        font-size: 11px !important;
        line-height: 1.3 !important;
        padding: 7px 8px !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
    .dahab-hero-trust-bar-horizontal .trust-pill-item .icon {
        font-size: 13px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .dahab-top-promo-slider-section {
        margin: 4px 0 6px !important;
    }
    .dahab-top-promo-wrapper {
        aspect-ratio: 1024 / 225 !important;
        max-height: 95px !important;
        min-height: 58px !important;
        border-radius: 6px !important;
    }
    .dahab-slider-wrapper {
        border-radius: 10px !important;
    }
    .dahab-slider-arrow {
        display: none !important; /* Hide arrows on small phones for 100% visible banners and smooth touch swiping */
    }
    .dahab-hero-trust-bar-horizontal .trust-pill-item {
        font-size: 10px !important;
        padding: 6px 4px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dahab-slider-track,
    .dahab-top-promo-track {
        transition: none !important;
    }
    .dahab-slider-arrow,
    .dahab-slider-dot,
    .dahab-promo-arrow {
        transition: none !important;
    }
}
