/* ==============================================
   NTX Size Guide - Front Office Styles
   ============================================== */

/* ----- Trigger elements ----- */

.ntx-sizeguide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #555;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    margin: 8px 0;
    text-decoration: none;
}

.ntx-sizeguide-btn:hover,
.ntx-sizeguide-btn:focus {
    background: #333;
    color: #fff;
    border-color: #333;
    outline: none;
}

.ntx-sizeguide-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin: 8px 0;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}

.ntx-sizeguide-link:hover,
.ntx-sizeguide-link:focus {
    color: #000;
    outline: none;
}

/* ----- Sidebar ----- */

.ntx-sizeguide-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
}

.ntx-sizeguide-sidebar.ntx-visible {
    transform: translateX(0);
}

.ntx-sizeguide-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.ntx-sizeguide-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.ntx-sizeguide-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    line-height: 1.7;
    color: #333;
}

.ntx-sizeguide-sidebar-body h1,
.ntx-sizeguide-sidebar-body h2,
.ntx-sizeguide-sidebar-body h3,
.ntx-sizeguide-sidebar-body h4 {
    color: #f3a5ba;
}

/* ----- Sidebar overlay ----- */

.ntx-sizeguide-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.35s ease;
    display: none;
}

.ntx-sizeguide-sidebar-overlay.ntx-visible {
    opacity: 1;
}

/* ----- Close button ----- */

.ntx-sizeguide-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.ntx-sizeguide-close:hover {
    background: #f0f0f0;
    color: #222;
}

/* ----- Prevent body scroll when sidebar open ----- */

body.ntx-sizeguide-open {
    overflow: hidden;
}

/* ----- Content: tables ----- */

.ntx-sizeguide-sidebar-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
}

.ntx-sizeguide-sidebar-body table th,
.ntx-sizeguide-sidebar-body table td {
    border: 1px solid #ddd;
    padding: 9px 13px;
    text-align: left;
    vertical-align: middle;
}

.ntx-sizeguide-sidebar-body table th {
    background: #f5f5f5;
    font-weight: 700;
    color: #222;
}

.ntx-sizeguide-sidebar-body table tr:nth-child(even) td {
    background: #fafafa;
}

/* ----- Content: images & videos ----- */

.ntx-sizeguide-sidebar-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ntx-sizeguide-sidebar-body iframe {
    max-width: 100%;
}

/* ----- Responsive ----- */

@media (max-width: 768px) {
    .ntx-sizeguide-sidebar {
        width: 100%;
        max-width: 100%;
    }
}
