/* products_custom.css - Premium Styles for Products Page */

/* ================================================ */
/* NAVBAR FIX: Transparent Overlay                 */
/* ================================================ */

/* Ensure defaults match index.html behavior */
.navbar {
    position: fixed !important;
    /* Force fixed to stay on top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
    background: transparent !important;
    /* Start transparent */
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: #ffffff !important;
    /* Solid green on scroll */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================ */
/* HERO: Centered Impact Design (Premium)          */
/* ================================================ */

.products-hero-centered {
    position: relative;
    min-height: 100vh;
    /* Comfortable height like contact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    /* No negative margin needed with fixed nav */
    color: #fff;
    padding-top: 0;
}

/* Background Image with Heavy Overlay */
.hero-bg-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(17, 62, 45, 0.7), rgba(17, 62, 45, 0.5));
    /* Dark Green Overlay */
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    /* Slight zoom for parallax */
}

/* Centered Content */
.hero-content-centered {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 24px;
    margin-top: 60px;
    /* Offset for navbar visual balance */
}

.hero-eyebrow-center {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FDB913;
    margin-bottom: 28px;
    opacity: 0.9;
}

.hero-title-center {
    font-size: clamp(29px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 40px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-title-center span {
    color: #fff;
    /* Keep white for semantic highlight */
    position: relative;
    display: inline-block;
}

.hero-title-center span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(253, 185, 19, 0.3);
    /* Gold underline */
    z-index: -1;
}

.hero-desc-center {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
    margin: 0 auto 48px;
}

.hero-actions-center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Specific Hero Buttons */
.btn-hero-solid {
    background: #FDB913;
    color: #113e2d;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero-solid:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-border {
    background: transparent;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-border:hover {
    background: #fff;
    color: #113e2d;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ================================================ */
/* SECTION: Philosophy  - Mastery Focus             */
/* ================================================ */

.philosophy-section {
    padding: 100px 0;
    background: #fff;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-image-col .img-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.philosophy-image-col .img-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.philosophy-content-col .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FDB913;
    margin-bottom: 16px;
}

.philosophy-content-col .section-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: #113e2d;
    line-height: 1.3;
    margin-bottom: 20px;
}

.philosophy-content-col .lead-text {
    font-size: 18px;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 16px;
    font-weight: 500;
}

.philosophy-content-col p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* ================================================ */
/* SECTION: Product Catalog - Tabbed Grid           */
/* ================================================ */

.products-catalog-section {
    padding: 100px 0;
    background: #f5f7f3;
}

.section-header {
    margin-bottom: 48px;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FDB913;
    margin-bottom: 12px;
}

.section-header .section-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: #113e2d;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: #4a5568;
    max-width: 700px;
    line-height: 1.7;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center p {
    margin: 0 auto;
}

/* Catalog Tabs */
.catalog-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.catalog-tab {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #113e2d;
    background: transparent;
    color: #113e2d;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalog-tab:hover,
.catalog-tab.active {
    background: #113e2d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 62, 45, 0.2);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(17, 62, 45, 0.12);
    border-color: #113e2d;
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    background: #f8faf7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FDB913;
    color: #113e2d;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #113e2d;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-body p {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 16px;
    flex: 1;
}

.product-specs {
    display: inline-table;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.spec-tag {
    font-size: 12px;
    background: #f5f7f3;
    color: #113e2d;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-features li {
    font-size: 13px;
    color: #4a5568;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #113e2d;
    font-weight: 700;
}

.product-body .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ================================================ */
/* SECTION: Quality Specifications Table            */
/* ================================================ */

.quality-specs-section {
    padding: 100px 0;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.specs-table-wrapper {
    margin-top: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table thead {
    background: linear-gradient(135deg, #113e2d 0%, #0d2e21 100%);
}

.specs-table th {
    padding: 20px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.specs-table tbody tr:hover {
    background: #f8faf7;
}

.specs-table tbody tr:nth-child(even) {
    background: #f5f7f3;
}

.specs-table tbody tr:nth-child(even):hover {
    background: #f0f2ee;
}

.specs-table td {
    padding: 18px 24px;
    font-size: 14px;
    color: #4a5568;
}

.specs-table tbody td:first-child {
    font-weight: 600;
    color: #2d3748;
}

.specs-table .highlight-val {
    color: #113e2d;
    font-weight: 600;
}

/* ================================================ */
/* SECTION: Private Labeling - Sticky Scroll        */
/* ================================================ */

.private-label-section {
    padding: 100px 0;
    background: #f5f7f3;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 500px;
}

.sticky-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.sticky-content {
    position: sticky;
    top: 120px;
    max-width: 500px;
}

.sticky-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.sticky-content .btn {
    margin-top: 24px;
}

/* Extra Content Styling */
.sticky-content-extra {
    margin-top: 24px;
    margin-bottom: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.sticky-content-extra h4 {
    font-size: 16px;
    font-weight: 600;
    color: #113e2d;
    margin-bottom: 12px;
}

.feature-list-sm {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.feature-list-sm li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4a5568;
}

.feature-list-sm li span {
    position: absolute;
    left: 0;
    color: #FDB913;
    font-weight: bold;
}

.text-sm {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
}

.sticky-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sticky-step-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 200px 1fr;
    transition: all 0.4s ease;
}

.sticky-step-card:hover {
    box-shadow: 0 12px 32px rgba(17, 62, 45, 0.1);
    transform: translateX(8px);
}

.step-img-wrapper {
    background: #f5f7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.step-img-wrapper img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.step-body {
    padding: 28px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -12px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #FDB913;
    color: #113e2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
}

.step-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #113e2d;
    margin-bottom: 12px;
}

.step-body p {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* ================================================ */
/* SECTION: Packaging Options Grid                  */
/* ================================================ */

.packaging-section {
    padding: 100px 0;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px;
}

.packaging-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.packaging-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.packaging-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(17, 62, 45, 0.1);
    border-color: #113e2d;
}

.pack-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pack-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.packaging-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #113e2d;
    margin-bottom: 12px;
}

.packaging-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* ================================================ */
/* SECTION: Final CTA - Angled Dark                 */
/* ================================================ */

.final-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #113e2d 0%, #0d2e21 100%);
    text-align: center;
    position: relative;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
}

.final-cta-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.final-cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.final-cta-section .btn {
    box-shadow: 0 8px 24px rgba(253, 185, 19, 0.4);
}

.final-cta-section .btn:hover {
    box-shadow: 0 12px 32px rgba(253, 185, 19, 0.5);
}

/* ================================================ */
/* SECTION EXTRA VISIBILITY SAFEGUARDS             */
/* ================================================ */

.section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================================ */
/* RESPONSIVE: Products Page                        */
/* ================================================ */

@media (max-width: 900px) {
    .products-hero-centered {
        height: 100vh !important;
        min-height: 100vh !important;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Sticky layout becomes stacked */
    .sticky-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sticky-content {
        position: relative;
        top: 0;
        max-width: 100%;
    }

    .sticky-step-card {
        grid-template-columns: 1fr;
    }

    /* Packaging grid - 2 columns */
    .packaging-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Specs table scrollable */
    .specs-table-wrapper {
        overflow-x: auto;
    }

    .specs-table {
        min-width: 600px;
    }
}

@media (max-width: 600px) {
    .hero-title-center {
        font-size: 36px;
    }

    .hero-actions-center {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-solid,
    .btn-hero-border {
        width: 100%;
        max-width: 280px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .catalog-tabs {
        gap: 8px;
    }

    .catalog-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    .philosophy-image-col .img-box img {
        height: 300px;
    }

    /* Packaging grid - 1 column */
    .packaging-grid {
        grid-template-columns: 1fr;
    }

    /* Final CTA less angled on mobile */
    .final-cta-section {
        clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
    }

    .final-cta-section h2 {
        font-size: 28px;
    }
}

/* ================================================ */
/* COMPONENT: Product Image Carousel                */
/* ================================================ */

.product-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: inherit;
    /* inherit from parent if needed */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    /* Transition will be handled by JS for infinite loop effect, 
       but we can set a default here or let JS handle it inline */
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    /* Each slide takes full width of container */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Ensure images retain existing logic within slide */
.carousel-slide img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
    /* Keep hover zoom effect */
}

/* Maintain hover effect on the specific image inside the slide */
.product-card:hover .carousel-slide img {
    transform: scale(1.05);
}
