@import url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;700;900&display=swap');

.store-admin {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.store-admin-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.store-admin-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.store-admin-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.store-admin-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.store-admin-add {
    border: none;
    background: #0f172a;
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.store-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.store-admin-page {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1f2937;
    padding: 0.4rem 0.9rem;
    border-radius: 0.9rem;
    font-weight: 700;
}

.store-admin-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.store-admin-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.8rem;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    flex-wrap: wrap;
}

.store-admin-thumb {
    width: 110px;
    height: 110px;
    border-radius: 1.4rem;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.store-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-admin-info {
    flex: 1;
    min-width: 220px;
}

.store-admin-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.store-admin-title h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.store-admin-title span {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.store-admin-category {
    display: inline-flex;
    align-items: center;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-top: 0.4rem;
}

.store-admin-info p {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.store-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.store-admin-edit {
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 1rem;
    background: #e0f2fe;
    color: #2563eb;
}

.store-admin-toggle {
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 0.9rem;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
}

.store-admin-delete {
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 1rem;
    background: #fee2e2;
    color: #ef4444;
}

.store-admin-empty {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 2rem;
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.store-admin-empty i {
    font-size: 2rem;
    margin-bottom: 0.7rem;
}

.store-admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.store-admin-modal-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.store-admin-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-admin-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.store-admin-modal-close {
    border: none;
    background: #f8fafc;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #94a3b8;
}

.store-admin-modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: 75vh;
    overflow-y: auto;
}

.store-admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.store-admin-upload {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    color: #94a3b8;
    cursor: pointer;
    overflow: hidden;
}

.store-admin-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-admin-input-file {
    display: none;
}

.store-admin-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.store-admin-input,
.store-admin-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.store-admin-inline {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.store-admin-search-button {
    border: none;
    background: #1e3a8a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.store-admin-textarea {
    resize: none;
}

.store-admin-toggle-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #475569;
}

.store-admin-modal-actions {
    display: flex;
    gap: 0.8rem;
}

.store-admin-character-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2100;
}

.store-admin-character-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.store-admin-character-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 360px;
    overflow-y: auto;
}

.store-admin-character-item {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0.9rem;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
}

.store-admin-character-id {
    font-weight: 700;
    color: #1e3a8a;
    min-width: 48px;
}

.store-admin-character-name {
    color: #475569;
    font-weight: 600;
}

.store-admin-section-toggle {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.store-admin-section-toggle i {
    transition: transform 0.2s ease;
}

.store-admin-section-toggle i.open {
    transform: rotate(180deg);
}

.store-admin-cancel {
    flex: 1;
    border: none;
    padding: 0.9rem;
    border-radius: 1.2rem;
    background: #e2e8f0;
    font-weight: 700;
    color: #475569;
}

.store-admin-save {
    flex: 2;
    border: none;
    padding: 0.9rem;
    border-radius: 1.2rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .store-admin-form-grid {
        grid-template-columns: 1fr;
    }
}
