/* Export Categories Widget CSS */

.export-categories-widget {
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Export Categories Grid */
.export-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 100px;
}



.export-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 145, 0, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.export-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF9100, #ff7043, #FF9100);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.export-category:hover::before {
    opacity: 1;
}

.export-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 145, 0, 0.2);
}

.export-category h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.export-category h4::before {
    content: '';
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #FF9100, #ff7043);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 145, 0, 0.4);
}

.export-category-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.export-category:hover h4,
.export-category:hover .export-category-description {
    color: white !important;
}

.export-category h4,
.export-category-description {
    transition: color 0.4s ease;
}

/* Animated state for categories */
.export-category.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Container */
.export-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #F3EDEA;
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 0;
    border: 1px solid rgba(255, 145, 0, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.export-marquee-inner {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* Fade edges effect */
.export-marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #F3EDEA 0%,
        rgba(243, 237, 234, 0.8) 8%,
        transparent 20%,
        transparent 80%,
        rgba(243, 237, 234, 0.8) 92%,
        #F3EDEA 100%
    );
    pointer-events: none;
    z-index: 2;
}

.export-marquee-row {
    display: flex;
    white-space: nowrap;
    gap: 25px;
    align-items: center;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Default animations (will be overridden by JavaScript with custom speeds) */
.export-marquee-row.export-row-1 {
    animation-name: exportMarqueeLeft;
    animation-duration: 80s;
}

.export-marquee-row.export-row-2 {
    animation-name: exportMarqueeRight;
    animation-duration: 90s;
}

.export-marquee-row.export-row-3 {
    animation-name: exportMarqueeLeft;
    animation-duration: 70s;
}

@keyframes exportMarqueeLeft {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(-150%); }
}

@keyframes exportMarqueeRight {
    0% { transform: translateX(-80%); }
    100% { transform: translateX(100%); }
}

/* Export Product Pills */
.export-product-pill {
    background: #ffffff;
    color: #000000;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid rgba(255, 145, 0, 0.25);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.export-product-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.export-product-pill:hover::before {
    left: 100%;
}

.export-product-pill:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 145, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .export-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 80px;
    }
    
    .export-marquee-container {
        padding: 50px 0;
    }
    
    .export-marquee-inner {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .export-categories {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .export-category {
        padding: 30px 25px;
    }
    
    .export-category h4 {
        font-size: 1.2rem;
    }
    
    .export-category-description {
        font-size: 0.95rem;
    }
    
    .export-marquee-container {
        padding: 40px 0;
        border-radius: 20px;
    }
    
    .export-marquee-inner {
        height: 250px;
    }
    
    .export-product-pill {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
    
    /* Faster animations on mobile */
    .export-marquee-row.export-row-1 {
        animation-duration: 50s;
    }
    
    .export-marquee-row.export-row-2 {
        animation-duration: 55s;
    }
    
    .export-marquee-row.export-row-3 {
        animation-duration: 45s;
    }
}

@media (max-width: 480px) {
    .export-category {
        padding: 25px 20px;
    }
    
    .export-category h4 {
        font-size: 1.1rem;
    }
    
    .export-category-description {
        font-size: 0.9rem;
    }
    
    .export-product-pill {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

/* Animation states */
.export-categories-widget.loaded .export-category {
    animation: exportCategorySlideIn 0.8s ease-out forwards;
}

@keyframes exportCategorySlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pause marquee on hover */
.export-marquee-container:hover .export-marquee-row {
    /* animation-play-state: paused; */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .export-marquee-row {
        animation: none;
    }
    
    .export-category {
        transition: none;
    }
    
    .export-product-pill {
        transition: none;
    }
}