/* /louis-ecommerce/assets/css/index-styles.css */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    width: 100%;
}

/* ========== NOTIFICATIONS ========== */
.quick-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
}

.quick-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.quick-notification.success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.quick-notification.error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.pulse-animation {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========== NAVBAR ========== */
.top-bar {
    background: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.main-navbar {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    border-radius: 50px;
    padding: 0.6rem 3rem 0.6rem 1.5rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.wishlist-icon {
    position: relative;
    display: inline-block;
    color: #e91e63;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.wishlist-icon:hover {
    color: #c2185b;
    transform: scale(1.1);
}

.wishlist-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e91e63;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cart-icon {
    position: relative;
    display: inline-block;
    color: #333;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: #007bff;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 800px;
    background: white;
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 30px 0;
    margin-top: 0;
    z-index: 1050;
    display: none;
}

.mega-dropdown:hover .mega-menu,
.mega-dropdown .dropdown-menu.show {
    display: block;
}

.mega-menu-item {
    padding: 10px 15px;
}

.mega-menu-item h6 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mega-menu-item h6 a {
    color: var(--primary-color, #0d6efd);
    text-decoration: none;
    transition: all 0.3s;
}

.mega-menu-item h6 a:hover {
    color: var(--secondary-color, #0a58ca);
    padding-left: 5px;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    background: var(--dark-color);
    overflow: hidden;
    margin: 0 auto;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    color: white;
    text-align: center !important;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
    color: white;
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(245, 158, 11, 0.9);
    transform: scale(1.1);
}

.heroSwiper .swiper-button-next {
    right: 40px;
}

.heroSwiper .swiper-button-prev {
    left: 40px;
}

.heroSwiper .swiper-button-next:after,
.heroSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
}

.heroSwiper .swiper-pagination {
    bottom: 25px;
}

.heroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.6;
    margin: 0 5px;
    transition: var(--transition);
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
    width: 30px;
    border-radius: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CATEGORIES ========== */
.categories-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ========== PRODUCTS ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.products-section {
    padding: 4rem 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: var(--light-color);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.featured {
    background: var(--secondary-color);
}

.product-quick-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-quick-actions {
    opacity: 1;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--secondary-color);
}

.rating-count {
    color: #9ca3af;
    font-size: 0.875rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.old-price {
    font-size: 1.1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== PROMO BANNER ========== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 4rem 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-content {
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

.promo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.promo-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        margin-top: 0.5rem;
    }
    
    .mega-dropdown .dropdown-menu {
        display: none;
    }
    
    .mega-dropdown .dropdown-menu.show {
        display: block;
    }
    
    .mega-menu-item {
        padding: 5px 15px;
    }
    
    .wishlist-icon {
        margin-right: 15px;
    }
    
    .mega-dropdown:hover .mega-menu {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 350px;
    }
    
    .heroSwiper .swiper-button-next {
        right: 20px;
    }
    
    .heroSwiper .swiper-button-prev {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .search-box {
        margin: 1rem 0;
    }
    
    .promo-content h2 {
        font-size: 1.75rem;
    }
    
    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .heroSwiper .swiper-button-next {
        right: 10px;
    }
    
    .heroSwiper .swiper-button-prev {
        left: 10px;
    }
    
    .heroSwiper .swiper-button-next:after,
    .heroSwiper .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .quick-notification {
        right: 10px;
        top: 10px;
        min-width: 200px;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========== LOADING ANIMATION ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}