/* iGreen International - Custom Product Styles */

/* Tab Bar - Sticky horizontal scrollable category pills */
.igreen-tab-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.igreen-tab-bar a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.igreen-tab-bar a:hover,
.igreen-tab-bar a.active {
    background: #02a04c;
    color: #fff;
    border-color: #02a04c;
}

/* Product Card */
.igreen-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 20px;
}

.igreen-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #02a04c;
}

/* Buttons */
.igreen-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #02a04c;
    color: #fff;
    border: 2px solid #02a04c;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.igreen-btn:hover {
    background: #028a40;
    border-color: #028a40;
    color: #fff;
}

.igreen-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #02a04c;
    border: 2px solid #02a04c;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.igreen-btn-outline:hover {
    background: #02a04c;
    color: #fff;
}

/* Spec Table */
.igreen-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.igreen-spec-table th,
.igreen-spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.igreen-spec-table th {
    background: #02a04c;
    color: #fff;
    font-weight: 600;
}

.igreen-spec-table tr:nth-child(even) {
    background: #f8f9fa;
}

.igreen-spec-table tr:hover {
    background: #e8f5e9;
}

/* FAQ Accordion */
.igreen-faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.igreen-faq-question {
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.igreen-faq-question:hover {
    background: #e8f5e9;
}

.igreen-faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: #02a04c;
    transition: transform 0.3s ease;
}

.igreen-faq-item.active .igreen-faq-question::after {
    content: '-';
}

.igreen-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.igreen-faq-item.active .igreen-faq-answer {
    max-height: 500px;
    padding: 16px 20px;
}

/* Certification Badges Bar */
.igreen-cert-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.igreen-cert-bar img {
    max-height: 60px;
    width: auto;
}

/* Sticky CTA - Mobile Only */
.igreen-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .igreen-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        padding: 12px 16px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .igreen-sticky-cta .igreen-btn {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Badge Pills */
.igreen-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #02a04c;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 4px;
}

/* Product Detail Tabs */
.igreen-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 0;
}

.igreen-tabs a {
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.igreen-tabs a:hover,
.igreen-tabs a.active {
    color: #02a04c;
    border-bottom-color: #02a04c;
}

.igreen-tab-content {
    display: none;
    padding: 20px 0;
}

.igreen-tab-content.active {
    display: block;
}

/* Category Section Spacing */
.igreen-category-section {
    padding: 60px 0;
}

.igreen-category-section + .igreen-category-section {
    border-top: 1px solid #eee;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    .igreen-tab-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 15px;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .igreen-tab-bar::-webkit-scrollbar {
        display: none;
    }

    .igreen-tab-bar a {
        font-size: 13px;
        padding: 6px 14px;
    }

    .igreen-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .igreen-tabs::-webkit-scrollbar {
        display: none;
    }

    .igreen-tabs a {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .igreen-category-section {
        padding: 40px 0;
    }

    .igreen-product-card {
        padding: 15px;
    }
}
