:root {
    --primary-color: #3a36db;
    --secondary-color: #2a27b3;
    --accent-color: #ff6b6b;
    --dark-color: #1e1e2c;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    background-color: white !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Mega Menu */
.mega-dropdown {
    position: static !important;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    margin-top: 0;
}

.mega-menu h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.mega-product {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mega-product:hover {
    background-color: var(--light-gray);
}

.mega-product img {
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mega-product:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 30, 44, 0.85), rgba(30, 30, 44, 0.85));
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.hero-slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-slider-controls button:hover {
    background-color: var(--primary-color);
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dots .dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

/* Features */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

/* Categories */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    transition: all 0.3s ease;
}

.category-card img {
    transition: all 0.4s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Product Cards */
.product-card {
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.badge-discount {
    background-color: var(--accent-color);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: white;
    color: var(--dark-color);
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.quick-view-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    bottom: 30px;
}

/* Sale Banner */
.sale-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.sale-banner:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.sale-banner:after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.countdown-timer {
    font-family: 'Poppins', sans-serif;
}

.countdown-item {
    min-width: 70px;
    text-align: center;
}

.countdown-value {
    font-size: 1.5rem;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonial-card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 30px;
    border: none;
    padding-left: 20px;
}

.newsletter-form .btn {
    border-radius: 30px;
    padding: 12px 30px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-links h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.payment-methods img {
    height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-methods img:hover {
    filter: grayscale(0) brightness(100%);
    opacity: 1;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Brand logos */
.brand-logo {
    filter: grayscale(100%) opacity(70%);
    transition: all 0.3s ease;
    max-height: 50px;
    width: auto;
}

.brand-logo:hover {
    filter: grayscale(0) opacity(100%);
}

/* Quick View Modal */
.product-gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-gallery-thumbnail:hover, .product-gallery-thumbnail.active {
    border-color: var(--primary-color);
}

.color-option {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover, .color-option.active {
    border-color: var(--dark-color);
    transform: scale(1.1);
}

/* Dropdown carts */
.cart-dropdown, .wishlist-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item, .wishlist-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img, .wishlist-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details, .wishlist-item-details {
    flex-grow: 1;
}

.cart-item-title, .wishlist-item-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price, .wishlist-item-price {
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-remove, .wishlist-item-remove {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 0.8rem;
}

/* Cart and Wishlist animations */
.cart-animate {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 100px 0;
    }
    
    .hero-slide {
        position: relative;
        height: auto;
        padding: 100px 0;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        margin-bottom: 30px;
    }
    
    .category-card {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .hero-slider-controls, .hero-slider-dots {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dark-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: var(--success-color);
}

.toast-error {
    background-color: var(--danger-color);
}

.toast-info {
    background-color: var(--info-color);
}

.toast-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}