/* =============================================
   LITTLE OLLY'S — Size Guide Modal + Popups
   Brand: Cream, Sage, Dusty Rose, Warm Brown
   ============================================= */

/* Trigger Button */
.losg-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid #3D2E2E;
    color: #3D2E2E;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 18px;
    cursor: pointer;
    margin: 10px 0 16px 0;
    border-radius: 24px;
    transition: background 0.3s ease, color 0.3s ease;
}
.losg-trigger:hover { background: #8FA584; color: #fff; border-color: #8FA584; }
.losg-trigger svg { width: 14px; height: 14px; }

/* Modal Overlay */
.losg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 46, 46, 0.45);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.losg-overlay[hidden] { display: none; }

/* Modal Container */
.losg-modal {
    background: #FDF5EC;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(61, 46, 46, 0.25);
}

/* Modal Header */
.losg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px;
    border-bottom: 2px solid rgba(143, 165, 132, 0.15);
}
.losg-brand-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8FA584;
}
.losg-modal-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #3D2E2E;
    margin: 0;
}
.losg-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(143, 165, 132, 0.15);
    color: #8FA584;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.losg-close:hover { background: #C98B8B; color: #fff; }

/* Tabs */
.losg-tabs {
    display: flex;
    gap: 0;
    padding: 0 28px;
    border-bottom: 2px solid rgba(143, 165, 132, 0.1);
}
.losg-tab {
    padding: 12px 18px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(61, 46, 46, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-radius: 8px 8px 0 0;
}
.losg-tab:hover { color: #3D2E2E; }
.losg-tab.active { color: #fff; background: #8FA584; }

/* Tab Content */
.losg-tab-content {
    display: none;
    padding: 24px 28px;
}
.losg-tab-content.active { display: block; animation: losgFadeIn 0.3s ease; }
@keyframes losgFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Size Chart Table */
.losg-table-wrap { overflow-x: auto; }
.losg-size-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
}
.losg-size-table thead th {
    font-family: 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #C98B8B;
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
}
.losg-size-table thead th:first-child {
    background: #3D2E2E;
    border-radius: 8px 0 0 0;
}
.losg-size-table thead th:last-child {
    border-radius: 0 8px 0 0;
}
.losg-size-table tbody td {
    padding: 10px 14px;
    text-align: center;
    color: rgba(61, 46, 46, 0.65);
    border-bottom: 1px solid #F0E8DF;
}
.losg-size-table tbody tr:hover { background: #FDFAF7; }
.losg-age-cell {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #3D2E2E !important;
    text-align: left !important;
}
.losg-note {
    font-size: 12px;
    color: rgba(61, 46, 46, 0.45);
    margin-top: 16px;
    text-align: center;
    line-height: 1.5;
}

/* How to Measure Grid */
.losg-measure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.losg-measure-item {
    text-align: center;
    padding: 16px;
    background: rgba(143, 165, 132, 0.06);
    border-radius: 12px;
}
.losg-measure-icon svg {
    width: 60px;
    height: 80px;
    margin-bottom: 8px;
}
.losg-measure-item h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3D2E2E;
    margin: 0 0 4px;
}
.losg-measure-item p {
    font-size: 12px;
    color: rgba(61, 46, 46, 0.5);
    line-height: 1.5;
    margin: 0;
}

/* Video Tab */
.losg-video-intro {
    font-size: 13px;
    color: rgba(61, 46, 46, 0.5);
    text-align: center;
    margin-bottom: 16px;
}
.losg-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #F0E8DF;
}
.losg-video-wrap iframe,
.losg-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   MTO POPUP — Made-to-Order Notice
   ============================================= */
.losg-mto-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(61, 46, 46, 0.45);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.35s ease;
}
.losg-mto-overlay.is-hidden { opacity: 0; pointer-events: none; }
.losg-mto-popup {
    background: #FDF5EC;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 40px 32px 32px;
    position: relative;
    box-shadow: 0 16px 48px rgba(61, 46, 46, 0.2);
    text-align: center;
}
.losg-mto-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(143, 165, 132, 0.15);
    color: #8FA584;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.losg-mto-close:hover { background: #C98B8B; color: #fff; }
.losg-mto-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #3D2E2E;
    margin: 0 0 16px;
}
.losg-mto-message {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(61, 46, 46, 0.6);
    margin-bottom: 24px;
}
.losg-mto-message p { margin: 0 0 8px; }
.losg-mto-accept {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #FDF5EC;
    background: #3D2E2E;
    border: none;
    border-radius: 48px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.losg-mto-accept:hover { background: #8FA584; transform: translateY(-1px); }

/* =============================================
   GENERAL POPUP — Announcements
   ============================================= */
.losg-gp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(61, 46, 46, 0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.losg-gp-popup {
    background: #FDF5EC;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    padding: 44px 32px 32px;
    position: relative;
    box-shadow: 0 20px 48px rgba(61, 46, 46, 0.2);
    text-align: center;
}
.losg-gp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(143, 165, 132, 0.15);
    color: #8FA584;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.losg-gp-close:hover { background: #C98B8B; color: #fff; }
.losg-gp-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #3D2E2E;
    margin: 0 0 14px;
}
.losg-gp-message {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(61, 46, 46, 0.6);
    margin-bottom: 24px;
}
.losg-gp-message p { margin: 0 0 8px; }
.losg-gp-accept {
    display: inline-block;
    padding: 13px 32px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FDF5EC;
    background: #3D2E2E;
    border: none;
    border-radius: 48px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.losg-gp-accept:hover { background: #8FA584; transform: translateY(-1px); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
    .losg-modal { border-radius: 12px; }
    .losg-header { padding: 20px 20px 16px; }
    .losg-tabs { padding: 0 20px; }
    .losg-tab-content { padding: 20px; }
    .losg-tab { padding: 10px 12px; font-size: 12px; }
    .losg-measure-grid { grid-template-columns: 1fr; }
    .losg-mto-popup, .losg-gp-popup { padding: 32px 24px 24px; }
}
