/* LED Products Page Styles */
/* Mega Menu & Product Display Styles */

/* ===========================
   Simple Dropdown Menu Styles
   =========================== */

.led-simple-menu {
    min-width: 320px;
    padding: 10px 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 112, 74, 0.1);
    overflow: hidden;
    margin-top: 10px;
    background: white;
}

.led-simple-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--green-gradient);
}

.led-simple-menu .dropdown-item {
    padding: 12px 20px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.led-simple-menu .dropdown-item:hover {
    background: rgba(0, 112, 74, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 28px;
}

.led-simple-menu .dropdown-item:active,
.led-simple-menu .dropdown-item.active {
    background: rgba(0, 112, 74, 0.12);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Dropdown toggle arrow animation */
.navbar-nav .dropdown-toggle::after {
    border: none;
    margin-left: 0.5rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f107';
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ===========================
   Page Hero Section
   =========================== */

.page-hero {
    background: linear-gradient(135deg, rgba(30, 57, 50, 0.95), rgba(20, 41, 35, 0.95)),
                url('LED/outdoor.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.page-hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--accent-color);
}

.breadcrumb-nav .separator {
    font-size: 0.75rem;
}

.breadcrumb-nav .current {
    color: var(--accent-color);
    font-weight: 500;
}

.min-vh-50 {
    min-height: 50vh;
}

/* ===========================
   Products Section
   =========================== */

.products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 112, 74, 0.05);
    scroll-margin-top: 100px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 112, 74, 0.2);
    border-color: rgba(0, 112, 74, 0.2);
}

.product-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.15);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 57, 50, 0.85), rgba(20, 41, 35, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .overlay-content {
    transform: translateY(0);
}

.btn-view-details {
    background: white;
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-badge i {
    color: var(--primary-color);
}

.product-badge.new {
    background: linear-gradient(135deg, #00704A, #1e8c5e);
    color: white;
}

.product-badge.new i {
    color: white;
}

.product-badge.hot {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.product-badge.hot i {
    color: white;
}

.product-badge.premium {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.product-badge.premium i {
    color: white;
}

.product-badge.unique {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
}

.product-badge.unique i {
    color: white;
}

.product-content {
    padding: 30px;
}

.product-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-title i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.product-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.product-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(0, 112, 74, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 112, 74, 0.15);
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   Why Choose Us Section
   =========================== */

.why-choose-section {
    padding: 80px 0;
}

.feature-box {
    background: white;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 112, 74, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 112, 74, 0.15);
    border-color: rgba(0, 112, 74, 0.2);
}

.feature-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 112, 74, 0.1), rgba(0, 112, 74, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
    background: var(--green-gradient);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrapper i {
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper i {
    color: white;
}

.feature-box h4 {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    background: var(--dark-gradient),
                url('LED/outdoor.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section .btn {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ===========================
   Product Modal
   =========================== */

#productModal .modal-content {
    border-radius: 24px;
    overflow: hidden;
}

#productModal .modal-header {
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#productModal .modal-title {
    color: white;
    font-weight: 600;
}

.modal-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
}

.modal-product-specs {
    background: rgba(0, 112, 74, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
}

.modal-product-specs h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-item i {
    color: var(--primary-color);
    width: 20px;
}

.spec-item span {
    color: #555;
    font-size: 0.95rem;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1199px) {
    .led-simple-menu {
        min-width: 280px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 991px) {
    .led-simple-menu {
        min-width: 250px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .led-mega-menu {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .mega-menu-content {
        padding: 15px;
    }
    
    .menu-item-image {
        height: 100px;
    }
    
    .menu-item-info {
        padding: 12px;
    }
    
    .menu-item-info h6 {
        font-size: 0.85rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* ===========================
   Smooth Scroll Behavior
   =========================== */

html {
    scroll-behavior: smooth;
}

/* Scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
}

/* ===========================
   Animation Enhancements
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for images */
.product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-image.loaded {
    animation: none;
    background: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover glow effect */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 2px transparent;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover::after {
    box-shadow: inset 0 0 0 2px rgba(0, 112, 74, 0.2);
}
