/* Modern Reset and Base Styles */

* {
    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: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Enhanced Hero Section */

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section - Moved from EJS */
.hero-section {
    width: 100%;
    height: calc(100vh - 100px);
    margin-top: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Image - Moved from EJS */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
   
    object-position: center;
    /* centers image focus */
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 2px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease 1s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
}

.hero-image-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-image-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4c5c74, #81383f);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.hero-sneaker {
    position: relative;
    z-index: 2;
    width: 450px;
    height: auto;
    transform: rotate(-15deg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-card {
    top: 80px;
    left: -60px;
    animation: float 3s ease-in-out infinite 0.5s;
}

.rating-card {
    bottom: 100px;
    right: -80px;
    animation: float 3s ease-in-out infinite 1s;
}

.price {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #3b82f6;
}

.price-label {
    font-size: 12px;
    color: #64748b;
}

.rating-card .stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.rating-card .stars i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-card span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Enhanced Color Options */
.color-options {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.color-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.color-dots {
    display: flex;
    gap: 12px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-dot.active {
    border-color: #3b82f6;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.color-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Featured Categories - UPDATED FOR FULL WIDTH */
.featured-categories {
    padding: 100px 0;
    background: white;
}

/* Full-width Air Jordan section */
.full-width-air-jordan {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 24px;
}

.full-width-air-jordan .category-card {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 400px;
}

.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    height: 400px;
}

.category-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card.large.air-jordan-card {
    background: linear-gradient(135deg, #3ca373, #1d1622);
    color: white;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.category-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.category-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.category-btn, .category-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.category-btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.category-btn:hover, .category-btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-image {
    position: absolute;
    right: 50px;
    bottom: 50px;
    width: 300px;
    height: 300px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(15deg);
}

.category-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
}

.running-bg {
    background-image: url('data:image/svg+xml,');
}

.lifestyle-bg {
    background-image: url('data:image/svg+xml,');
}

/* Products Sections */
.products-section {
    padding: 100px 0;
    position: relative;
}

.products-section.new-arrivals {
    background: #fafbfc;
}

.products-section.trending {
    background: white;
}

.products-section.premium {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

/* White background for premium section - NEW */
.products-section.premium-white {
    background: #ffffff !important;
    color: #1a1a1a;
}

.products-section.premium-white .section-title h2,
.products-section.premium-white .section-title p {
    color: #1a1a1a !important;
}

.products-section.premium-white .view-all-btn {
    color: #3b82f6;
    border-color: #3b82f6;
}

.products-section.premium-white .view-all-btn:hover {
    background: #3b82f6;
    color: white;
}

.products-section.premium-white .slider-btn {
    border-color: #e5e7eb;
    background: white;
    color: #6b7280;
}

.products-section.premium-white .slider-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.products-section.premium .section-title h2,
.products-section.premium .section-title p {
    color: white;
}

.products-section.premium .view-all-btn {
    color: white;
    border-color: white;
}

.products-section.premium .view-all-btn:hover {
    background: white;
    color: #0f172a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-header.centered {
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 1.1rem;
    color: #64748b;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.products-section.premium .slider-btn {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.products-section.premium .slider-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.view-all-btn {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #3b82f6;
    color: white;
}

/* UPDATED PRODUCTS GRID - EXACTLY 4 PRODUCTS PER ROW */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

/* Modern Product Cards */
.product-card.modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f3f4;
    cursor: pointer;
    position: relative;
    width: 100%;
}

.product-card.modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #e8eaed;
}

.product-card.modern.premium-card {
    border: 2px solid #ffd700;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.product-card.modern.premium-card:hover {
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #fafbfc;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

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

/* Enhanced Badges */
.offer-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.premium-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.stock-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.stock-badge.in-stock {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.wishlist-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.quick-actions {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card.modern:hover .quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
    background: white;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-text {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.original-price {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 16px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 14px;
    color: #94a3b8;
}

/* Newsletter */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.newsletter-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: #3b82f6;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 14px;
    opacity: 0.8;
}

/* Notifications */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideIn 0.4s ease;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

/* Cart bounce animation - NEW */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: rotate(-15deg) translateY(0px);
    }
    50% {
        transform: rotate(-15deg) translateY(-20px);
    }
}

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .category-card.large {
        grid-column: 1 / -1;
    }

    /* Adjust grid for smaller screens */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .newsletter-text h2 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile grid: 2 products per row */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    
    .hero-section {
        height: 50vh; /* Adjust hero height for tablets */
        margin-top: 70px;
    }

    /* Make quick actions always visible on touch devices */
    .product-card.modern .quick-actions {
        opacity: 1;
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.7);
        padding: 5px;
        border-radius: 10px;
    }

    .floating-card {
        padding: 12px 16px;
    }

    .price-card {
        left: -40px;
    }

    .rating-card {
        right: -40px;
    }

    /* Full-width adjustments for mobile */
    .full-width-air-jordan {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-section {
        height: 40vh; /* Further reduce hero height for phones */
        margin-top: 60px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 24px;
    }

    .newsletter-text h2 {
        font-size: 2rem;
    }

    .product-image-container {
        height: 240px;
    }

    .product-info {
        padding: 20px;
    }

    .hero-image-container {
        width: 320px;
        height: 320px;
    }

    .hero-sneaker {
        width: 280px;
    }

    .hero-image-bg {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        display: none;
    }

    .color-options {
        gap: 12px;
    }

    .color-dot {
        width: 20px;
        height: 20px;
    }

    .full-width-air-jordan {
        padding: 0 16px;
    }

    /* Mobile: 1 product per row for very small screens */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
