/* ===================================
   MEASUREMENT PAGE — LITTLE OLLY'S
   Cream, sage, dusty rose, warm brown
   Quicksand display, Archivo body
   =================================== */

.losg-mp { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; font-family: 'Archivo', -apple-system, sans-serif; }
.losg-mp__header { text-align: center; margin-bottom: 36px; }
.losg-mp__title { font-family: 'Quicksand', sans-serif; font-size: 28px; font-weight: 700; color: #3D2E2E; margin: 0 0 8px; }
.losg-mp__sub { font-size: 14px; color: rgba(61,46,46,0.5); margin: 0; line-height: 1.6; }

/* Tabs */
.losg-mp__tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid #F0E8DF; }
.losg-mp__tab { padding: 12px 18px; font-family: 'Quicksand', sans-serif; font-size: 13px; font-weight: 500; color: rgba(61,46,46,0.4); background: none; border: none; cursor: pointer; position: relative; transition: color 0.25s ease; white-space: nowrap; }
.losg-mp__tab:hover { color: #3D2E2E; }
.losg-mp__tab.is-active { color: #3D2E2E; font-weight: 700; }
.losg-mp__tab.is-active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background: #8FA584; border-radius: 2px 2px 0 0; }

/* Panels */
.losg-mp__panel { display: none; }
.losg-mp__panel.is-visible { display: block; animation: losgFade 0.3s ease; }
@keyframes losgFade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* Garment selector */
.losg-mp__garment-label { font-size: 12px; color: rgba(61,46,46,0.5); margin-bottom: 10px; }
.losg-mp__garment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 28px; }
.losg-mp__garment-opt { padding: 12px 14px; border: 2px solid #F0E8DF; border-radius: 12px; text-align: center; cursor: pointer; font-family: 'Quicksand', sans-serif; font-size: 13px; font-weight: 600; color: rgba(61,46,46,0.5); background: #fff; transition: all 0.2s ease; }
.losg-mp__garment-opt:hover { border-color: #C98B8B; color: #3D2E2E; }
.losg-mp__garment-opt.is-selected { background: #3D2E2E; color: #FDF5EC; border-color: #3D2E2E; }

/* Empty state */
.losg-mp__empty { text-align: center; padding: 40px 20px; color: #ddd; font-size: 13px; }

/* Unit toggle */
.losg-mp__unit-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.losg-mp__unit-toggle { display: flex; gap: 0; border-radius: 24px; overflow: hidden; border: 2px solid #F0E8DF; }
.losg-mp__unit-btn { padding: 6px 16px; font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; border: none; background: #fff; color: rgba(61,46,46,0.4); transition: all 0.2s ease; }
.losg-mp__unit-btn.is-active { background: #8FA584; color: #fff; }
.losg-mp__field-count { font-size: 12px; color: #C98B8B; font-weight: 600; }

/* Section labels */
.losg-mp__section-label { font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8FA584; margin: 24px 0 10px; padding-top: 20px; border-top: 2px solid #F7F1EA; }
.losg-mp__section-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* Form grid */
.losg-mp__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.losg-mp__field { display: flex; flex-direction: column; gap: 4px; }
.losg-mp__field label { font-size: 12px; color: rgba(61,46,46,0.6); font-weight: 500; }
.losg-mp__field input { padding: 10px 14px; font-size: 14px; font-family: 'Archivo', sans-serif; border: 2px solid #F0E8DF; border-radius: 10px; background: #FDFAF7; color: #3D2E2E; transition: border-color 0.2s ease; }
.losg-mp__field input:focus { outline: none; border-color: #8FA584; }
.losg-mp__field input::placeholder { color: #ccc; font-size: 12px; }

/* Note */
.losg-mp__note-field { margin-top: 20px; }
.losg-mp__note-field label { display: block; font-size: 12px; color: rgba(61,46,46,0.6); font-weight: 500; margin-bottom: 4px; }
.losg-mp__note-field textarea { width: 100%; padding: 10px 14px; font-size: 14px; font-family: 'Archivo', sans-serif; border: 2px solid #F0E8DF; border-radius: 10px; background: #FDFAF7; color: #3D2E2E; resize: vertical; min-height: 80px; }
.losg-mp__note-field textarea:focus { outline: none; border-color: #8FA584; }

/* Info note */
.losg-mp__note { font-size: 12px; color: rgba(61,46,46,0.5); background: #FDFAF7; padding: 12px 14px; border-radius: 10px; margin-top: 20px; line-height: 1.6; border-left: 3px solid #F0C9A8; }

/* Submit */
.losg-mp__submit { display: block; width: 100%; padding: 14px; font-family: 'Quicksand', sans-serif; font-size: 14px; font-weight: 600; border: none; border-radius: 48px; cursor: pointer; margin-top: 24px; background: #3D2E2E; color: #FDF5EC; transition: background 0.3s ease, transform 0.2s ease; }
.losg-mp__submit:hover { background: #8FA584; transform: translateY(-1px); }
.losg-mp__submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Login prompt */
.losg-mp__login-prompt { font-size: 13px; color: rgba(61,46,46,0.5); text-align: center; padding: 20px; background: #FDFAF7; border-radius: 12px; margin-top: 20px; border: 2px dashed #F0E8DF; }
.losg-mp__login-prompt a { color: #C98B8B; font-weight: 600; }
.losg-mp__login-prompt p { margin: 0; }

/* Upload zone */
.losg-mp__upload-zone { border: 2px dashed #F0E8DF; border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.losg-mp__upload-zone:hover { border-color: #8FA584; background: #FDFAF7; }
.losg-mp__upload-title { font-family: 'Quicksand', sans-serif; font-size: 15px; font-weight: 600; color: #3D2E2E; margin: 0 0 4px; }
.losg-mp__upload-sub { font-size: 13px; color: rgba(61,46,46,0.4); margin: 0; }
.losg-mp__upload-formats { font-size: 11px; color: #ccc; margin-top: 10px; }

/* Assist cards */
.losg-mp__assist-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: #FDFAF7; border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease; border: 2px solid transparent; text-decoration: none; color: inherit; }
.losg-mp__assist-card:hover { background: #fff; border-color: #F0E8DF; box-shadow: 0 2px 10px rgba(61,46,46,0.06); }
.losg-mp__assist-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.losg-mp__assist-icon--wa { background: #E8F5E9; }
.losg-mp__assist-icon--book { background: #E3F2FD; }
.losg-mp__assist-title { font-family: 'Quicksand', sans-serif; font-size: 14px; font-weight: 600; color: #3D2E2E; margin: 0 0 3px; }
.losg-mp__assist-desc { font-size: 12px; color: rgba(61,46,46,0.5); margin: 0; line-height: 1.5; }

/* Guide */
.losg-mp__guide { margin-top: 28px; padding-top: 24px; border-top: 2px solid #F0E8DF; }
.losg-mp__guide-heading { font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8FA584; margin: 0 0 16px; }
.losg-mp__guide-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 2px solid #F7F1EA; }
.losg-mp__guide-step:last-child { border-bottom: none; }
.losg-mp__guide-num { width: 28px; height: 28px; border-radius: 50%; background: #8FA584; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.losg-mp__guide-title { font-family: 'Quicksand', sans-serif; font-size: 13px; font-weight: 600; color: #3D2E2E; margin: 0 0 2px; }
.losg-mp__guide-desc { font-size: 12px; color: rgba(61,46,46,0.5); margin: 0; line-height: 1.5; }

/* Status */
.losg-mp__status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: center; }
.losg-mp__status--success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.losg-mp__status--error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

@media (max-width: 600px) {
    .losg-mp { padding: 24px 16px 40px; }
    .losg-mp__title { font-size: 22px; }
    .losg-mp__garment-grid { grid-template-columns: 1fr 1fr; }
    .losg-mp__form-grid { grid-template-columns: 1fr; }
    .losg-mp__unit-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =============================================
   SIZE CHART — [losg_size_chart]
   ============================================= */
.losg-sc { max-width: 720px; margin: 0 auto; padding: 20px 0 40px; font-family: 'Archivo', sans-serif; }
.losg-sc__header { text-align: center; margin-bottom: 28px; }
.losg-sc__title { font-family: 'Quicksand', sans-serif; font-size: 28px; font-weight: 700; color: #3D2E2E; margin: 0 0 8px; }
.losg-sc__sub { font-size: 13px; color: rgba(61,46,46,0.5); margin: 0; line-height: 1.6; }
.losg-sc__sub a { color: #8FA584; font-weight: 600; text-decoration: none; }
.losg-sc__sub a:hover { text-decoration: underline; }

.losg-sc__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.losg-sc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.losg-sc__table thead th {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #C98B8B;
    padding: 12px 16px;
    text-align: center;
    white-space: nowrap;
}

.losg-sc__table thead th:first-child {
    background: #3D2E2E;
    border-radius: 8px 0 0 0;
}

.losg-sc__table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.losg-sc__table thead th span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    text-transform: none;
}

.losg-sc__table tbody td {
    padding: 10px 16px;
    text-align: center;
    color: rgba(61,46,46,0.7);
    border-bottom: 1px solid #F0E8DF;
    font-size: 14px;
}

.losg-sc__table tbody tr:hover {
    background: #FDFAF7;
}

.losg-sc__table tbody tr:last-child td {
    border-bottom: none;
}

.losg-sc__table tbody td.losg-sc__age {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #3D2E2E;
    text-align: left;
    white-space: nowrap;
}

.losg-sc__note {
    font-size: 12px;
    color: rgba(61,46,46,0.45);
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
}

.losg-sc__note a {
    color: #8FA584;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 600px) {
    .losg-sc__title { font-size: 22px; }
    .losg-sc__table { font-size: 13px; }
    .losg-sc__table thead th { padding: 10px 10px; font-size: 11px; }
    .losg-sc__table tbody td { padding: 8px 10px; }
}

/* =============================================
   PRODUCT PAGE — Measurement Trigger + Modal
   ============================================= */
.losg-mp-trigger-wrap {
    margin: 8px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.losg-mp-status {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #2E7D32;
}
.losg-mp-trigger-btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #3D2E2E;
    background: none;
    border: 2px solid #F0E8DF;
    border-radius: 24px;
    padding: 8px 18px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.losg-mp-trigger-btn:hover {
    border-color: #8FA584;
    background: #8FA584;
    color: #fff;
}
.losg-mp-page-link {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    color: #8FA584;
    text-decoration: none;
    font-weight: 500;
}
.losg-mp-page-link:hover { text-decoration: underline; }

/* Modal overlay */
.losg-mp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(61, 46, 46, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.losg-mp-modal {
    background: #FDF5EC;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(61, 46, 46, 0.25);
}
.losg-mp-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 2px solid #F0E8DF;
}
.losg-mp-modal__header h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #3D2E2E;
    margin: 0;
}
.losg-mp-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(143, 165, 132, 0.15);
    color: #8FA584;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.losg-mp-modal__close:hover { background: #C98B8B; color: #fff; }
.losg-mp-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.losg-mp-modal__footer {
    padding: 14px 24px;
    border-top: 2px solid #F0E8DF;
    text-align: center;
}
.losg-mp-modal__full-link {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: #8FA584;
    text-decoration: none;
    font-weight: 500;
}
.losg-mp-modal__full-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .losg-mp-modal { max-height: 90vh; border-radius: 12px; }
    .losg-mp-modal__header { padding: 16px 16px 12px; }
    .losg-mp-modal__body { padding: 16px; }
    .losg-mp-trigger-wrap { flex-direction: column; align-items: flex-start; }
}
