/* Products Page Specific Styles */

/* Enhanced Products Hero */
.products-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.min-vh-60 {
    min-height: 60vh;
}

.hero-text {
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hero Images Grid */
.hero-images {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.hero-image-grid {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.hero-image-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-image-item:hover {
    transform: scale(1.05);
    z-index: 5;
}

.main-image {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.secondary-image {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.accent-image {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-image-item:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Floating Badges */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    animation: float 3s ease-in-out infinite;
}

.sale-badge {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.new-badge {
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    animation-delay: 1.5s;
}

.badge-text {
    font-size: 0.9rem;
}

/* Hero Background Effects */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 20s linear infinite;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

/* Dot Flow Animation */
.dot-flow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.dot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dotFloat 15s linear infinite;
}

.dot:nth-child(odd) {
    background: rgba(139, 69, 19, 0.4);
}

.dot-1 { left: 10%; animation-delay: 0s; }
.dot-2 { left: 20%; animation-delay: 1s; }
.dot-3 { left: 30%; animation-delay: 2s; }
.dot-4 { left: 40%; animation-delay: 3s; }
.dot-5 { left: 50%; animation-delay: 4s; }
.dot-6 { left: 60%; animation-delay: 5s; }
.dot-7 { left: 70%; animation-delay: 6s; }
.dot-8 { left: 80%; animation-delay: 7s; }
.dot-9 { left: 90%; animation-delay: 8s; }
.dot-10 { left: 15%; animation-delay: 9s; }
.dot-11 { left: 25%; animation-delay: 10s; }
.dot-12 { left: 35%; animation-delay: 11s; }
.dot-13 { left: 45%; animation-delay: 12s; }
.dot-14 { left: 55%; animation-delay: 13s; }
.dot-15 { left: 65%; animation-delay: 14s; }
.dot-16 { left: 75%; animation-delay: 15s; }
.dot-17 { left: 85%; animation-delay: 16s; }
.dot-18 { left: 95%; animation-delay: 17s; }
.dot-19 { left: 5%; animation-delay: 18s; }
.dot-20 { left: 95%; animation-delay: 19s; }

@keyframes dotFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-50px) translateY(-50px);
    }
    50% {
        transform: translateX(-100px) translateY(0);
    }
    75% {
        transform: translateX(-50px) translateY(50px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@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);
    }
}

/* Featured Categories */
.featured-categories {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 0;
}

.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    color: inherit;
}

.category-image {
    position: relative;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-count {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-info {
    text-align: center;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        padding: 0.875rem 2rem;
    }
    
    .hero-images {
        height: 300px;
        margin-top: 2rem;
    }
    
    .hero-image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
    
    .main-image {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    
    .secondary-image {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }
    
    .accent-image {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }
}