/* ===== Dashboard Layout ===== */
.vs-dashboard {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f5f7fb;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

/* ===== Sidebar ===== */
.vs-sidebar {
    background: #1e293b;
    border-radius: 12px;
    padding: 15px;
    min-height: 350px;
}

@media (max-width: 768px) {
    .vs-sidebar {
        min-height: 0;
    }
}

.vs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vs-sidebar li {
    margin-bottom: 10px;
}

.vs-sidebar a {
    display: block;
    padding: 10px 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.vs-sidebar a:hover,
.vs-sidebar a.active {
    background: #2563eb;
    color: #fff;
}

/* ===== Content ===== */
.vs-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===== Wallet Layout Fix ===== */
.vs-content .vs-tab {
    width: 100%;
}

#tab-wallet,
#tab-wallet .vs-wallet-summary,
#tab-wallet #vs-transaction-history,
#tab-wallet #vs-transaction-history table {
    width: 100%;
}

/* ===== Headings ===== */
.vs-content h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    color: #1e293b;
}

/* ===== Table ===== */
.vs-products-table,
.vs-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.vs-products-table th,
.vs-orders-table th {
    background: #2563eb;
    color: #fff;
    padding: 10px;
    font-weight: 600;
}

.vs-products-table td,
.vs-orders-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.vs-products-table tr:hover,
.vs-orders-table tr:hover {
    background: #f1f5f9;
}

.vs-products-table img,
.vs-orders-table img {
    border-radius: 8px;
}

/* ===== Actions ===== */
.vs-products-table a,
.vs-orders-table a {
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
}

.vs-products-table a:hover,
.vs-orders-table a:hover {
    text-decoration: underline;
}

/* ===== Form ===== */
.vs-tab form p {
    margin-bottom: 15px;
}

.vs-tab label {
    font-weight: 600;
    color: #334155;
}

.vs-tab input,
.vs-tab textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: 0.3s;
}

.vs-tab input:focus,
.vs-tab textarea:focus {
    border-color: #2563eb;
    outline: none;
}

/* ===== Button ===== */
.vs-tab button {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.vs-tab button:hover {
    background: #1d4ed8;
}

.vs-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.vs-btn--primary {
    background: #2563eb;
    color: #fff;
}

.vs-btn--secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.vs-btn:hover:not(.vs-btn--disabled) {
    filter: brightness(1.05);
}

.vs-modal__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* ===== Modal (category manager) ===== */
.vs-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vs-modal__dialog {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
    max-width: 560px;
    width: 100%;
}

.vs-modal__header {
    padding: 14px 16px;
    background: #0f172a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vs-modal__body {
    padding: 18px 16px 16px;
}

.vs-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.vs-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Responsive ===== */
@media(max-width:768px) {
    .vs-dashboard {
        flex-direction: column;
    }

    .vs-sidebar {
        width: 80% !important;
        margin-bottom: 15px;
    }

    .vs-products-table {
        width: 100%;
        table-layout: fixed;
    }

    .vs-products-table th:nth-child(2),
    .vs-products-table td:nth-child(2),
    .vs-products-table th:nth-child(4),
    .vs-products-table td:nth-child(4),
    .vs-products-table th:nth-child(6),
    .vs-products-table td:nth-child(6) {
        display: none;
    }

    .vs-products-table .vs-action-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .vs-products-table .vs-action-buttons button,
    .vs-products-table .vs-action-buttons .vs-view-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ===== Orders tools ===== */
.vs-orders-tools input,
.vs-orders-tools select {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.vs-orders-tools input:focus,
.vs-orders-tools select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vs-orders-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.vs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.vs-card-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}

.vs-card-value {
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
}

.vs-page-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.vs-page-btn:hover {
    border-color: #2563eb;
}

.vs-page-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.vs-page-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media(max-width: 900px) {
    .vs-orders-cards {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

/* ===== Become a vendor ===== */
.vs-auth-box {
    max-width: 600px;
    margin: 60px auto;
    background: #fff;
    padding: 35px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    font-family: Segoe UI, Tahoma, sans-serif;
}

.vs-auth-box h2 {
    color: #1e293b;
    margin-bottom: 10px;
}

.vs-subtitle {
    color: #64748b;
    margin-bottom: 25px;
}

.vs-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vs-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.vs-btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.vs-note {
    font-size: 14px;
    color: #64748b;
}

.vs-note a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}


/* =======================
   Custom Checkbox Style
======================= */
input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 2px solid #0073aa;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;

}

input[type="checkbox"]:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    position: absolute;
    top: 0;
    left: 3px;
    font-size: 14px;
}

td {
    text-align: center;
}

.vs-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vs-benefits div {
    margin: 10px 0;
    font-size: 16px;
}

#add-product-btn:hover {
    transform: scale(1.1);
    transition: transform 0.3s, opacity 0.3s;
}


.vs-row-updated {
    background-color: #d1fae5 !important;
    /* أخضر خفيف */
    transition: background-color 1.2s ease;
}

.vs-row-updated-remove {
    background-color: transparent !important;
}

/* =====================================================
   Row Update Highlight (Soft & Professional)
===================================================== */

/* Updated row (general) */
.vs-row-updated {
    background: var(--vs-danger-soft) !important;
    border-left: 4px solid var(--vs-danger);
    transition: all 0.8s ease;
}

/* Price updated */
.vs-products-table tr.vs-update-price td {
    background: var(--vs-primary-soft) !important;
    border-left: 4px solid var(--vs-primary);
    color: var(--vs-text);
}

/* Stock updated */
.vs-products-table tr.vs-update-stock td {
    background: var(--vs-warning-soft) !important;
    border-left: 4px solid var(--vs-warning);
    color: var(--vs-text);
}

/* Text/content updated */
.vs-products-table tr.vs-update-text td {
    background: var(--vs-success-soft) !important;
    border-left: 4px solid var(--vs-success);
    color: var(--vs-text);
}

/* ========= Soft Pulse Animation ========= */
@keyframes vsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .35);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

.vs-products-table tr.vs-pulse td {
    animation: vsPulse 1s ease-out;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
    .vs-dashboard {
        flex-direction: column;
    }

    .vs-sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
}


#add-product-form-wrapper {
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.vs-split-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.vs-cta-box {
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
    text-align: center;
}

.vs-cta-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.vs-muted {
    opacity: .7;
}

.vs-cta-box h2 {
    margin-bottom: 10px;
}

.vs-cta-box p {
    color: #555;
    margin-bottom: 25px;
}

.vs-btn-primary {
    background: #6c63ff;
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.vs-btn-primary:hover {
    background: #584ee0;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/*عرض مميز للبحث*/
.vs-highlight {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0 2px;
    border-radius: 4px;
}

/* سجل البحث*/
#vs-search-history {
    margin-top: 5px;
    max-height: 120px;
    overflow-y: auto;
}

.vs-search-wrap {
    position: relative;
}

.vs-search-wrap #vs-search-history {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 20;
}

#vs-search-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#vs-search-history li {
    display: flex;
    justify-content: space-between;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 3px;
    font-size: 13px;
}

.vs-history-item {
    cursor: pointer;
    color: #2563eb;
}

.vs-history-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}



.vs-form-wrapper {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.vs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.vs-field {
    display: flex;
    flex-direction: column;
}

.vs-field.full {
    grid-column: span 2;
}

.vs-field label {
    font-weight: 600;
    margin-bottom: 5px;
}

.vs-label-required::after {
    content: " *";
    color: #d63638;
    font-weight: 700;
}

.vs-field input,
.vs-field textarea,
.vs-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.vs-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.vs-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.vs-btn-primary {
    background: #2271b1;
    color: #fff;
}

.vs-btn-cancel {
    background: #ccc;
}

.vs-btn-cancel:hover {
    background: #bfbfbf;
    color: #222;
}

.vs-edit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vs-edit-img {
    position: relative;
    border: 1px solid #e5e7eb;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}

.vs-edit-img img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.vs-edit-img .vs-img-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    text-align: center;
}

.vs-edit-img .vs-remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

/* New row highlight animation */
.vs-row-added {
    animation: vsRowFlash 2s ease;
    background: #ecfdf3;
}

@keyframes vsRowFlash {
    0% {
        background: #bbf7d0;
    }

    100% {
        background: #ffffff;
    }
}

/* Make TinyMCE toolbar buttons white */
.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn button,
.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn button:focus,
.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn button:hover {
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
}

.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn.mce-active button {
    background: #fff;
    color: #222;
    border-color: #999;
}

.vs-upload-box,
.vs-gallery-add {
    width: 320px;
    height: 320px;
    border: 2px dashed #bbb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.vs-upload-box:hover {
    border-color: #2271b1;
}

.vs-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-plus {
    font-size: 70px;
    color: #bbb;
    font-weight: bold;

}

.vs-gallery {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;

}

.vs-gallery-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.vs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Gallery Wrapper ===== */
.vs-gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ===== Small + Button ===== */
.vs-gallery-add {
    width: 84px;
    height: 84px;
    border-radius: 10px;
}

.vs-gallery-add span {
    font-size: 28px;
    color: var(--vs-muted);
    font-weight: 500;
}

.vs-gallery-add:hover {
    border-color: var(--vs-primary);
    background: #f0f5ff;
}

.vs-gallery-add:hover span {
    color: var(--vs-primary);
}

/* ===== No Results (Search / Empty Table) ===== */
.vs-empty-search {
    text-align: center;
    padding: 40px 0;
}

.vs-empty-search .vs-empty-hero {
    width: min(360px, 80%);
    margin: 0 auto 12px;
}

.vs-empty-search .vs-empty-svg {
    width: 100%;
    height: auto;
    display: block;
}

.vs-empty-search .vs-empty-title {
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
    margin: 6px 0 4px;
}

.vs-empty-search .vs-empty-subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.vs-empty-anim {
    animation: vsFloatUp 3.2s ease-in-out infinite;
}

/* ===== Empty State (No Products) ===== */
.vs-empty-state {
    text-align: center;
    padding: 50px 20px;
}

.vs-empty-hero {
    width: min(420px, 90%);
    margin: 0 auto 16px;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.vs-empty-hero:hover {
    transform: translateY(-4px) scale(1.01);
    filter: drop-shadow(0 18px 35px rgba(37, 99, 235, 0.18));
}

.vs-empty-svg {
    width: 100%;
    height: auto;
    display: block;
}

.vs-empty-title {
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
    margin: 6px 0 4px;
}

.vs-empty-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

@keyframes vsFloatUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes vsPulseSoft {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.08);
        opacity: 0.75;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes vsBubble {
    0% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.9;
    }
}

.vs-empty-svg .vs-float {
    animation: vsFloatUp 3.6s ease-in-out infinite;
}

.vs-empty-svg .vs-pulse {
    transform-origin: center;
    animation: vsPulseSoft 2.6s ease-in-out infinite;
}

.vs-empty-svg .vs-bubbles {
    animation: vsBubble 4s ease-in-out infinite;
}




















/**/
.vs-onboard {
    max-width: 720px;
    margin: 10px auto 0;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.vs-onboard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.vs-onboard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 0;
}

.vs-onboard-step {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    color: #64748b;
    font-weight: 700;
}

.vs-onboard-step.is-active,
.vs-onboard-step.is-complete {
    border-color: #2563eb;
    color: #2563eb;
}

.vs-onboard-step.is-complete {
    background: #2563eb;
    color: #fff;
}

.vs-onboard-alert {
    background: #fef2f2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 12px;
}

.vs-onboard-form {
    display: grid;
    gap: 12px;
}

.vs-onboard-form label {
    font-weight: 600;
    color: #0f172a;
}

.vs-onboard-form input,
.vs-onboard-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
}

.vs-onboard-celebrate {
    background: linear-gradient(135deg, #22c55e, #14b8a6, #0ea5e9);
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(14, 116, 144, 0.25);
}

.vs-onboard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.vs-onboard-actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.vs-onboard-actions button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.vs-onboard-panel {
    display: none;
}

.vs-onboard-panel.is-active {
    display: block;
}

.vs-onboard-celebrate {
    text-align: center;
    animation: fadeScale 0.6s ease forwards;
}

.vs-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 42px;
    line-height: 80px;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Vendor Profile ===== */
.vs-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

/* Defensive layout fix:
   Some themes set <details> to inline/inline-block, which makes the Profile panels
   shrink and stick to one side, leaving a large empty white area. */
.vs-content #tab-profile details.vs-profile-panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.vs-content #tab-profile {
    width: 100% !important;
    max-width: 100% !important;
    text-align: start;
}

.vs-content #tab-profile > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Apply the same fix even if #tab-profile is rendered outside .vs-content due to markup issues. */
.vs-dashboard #tab-profile details.vs-profile-panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.vs-dashboard #tab-profile {
    width: 100% !important;
    max-width: 100% !important;
    text-align: start;
}

.vs-dashboard #tab-profile > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.vs-profile-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.vs-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe5f0;
    background: #fff;
    cursor: pointer;
    color: #1d4ed8;
}

.vs-profile-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.vs-profile-alert.is-success {
    background: #ecfdf5;
    color: #065f46;
}

.vs-profile-alert.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.vs-profile-panel {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.vs-profile-panel>summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
}

.vs-profile-panel>summary::-webkit-details-marker {
    display: none;
}

.vs-profile-form {
    padding: 14px;
}

.vs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vs-profile-inline {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vs-visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vs-visibility-grid label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
}

.vs-store-preview-card {
    margin: 0 14px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.vs-store-preview-card h4 {
    margin: 0 0 8px;
}

.vs-store-preview-meta {
    font-size: 12px;
    color: #475569;
    margin-top: 5px;
}

.vs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 14px;
}

.vs-metric-card {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}

.vs-metric-card small {
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.vs-metric-card strong {
    font-size: 20px;
    color: #0f172a;
}

.vs-profile-two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin: 12px 14px;
}

#vs-sales-trend-chart {
    width: calc(100% - 28px);
    margin: 8px 14px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.vs-profile-table {
    width: 100%;
    border-collapse: collapse;
}

.vs-profile-table th,
.vs-profile-table td {
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    padding: 8px;
}

.vs-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vs-simple-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
}

.vs-simple-list small {
    color: #64748b;
}

.vs-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.vs-badge.is-success {
    background: #dcfce7;
    color: #166534;
}

.vs-badge.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.vs-badge.is-info {
    background: #dbeafe;
    color: #1e40af;
}

.vs-help-inline {
    color: #64748b;
    font-size: 12px;
}

.vs-store-media-preview {
    margin-top: 8px;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.vs-file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vs-file-list a {
    font-size: 13px;
}

.vs-plantuml-preview img {
    margin-top: 10px;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.vs-quick-input {
    width: 100%;
    min-width: 90px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
}

/* ===== Shop Vendor Card ===== */
.vs-shop-vendor-card {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    text-align: left;
}

.vs-shop-vendor-header {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
}

.vs-shop-vendor-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.vs-shop-vendor-name {
    color: #0f172a;
    font-size: 13px;
}

.vs-shop-vendor-desc {
    margin: 6px 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
}

.vs-shop-vendor-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #475569;
    font-size: 12px;
    margin-top: 4px;
}

.vs-shop-vendor-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.vs-shop-vendor-social a {
    font-size: 12px;
    text-decoration: none;
}

.vs-shop-vendor-featured {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
}

@media (max-width: 900px) {

    .vs-form-grid,
    .vs-visibility-grid,
    .vs-profile-two-col,
    .vs-metrics-grid {
        grid-template-columns: 1fr;
    }
}



.vs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.vs-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    border-left: 5px solid transparent;
}

.vs-metric-card span.dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.vs-metric-card small {
    color: #777;
    font-size: 13px;
}

.vs-metric-card strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

/* الألوان */
.vs-total {
    border-color: #6366f1;
}

.vs-total span {
    color: #6366f1;
}

.vs-published {
    border-color: #16a34a;
}

.vs-published span {
    color: #16a34a;
}

.vs-draft {
    border-color: #f59e0b;
}

.vs-draft span {
    color: #f59e0b;
}

.vs-pending {
    border-color: #dc2626;
}

.vs-pending span {
    color: #dc2626;
}

.vs-stock {
    border-color: #0ea5e9;
}

.vs-stock span {
    color: #0ea5e9;
}

.vs-low-stock {
    border-color: #ef4444;
}

.vs-low-stock span {
    color: #ef4444;
}

.vs-metric-card {
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-color .25s ease;
    cursor: pointer;
}

.vs-metric-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    background-color: #f9fafb;
}

/* حركة خفيفة للأيقونة */
.vs-metric-card span.dashicons {
    transition: transform .25s ease;
}

.vs-metric-card:hover span.dashicons {
    transform: scale(1.15) rotate(-5deg);
}

/* تأثير لمعان */
.vs-metric-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, .6),
            transparent);
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 12px;
}

.vs-metric-card {
    position: relative;
    overflow: hidden;
}

.vs-metric-card:hover::after {
    opacity: 1;
}

/* ===== Stores Directory ===== */
.vs-stores-page {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}

.vs-stores-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.vs-stores-hero h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.vs-stores-hero p {
    margin: 0;
    color: #dbeafe;
}

.vs-stores-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    color: #475569;
}

.vs-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.vs-store-card-directory {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.vs-store-card-banner {
    height: 110px;
    background-size: cover;
    background-position: center;
}

.vs-store-card-banner.is-empty {
    background: linear-gradient(120deg, #e2e8f0 0%, #f8fafc 100%);
}

.vs-store-card-body {
    padding: 14px;
}

.vs-store-card-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.vs-store-card-head h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.vs-store-card-subtitle {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
}

.vs-store-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbeafe;
}

.vs-store-card-logo.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
}

.vs-store-card-desc {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.vs-store-card-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
}

.vs-store-card-meta strong {
    color: #0f172a;
}

.vs-store-card-social {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vs-store-card-social a {
    font-size: 12px;
    text-decoration: none;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eff6ff;
}

.vs-store-card-social a:hover {
    background: #dbeafe;
}

@media (max-width: 768px) {
    .vs-stores-hero h2 {
        font-size: 22px;
    }
}

/* ===== Status Badges ===== */
.vs-status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.vs-status-badge.published {
    background: #dcfce7;
    color: #166534;
}

.vs-status-badge.pending {
    background: #fef9c3;
    color: #854d0e;
}

.vs-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.vs-status-badge.draft {
    background: #f1f5f9;
    color: #475569;
}

.vs-status-badge.trash {
    background: #e2e8f0;
    color: #475569;
}

/* Hamburger toggle – mobile only */
@media (max-width: 768px) {
    .vs-sidebar--hidden .vs-sidebar-menu,
    .vs-sidebar--hidden .vs-sidebar-header ~ * {
        display: none !important;
    }
    .vs-sidebar--hidden {
        margin-bottom: 0 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        min-height: 0 !important;
        height: auto !important;
    }
}
