/* xhadow.css - Main Stylesheet for Rayan Store */

:root {
    --primary-color: #ea8d26;
    --secondary-color: #000;
    --accent-color: #ff6b35;
    --light-bg: #f9f9f9;
    --dark-bg: #111;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Modern Hero Slider - Updated for Centered Content */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e87c1e 100%);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-family: 'Tajawal', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(234, 141, 38, 0.3);
    margin: 0 auto;
}

.hero-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(234, 141, 38, 0.4);
}

.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.hero-pagination .swiper-pagination {
    position: relative;
    display: inline-flex;
    gap: 10px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    opacity: 1;
    transition: var(--transition);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 60px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #eddbca;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a3d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--white);
}

.product-swiper-container {
    position: relative;
    padding: 0 60px;
}

.product-swiper {
    padding: 20px 10px 50px;
}

.product-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(234, 141, 38, 0.15);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1));
}

.product-badge {
    position: absolute;
    top: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.discount-badge {
    right: 20px;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 100%);
    color: white;
}

.new-badge {
    left: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.product-content {
    padding: 25px;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.5;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-percentage {
    background: #ffebee;
    color: #d32f2f;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 141, 38, 0.3);
}

.out-of-stock {
    display: block;
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    margin-top: auto;
}

/* Special Sections */
.special-section {
    padding: 100px 0;
    position: relative;
}

.special-section:nth-child(odd) {
    background: var(--light-bg);
}

.special-section:nth-child(even) {
    background: #eddbca;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.8;
}

.section-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
    background: #eddbca;
}

.brand-swiper {
    padding: 40px 0;
}

.brand-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.8;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.brand-logo img {
    max-width: 100%;
    max-height: 40px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: black;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #ea8d26;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slide {
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 30px;
        max-width: 700px;
    }
    
    .product-swiper-container {
        padding: 0 30px;
    }
    
    .section-header h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 25px;
        max-width: 500px;
    }
    
    .hero-nav, .hero-pagination {
        display: none;
    }
    
    .section-title h2,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-swiper-container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .product-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .discount-badge {
        right: 10px;
    }
    
    .new-badge {
        left: 10px;
    }
}