/* ========================================
   Products Page Styles - Enhanced
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--secondary-white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%231a7a4f" d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" opacity=".25"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.page-breadcrumb {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition-normal);
}

.page-breadcrumb a:hover {
    color: var(--secondary-white);
}

/* Intro Section */
.products-intro {
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-icon {
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Categories Section */
.categories-section {
    background-color: var(--secondary-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: var(--spacing-sm) auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.category-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--secondary-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-xs);
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Products Section */
.products-section {
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Product Card */
.product-card {
    background-color: var(--secondary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: block;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-green);
    color: var(--secondary-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-badge {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image,
.product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image,
.product-card:hover .product-video {
    transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(22, 94, 63, 0.95) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.product-card:hover .product-overlay-content {
    transform: translateY(0);
}

.product-icon {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.overlay-text {
    display: block;
    color: var(--secondary-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Content */
.product-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Video Card Styles */
.video-card {
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.video-card:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 1200px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background-color: transparent;
    color: var(--secondary-white);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

#modalVideo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Partners Section */
.partners-section {
    background-color: var(--secondary-white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--secondary-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%231a7a4f" d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" opacity=".25"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-icon {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.btn-primary-large {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-large:hover {
    background-color: var(--secondary-white);
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Staggered Animation Delays */
.animate-fade-in {
    animation-delay: 0s;
}

.animate-fade-in-delay {
    animation-delay: 0.1s;
}

.animate-fade-in-delay-2 {
    animation-delay: 0.2s;
}

.animate-fade-in-delay-3 {
    animation-delay: 0.3s;
}

.animate-fade-in-delay-4 {
    animation-delay: 0.4s;
}

.animate-fade-in-delay-5 {
    animation-delay: 0.5s;
}

/* Responsive */
@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .intro-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .page-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .intro-title {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
    }
    
    .product-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
}

/* Utilities */
.bg-light {
    background-color: #f8f9fa;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}