/* ═══════════════════════════════════
   Welcome Page Styles - Blue Tech
   ═══════════════════════════════════ */

/* ======= Base ======= */
body {
    padding-top: 58px !important;
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.btn,
.form-control,
.nav-link,
.breadcrumb-item,
.card-title,
.card-text {
    font-family: inherit !important;
}

/* ======= Hero Slider ======= */
#hero-slider {
    height: 500px;
    min-height: 400px;
    margin-top: 15px;
}

#hero-slider .swiper-slide {
    height: 500px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.swiper-slide.hero.bg-center.bg-cover {
    background-color: transparent !important;
}

.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.text-white {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

section:first-of-type {
    padding-top: 15px;
}

/* ======= Categories ======= */
.categories-section {
    background: #ffffff;
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

/* Fade edges - left & right */
.categories-section::before,
.categories-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.categories-section::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0) 100%);
}

.categories-section::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0) 100%);
}

#categoriesSwiper {
    padding: 15px 30px;
    cursor: grab;
    overflow: hidden;
}

#categoriesSwiper:active {
    cursor: grabbing;
}

#categoriesSwiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

#categoriesSwiper .swiper-slide {
    width: 140px !important;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 5px;
    background: transparent;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.category-image-container {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.category-item:hover .category-image {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    border-color: #4a90e2;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-top: 8px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.category-item:hover .category-name {
    color: #4a90e2;
}

/* ======= Products Section ======= */
.products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
}

#newArrivals {
    position: relative;
    padding-bottom: 100px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#newArrivals.swiper-initialized {
    opacity: 1;
}

#newArrivals .swiper-wrapper {
    align-items: stretch;
    display: flex;
}

#newArrivals .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ======= Product Cards ======= */
.product-card-horizontal {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.product-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

.product-image-horizontal {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card-horizontal:hover .product-image-horizontal img {
    transform: scale(1.05);
}

/* ======= Product Badges ======= */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-available {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.badge-unavailable {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.badge-low-stock {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

/* ======= Product Content ======= */
.product-content-horizontal {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-title-horizontal {
    height: 50px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-title-horizontal h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-horizontal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title-horizontal a:hover {
    color: #4a90e2;
}

.product-price-horizontal {
    margin-top: auto;
    text-align: center;
    margin-bottom: 15px;
}

.product-price-horizontal .price {
    font-size: 18px;
    font-weight: 700;
    color: #4a90e2;
}

.product-button-horizontal {
    margin-top: auto;
}

.btn-product-horizontal {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-product-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    color: white;
    background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
}

/* ======= Swiper Navigation ======= */
.swiper-button-next,
.swiper-button-prev {
    border: none;
    border-radius: 12px;
    width: auto !important;
    height: 45px !important;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
    top: auto !important;
    bottom: 20px;
    left: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: "" !important;
    display: none !important;
}

.swiper-button-prev {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
    transform: translateX(-50%) translateX(-60px);
    border: 1px solid #ced4da;
}

.swiper-button-prev:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    color: #343a40;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateX(-50%) translateX(-60px) scale(1.05);
}

.swiper-button-next {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    transform: translateX(-50%) translateX(60px);
    border: 1px solid #4a90e2;
}

.swiper-button-next:hover {
    background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
    transform: translateX(-50%) translateX(60px) scale(1.05);
}

/* ======= Section Headers ======= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
    #hero-slider,
    #hero-slider .swiper-slide {
        height: 350px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    #categoriesSwiper .swiper-slide {
        width: 110px !important;
    }

    .category-image {
        width: 90px;
        height: 90px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        height: 40px !important;
        padding: 0 15px;
        font-size: 13px;
        min-width: 60px;
    }

    .swiper-button-prev {
        transform: translateX(-50%) translateX(-40px);
    }

    .swiper-button-next {
        transform: translateX(-50%) translateX(40px);
    }
}

@media (max-width: 576px) {
    #hero-slider,
    #hero-slider .swiper-slide {
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    #categoriesSwiper .swiper-slide {
        width: 90px !important;
    }

    .category-image {
        width: 70px;
        height: 70px;
    }

    .category-name {
        font-size: 0.8rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        height: 35px !important;
        padding: 0 12px;
        font-size: 12px;
        min-width: 50px;
    }

    .swiper-button-prev {
        transform: translateX(-50%) translateX(-30px);
    }

    .swiper-button-next {
        transform: translateX(-50%) translateX(30px);
    }
}