/* =========================================
   GLOBAL BASE
========================================= */
body {
            background: #f5f5f5;
            color: #222;
        }
        
/* حاوية الداشبورد */
.owner-dashboard-container {
            padding: 20px;
            background: #fff;
            border-radius: 12px;
        }


        
/* الكروت الرئيسية */
.owner-card {
            background: #f7f7f7;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            cursor: pointer;
            border: 1px solid #e3e3e3;
            transition: 0.2s;
        }

.owner-card:hover {
            background: #efefef;
        }
        
.owner-card h3 {
            margin: 0;
            font-size: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
/* السيكشنات */
.owner-section {
            margin-top: 20px;
            padding: 20px;
            background: #fafafa;
            border-radius: 12px;
            border: 1px solid #e3e3e3;
        }
        
/* =========================================
   EMAIL BOX
========================================= */
.email-box label {
            font-weight:bold;
            margin-top:12px;
            display:block;
        }
.email-box input,
.email-box textarea {
            width:100%;
            padding:10px;
            margin-top:5px;
            border-radius:8px;
            border:1px solid #ccc;
        }
.email-send-btn {
            margin-top:15px;
            padding:12px 20px;
            background:#0073aa;
            border:none;
            color:#fff;
            font-size:16px;
            border-radius:8px;
            cursor:pointer;
        }
.email-send-btn:hover {
            background:#005f8d;
        }
      
/* =========================================
   PRODUCTS TABLE (CLEAN UI VERSION)
========================================= */

.owner-products-table{
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
  background:#fff;
  font-size:13px;
}

/* Header */
.owner-products-table th{
  background:#f4f6f9;
  font-weight:600;
  color:#555;
  padding:12px 8px;
  border-bottom:1px solid #ddd;
  text-align:left;
}

/* Cells */
.owner-products-table td{
  padding:10px 8px;
  border-bottom:1px solid #eee;
  vertical-align:top;
  word-break:break-word;
  line-height:1.4;
}

/* Row hover */
.owner-products-table tr:hover{
  background:#f9fafb;
}


/* ===============================
   Columns sizing
=============================== */

/* Checkbox */
.owner-products-table th:first-child,
.owner-products-table td:first-child{
  width:32px;
  text-align:center;
}

/* Image */
.owner-products-table th:nth-child(2),
.owner-products-table td:nth-child(2){
  width:70px;
  text-align:center;
}

.owner-products-table img{
  width:60px;
  height:70px;
  object-fit:cover;
  border-radius:8px;
}

/* Price */
.owner-products-table th:nth-child(6),
.owner-products-table td:nth-child(6){
  width:110px;
  font-weight:600;
}

/* Status */
.owner-products-table th:nth-child(8),
.owner-products-table td:nth-child(8){
  width:90px;
  text-align:center;
}


/* =================================
   INLINE EDIT – FINAL CLEAN VERSION
================================= */

.inline-edit{
  display:block;

  padding:4px 6px;
  border-radius:6px;

  cursor:text;

  max-width:100%;
  line-height:1.4;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  transition:.15s;

  background:transparent;
}


/* Hover */
.inline-edit:hover{
  background:#f1f5f9;
}


/* Focus (Edit Mode) */
.inline-edit:focus{
  background:#eef2ff;

  outline:2px solid #6366f1;
  outline-offset:1px;

  white-space:normal;
  overflow:auto;

  min-height:32px;
}


/* ============================
   PRICE FIELD (Special Case)
============================ */

td[data-label="Price"] .inline-edit{
  max-width:110px;
  min-width:60px;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  font-weight:600;
}


/* Price when editing */
td[data-label="Price"] .inline-edit:focus{
  max-width:150px;

  white-space:normal;
  overflow-y:auto;

  max-height:80px;
}

/* ===============================
   Action Buttons
=============================== */

.owner-action-buttons{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.owner-action-btn{
  padding:5px 10px;
  border-radius:6px;
  font-size:12px;
  color:#fff;
  text-decoration:none;
  transition:.15s;
}

.owner-action-btn:hover{
  opacity:.85;
}

.btn-edit{background:#0073aa;}
.btn-view{background:#22c55e;}
.btn-delete{background:#ef4444;}

/* ===============================
   Mobile Cards View
=============================== */

@media(max-width:900px){

  .owner-products-table thead{
    display:none;
  }

  .owner-products-table tr{
    display:block;
    background:#fff;
    margin-bottom:14px;
    padding:12px;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
  }

  .owner-products-table td{
    display:flex;
    justify-content:space-between;
    padding:6px 0;
    border:none;
  }

  .owner-products-table td:before{
    content:attr(data-label);
    font-weight:600;
    color:#64748b;
  }

}

/* =========================================
  PAGINATION
========================================= */
/* ======== FIX PAGINATION LAYOUT ======== */
.pagination-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.pagination-wrapper a.button {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
}
                
/* ============================
   Category Mini Card
============================ */
.cats-wrap{

  display:flex;
  align-items:center;
  gap:8px;

  padding:6px 8px;

  border-radius:10px;

  background:#f8fafc;

  border:1px solid #e2e8f0;

  max-width:240px;

  transition:.2s;

  position:relative;
}
/* Hover Card */
.cats-wrap:hover{
  background:#eef2ff;
  border-color:#c7d2fe;
}

/* ============================
   Text
============================ */
.cats-text{

  flex:1;

  font-size:13px;
  font-weight:500;

  color:#0f172a;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Empty */
.cats-empty{
  color:#94a3b8;
  font-style:italic;
}

/* ============================
   Edit Button
============================ */
.cats-edit-btn{

  border:none;
  background:#fff;

  width:28px;
  height:28px;

  border-radius:8px;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:13px;

  box-shadow:0 2px 6px rgba(0,0,0,.08);

  opacity:0;
  transform:scale(.85);

  transition:.15s;
}
/* Show on hover */
.cats-wrap:hover .cats-edit-btn{
  opacity:1;
  transform:scale(1);
}
/* Hover */
.cats-edit-btn:hover{
  background:#4f46e5;
  color:#fff;
}

/* ============================
   Tooltip
============================ */
.cats-text:hover::after{

  content:attr(title);

  position:absolute;

  bottom:130%;
  left:0;

  background:#0f172a;
  color:#fff;

  padding:6px 8px;

  border-radius:6px;

  font-size:12px;

  max-width:220px;

  line-height:1.4;

  z-index:20;

  pointer-events:none;
}

/* =========================
   Modal Box
========================= */
.cats-modal-box,
.image-modal-box{
  background:#fff;
  width:480px;
  max-width:95%;
  max-height:85vh;
  border-radius:14px;
  padding:20px;
  overflow-y:auto;
  box-shadow:0 12px 35px rgba(0,0,0,.25);
  animation:modalPop .22s ease;
}
.image-modal-box h3 {
    margin:0;
    padding:18px 20px;
    border-bottom:1px solid #eee;
    font-size:18px;
    font-weight:600;
    background:#fafafa;
}

/* =========================
   Animation
========================= */

@keyframes modalPop{

  from{
    opacity:0;
    transform:scale(.92);
  }

  to{
    opacity:1;
    transform:scale(1);
  }

}

@keyframes modalPop{
  from{
    opacity:0;
    transform:scale(.9);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

#cats-checkboxes label{

  padding:10px 8px;

  border-radius:8px;

  transition:.15s;

  cursor:pointer;
}

#cats-checkboxes label:hover{
  background:#f1f5f9;
}

#cats-checkboxes input:checked + span{
  color:#4f46e5;
  font-weight:600;
}

#editCatsModal h3{

  display:flex;
  align-items:center;
  justify-content:center;

  gap:6px;

  padding-bottom:10px;

  border-bottom:1px solid #e5e7eb;

  margin-bottom:15px;
}

#saveCatsBtn{
  background:#4f46e5;
  border:none;
}

#saveCatsBtn:hover{
  background:#4338ca;
}

.cats-btn-row{

  margin-top:auto;

  padding-top:12px;

  border-top:1px solid #e5e7eb;

  background:#fff;

}
        
/* ============================
   Inline Description – FINAL
============================ */

.inline-description{

  display:block;

  max-width:260px;

  max-height:60px;

  padding:2px 4px;

  line-height:1.45;

  white-space:normal;

  overflow:hidden;

  word-break:break-word;

  border-radius:6px;

  transition:.15s;

}


/* Hover */
.inline-description:hover{
  background:#f8fafc;
}


/* Focus (Edit Mode) */
.inline-description:focus{

  background:#eef7ff;

  outline:2px solid #60a5fa;

  padding:5px 6px;

  max-height:160px;

  overflow-y:auto;

  white-space:normal;

}

.inline-description:not(:focus){
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  line-clamp: 3;              /* Standard */
  overflow: hidden;
}


/* تصغير حجم الـ checkbox نفسه */
.styliiiish-row-check {
    width: 14px;
    height: 14px;
    transform: scale(0.9);
}
        

/* ====================================================
   ⭐ MODERN FILTER / SEARCH BAR
==================================================== */
        
.styliiiish-toolbar {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
        
/* Search box */
#styliiiish-search {
    padding: 7px 12px;
    font-size: 14px;
    border: 1px solid #cdd6df;
    border-radius: 8px;
    width: 200px;
    transition: .15s;
}
#styliiiish-search:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
    outline: none;
}
        
/* Dropdowns */
#styliiiish-filter-cat,
#styliiiish-filter-status,
#styliiiish-bulk-action {
    padding: 7px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cdd6df;
    background: #fafafa;
    transition: .15s;
}
#styliiiish-filter-cat:focus,
#styliiiish-filter-status:focus,
#styliiiish-bulk-action:focus {
    border-color:#0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.12);
    outline:none;
}
        
/* Buttons */
#styliiiish-bulk-apply {
    padding: 8px 14px !important;
    border-radius: 8px !important;
}
        
/* Groups */
.styliiiish-filters-group {
    display:flex;
    align-items:center;
    gap:10px;
}
        
.styliiiish-bulk-group {
    display:flex;
    align-items:center;
    gap:10px;
}
        
/* صياغة select status */
.inline-status {
    width: 80px !important;
    padding: 3px 5px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}
     
 /* =========================================
     STATS
========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.stat-card {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e1e1e1;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.05);
}
.stat-card h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.stat-card .stat-number {
    margin-top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
}
.styliiiish-stats-bar {
    display: flex;
    gap: 12px;
    margin: 15px 0 20px 0;
    flex-wrap: wrap;
}
.styliiiish-stat-box {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
}
.styliiiish-stat-box .label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6e6e6e;
    letter-spacing: .5px;
}
.styliiiish-stat-box .value {
    font-size: 22px;
    font-weight: 600;
    margin-top: 4px;
    color: #222;
}


/* =======================================================
   ⭐ Modern Image Manager Modal — Shopify Style
======================================================= */
        
#styliiiishImageModal {
    position: fixed !important;
    top:0; left:0; right:0; bottom:0;
    display:none;
    justify-content:center;
    align-items:center;
    background: rgba(0,0,0,.55);
    z-index: 999900 !important;
    padding: 25px;
}

@keyframes flashBg {
    0% { background:#e1f4ff; }
    100% { background:#fff; }
}

/* Zoom animation */
@keyframes zoomIn {
    0% { transform: scale(.92); opacity: .3; }
    100% { transform: scale(1); opacity: 1; }
}
/* Body */
#styliiiish-images-list {
    padding:18px;
    overflow-y:auto;
}
/* Image Grid */
.styliiiish-images-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
    gap:12px;
}
/* Image Box */
.styliiiish-img-item {
    border:1px solid #e5e5e5;
    padding:8px;
    background:#fff;
    border-radius:8px;
    text-align:center;
    position:relative;
    transition:.15s;
}
.styliiiish-img-item:hover {
    border-color:#0073aa;
    box-shadow:0 0 0 2px rgba(0,115,170,0.12);
}
/* Image */
.styliiiish-img-item img {
    width:100%;
    height:100px;
    object-fit:cover;
    border-radius:6px;
}
/* Main Tag */
.tag-main {
    position:absolute;
    top:6px;
    left:6px;
    background:#0073aa;
    color:#fff;
    font-size:11px;
    padding:2px 6px;
    border-radius:4px;
}
/* Buttons row */
.image-btn-row {
    padding:15px;
    border-top:1px solid #eee;
    display:flex;
    justify-content:space-between;
}
/* Make buttons cleaner */
#styliiiish-add-image,
#styliiiish-close-image-modal {
    flex:1;
    margin:0 5px;
    border-radius:8px !important;
    padding:10px 14px !important;
}
/* ✅ خلي الـ backdrop تحت والـ modal فوقه بدرجة واحدة */
/* الخلفية السوداء */
.media-modal {
    z-index: 999999 !important;
}
.media-modal-backdrop {
    z-index: 999998 !important;
}
        
        
/* =========================================================
   ★★ Scroll Lock System (FINAL - COMPATIBLE WITH EKART) ★★
   ========================================================= */

/* قفل الاسكرول عند فتح نافذة الـ Attributes  
   → نستخدم html + body فقط (مناسب لـ Ekart بدون مشاكل Layout) */
html.attr-modal-open,
body.attr-modal-open {
    overflow: hidden !important;
    padding-right: var(--scrollbar-compensation, 0px) !important;
}

/* =========================================================
   ★★ Modal Base Styling ★★
   ========================================================= */

/* خلفية المودال */
.attr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 999999;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.25s ease-out;
}

/* صندوق المودال */
.attr-modal-content {
    background: #ffffff;
    padding: 30px 28px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(0,0,0,0.25);
    animation: popIn 0.25s ease-out;
}

/* العنوان */
.attr-modal-content h3 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

/* Label */
.attr-modal-content label {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
    margin-top: 16px;
}

/* Select */
.attr-modal-content select {
    width: 100%;
    padding: 12px 14px !important;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    font-size: 15px;
    transition: 0.2s;
    height: 48px !important;
    line-height: 24px !important;
    display: flex;
    align-items: center;
}

.attr-modal-content select:focus {
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
}

/* زرار Save */
.btn-save {
    margin-top: 25px;
    background: #0067b1;
    color: #fff;
    padding: 14px 15px;
    border-radius: 12px;
    border: none;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.btn-save:hover {
    background: #004f85;
}

/* زرار Close */
.btn-close {
    margin-top: 12px;
    background: #ddd;
    color: #333;
    padding: 13px 15px;
    border-radius: 12px;
    border: none;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-close:hover {
    background: #ccc;
}

/* select2 z-index */
.select2-container,
.select2-container .select2-dropdown {
    z-index: 1000000 !important;
}

/* انيميشن */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* تحسين شكل select2 */
.select2-selection--single {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 1 ;
     
}

.uploading-spinner {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    opacity: .7;
}

#styliiiish-upload-progress {
    margin: 20px 0;
    text-align: center;
    animation: fadeIn .2s ease-in-out;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.progress-inner {
    width: 0%;
    height: 100%;
    background: #4CAF50; /* اللون الأخضر */
    transition: width .2s ease-in-out;
}

.progress-text {
    font-size: 14px;
    opacity: .8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Base style for all statuses */
.sty-status {
    display: flex;          /* كان inline-flex */
    width: 100%;            /* الجديد المهم */
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Active (Published) */
.status-active {
    background: #d9fddd;
    color: #0a8a1f;
    border: 1px solid #17c83e;
}

/* Uncomplete (Draft) */
.status-uncomplete {
    background: #ffd7d7;
    color: #d10000;
    border: 1px solid #ff3b3b;
}

/* Pending */
.status-pending {
    background: #fff3c4;
    color: #b18100;
    border: 1px solid #e1b500;
}

/* Optional: small subtle animation for pending */
.status-pending::after {
    content: '⏳';
    margin-left: 4px;
    animation: spin 1s linear infinite;
    opacity: .7;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
        
        

/***************************** WELCOME Box ***************************************/


/* The Welcome Box */
.styliiiish-welcome-box {
    background: #fff5fb; /* وردي خفيف محترم */
    border: 1px solid #ffd7ef;
    border-radius: 16px;
    padding: 28px;
    margin: 25px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

/* Hover effect on the whole box */
.styliiiish-welcome-box:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Title inside box */
.styliiiish-welcome-box .sty-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

/* Text inside box */
.styliiiish-welcome-box .sty-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: .85;
    margin-bottom: 18px;
}

/* USER BUTTON */
.sty-btn-user-full {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px; /* Premium rounded */
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.25);
    transition: 0.25s ease;
}

.sty-btn-user-full:hover {
    background: #d41756;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.35);
    transform: translateY(-3px);
}

/* ADMIN BUTTON */
.sty-btn-admin-full {
    display: inline-block;
    background: #4c4cff;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(76, 76, 255, 0.25);
    transition: 0.25s ease;
}

.sty-btn-admin-full:hover {
    background: #3c3cdf;
    box-shadow: 0 8px 20px rgba(76, 76, 255, 0.35);
    transform: translateY(-3px);
}





/***********************************STYLISH USER MANAFE PRODUCTS *****************************************/


/* USER MODE ONLY – My Dresses / User Table */
.styliiiish-user-manage-products .pretty-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.styliiiish-user-manage-products .pretty-stat-box {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.styliiiish-user-manage-products .pretty-dot {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    margin: 0 auto 6px auto;
}

.styliiiish-user-manage-products .pretty-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.styliiiish-user-manage-products .pretty-value {
    font-size: 15px;
    font-weight: 600;
}

/* Colors */
.styliiiish-user-manage-products .stat-active-pretty .pretty-dot {
    background: #c8f3d3;
}

.styliiiish-user-manage-products .stat-uncomplete-pretty .pretty-dot {
    background: #ffd8d8;
}

.styliiiish-user-manage-products .stat-pending-pretty .pretty-dot {
    background: #d9eaff;
}

.styliiiish-user-manage-products .stat-deactivated-pretty .pretty-dot {
    background: #f4e1ff;
}

/* Hover */
.styliiiish-user-manage-products .pretty-stat-box:hover {
    transform: translateY(-3px);
    transition: 0.2s;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Hide checkbox (and its column) for USER mode only */
.styliiiish-user-manage-products td:first-child,
.styliiiish-user-manage-products th:first-child,
.styliiiish-user-manage-products .styliiiish-row-check {
    display: none !important;
}


/* إخفاء السلكت الخاصة بالمدير عند اليوزر فقط */
.styliiiish-user-manage-products #styliiiish-filter-status {
    display: none !important;
}







/********************************* TAAAAAAAJ STYLE *************************/


.taj-file-field {
    display:flex;
    flex-direction:column;
    gap:6px;
}

.taj-file-name {
    font-size:13px;
    color:#666;
}

/* Page headings */
.taj-page-title{margin:0 0 6px;font-size:26px;font-weight:800;letter-spacing:-.2px}
.taj-page-subtitle{margin:0 0 18px;color:#666;max-width:820px}

/* Card wrapper */
.taj-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  max-width:980px;
}

/* Sections */
.taj-section{
  padding:16px;
  border:1px solid #f0f0f0;
  border-radius:14px;
  background:#fff;
  margin-bottom:16px;
}
.taj-section-head h3{margin:0 0 4px;font-size:18px;font-weight:800}
.taj-section-head p{margin:0 0 12px;color:#777;font-size:13px}

/* Grid */
.taj-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.taj-field{display:flex;flex-direction:column;gap:6px}
.taj-field-full{grid-column:1 / -1}

.taj-field label{font-weight:700;font-size:13px;color:#222}
.taj-field input[type="text"],
.taj-field textarea,
.taj-field select{
  width:100%;
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:10px 12px;
  background:#fafafa;
  outline:none;
  transition:.2s;
}
.taj-field textarea{resize:vertical;min-height:90px}
.taj-field input:focus,
.taj-field textarea:focus,
.taj-field select:focus{
  background:#fff;
  border-color:#d4d4d4;
  box-shadow:0 0 0 3px rgba(0,0,0,.05);
}

/* Alert */
.taj-alert{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#fff7e6;
  border:1px solid #ffe1a3;
  border-radius:12px;
  padding:10px 12px;
  color:#7a4b00;
  font-size:13px;
}

/* Divider */
.taj-divider{height:1px;background:#f0f0f0;margin:14px 0}
.taj-section-mini h4{margin:0 0 4px;font-weight:800}
.taj-section-mini p{margin:0 0 10px;color:#777;font-size:13px}

/* File fields */
.taj-file-field .taj-file-ui{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.taj-file-name{
  font-size:13px;
  color:#666;
  padding:8px 10px;
  border:1px dashed #ddd;
  border-radius:12px;
  background:#fafafa;
  flex:1;
  min-width:180px;
}
.taj-file-preview{
  margin-top:10px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #eee;
  background:#fafafa;
  display:none;
}
.taj-file-preview img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

/* Actions */
.taj-actions{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.taj-submit{padding:12px 16px;font-weight:800;border-radius:12px}
.taj-note{margin:0;color:#777;font-size:13px}



/*********************************** Status Page And BTNS ********************/
.status-deactivated {
    background: #f2f2f2;
    color: #555;
    border: 1px solid #d9d9d9;
}

.btn-deactivate-user {
    background: linear-gradient(135deg, #f8e7ff, #f0d4ff) !important;
    color: #7b11c9;
    border: 1px solid #d8b6ff;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.btn-edit-user  {
    background: linear-gradient(135deg, #f8e7ff, #f0d4ff) !important;
    color: #7b11c9;
    border: 1px solid #d8b6ff;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.btn-deactivate-user:hover {
    background: linear-gradient(135deg, #f3d8ff, #e8c3ff);
    border-color: #c699ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(140, 40, 200, 0.15);
}

.btn-activate-user {
    background: linear-gradient(135deg, #dfffec, #b7ffd7);
    color: #0b8a4a;
    border: 1px solid #7dffb5;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.btn-activate-user:hover {
    background: linear-gradient(135deg, #c9ffe3, #a2ffd0);
    border-color: #5aff9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(20, 170, 110, 0.18);
}





/* Skeleton */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.sk-line, .sk-box, .sk-btn, .sk-dropdown {
    background: linear-gradient(90deg, #eee 0px, #ddd 40px, #eee 80px);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear;
    border-radius: 4px;
}
.sk-check { width: 15px; height: 15px; }
.sk-img { width: 60px; height: 70px; border-radius: 6px; }
.sk-line { height: 12px; margin-bottom: 6px; }
.sk-w-50 { width: 50px; }
.sk-w-60 { width: 60px; }
.sk-w-80 { width: 80px; }
.sk-w-90 { width: 90px; }
.mt-4 { margin-top: 4px !important; }
.sk-dropdown { width: 90px; height: 24px; border-radius: 4px; }
.sk-btn { width: 45px; height: 22px; display: inline-block; margin-right: 4px; border-radius: 6px; }

.sty-skeleton-card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    animation: pulse 1.4s ease-in-out infinite;
}

.sk-thumb {
    background: #eee;
    border-radius: 8px;
}

.sk-line {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    margin-bottom: 8px;
}

.sk-line.title {
    width: 60%;
    height: 14px;
}

.sk-line.small {
    width: 40%;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: .4; }
    100% { opacity: 1; }
}

.sty-reject-reason-box {
    background: #fff6f6;
    border-left: 4px solid #e53935;
    padding: 8px 10px;
    margin-top: 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.sty-reject-reason-box strong {
    display: block;
    margin-bottom: 3px;
    color: #b71c1c;
}

.sty-reject-note {
    margin-top: 4px;
    color: #555;
    font-style: italic;
}

.wf-uploading{
    font-size:13px;
    color:#666;
    animation:pulse 1.2s infinite;
}

@keyframes pulse {
    0%{opacity:.3}
    50%{opacity:1}
    100%{opacity:.3}
}



.styliiiish-user-tips-box {
    background: #fff7fe;
    border: 1px solid #f3d7ff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 25px;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.styliiiish-add-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.styliiiish-add-note {
    font-size: 13px;
    opacity: 0.85;
}

/* ============================
   Vendor Filters
============================ */
.sty-vendor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 25px;
}

.vp-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.vp-filter-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.vp-filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

/* Status colors (??????? ????? ???? ????) */
.vp-filter-btn[data-status="pending"] { border-color:#ff9800; }
.vp-filter-btn[data-status="publish"] { border-color:#4caf50; }
.vp-filter-btn[data-status="incomplete"] { border-color:#9e9e9e; }
.vp-filter-btn[data-status="deactivated"] { border-color:#f44336; }

/* vendor buttons */
.vendor-btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    margin-right: 6px;
}

/* =========================================
   CATEGORY CELL
========================================= */
.cats-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.cats-text {
    font-size: 14px;
}
/* Categories Edit Button */
.cats-edit-btn {
    background:#0073aa;
    color:#fff !important;
    border:none;
    padding:5px 10px;
    border-radius:5px;
    cursor:pointer;
}
.cats-edit-btn:hover {
    background:#005f87;
}
        
/* =========================================
   BULK BAR
========================================= */
.bulk-bar {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
    margin-bottom:10px;
}
.bulk-bar select,
.bulk-bar button {
    padding:6px 10px;
    border-radius:6px;
}
        
/* =========================================
   ORDERS TABLE
========================================= */
.orders-table {
    width:100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.orders-table th,
.orders-table td {
    padding: 10px 8px;
    border-bottom:1px solid #ddd;
}
.orders-badge {
    padding:4px 10px;
    border-radius:6px;
    font-size:12px;
    color:#fff;
}
.os-processing { background:#0073aa; }
.os-completed  { background:#28a745; }
.os-cancelled  { background:#dc3545; }
/* Image wrapper */
.styliiiish-image-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.styliiiish-image-overlay {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.35);
    color:#fff;
    opacity:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    border-radius:6px;
    transition:opacity .18s ease;
}
.styliiiish-image-wrapper:hover .styliiiish-image-overlay {
    opacity:1;
}
 /* الصورة نفسها */
.styliiiish-image-wrapper img {
    width: 60px !important;
    height: 70px !important;
    border-radius: 6px;
}
 
/* Image modern box */
.styliiiish-image-cell img {
    width: 70px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.10);
}
        
/* ===========================================================
   ⭐ FIX 1 — Pagination: Highlight Current Page
=========================================================== */
.styliiiish-page-link.button-primary.styliiiish-current-page {
    background: #0073aa !important;
    color: #fff !important;
    border: 1px solid #005177 !important;
    box-shadow: 0 0 0 2px rgba(0,114,170,0.2);
    transform: translateY(-2px);
    font-weight: 600;
}
        
 /* Hover تحسين */
.styliiiish-page-link:hover {
    background: #e9f5ff !important;
    border: 1px solid #c7e7ff !important;
}
  
/* أنيميشن دخول بسيط */
@keyframes pop-in {
    0% { transform: scale(.92); opacity: .2; }
    100% { transform: scale(1); opacity: 1; }
}
        




        
/* ============================================================
   DESKTOP STATS (>= 769px)
   إصلاح كامل لشكل Published / Total / Draft على الديسكتوب
============================================================ */
@media (min-width: 769px) {

    /* الحاوية العامة (ثلاثة صناديق بجانب بعض) */
    .styliiiish-stats-bar {
        display: flex;
        align-items: stretch;
        gap: 20px;
        margin: 20px 0;
    }

    /* كل بوكس */
    .styliiiish-stat-box {
        flex: 1;
        background: #fff;
        padding: 24px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        border: 1px solid #e5e5e5;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
    }

    /* المربع الملون فوق كل بوكس */
    .styliiiish-stat-box::before {
        content: "";
        width: 26px;
        height: 26px;
        border-radius: 6px;
        margin-bottom: 10px;
        opacity: 0.25;
    }

    /* Published — اللون الأخضر */
    .styliiiish-stat-box.stat-published::before {
        background: #28a745;
    }

    /* Total — اللون الأزرق */
    .styliiiish-stat-box.stat-total::before {
        background: #0073aa;
    }

    /* Draft — اللون الأحمر */
    .styliiiish-stat-box.stat-draft::before {
        background: #dc3545;
    }

    /* النص داخل البوكس */
    .stat-inner {
        font-size: 20px;
        font-weight: 600;
        color: #222;
        white-space: nowrap;
    }

    /* إصلاح الصف الداخلي (Total + Draft) */
    .styliiiish-stats-row {
        display: flex;
        flex-direction: row;
        gap: 20px;
        flex: 2;
    }

    /* Total و Draft ياخدوا نفس الحجم */
    .styliiiish-stats-row .styliiiish-stat-box {
        flex: 1;
    }
        .btn-edit {
        display: none !important;
    }
}

/* ============================
   Mobile
============================ */

@media(max-width:768px){

  .cats-wrap{
    background:#fff;
    border:none;
    padding:4px 0;
  }

  .cats-edit-btn{
    opacity:1;
    transform:scale(1);
  }

}



/* Responsive */
@media (max-width: 860px){
  .taj-card{padding:14px}
  .taj-grid{grid-template-columns:1fr}
  .taj-page-title{font-size:22px}
}



@media (max-width: 767px) {

    .sty-vendor-list {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }

    .sty-skeleton-card {
        display: block;
    }

    .sk-thumb {
        width: 100%;
        height: 180px;
        margin-bottom: 10px;
    }
}


























/************************ Cards Theme *****************************/ /* ========================== Advanced Cards UI ========================== */ 





.sty-vendor-review-wrapper {
    margin-top: 10px;
}

.sty-vendor-review-head h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.sty-vendor-review-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
}

.sty-vendor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sty-vendor-card {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

.sty-vendor-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sty-vendor-checkbox input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

.sty-vendor-thumb img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.sty-vendor-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sty-vendor-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.sty-vendor-meta {
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sty-vendor-status {
    margin-top: 4px;
}

.sty-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sty-badge-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
}

.sty-badge-draft {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sty-vendor-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sty-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.sty-approve {
    background: #28a745;
    color: #fff;
}
.sty-approve:hover {
    background: #218838;
}

.sty-reject {
    background: #dc3545;
    color: #fff;
}
.sty-reject:hover {
    background: #c82333;
}

.sty-edit {
    background: #f5f9ff;
    color: #0073aa;
    border: 1px solid #cde4ff;
}
.sty-edit:hover {
    background: #e2efff;
}

.sty-view {
    background: #ffffff;
    color: #555;
    border: 1px solid #ddd;
}
.sty-view:hover {
    background: #f7f7f7;
}

.sty-no-items {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}



@media (min-width: 992px) {
    .sty-vendor-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .sty-vendor-card {
        height: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .sty-vendor-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .sty-vendor-card {
        height: 100%;
    }
}

@media (max-width: 767px) {
    .sty-vendor-card {
        padding: 10px 12px;
    }

    .sty-vendor-title {
        font-size: 14px;
    }

    .sty-vendor-meta {
        font-size: 12px;
    }
}

.sty-vendor-card.removing {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.25s ease-in-out;
}


























.sty-info-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: 13px;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
}

.sty-info-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

.sty-info-table td:first-child {
    width: 120px;
    font-weight: bold;
    color: #444;
}

.sty-info-table tr:last-child td {
    border-bottom: none;
}


.swal2-backdrop-show {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.swal2-popup.sty-alert {
    border-radius: 20px !important;
    padding: 16px 18px !important;
    background: rgba(20, 20, 20, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
    max-width: 480px !important;   
    width: 90% !important;         
    opacity: 1 !important;
    transition: opacity 0.25s ease-out !important;
}

.swal2-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    color: #fff !important;
}

.swal2-html-container {
    font-size: 15.8px !important;
    line-height: 1.55 !important;
    color: #e6e6e6 !important;
    margin-bottom: 26px !important;
}

.swal2-actions {
    width: 100% !important;               
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;              
    margin-top: 18px !important;
}

.swal2-confirm.sty-btn-primary {
    flex: 1 !important;
    background: #ff006e !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    transition: 0.2s ease;
}

.swal2-confirm.sty-btn-primary:hover {
    background: #ff2e8b !important;
    transform: translateY(-1px);
}

.swal2-cancel.sty-btn-secondary {
    flex: 1 !important;
    background: rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    color: #fff !important;
    transition: 0.2s ease;
}

.swal2-cancel.sty-btn-secondary:hover {
    background: rgba(255,255,255,0.20) !important;
    transform: translateY(-1px);
}

.swal2-popup {
    border-radius: 12px !important;
    padding: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.swal2-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.swal2-html-container {
    font-size: 15px !important;
    color: #666 !important;
}

.swal2-confirm {
    background: #2ecc71 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
}

.swal2-cancel {
    background: #e74c3c !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
}

.swal2-close {
    color: #000 !important;
    font-size: 28px !important;
    opacity: 1 !important;
}

.sty-gallery-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    padding: 10px;
}

@media (max-width: 600px) {
    .sty-gallery-wrap {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 6px;
    }
}

.sty-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
}

.sty-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: .2s ease;
}

.sty-img-box img:hover {
    transform: scale(1.06);
}

.sty-fullscreen-view {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.sty-fullscreen-view img {
    max-width: 90%;
    max-height: 90%;
}

.sty-fullscreen-close {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}


