/* Happy Elephant - Unified Decarbo & Product Details Stylesheet
    Version: 1.0
    Placement: /products/css/decarbo.css
*/

/* --- GLOBAL SECTION WRAPPERS --- */

/* Restore italic for em tags (overrides reset.css which strips font-style) */
em { font-style: italic; }

#decarbo-section,
#laundry-liquid-details,
#decarbo-section *,
#laundry-liquid-details * {
    font-family: 'Roboto', sans-serif !important;
}

#decarbo-section,
#laundry-liquid-details {
    background: #fff;
    padding: 60px 0;
    line-height: 1.5;
    color: #333;
}

.product-detail-inn,
.decarbo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADINGS (#4e9e29) --- */
#decarbo-section h1,
#laundry-liquid-details h1 {
    color: #4e9e29;
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

#decarbo-section h2,
#laundry-liquid-details h2 {
    color: #4e9e29;
    font-size: 22px;
    margin: 40px 0 20px;
    text-align: center;
    font-weight: bold;
    /* border-bottom: 1px solid #4e9e29; */
    display: block;
    padding-bottom: 10px;
}

/* Specific overrides for Decarbo info headers which shouldn't have bottom borders */
#decarbo-content h2,
#decarbo-display h2 {
    border-bottom: none;
    text-align: left;
}

#laundry-liquid-details h3 {
    font-size: 18px;
    margin: 30px 0 15px;
    text-align: center;
    font-weight: bold;
}

/* --- DECARBO SCORE TABLES & COMPARISONS --- */
.decarbo-table-wrap,
.decarbo-display-area {
    max-width: 700px;
    margin: 40px auto;
}

.decarbo-table,
.decarbo-comparison-table {
    width: 100%;
    border: 2px solid #99bc71;
    border-collapse: collapse;
}

.decarbo-table th,
.decarbo-comparison-table th {
    background-color: #f2f8eb;
    padding: 18px;
    font-size: 15px;
    border-bottom: 1px solid #99bc71;
    text-align: center;
}

.decarbo-table td,
.decarbo-comparison-table td {
    padding: 25px;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
}

.decarbo-table td span,
.decarbo-comparison-table td span {
    font-size: 18px;
    font-weight: normal;
}

.decarbo-table td.brand-green,
.decarbo-table td.highlight,
.decarbo-comparison-table td.brand-green {
    color: #4e9e29;
}

.decarbo-arrow-center {
    text-align: center;
    padding: 25px 0;
}

.decarbo-arrow-center img {
    width: 350px;
    height: auto;
}

/* --- WASHING STEPS & INSTRUCTIONS --- */
.washing-step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.washing-step-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: bold;
}

.washing-step-list li::before {
    content: attr(data-step) ". ";
    position: absolute;
    left: 0;
    top: -5px;
    font-style: italic;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Tip / Point Rows */
.tip-row {
    margin-top: 8px;
    font-weight: normal;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tip-label {
    color: #4e9e29;
    font-weight: bold;
    margin-right: 10px;
}

.tip-icon {
    width: 25px !important;
    margin-right: 8px;
    height: auto;
    flex-shrink: 0;
}

/* Instruction Flex Layouts */
.step-visual-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 10px;
}

.step-visual-flex .step-content-text {
    flex: 1;
    font-weight: bold;
}

.step-visual-flex>img {
    width: 140px;
    flex-shrink: 0;
    height: auto;
}

/* --- PRODUCT ANNOUNCEMENT / NOTE BOXES --- */
.formula-note-box {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #4e9e29;
}

.formula-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.formula-img-placeholder {
    width: 320px;
    min-height: 200px;
    background: #f7f7f7;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* --- FOOTNOTES & LINKS --- */
.small-note {
    font-size: 12px;
    color: #777;
    margin-top: 12px;
    line-height: 1.4;
}

.btn-link {
    color: #4e9e29;
    text-decoration: underline;
    font-weight: bold;
    font-size: 16px;
}

/* --- LAUNDRY LIQUID SPECIFIC LAYOUT --- */
#laundry-liquid-details .middle-guide-area {
    margin: 40px 0;
}

/* --- BOXED LAYOUTS --- */
.delicate-check-box {
    background: #f2f8eb;
    padding: 20px 60px 60px 60px;
    margin-bottom: 50px;
    text-align: center;
}

/* --- BORDERED BOX LAYOUT (Fabric Tips) --- */
.delicate-border-box {
    border: 2px solid #4e9e29;
    background: transparent;
    /* No background as requested */
    padding: 40px 60px;
    margin-bottom: 50px;
    text-align: center;
}

.material-title {
    color: #4e9e29;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    border: none !important;
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Optional: Adds the small gray underline seen in the JP screenshot */
.material-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #ccc;
    margin: 10px auto 0;
}

.material-guide-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.material-card {
    flex: 1;
    text-align: center;
}

.material-card img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
    height: 180px;
    /* Ensures images don't push titles out of alignment */
    object-fit: contain;
}

.material-card h3 {
    color: #333;
    /* Darker text for the specific material names */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    min-height: 1.2em;
    /* Vertical baseline fix for titles */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.material-card p {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.color-test-flex {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.color-test-flex img {
    width: 180px;
    flex-shrink: 0;
}



/* --- CHECK FIRST ALIGNMENT --- */
.check-flex-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.ng-icons {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.ng-icons figure {
    text-align: center;
    font-size: 13px;
    /*  font-weight: bold; */
    margin: 0;
    width: 110px;
}

.ng-icons figure figcaption {
    min-height: 2.8em;
    /* Vertical baseline fix for icon labels */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ng-icons img {
    width: 100px;
    height: 80px;
    /* Fixed height for care icons */
    object-fit: contain;
    margin-bottom: 5px;
}

.ng-text {
    flex: 1;
    align-self: center;
}

.ng-text h3 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: bold;
}

.ng-text ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 15px;
    margin-top: 10px;
}

.check-flex-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    align-items: flex-start;
}

.status-item {
    flex: 1;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-item img {
    width: 110px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.status-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.status-item p {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {

    /* 1. Containers and Boxes padding */
    .delicate-check-box,
    .delicate-border-box {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    /* 2. Check First sections */
    .check-flex-top {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .ng-icons {
        justify-content: center;
        margin-top: 20px;
    }

    .check-flex-bottom {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .status-item {
        width: 100%;
        padding: 0;
    }

    /* 3. Color test flex */
    .color-test-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* 4. Fabric-Specific tips layout (stacked card layout like JP site) */
    .material-guide-grid {
        flex-direction: column;
        gap: 30px;
    }

    .material-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        width: 100%;
    }

    .material-card img {
        width: 90px;
        height: 90px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .material-card h3 {
        text-align: center;
        justify-content: center;
        margin-bottom: 5px;
        font-size: 16px;
    }

    #decarbo-content h2,
    #decarbo-display h2 {
        text-align: center !important;
    }

    .material-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* 5. Washing steps layouts */
    .step-visual-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .step-visual-flex>img {
        align-self: center;
    }

    /* 6. Product Announcement / Note Box */
    .formula-flex {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .formula-img-placeholder {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }

    .formula-img-placeholder img {
        max-width: 100%;
        height: auto;
    }
}