/* ============================================================
   FILE: /user/css/physicalsim/detail.css
   VIEW: Areas/User/Views/PhysicalSim/Detail.cshtml
   ============================================================ */

.variant-option {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s;
    cursor: pointer;
    outline: none;
}

.variant-option:hover {
    border-color: #0891b2;
    background-color: #ecfeff;
    color: #0891b2;
}

.variant-option.active {
    background: linear-gradient(135deg, #E91E8C, #2196F3);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(233, 30, 140, 0.3);
    transform: scale(1.05);
}

/* ── Quill HTML Render: Chi tiết & Lưu ý ── */
.product-detail-content,
.product-notes-content { font-size: 0.875rem; color: #4b5563; line-height: 1.6; }
.product-detail-content ul, .product-notes-content ul,
.product-detail-content ol, .product-notes-content ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.product-detail-content li, .product-notes-content li { margin-bottom: 0.25rem; }
.product-detail-content li[data-list="bullet"], .product-notes-content li[data-list="bullet"] { list-style-type: disc; }
.product-detail-content li[data-list="ordered"], .product-notes-content li[data-list="ordered"] { list-style-type: decimal; }
.product-detail-content ul li:not([data-list]), .product-notes-content ul li:not([data-list]) { list-style-type: disc; }
.product-detail-content ol li:not([data-list]), .product-notes-content ol li:not([data-list]) { list-style-type: decimal; }
.product-detail-content .ql-ui, .product-notes-content .ql-ui { display: none; }
.product-detail-content p, .product-notes-content p { margin-bottom: 0.5rem; }
.product-detail-content strong, .product-notes-content strong { font-weight: 700; color: #1f2937; }
.product-detail-content em, .product-notes-content em { font-style: italic; }
.product-detail-content a, .product-notes-content a { color: #0891b2; text-decoration: underline; }
.product-detail-content h1, .product-detail-content h2, .product-detail-content h3,
.product-notes-content h1, .product-notes-content h2, .product-notes-content h3 { font-weight: 700; color: #111827; margin: 0.75rem 0 0.25rem; }

/* ── Country Chips ── */
.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.country-chip:hover { border-color: #00AEEF; background: #f0faff; }

.country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.country-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px dashed #3b82f6;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.country-more-btn:hover { background: #dbeafe; border-color: #2563eb; }

/* ── Country Popup Modal ── */
@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.95) translateY(5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.country-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.country-popup-overlay.hidden { display: none; }

.country-popup-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.country-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.country-popup-header h3 { font-size: 0.95rem; font-weight: 700; color: #111827; }
.country-popup-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: none;
    background: #f3f4f6; color: #6b7280;
    cursor: pointer; font-size: 1rem; transition: background 0.15s;
}
.country-popup-close:hover { background: #e5e7eb; color: #111827; }
.country-popup-body { overflow-y: auto; padding: 16px 20px; }
.country-popup-grid { display: flex; flex-wrap: wrap; gap: 8px; }

