/* Home Page Specific Styles */

/* ===== HIGHLIGHTED PRODUCTS - DESKTOP STYLES ===== */
.highlighted-products {
    background-color: #a47041 !important;
    border-radius: 100% !important;
    height: 80px !important;
    width: 80px !important;
}

.highlighted-products:hover {
    background-color: #b87d48 !important;
    box-shadow: 0 0 15px rgba(184, 125, 72, 0.6) !important;
}

.highlighted-products.active {
    background-color: #b87d48 !important;
    box-shadow: 0 0 20px rgba(184, 125, 72, 0.8) !important;
}

.highlighted-products-list {
    gap: 50px;
    justify-content: center !important;
    display: flex !important;
}

.highlighted-products-list li {
    text-align: -webkit-center;
}

.highlighted-products-list span {
    color: #a47041 !important;
    font-weight: 600 !important;
}

.highlighted-products.active + span {
    color: #b87d48 !important;
    font-weight: 700 !important;
}

/* ===== PRODUCT CARDS - DESKTOP STYLES ===== */
.about-image {
    position: relative;
    display: inline-block;
}

.about-image img {
    position: relative;
    z-index: 99;
    width: 100%;
    max-width: 556px;
    height: auto;
    display: block;
    object-fit: cover;
    top: -18px;
}

.about-image-right {
    position: relative;
    display: inline-block;
}

.about-image-right img {
    position: relative;
    z-index: 99;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    object-fit: cover;
}

.col-md-6.content-direction {
    position: relative;
    overflow: visible;
}

.discover-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
}

.discover-title-rtl {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
    left: 56px;
    top: -20px;
}

.about-title {
    background-color: #b87440;
    padding: 14px 574px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1c1c1c;
    margin-bottom: 79px;
    display: inline-block;
    margin-top: -9px;
    position: absolute;
    left: -621px !important;
    width: calc(257vw - 20px);
    z-index: 2;
    top: 29px;
}

[dir="rtl"] .about-title {
    right: -524px;
    left: auto;
}

[dir="ltr"] .about-title {
    left: -524px;
    right: auto;
}

.about-title-right {
    background-color: #b87440;
    padding: 14px 480px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1c1c1c;
    margin-bottom: 79px;
    display: inline-block;
    margin-top: -9px;
    position: absolute;
    left: -524px;
    width: calc(197vw - 20px);
    z-index: 2;
    top: 29px;
}

[dir="rtl"] .about-title-right {
    right: -524px;
    left: auto;
}

[dir="ltr"] .about-title-right {
    left: -524px;
    right: auto;
}

.about-text {
    font-size: 1rem;
    line-height: 26px;
    color: #999999;
    max-width: 597px;
    position: relative;
    top: 60px;
    z-index: 3;
    left: -54px;
}

[dir="rtl"] .about-text {
    right: -54px;
    left: auto;
}

.product-highlight-btn {
    background-color: #c69c6d !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.product-highlight-btn:hover {
    background-color: #b87d48 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .content-direction {
    direction: rtl !important;
}

[dir="ltr"] .content-direction {
    direction: ltr !important;
}

/* ===== SWIPER HERO SLIDER STYLES ===== */
.home-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.hero-swiper .swiper-wrapper {
    height: 100vh;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}

.hero-content-overlay .container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content-overlay #hero-content-container {
    pointer-events: auto;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('{{ asset('assets/images/slider-images/Slider1.webp') }}');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-fallback .container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== SWIPER NAVIGATION CONTROLS ===== */
.swiper-navigation-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 180px;
    max-width: 250px;
    margin-top: 30px;
}

.swiper-navigation-controls button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.swiper-navigation-controls button:hover {
    opacity: 0.7;
}

.swiper-navigation-controls button img {
    width: 32px;
    height: 32px;
    display: block;
}

.swiper-navigation-controls .swiper-pagination {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static !important;
    margin: 0 15px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #c69c6d;
    width: 14px;
    height: 14px;
}

/* ===== TABLET RESPONSIVE (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .highlighted-products {
        height: 65px !important;
        width: 65px !important;
    }

    .highlighted-products-list {
        gap: 30px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0 20px;
        margin-bottom: 50px !important;
    }

    .highlighted-products-list span {
        font-size: 0.85rem;
    }

    .tab-content .row {
        padding: 60px 0 !important;
        margin: 0 !important;
    }

    .tab-content .col-md-6 {
        padding: 0 !important;
    }

    .discover-title {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        text-align: center;
        padding: 0 20px;
    }

    .about-title,
    .about-title-right {
        font-size: 1.2rem !important;
        padding: 15px 20px !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        text-align: center;
        margin-bottom: 40px !important;
        margin-top: 0 !important;
    }

    [dir="rtl"] .about-title,
    [dir="rtl"] .about-title-right {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .about-text {
        font-size: 0.9rem !important;
        line-height: 22px !important;
        max-width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 30px !important;
        text-align: center;
        margin: 0 auto 20px !important;
    }

    [dir="rtl"] .about-text {
        right: 0 !important;
        left: 0 !important;
        text-align: center !important;
    }

    .about-image img,
    .about-image-right img {
        max-width: 300px !important;
        margin: 0 auto;
    }

    .tab-content .col-md-6 {
        text-align: center !important;
    }

    .product-highlight-btn {
        margin-top: 15px !important;
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* ===== MOBILE RESPONSIVE (up to 767px) ===== */
@media (max-width: 767px) {
    .highlighted-products {
        height: 60px !important;
        width: 60px !important;
    }

    .highlighted-products-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        gap: 15px !important;
        padding: 0 15px 15px 15px !important;
        scrollbar-width: thin;
        scrollbar-color: #a47041 #f1f1f1;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 40px !important;
    }

    .highlighted-products-list::-webkit-scrollbar {
        height: 6px;
    }

    .highlighted-products-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .highlighted-products-list::-webkit-scrollbar-thumb {
        background: #a47041;
        border-radius: 3px;
    }

    .highlighted-products-list li {
        flex: 0 0 auto !important;
        text-align: center;
        display: inline-block !important;
    }

    .highlighted-products-list span {
        white-space: nowrap !important;
        font-size: 0.75rem;
        display: block;
        margin-top: 8px;
    }

    .tab-content .row {
        padding: 50px 0 !important;
        margin: 0 !important;
        flex-direction: column !important;
    }

    .tab-content .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }

    .discover-title {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
        text-align: center;
        padding: 0 15px;
    }

    .about-title,
    .about-title-right {
        font-size: 1.1rem !important;
        padding: 12px 0 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        text-align: center;
        margin-bottom: 30px !important;
        margin-top: 0 !important;
        top: 50px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [dir="rtl"] .about-title,
    [dir="rtl"] .about-title-right {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important;
    }

    .about-text {
        font-size: 0.85rem !important;
        line-height: 20px !important;
        max-width: 100% !important;
        top: 100px !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 20px !important;
        text-align: center !important;
        margin: 0 auto 15px !important;
        position: relative !important;
    }

    [dir="rtl"] .about-text {
        right: 0 !important;
        left: 0 !important;
        text-align: center !important;
    }

    .about-image,
    .about-image-right {
        text-align: center;
        margin-bottom: 20px;
        position: relative;
    }

    .about-image img,
    .about-image-right img {
        max-width: 400px !important;
        margin: 0 auto;
        top: 0 !important;
    }

    .discover-title-rtl {
        left: 5px;
        top: 4px;
    }

    .product-highlight-btn {
        margin-top: 10px !important;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        display: inline-block;
    }

    .content-direction {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        position: relative;
        min-height: 300px;
    }

    /* Swiper Navigation Mobile */
    .swiper-navigation-controls {
        min-width: 140px;
        max-width: 200px;
        margin-top: 20px;
    }

    .swiper-navigation-controls button img {
        width: 24px;
        height: 24px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px !important;
    }

    .swiper-pagination-bullet-active {
        width: 12px;
        height: 12px;
    }
}

/* ===== EXTRA SMALL MOBILE (up to 375px) ===== */
@media (max-width: 375px) {
    .highlighted-products {
        height: 55px !important;
        width: 55px !important;
    }

    .highlighted-products-list span {
        font-size: 0.7rem;
    }

    .about-title,
    .about-title-right {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
        width: 90% !important;
    }

    .about-text {
        font-size: 0.8rem !important;
        line-height: 18px !important;
    }

    .about-image img,
    .about-image-right img {
        max-width: 180px !important;
    }
}

/* ===== MOBILE NAVIGATION (up to 1366px for tablets including iPad Pro) ===== */
@media (max-width: 1366px) {
    /* Hide desktop language switcher on mobile */
    #language_switcher {
        display: none !important;
    }

    /* Mobile navigation layout */
    #floating-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #floating-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    #floating-nav li {
        width: 100%;
    }

    #floating-nav li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        color: #A57041;
        text-decoration: none;
        border: 2px solid #A57041;
        border-radius: 8px;
        text-align: center;
        transition: all 0.3s ease;
        background: transparent;
    }

    #floating-nav li a:hover {
        background: #A57041;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(165, 112, 65, 0.3);
    }

    /* Mobile language switcher styling */
    .mobile-language-switcher {
        margin-top: 20px;
    }

    .mobile-language-dropdown {
        position: relative;
    }

    .mobile-language-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        font-weight: 600;
        color: #A57041;
        background: transparent;
        border: 2px solid #A57041;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-language-btn:hover {
        background: #A57041;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(165, 112, 65, 0.3);
    }

    .mobile-language-btn svg {
        transition: transform 0.3s ease;
    }

    .mobile-language-btn:hover svg {
        transform: translateY(2px);
    }

    .mobile-language-options {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #A57041;
        border-top: none;
        border-radius: 0 0 8px 8px;
        overflow: hidden;
        z-index: 10001;
    }

    .mobile-language-option {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        color: #F2E6DA;
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(165, 112, 65, 0.3);
    }

    .mobile-language-option:last-child {
        border-bottom: none;
    }

    .mobile-language-option:hover {
        background: #A57041;
        color: white;
        padding-left: 25px;
    }

    /* Adjust burger menu position for mobile/tablet - easier to reach */
    #nav-toggle {
        top: 20px !important;
        right: 20px !important;
    }

    /* Center logo on Arabic mobile/tablet */
    [dir="rtl"] .logo-home {
        position: absolute;
        top: 70px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 205px;
        height: 88px;
    }

    /* RTL discover title for tablet sizes */
    .discover-title-rtl {
        font-size: 1.5rem;
        margin-bottom: 10px;
        position: relative;
        z-index: 3;
        left: 8px;
        top: 29px;
    }

    /* iPad Mini specific discover title */
    @media (min-width: 768px) and (max-width: 1024px) {
        .discover-title {
            right: 19px;
            position: relative;
            top: 31px;
            font-size: 2rem;
        }

        .about-image img {
            top: -64px;
            right: -69px;
        }
    }

    /* ===== DESKTOP (above 1366px) ===== */
    @media (min-width: 1367px) {
        .d-xl-none {
            display: none !important;
        }
        .d-xl-block {
            display: block !important;
        }
    }

    /* ===== SMALLER MOBILE (up to 767px) ===== */
    @media (max-width: 767px) {
        #floating-nav li a {
            font-size: 16px;
            padding: 12px 18px;
        }

        .mobile-language-btn {
            font-size: 16px;
            padding: 12px 18px;
        }

        /* Adjust logo size for smaller mobile screens */
        [dir="rtl"] .logo-home {
            width: 160px;
            height: 68px;
            top: 60px;
            left: 50% !important;
            margin-left: -80px !important; /* Half of logo width (160px/2) */
        }

        /* RTL discover title for mobile */
        .discover-title-rtl {
            font-size: 1.5rem;
            margin-bottom: 10px;
            position: relative;
            z-index: 3;
            left: 2px;
            top: 16px;
        }

        /* LTR discover title for mobile */
        .discover-title {
            font-size: 0.9rem !important;
            margin-bottom: 20px !important;
            text-align: center;
            padding: 0 15px;
            top: 20px;
            right: 16px;
        }

        /* Samsung Galaxy S8+ specific discover title */
        @media (max-width: 360px) {
            .discover-title {
                font-size: 0.9rem !important;
                margin-bottom: 20px !important;
                text-align: center;
                padding: 0 15px;
                top: 20px;
                right: 6px;
            }
        }

        /* Arabic about images mobile fix */
        [dir="rtl"] .about-image img,
        [dir="rtl"] .about-image-right img {
            max-width: 300px !important;
        }

        /* Arabic about text for iPhone SE */
        [dir="rtl"] .about-text {
            font-size: 0.85rem !important;
            line-height: 20px !important;
            max-width: 100% !important;
            top: 61px !important;
            left: 0 !important;
            right: 0 !important;
            padding: 0 20px !important;
            text-align: center !important;
            margin: 0 auto 15px !important;
            position: relative !important;
        }
    }
}