/* Products Hero */
.products-hero {
    background: url("../assets/images/hero/hero2.jpg") center/cover no-repeat;
    color: #FFD700; /* 🌟 Golden Text Color */
    padding: 250px 0 500px;
    text-align: center;
    margin-top: 0;
}

.products-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #FFD700; /* heading golden */
}

.products-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    color: #FFE87C; /* slightly lighter golden for paragraph */
}

/* 📱 Mobile View Fix */
@media (max-width: 768px) {
    .products-hero {
        padding: 100px 20px 60px;
        margin-top: 0 !important;
    }

    .products-hero h1 {
        font-size: 2.2rem;
    }

    .products-hero p {
        font-size: 1rem;
    }
}


/* Category Filter */
.category-filter {
    background: var(--light);
    padding: 40px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--primary);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Products Grid Section */
.products-grid-section {
    padding: 60px 0;
    background: var(--white);
}

/* Categories Grid View */
.categories-grid-view {
    padding: 20px 0;
}

.categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.categories-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.categories-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::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.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #2a4bad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.category-content p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-count {
    background: var(--light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-arrow {
    color: var(--gray);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
    color: var(--accent);
}

/* Products View */
.products-view-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light);
}

.back-to-categories-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-to-categories-btn:hover {
    background: var(--primary-dark);
    transform: translateX(-3px);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.category-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.category-title-section i {
    font-size: 3rem;
    color: var(--primary);
    background: var(--light);
    padding: 20px;
    border-radius: 15px;
}

.category-title-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.category-title-section p {
    color: var(--gray);
    font-size: 1.1rem;
    margin: 0;
}

.category-summary {
    text-align: right;
}

.product-count-badge {
    background: var(--accent);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 250px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 20px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 143, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.image-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
     line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features-list {
    margin-bottom: 20px;
}

.product-features-list h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.product-feature {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.product-feature i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.8rem;
    min-width: 16px;
}

.product-technical {
    margin: 15px 0;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.product-technical h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.tech-spec {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.tech-spec i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.8rem;
    min-width: 16px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
}

.whatsapp-btn:hover {
    background: #128C7E;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-info {
    padding: 40px;
}

.modal-info .product-category {
    font-size: 0.8rem;
}

.modal-info .product-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-info .product-description {
    font-size: 1rem;
    line-clamp: unset;

}

.product-features,
.product-specs {
    margin: 25px 0;
}

.product-features h4,
.product-specs h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-list,
.specs-list {
    list-style: none;
    padding: 0;
}

.features-list li,
.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.features-list li:before,
.specs-list li:before {
    content: '✓';
    color: var(--accent);
    margin-right: 10px;
    font-weight: bold;
}

.modal-info .product-actions {
    margin-top: 30px;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 4rem;
    color: var(--light);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.no-products p {
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        padding: 30px;
    }
    
    .modal-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 150px 0 80px;
    }
    
    .products-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.5rem;
    }
    
    .category-info {
        flex-direction: column;
        text-align: center;
    }
    
    .category-title-section {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        max-height: 95vh;
    }
    
    .modal-info {
        padding: 25px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
}