/**
 * Homepage Premium Styles
 * DJI-inspired design with transparent nav and immersive hero
 */

/* Global Section Header Styles - Premium White */
.home .section-header h2,
.page-template-front-page .section-header h2,
.section-header h2 {
    color: #ffffff !important;
}

.home .section-header .section-subtitle,
.page-template-front-page .section-header .section-subtitle,
.section-header .section-subtitle {
    color: #ffffff !important;
}

.home .section-header p,
.page-template-front-page .section-header p,
.section-header p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Transparent Navigation on Homepage */
body.home .site-header,
body.page-template-front-page .site-header,
.home .site-header,
.page-template-front-page .site-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

body.home .site-header .header-inner,
body.page-template-front-page .site-header .header-inner,
.home .site-header .header-inner,
.page-template-front-page .site-header .header-inner {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 20px 40px !important;
    justify-content: flex-end !important;
    gap: 60px !important;
}

body.home .site-header .site-logo,
body.page-template-front-page .site-header .site-logo,
.home .site-header .site-logo,
.page-template-front-page .site-header .site-logo {
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
}

body.home .site-header .logo-image,
body.page-template-front-page .site-header .logo-image,
.home .site-header .logo-image,
.page-template-front-page .site-header .logo-image {
    height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
}

body.home .site-header .logo-text,
body.page-template-front-page .site-header .logo-text,
.home .site-header .logo-text,
.page-template-front-page .site-header .logo-text {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

body.home .site-header .logo-text span,
body.page-template-front-page .site-header .logo-text span,
.home .site-header .logo-text span,
.page-template-front-page .site-header .logo-text span {
    color: #1f8cff !important;
}

body.home .main-navigation a,
body.page-template-front-page .main-navigation a,
.home .main-navigation a,
.page-template-front-page .main-navigation a {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    transition: color 0.3s ease !important;
}

body.home .main-navigation a:hover,
body.page-template-front-page .main-navigation a:hover,
.home .main-navigation a:hover,
.page-template-front-page .main-navigation a:hover {
    color: #1f8cff !important;
}

body.home .main-navigation a::after,
body.page-template-front-page .main-navigation a::after,
.home .main-navigation a::after,
.page-template-front-page .main-navigation a::after {
    background: #1f8cff !important;
}

body.home .header-cta .header-phone,
body.page-template-front-page .header-cta .header-phone,
.home .header-cta .header-phone,
.page-template-front-page .header-cta .header-phone {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.home .header-cta .btn-primary,
body.page-template-front-page .header-cta .btn-primary,
.home .header-cta .btn-primary,
.page-template-front-page .header-cta .btn-primary {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}

body.home .header-cta .btn-primary:hover,
body.page-template-front-page .header-cta .btn-primary:hover,
.home .header-cta .btn-primary:hover,
.page-template-front-page .header-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Hero Slider - Full Screen Immersive */
.home .hero-slider,
.page-template-front-page .hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #0d1730;
}

.home .hero-slide,
.page-template-front-page .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.home .hero-slide.active,
.page-template-front-page .hero-slide.active {
    opacity: 1;
}

.home .hero-slide-bg,
.page-template-front-page .hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}

.home .hero-slide.active .hero-slide-bg,
.page-template-front-page .hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.home .hero-slide::before,
.page-template-front-page .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.home .hero-content,
.page-template-front-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    top: 35%;
    transform: translateY(-50%);
}

.home .hero-subtitle,
.page-template-front-page .hero-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.home .hero-title,
.page-template-front-page .hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
    padding: 0.12em 0.1em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.home .hero-description,
.page-template-front-page .hero-description {
    font-size: 1.375rem;
    color: #e6f0ff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home .hero-buttons,
.page-template-front-page .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.home .hero-buttons .btn-primary,
.page-template-front-page .hero-buttons .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-block;
}

.home .hero-buttons .btn-primary:hover,
.page-template-front-page .hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.home .hero-buttons .btn-secondary,
.page-template-front-page .hero-buttons .btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-block;
}

.home .hero-buttons .btn-secondary:hover,
.page-template-front-page .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-2px);
}

/* Hero Navigation Dots - Hidden */
.home .hero-nav,
.page-template-front-page .hero-nav {
    display: none !important;
}

/* Hero Arrow Buttons */
.home .hero-arrow,
.page-template-front-page .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .hero-arrow:hover,
.page-template-front-page .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.home .hero-arrow.prev,
.page-template-front-page .hero-arrow.prev {
    left: 40px;
}

.home .hero-arrow.next,
.page-template-front-page .hero-arrow.next {
    right: 40px;
}

/* Scroll Indicator */
.home .scroll-indicator,
.page-template-front-page .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.home .scroll-indicator::before,
.page-template-front-page .scroll-indicator::before {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Products Section - Premium Cards */
.home .products-section,
.page-template-front-page .products-section {
    padding: 8rem 0;
    background: #0d1730;
}

.home .products-section .section-header h2,
.page-template-front-page .products-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.home .product-card,
.page-template-front-page .product-card {
    background: #f4f7ff;
    border: 1px solid rgba(20, 40, 90, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: none;
}

.home .product-card:hover,
.page-template-front-page .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.home .product-card img,
.page-template-front-page .product-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home .product-card:hover img,
.page-template-front-page .product-card:hover img {
    transform: scale(1.05);
}

.home .product-card h3,
.page-template-front-page .product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937 !important;
    letter-spacing: -0.01em;
}

.home .product-card .product-desc,
.page-template-front-page .product-card .product-desc {
    color: #4b5563 !important;
    font-size: 0.95rem;
}

.home .product-card .product-link,
.page-template-front-page .product-card .product-link {
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.home .product-card .product-link:hover,
.page-template-front-page .product-card .product-link:hover {
    color: #111827 !important;
}

/* Applications Section */
.home .applications-section,
.page-template-front-page .applications-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #101c3a 0%, #16224a 50%, #101c3a 100%);
    position: relative;
}

.home .applications-section::before,
.page-template-front-page .applications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 160, 255, 0.28), transparent);
}

.home .applications-section .section-header h2,
.page-template-front-page .applications-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* === Scenarios Image Accordion (1:1 from dicolor section 4) === */
.home .scenarios-accordion,
.page-template-front-page .scenarios-accordion {
    --sa-nav: var(--sa-nav, 8px);
    width: 100%;
    position: relative;
    height: 580px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 20px;
}

.home .scenarios-accordion-item,
.page-template-front-page .scenarios-accordion-item {
    position: relative;
    flex: 1 0 auto;
    text-align: center;
    text-decoration: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.48s ease;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
}

.home .scenarios-accordion-item::before,
.page-template-front-page .scenarios-accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(6, 20, 60, 0.55) 0%, rgba(6, 20, 60, 0.55) 100%);
    z-index: 0;
    transition: background 0.3s ease;
}
.home .scenarios-accordion-item:hover::before,
.page-template-front-page .scenarios-accordion-item:hover::before,
.home .scenarios-accordion-item.scenarios-accordion-active::before,
.page-template-front-page .scenarios-accordion-item.scenarios-accordion-active::before {
    background: linear-gradient(rgba(0, 40, 120, 0.2) 0%, rgba(0, 40, 120, 0.5) 100%);
}

.home .scenarios-accordion-item:nth-child(1),
.page-template-front-page .scenarios-accordion-item:nth-child(1) {
    background-image: url('../images/cases/scenarios-sports.jpg');
}
.home .scenarios-accordion-item:nth-child(2),
.page-template-front-page .scenarios-accordion-item:nth-child(2) {
    background-image: url('../images/cases/scenarios-stage.jpg');
}
.home .scenarios-accordion-item:nth-child(3),
.page-template-front-page .scenarios-accordion-item:nth-child(3) {
    background-image: url('../images/cases/scenarios-tours.jpg');
}
.home .scenarios-accordion-item:nth-child(4),
.page-template-front-page .scenarios-accordion-item:nth-child(4) {
    background-image: url('../images/cases/scenarios-exhibitions.jpg');
}
.home .scenarios-accordion-item:nth-child(5),
.page-template-front-page .scenarios-accordion-item:nth-child(5) {
    background-image: url('../images/cases/scenarios-corporate.jpg');
}
.home .scenarios-accordion-item:nth-child(6),
.page-template-front-page .scenarios-accordion-item:nth-child(6) {
    background-image: url('../images/cases/scenarios-hospitality.jpg');
}

.home .scenarios-accordion-item.scenarios-accordion-active,
.page-template-front-page .scenarios-accordion-item.scenarios-accordion-active {
    flex: 5 0 auto;
}

.home .scenarios-accordion-link,
.page-template-front-page .scenarios-accordion-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px 16px;
    box-sizing: border-box;
}

.home .scenarios-accordion-title,
.page-template-front-page .scenarios-accordion-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: underline double;
    text-underline-offset: 6px;
    line-height: 1.5;
    text-shadow: 0 0.08em 0.08em rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
    margin: 0;
    opacity: 0;
    transform: translateX(18%);
    white-space: nowrap;
    transition: opacity 0.38s ease, transform 0.38s ease;
}
.home .scenarios-accordion-item.scenarios-accordion-active .scenarios-accordion-title,
.page-template-front-page .scenarios-accordion-item.scenarios-accordion-active .scenarios-accordion-title {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.38s;
}

.home .scenarios-accordion-item:hover .scenarios-accordion-title,
.page-template-front-page .scenarios-accordion-item:hover .scenarios-accordion-title {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .home .scenarios-accordion,
    .page-template-front-page .scenarios-accordion {
        height: auto;
        flex-direction: column;
    }
    .home .scenarios-accordion-item,
    .page-template-front-page .scenarios-accordion-item {
        min-height: 160px;
    }
    .home .scenarios-accordion-item.scenarios-accordion-active,
    .page-template-front-page .scenarios-accordion-item.scenarios-accordion-active {
        flex: 2 0 auto;
    }
    .home .scenarios-accordion-title,
    .page-template-front-page .scenarios-accordion-title {
        opacity: 1;
        transform: none;
    }
}

/* News Section */
.home .news-section,
.page-template-front-page .news-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #16224a 0%, #101c3a 50%, #16224a 100%);
    position: relative;
}

.home .news-section::before,
.page-template-front-page .news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 160, 255, 0.28), transparent);
}

.home .news-section .section-header h2,
.page-template-front-page .news-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.home .news-section .section-subtitle,
.page-template-front-page .news-section .section-subtitle {
    color: #1f8cff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home .news-section .section-header > p,
.page-template-front-page .news-section .section-header > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.home .news-card,
.page-template-front-page .news-card {
    background: linear-gradient(145deg, rgba(34, 46, 82, 0.7), rgba(24, 36, 70, 0.85));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.home .news-card::before,
.page-template-front-page .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 160, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home .news-card:hover,
.page-template-front-page .news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(56, 160, 255, 0.28), 0 0 40px rgba(0, 102, 255, 0.1);
    border-color: rgba(255,255,255,0.14);
}

.home .news-card:hover::before,
.page-template-front-page .news-card:hover::before {
    opacity: 1;
}

.home .news-card h3,
.page-template-front-page .news-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.home .news-card h3 a,
.page-template-front-page .news-card h3 a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.home .news-card h3 a:hover,
.page-template-front-page .news-card h3 a:hover {
    color: #1f8cff;
}

.home .news-card .news-date,
.page-template-front-page .news-card .news-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.home .news-card .news-card-excerpt,
.page-template-front-page .news-card .news-card-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.home .news-card .news-card-meta span,
.page-template-front-page .news-card .news-card-meta span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.home .news-card .product-card-link,
.page-template-front-page .news-card .product-card-link {
    color: #1f8cff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Section */
.home .cta-section,
.page-template-front-page .cta-section {
    padding: 8rem 0;
    background: #121f40;
}

.home .cta-section h2,
.page-template-front-page .cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.home .cta-section p,
.page-template-front-page .cta-section p {
    color: #b9c9ef;
    font-size: 1.1rem;
}

.home .cta-section .btn-primary,
.page-template-front-page .cta-section .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home .cta-section .btn-primary:hover,
.page-template-front-page .cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .home .hero-title,
    .page-template-front-page .hero-title {
        font-size: 2.5rem;
    }
    
    .home .hero-description,
    .page-template-front-page .hero-description {
        font-size: 1rem;
    }
    
    .home .products-section .section-header h2,
    .page-template-front-page .products-section .section-header h2,
    .home .applications-section .section-header h2,
    .page-template-front-page .applications-section .section-header h2,
    .home .news-section .section-header h2,
    .page-template-front-page .news-section .section-header h2,
    .home .cta-section h2,
    .page-template-front-page .cta-section h2 {
        font-size: 2rem;
    }
    
    .home .hero-arrow,
    .page-template-front-page .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .home .hero-arrow.prev,
    .page-template-front-page .hero-arrow.prev {
        left: 20px;
    }
    
    .home .hero-arrow.next,
    .page-template-front-page .hero-arrow.next {
        right: 20px;
    }
}

/* Products Mega Menu */
.products-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 30, 64, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 40px 0;
}

.products-mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Pure-CSS fallback: open mega menu on Products link hover, no JS required. */
.site-header:has(.main-navigation li.menu-item-has-mega:hover) .products-mega-menu,
.site-header:has(.main-navigation li.menu-item-has-mega:focus-within) .products-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mega-menu-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 200px 1fr 350px;
    gap: 60px;
}

/* Categories */
.mega-menu-categories {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 40px;
}

.mega-menu-categories .category-title {
    color: #1f8cff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-menu-categories .category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.mega-menu-categories .category-list li {
    margin-bottom: 16px;
}

.mega-menu-categories .category-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.mega-menu-categories .category-list a:hover {
    color: #ffffff;
    padding-left: 12px;
}

.mega-menu-categories .view-all-btn {
    display: inline-block;
    color: #ffffff;
    background: #1f8cff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mega-menu-categories .view-all-btn:hover {
    background: #0f74e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 160, 255, 0.5);
}

/* Product Grid */
.mega-menu-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-content: start;
}

.mega-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-product-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

.mega-product-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mega-product-item .product-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    border-radius: 8px;
    margin-bottom: 12px;
}

.mega-product-item .product-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Featured Product */
.mega-menu-featured {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mega-menu-featured .featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.mega-menu-featured .featured-title {
    color: #1f8cff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.mega-menu-featured .featured-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Keep mega menu visible while hovering the panel (trigger handled by JS on Products item only) */
.products-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
