/* ============================================
   Jarawan Mull - Modern Homepage Styles
   ============================================ */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #f7931e;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

/* ============ CONTAINERS ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HERO SECTION ============ */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 45px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="rgba(255,255,255,0.05)" width="100" height="100"/><rect fill="rgba(255,255,255,0.05)" x="100" y="100" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 22px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-illustration {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-illustration {
        font-size: 5rem;
    }
}

/* ============ BANNER SLIDER SECTION ============ */
.banner-slider-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

.banner-slider-container .swiper-container,
.homepage-banner {
    width: 100%;
    height: 300px;
    position: relative;
}

.banner-slider-container .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.banner-slider-container .swiper-slide {
    height: 100%;
    width: 100% !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    padding: 0;
    margin: 0;
}

.banner-slider-container .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slider-container .banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #000;
}

.banner-slider-container .banner-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    text-align: right;
    z-index: 10;
}

.banner-slider-container .banner-content-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banner-slider-container .banner-content-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.banner-slider-container .swiper-pagination {
    z-index: 15;
}

.banner-slider-container .swiper-button-next,
.banner-slider-container .swiper-button-prev {
    z-index: 15;
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.banner-slider-container .swiper-button-next:hover,
.banner-slider-container .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .banner-slider-container .swiper-container,
    .homepage-banner {
        height: 250px;
    }
    
    .banner-slider-container .banner-content-overlay {
        padding: 20px;
    }
    
    .banner-slider-container .banner-content-overlay h3 {
        font-size: 1.5rem;
    }
    
    .banner-slider-container .swiper-button-next,
    .banner-slider-container .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .banner-slider-container .swiper-container,
    .homepage-banner {
        height: 200px;
    }
    
    .banner-slider-container .banner-content-overlay {
        padding: 15px;
    }
    
    .banner-slider-container .banner-content-overlay h3 {
        font-size: 1.2rem;
    }
}

/* ============ BUTTONS ============ */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #f5860d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* ============ PROMO BAR ============ */
.promo-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background-color: var(--light-bg);
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.promo-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.promo-item h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.promo-item p {
    font-size: 0.9rem;
    color: #666;
}

/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-text);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* ============ CATEGORIES SECTION ============ */
.categories-section {
    padding: 50px 15px;
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 22px;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.category-image {
    position: relative;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-item h3 {
    font-size: 1rem;
    color: var(--dark-text);
}

/* ============ FLASH SALE SECTION ============ */
.flash-sale-section {
    background: linear-gradient(120deg, #ffe5e5 0%, #fff0e5 100%);
    padding: 50px 20px;
}

.flash-sale-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    text-align: left;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer {
    display: flex;
    gap: 5px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.time-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.time-label {
    font-size: 0.8rem;
    color: #666;
}

.time-separator {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.offers-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.offer-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger-color);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.price-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.sale-price {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============ FEATURED PRODUCTS SECTION ============ */
.featured-section {
    padding: 50px 15px;
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-details {
    padding: 15px;
}

.product-details h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-details .price {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.price .current {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.price .original {
    color: #999;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.currency {
    color: #999;
    font-size: 0.9rem;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.section-footer {
    text-align: center;
}

/* ============ TRENDING SECTION ============ */
.trending-section {
    padding: 50px 15px;
    background-color: var(--light-bg);
}

.trending-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.trending-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trending-number {
    font-size: 2rem;
    margin-bottom: 10px;
}

.trending-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.trending-card h4 {
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ NEWSLETTER SECTION ============ */
.newsletter-section {
    background: linear-gradient(120deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 50px 15px;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 1rem;
    margin-bottom: 22px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    flex: 1;
    min-width: 250px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 30px;
    border: none;
    background-color: var(--accent-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.newsletter-form button:hover {
    background-color: #f5860d;
    transform: translateX(-2px);
}

/* ============ NEW ARRIVALS SECTION ============ */
.new-arrivals-section {
    padding: 50px 15px;
    background-color: white;
}

/* ============ SUBCATEGORIES SECTION ============ */
.subcategories-section {
    padding: 50px 15px;
    background-color: var(--light-bg);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.subcategory-card {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.subcategory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcategory-card:hover img {
    transform: scale(1.1);
}

.subcategory-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 15px;
    margin: 0;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============ FOOTER ============ */
.footer {
    background-color: var(--dark-text);
    color: white;
    margin-top: 60px;
}

.footer-top {
    padding: 50px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-column p {
    margin-bottom: 10px;
    line-height: 1.8;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.contact-info {
    line-height: 2;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countdown-timer {
        flex-direction: column;
    }
}

/* RTL Support (for Arabic) */
[dir="rtl"] .hero-buttons,
[dir="rtl"] .footer-bottom-content,
[dir="rtl"] .newsletter-form {
    flex-direction: row-reverse;
}

[dir="rtl"] .discount-badge {
    left: auto;
    right: 10px;
}

[dir="rtl"] .new-badge {
    right: auto;
    left: 10px;
}

[dir="rtl"] .footer-bottom-content {
    text-align: center;
}
