/* Sidebar GUIA DE TALLES */
.guia-talles-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1040;
}

.guia-talles-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.guia-talles-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    max-width: 100%;
    background: #ffffff;
    color: #212529;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.guia-talles-sidebar.is-open {
    transform: translateX(0);
}

.guia-talles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #ffc107;
    color: #1c1c1c;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.guia-talles-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.guia-talles-close {
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: #1c1c1c;
    cursor: pointer;
    padding: 0 0.25rem;
}

.guia-talles-close:hover {
    color: #000;
}

.guia-talles-body {
    overflow-y: auto;
    padding: 1.25rem;
    flex: 1 1 auto;
}

.guia-talles-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #f1f1f1;
    border-left: 4px solid #ffc107;
}

.guia-talles-body h3:first-child {
    margin-top: 0;
}

.guia-talles-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.guia-talles-body th,
.guia-talles-body td {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.5rem;
    text-align: center;
}

.guia-talles-body th {
    background: #212529;
    color: #ffc107;
    font-weight: 600;
}

.guia-talles-body td:first-child,
.guia-talles-body th:first-child {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
    color: #212529;
}

.guia-talles-section.is-highlight {
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 0.5rem;
    background: #fffbea;
}

.guia-talles-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.guia-talles-link:hover,
.guia-talles-link:focus,
.guia-talles-link:active,
.guia-talles-link:visited {
    color: #6c757d;
    text-decoration: underline;
}

/* Bloque que contiene TALLAS + link en línea */
.guia-talles-tallas-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.guia-talles-no-scroll {
    overflow: hidden;
}

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