/* Size Guide Manager - Frontend Styles */

.size-guide-link-container {
    margin: 20px 0;
    padding: 0;
}

.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.size-guide-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.size-guide-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.size-guide-link.active .size-guide-icon {
    transform: rotate(180deg);
}

/* Modal */
.size-guide-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.size-guide-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.size-guide-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.size-guide-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.size-guide-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.size-guide-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.size-guide-modal-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

.size-guide-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.size-guide-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.size-guide-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.size-guide-table thead {
    background-color: #f8f9fa;
}

.size-guide-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.size-guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.size-guide-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.size-guide-table tbody tr:hover {
    background-color: #f0f7ff;
}

.size-guide-loading,
.size-guide-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.size-guide-error {
    color: #d32f2f;
}

/* Responsive */
@media (max-width: 768px) {
    .size-guide-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .size-guide-modal-header {
        padding: 16px 20px;
    }
    
    .size-guide-modal-title {
        font-size: 18px;
    }
    
    .size-guide-modal-body {
        padding: 20px 16px;
    }
    
    .size-guide-table {
        font-size: 13px;
    }
    
    .size-guide-table th,
    .size-guide-table td {
        padding: 10px 12px;
    }
    
    .size-guide-table th:first-child,
    .size-guide-table td:first-child {
        padding-left: 16px;
    }
    
    .size-guide-table th:last-child,
    .size-guide-table td:last-child {
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .size-guide-modal-header {
        padding: 14px 16px;
    }
    
    .size-guide-modal-title {
        font-size: 16px;
    }
    
    .size-guide-modal-body {
        padding: 16px 12px;
    }
    
    .size-guide-table {
        font-size: 12px;
    }
    
    .size-guide-table th,
    .size-guide-table td {
        padding: 8px 10px;
    }
}

