/* Professional E-commerce Styles - Dark Blue Navbar + Mixed Sections */
:root {
    --dark-blue: #0a2540;
    --medium-blue: #1a3a5c;
    --primary-blue: #2c5f8a;
    --accent-blue: #3b82f6;
    --light-blue: #e8f0fe;
    --gradient-blue: linear-gradient(135deg, #0a2540 0%, #2c5f8a 100%);
    --gradient-light: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    --white: #ffffff;
    --text-dark: #1a2c3e;
    --text-gray: #5a6c7e;
    --border-light: #e5e9f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
}

/* ========== DARK BLUE NAVBAR ========== */
.navbar-dark-blue {
    background: var(--dark-blue);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-dark-blue.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--accent-blue);
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--white);
}

.dropdown-menu-custom {
    background: var(--white);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item-custom {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item-custom:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-link {
    color: rgba(255,255,255,0.85);
    transition: all 0.3s ease;
    position: relative;
}

.icon-link:hover {
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* ========== HERO SECTION WITH GRADIENT ========== */
.hero-gradient {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #2c5f8a 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-gradient::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.05" 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;
    opacity: 0.3;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.3);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
    margin: 0 auto;
}

/* ========== CATEGORY CARDS (White Background) ========== */
.category-section {
    padding: 4rem 0;
    background: var(--white);
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--gradient-blue);
}

.category-icon i {
    font-size: 1.75rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: white;
}

.category-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ========== PRODUCT CARDS (White Background, 1:1 Image) ========== */
.product-section {
    padding: 4rem 0;
    background: var(--white);
}

.product-section-alt {
    padding: 4rem 0;
    background: var(--light-blue);
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f8fafc;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--accent-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-badge.hot {
    background: #ef4444;
}

.product-badge.new {
    background: #10b981;
}

.product-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
}

.product-category {
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    color: var(--text-dark);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.price-old {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-add-cart {
    width: 100%;
    background: var(--light-blue);
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: var(--dark-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.875rem;
}

.btn-add-cart:hover {
    background: var(--gradient-blue);
    color: white;
    text-decoration: none;
}

/* ========== BANNER WITH GRADIENT ========== */
.banner-gradient {
    background: linear-gradient(135deg, #1a3a5c 0%, #0a2540 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.banner-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.2), transparent);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.banner-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter-section {
    background: var(--light-blue);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    text-align: center;
}

.newsletter-section h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.newsletter-section p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
    background: var(--white);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-btn {
    background: var(--gradient-blue);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

/* ========== FOOTER ========== */
.footer-dark {
    background: var(--dark-blue);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    color: rgba(255,255,255,0.8);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-blue);
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

.payment-icons i {
    font-size: 1.75rem;
    margin-right: 10px;
    opacity: 0.7;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
    color: white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--gradient-blue);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .banner-gradient {
        padding: 1.5rem;
    }
    
    .newsletter-section {
        padding: 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        background: transparent;
        gap: 10px;
    }
    
    .newsletter-input {
        background: white;
        border-radius: 8px;
    }
    
    .newsletter-btn {
        border-radius: 8px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}