/* New Arrivals Section - Dark Theme */
.new-arrivals-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    position: relative;
    overflow: hidden;
}

.new-arrivals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 140, 66, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.new-arrivals-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 66, 0.02) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(255, 87, 34, 0.025) 0%, transparent 45%);
    animation: fogDrift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes fogDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-2%, -1%) rotate(0.5deg);
    }
    66% {
        transform: translate(1%, -2%) rotate(-0.3deg);
    }
}

.new-arrivals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #8b949e;
    margin: 0;
    font-weight: 400;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    position: relative;
    z-index: 3;
}

.product-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    position: relative;
    padding: 16px;
    opacity: 0.7;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(255, 140, 66, 0.1) 25%,
        transparent 50%,
        rgba(255, 87, 34, 0.1) 75%,
        rgba(255, 107, 53, 0.2) 100%
    );
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    filter: blur(12px);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(33, 38, 45, 0.8) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 
        0 16px 64px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 1;
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: transparent;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.product-card:hover .product-image::before {
    background: transparent;
}

/* Hover overlay - removed dark overlay */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
    pointer-events: none;
    border-radius: 12px;
}

.product-card:hover .product-image::after {
    opacity: 0;
}

/* Product action button - moved above dots */
.product-action {
    position: absolute;
    bottom: 33px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(255, 140, 66, 0.8) 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    letter-spacing: 0.3px;
    pointer-events: auto;
}

.product-card:hover .product-action {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-action:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 53, 1) 0%, rgba(255, 140, 66, 0.9) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1) saturate(1);
    position: relative;
    z-index: 0;
    border-radius: 12px;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1) saturate(1);
}

/* Image indicator dots - moved to bottom */
.product-image-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
    pointer-events: auto;
}

.product-card:hover .product-image-dots {
    opacity: 1;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.image-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.image-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.product-info {
    padding: 16px 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.4s ease;
}

.product-colors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    order: 1;
}

.colors-count {
    font-size: 0.75rem;
    color: rgba(139, 148, 158, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.product-card:hover .colors-count {
    color: rgba(139, 148, 158, 0.8);
}

.colors-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-dot::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: inherit;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 50%;
}

.color-dot:hover::before {
    opacity: 0.4;
}

.color-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(240, 246, 252, 0.6);
    margin: 0;
    line-height: 1.3;
    transition: all 0.4s ease;
    order: 2;
}

.product-card:hover .product-name {
    color: rgba(240, 246, 252, 1);
    font-weight: 600;
}

.product-category {
    font-size: 0.85rem;
    color: rgba(139, 148, 158, 0.4);
    margin: 0;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s ease;
    order: 3;
}

.product-card:hover .product-category {
    color: rgba(139, 148, 158, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .new-arrivals-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .new-arrivals-container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        height: 250px;
    }
}