/* ESD Stick Page Specific Styles */

/* Hero Section */
.esd-stick-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.esd-stick-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../assets/images/patterns/circuit-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.esd-stick-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.esd-stick-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quick Stats */
.quick-stats {
    padding: 40px 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* Categories Section - UPDATED FOR CENTER ALIGNMENT */
.categories {
    padding: 80px 0;
    background: var(--light-color);
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    min-width: 350px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.category-card p {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.category-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.category-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.category-features i {
    color: var(--success-color);
}

/* Product Category Sections */


.product-category:nth-child(even) {
    background: var(--light-color);
}

.category-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

.category-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    line-height: 1.6;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px 0;
}

.product-header {
    margin-bottom: 25px;
}

.product-category {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;

    /* Add these lines */
    display: block;
    margin: 0 auto;
    text-align: center;
}

.product-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: var(--gray-color);
    font-weight: 500;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.product-features i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.product-specs {
    margin-bottom: 40px;
}

.product-specs h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-label {
    font-weight: 600;
    color: var(--dark-color);
}

.spec-value {
    color: var(--gray-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Applications Section */
.applications {
    padding: 80px 0;
    background: white;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.application-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: white;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.app-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.application-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.application-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .esd-stick-hero h1 {
        font-size: 2.8rem;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .esd-stick-hero {
        padding: 80px 0 60px;
    }
    
    .esd-stick-hero h1 {
        font-size: 2.3rem;
    }
    
    .esd-stick-hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Updated for mobile categories */
    .categories-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .category-card {
        min-width: 300px;
        max-width: 100%;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .image-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile categories adjustments */
    .category-card {
        min-width: 280px;
        padding: 30px 20px;
    }
}

/* Additional CSS for new sections */
.product-comparison {
    background-color: var(--light-color);
    padding: 50px 0;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.benefits {
    padding: 50px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: white;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.benefit-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

.faq {
    padding: 50px 0;
    background: var(--light-color);
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--gray-color);
    line-height: 1.6;
}

.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta .btn-primary:hover {
    background: transparent;
    color: white;
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta .btn {
        width: 100%;
        max-width: 300px;
    }
	
}

/* FIXED: Mobile Menu Toggle Button Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* FIXED: Mobile Menu Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        text-align: left;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 20px 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        display: flex;
        padding: 15px 25px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        padding: 15px 25px;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-toggle::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: var(--transition);
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        display: none;
        width: 100%;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
    }
    
    .dropdown-menu li a {
        padding: 12px 25px 12px 40px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-cta {
        margin: 15px 25px 0;
        justify-content: center;
        text-align: center;
    }
}

/* FIXED: Ensure menu is hidden on desktop */
@media (min-width: 993px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
}