/* Global Styles */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ffd23f;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
}

/* Modern Top Bar */
.top-bar {
    background: var(--dark-color);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    max-width: 1400px;
}

/* Modern Navigation */
.navbar {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    margin: 0 15px;
    padding: 8px 16px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: var(--gradient);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: var(--gradient);
    color: white !important;
}

/* Cart Badge */
.navbar-nav .nav-link .badge {
    background: var(--accent-color) !important;
    color: var(--dark-color);
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 5px solid rgba(255,255,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

/* Modern Feature Cards */
.feature-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient) border-box;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Modern Product Cards */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #f5f5f5, #e0e0e0);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.9), rgba(247,147,30,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-left: 10px;
}

/* Modern Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 30px;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,107,53,0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 15px 35px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-outline-primary:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,107,53,0.4);
}

/* Modern Home Layout */
.home-showcase {
    padding: 80px 0;
    background: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.showcase-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.showcase-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.showcase-content {
    padding: 30px;
}

.showcase-content h3 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Modern Stats Section */
.stats-section {
    background: var(--gradient);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--primary-color);
}

.quantity-control span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Footer */
footer {
    background: var(--dark-color);
    padding: 60px 0 30px;
    margin-top: 0;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

footer .social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 10px;
        padding: 8px 12px !important;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
}

.custom-toast {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
