/* ============================================
   Lopou Hair Care – Size & Length Chart
   chart.css  v1.0.0
   ============================================ */

.lopou-chart-wrapper {
    font-family: Georgia, "Times New Roman", serif;
    background: #fdf8f4;
    border: 1.5px solid #c9a96e;
    border-radius: 12px;
    padding: 30px 28px 22px;
    margin: 36px auto;
    max-width: 820px;
    text-align: center;
}

/* Title */
.lopou-chart-title {
    text-align: center;
    font-size: 20px;
    letter-spacing: 2px;
    color: #2c1a0e;
    text-transform: uppercase;
    margin: 0 0 6px;
    font-weight: bold;
}

.lopou-chart-subtitle {
    text-align: center;
    font-size: 13px;
    color: #8a6a50;
    font-style: italic;
    margin: 0 0 16px;
}

.lopou-divider {
    border: none;
    border-top: 1.5px solid #c9a96e;
    margin: 0 0 20px;
}

/* Scroll wrapper for small screens */
.lopou-chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
}

/* Table */
.lopou-chart-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #c9a96e;
    border-radius: 8px;
    overflow: hidden;
    min-width: 460px;
}

/* Header */
.lopou-chart-table thead tr {
    background: #2c1a0e;
}

.lopou-chart-table thead th {
    padding: 14px 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    color: #c9a96e;
    border-right: 1px solid #5a3e2b;
}

.lopou-chart-table thead th.lopou-th-label {
    color: #fdf8f4;
    text-align: left;
    padding-left: 16px;
}

.lopou-chart-table thead th:last-child {
    border-right: none;
}

/* Body rows */
.lopou-chart-table tbody tr {
    border-top: 1px solid #c9a96e;
}

.lopou-chart-table tbody tr:nth-child(odd) {
    background: #fff9f3;
}

.lopou-chart-table tbody tr:nth-child(even) {
    background: #f5ece2;
}

/* Length label cell */
.lopou-length-label {
    padding: 14px 10px 14px 16px;
    text-align: left;
    border-right: 1px solid #c9a96e;
    background: #f0e4d4 !important;
    vertical-align: middle;
}

.lopou-label-main {
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: #2c1a0e;
}

.lopou-label-sub {
    display: block;
    font-size: 11px;
    color: #8a6a50;
    font-style: italic;
    margin-top: 2px;
}

/* Data cells */
.lopou-cell {
    padding: 14px 10px;
    text-align: center;
    border-right: 1px solid #c9a96e;
    vertical-align: middle;
}

.lopou-cell:last-child {
    border-right: none;
}

/* Standard badge (checkmark) */
.lopou-badge-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dfc9a8;
    border: 1.5px solid #b8864e;
    color: #3d2410;
    font-size: 16px;
    font-weight: bold;
}

/* Addon badge (+$20) */
.lopou-badge-addon {
    display: inline-block;
    background: #c9a96e;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    border-radius: 20px;
    padding: 5px 14px;
    letter-spacing: 0.5px;
}

.lopou-badge-dark {
    background: #8a4a2e;
}

/* Legend */
.lopou-legend {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.lopou-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5a3e2b;
}

.lopou-legend-dot {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
    flex-shrink: 0;
}

/* Note */
.lopou-chart-note {
    text-align: center;
    font-size: 12px;
    color: #b85c38;
    margin: 14px 0 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .lopou-chart-wrapper {
        padding: 20px 14px 16px;
    }
    .lopou-chart-title {
        font-size: 16px;
    }
    .lopou-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
