/* Products Page Specific Styles */

/* Products Hero Section */
.products-hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.products-hero .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.products-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.products-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 100%;
}

.products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 42, 34, 0.68), rgba(45, 90, 74, 0.72));
    z-index: 2;
    min-height: 100%;
}

.products-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    width: 100%;
    padding: 2rem 1.5rem;
    margin: 0 auto;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.products-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.products-hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2.5rem;
}

.products-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--highlight);
    font-family: var(--heading-font);
}

.hero-stat-label {
    font-size: 0.95rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Introduction Section */
.products-intro-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
}

.products-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    padding: 1.8rem 1.7rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(45, 90, 74, 0.1);
    box-shadow: 0 14px 28px rgba(20, 42, 34, 0.08);
}

.products-intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.products-intro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Product Categories Section */
.product-categories-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #f2f8f4 0%, #edf5f1 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: linear-gradient(165deg, #ffffff, #f3f8f5);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 14px 28px rgba(20, 42, 34, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(45, 90, 74, 0.1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 36px rgba(20, 42, 34, 0.16);
    border-color: rgba(247, 195, 95, 0.55);
}

.category-icon {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.category-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.category-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Products Catalogue Section */
.products-catalogue-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: linear-gradient(170deg, #ffffff, #f3f8f5);
    border-radius: 1.15rem;
    border: 1px solid rgba(45, 90, 74, 0.12);
    box-shadow: 0 16px 30px rgba(20, 42, 34, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 38px rgba(20, 42, 34, 0.16);
    border-color: rgba(247, 195, 95, 0.58);
}

.product-detail-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.product-detail-card.reverse .product-detail-image {
    order: 2;
}

.product-detail-card.reverse .product-detail-content {
    order: 1;
}

.product-detail-image {
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(20, 42, 34, 0.14);
    height: 100%;
    min-height: 400px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.product-detail-card:hover .product-detail-image img {
    transform: scale(1.05);
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #f7c35f, #ffd988);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-detail-content h3 {
    font-size: 2.25rem;
    margin-bottom: 0.3rem;
    color: var(--primary-green);
}

.product-scientific-name {
    font-style: italic;
    color: var(--secondary-green);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.45rem;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.78rem;
    border: 1px solid rgba(45, 90, 74, 0.12);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.78);
}

.spec-item:last-child {
    padding: 0.7rem 0.78rem;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    color: var(--text-color);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Quality Assurance Section */
.quality-assurance-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.quality-assurance-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quality-assurance-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.quality-assurance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 90, 74, 0.85), rgba(45, 90, 74, 0.9));
    z-index: 2;
}

.quality-assurance-section .container {
    position: relative;
    z-index: 3;
}

.quality-assurance-section .section-header h2 {
    color: var(--white);
}

.quality-assurance-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.quality-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background-color: var(--white);
}

.quality-icon {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.quality-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.quality-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Products CTA Section */
.products-cta-section {
    padding: var(--section-padding);
    background-color: var(--neutral-light);
}

.products-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.products-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.products-cta-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.products-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Product image lightbox */
.products-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 13, 0.9);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.products-image-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 90vh;
    border-radius: 0.8rem;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

.products-image-lightbox-close {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.products-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.products-image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.products-image-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.products-image-lightbox-nav.prev {
    left: 16px;
}

.products-image-lightbox-nav.next {
    right: 16px;
}

.hidden {
    display: none !important;
}

body.lightbox-open {
    overflow: hidden;
}

/* Responsive Styles for Products Page */
@media (min-width: 1200px) {
    .products-hero-content {
        margin-left: 120px;
        margin-right: auto;
    }
}

@media (max-width: 1200px) {
    .products-hero-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .products-hero-title {
        font-size: 3rem;
    }
    
    .product-detail-card {
        gap: 3rem;
        padding: 2.5rem;
    }
}

@media (max-width: 991px) {
    .products-hero {
        height: auto;
        min-height: 65vh;
        padding: 90px 0 2rem 0;
        overflow: visible;
    }
    
    .products-hero-background,
    .products-hero-overlay {
        min-height: 100%;
        height: 100%;
    }
    
    .products-hero .container {
        padding: 0 1.5rem;
        height: auto;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .products-hero-content {
        margin: 0 auto;
        padding: 1.5rem 1rem;
        width: 100%;
    }
    
    .products-hero-title {
        font-size: 2.5rem;
    }
    
    .products-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-hero-stats {
        gap: 2rem;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .products-intro-content h2 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-card {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
        padding: 2rem;
    }
    
    /* Ensure all product cards have image first, content second on mobile */
    .product-detail-card .product-detail-image {
        order: 1 !important;
    }
    
    .product-detail-card .product-detail-content {
        order: 2 !important;
    }
    
    /* Override reverse class on mobile to maintain consistent layout */
    .product-detail-card.reverse .product-detail-image {
        order: 1 !important;
    }
    
    .product-detail-card.reverse .product-detail-content {
        order: 2 !important;
    }
    
    .product-detail-image {
        min-height: 300px;
    }
    
    .product-detail-content h3 {
        font-size: 2rem;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .products-hero {
        height: auto;
        min-height: 50vh;
        padding: 80px 0 2rem 0;
        overflow: visible;
    }
    
    .products-hero-background,
    .products-hero-overlay {
        min-height: 100%;
        height: 100%;
    }
    
    .products-hero .container {
        padding: 0 1rem;
        height: auto;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .products-hero-content {
        margin: 0 auto;
        padding: 1.5rem 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .products-hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .products-hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }
    
    .products-hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-stat {
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-stat-label {
        font-size: 0.85rem;
        line-height: 1.3;
        word-wrap: break-word;
        text-align: center;
    }
    
    .products-intro-section {
        padding: 3rem 0;
    }
    
    .products-intro-content h2 {
        font-size: 1.75rem;
    }

    .products-intro-content {
        padding: 1.35rem 1.1rem;
    }
    
    .products-intro-content p {
        font-size: 1rem;
    }
    
    .product-categories-section {
        padding: 3rem 0;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .category-card h3 {
        font-size: 1.5rem;
    }
    
    .products-catalogue-section {
        padding: 3rem 0;
    }
    
    .product-detail-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    /* Ensure consistent image-first layout on mobile */
    .product-detail-card .product-detail-image {
        order: 1 !important;
    }
    
    .product-detail-card .product-detail-content {
        order: 2 !important;
    }
    
    .product-detail-card.reverse .product-detail-image {
        order: 1 !important;
    }
    
    .product-detail-card.reverse .product-detail-content {
        order: 2 !important;
    }
    
    .product-detail-image {
        min-height: 250px;
    }
    
    .product-detail-content h3 {
        font-size: 1.75rem;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    .spec-label,
    .spec-value {
        font-size: 0.9rem;
    }
    
    .quality-assurance-section {
        padding: 3rem 0;
    }
    
    .quality-card {
        padding: 2rem;
    }
    
    .products-cta-section {
        padding: 3rem 0;
    }
    
    .products-cta-content h2 {
        font-size: 1.75rem;
    }
    
    .products-cta-content p {
        font-size: 1rem;
    }
    
    .products-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .products-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .products-hero {
        height: auto;
        min-height: 45vh;
        padding: 70px 0 1.5rem 0;
        overflow: visible;
    }
    
    .products-hero-background,
    .products-hero-overlay {
        min-height: 100%;
        height: 100%;
    }
    
    .products-hero .container {
        padding: 0 0.75rem;
        height: auto;
        align-items: flex-start;
        padding-top: 1.5rem;
    }
    
    .products-hero-content {
        margin: 0 auto;
        padding: 1rem 0.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .products-hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }
    
    .products-hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
        word-wrap: break-word;
    }
    
    .products-hero-stats {
        gap: 1rem;
        flex-direction: column;
        margin-top: 1rem;
        padding: 0;
        width: 100%;
    }
    
    .hero-stat {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        text-align: center;
    }
    
    .products-intro-section {
        padding: 2.5rem 0;
    }
    
    .products-intro-content h2 {
        font-size: 1.5rem;
    }

    .products-intro-content {
        padding: 1.1rem 0.95rem;
    }
    
    .products-intro-content p {
        font-size: 0.95rem;
    }
    
    .product-categories-section {
        padding: 2.5rem 0;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.25rem;
    }
    
    .products-catalogue-section {
        padding: 2.5rem 0;
    }
    
    .product-detail-card {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    /* Ensure consistent image-first layout on small mobile */
    .product-detail-card .product-detail-image {
        order: 1 !important;
    }
    
    .product-detail-card .product-detail-content {
        order: 2 !important;
    }
    
    .product-detail-card.reverse .product-detail-image {
        order: 1 !important;
    }
    
    .product-detail-card.reverse .product-detail-content {
        order: 2 !important;
    }
    
    .product-detail-image {
        min-height: 200px;
    }
    
    .product-detail-content h3 {
        font-size: 1.5rem;
    }
    
    .product-scientific-name {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.95rem;
    }
    
    .spec-item {
        padding-bottom: 0.75rem;
    }
    
    .spec-label,
    .spec-value {
        font-size: 0.85rem;
    }
    
    .quality-assurance-section {
        padding: 2.5rem 0;
    }
    
    .quality-card {
        padding: 1.5rem;
    }
    
    .quality-card h3 {
        font-size: 1.25rem;
    }
    
    .products-cta-section {
        padding: 2.5rem 0;
    }
    
    .products-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .products-cta-content p {
        font-size: 0.95rem;
    }
}


