/* صفحه‌ی غرفه‌داران — طراحی یکدست و اصولی */
.pvh{--pv-ink:#0f172a;--pv-mut:#64748b;--pv-line:#e2e8f0;--pv-bg:#f8fafc;--pv-brand:#1d5cdb;--pv-brand2:#3b82f6;--pv-ok:#15803d;max-width:1040px;margin:0 auto;padding:12px 14px 40px;color:var(--pv-ink);display:grid;gap:18px}
.pvh *{box-sizing:border-box}
.pvh-card{background:#fff;border:1px solid var(--pv-line);border-radius:22px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 10px 30px rgba(15,23,42,.05);padding:24px}
.pvh-card h2{font-size:21px;font-weight:800;margin:0 0 8px}
.pvh-card p{font-size:14px;line-height:1.9;color:#334155;margin:0 0 14px}

/* هدر اصلی */
.pvh-hero{background:linear-gradient(135deg,var(--pv-brand) 0%,var(--pv-brand2) 100%);color:#fff;border-radius:24px;padding:24px;box-shadow:0 18px 40px rgba(29,92,219,.22);display:grid;gap:18px;position:relative;overflow:hidden}
.pvh-hero::after{content:"";position:absolute;inset-inline-end:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.1)}
.pvh-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;position:relative;z-index:1}
.pvh-kicker{font-size:12px;font-weight:700;opacity:.85;letter-spacing:.2px}
.pvh-hero h2{font-size:24px;font-weight:800;margin:4px 0 4px}
.pvh-hero p{font-size:13px;opacity:.9;margin:0}
.pvh-status{font-size:12px;font-weight:800;border-radius:999px;padding:7px 14px;background:rgba(255,255,255,.2);color:#fff;white-space:nowrap}
.pvh-s-approved{background:#dcfce7;color:#14532d}
.pvh-s-pending{background:#fef3c7;color:#78350f}
.pvh-s-rejected,.pvh-s-suspended{background:#fee2e2;color:#7f1d1d}
.pvh-s-draft{background:#fff;color:var(--pv-brand)}
.pvh-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;position:relative;z-index:1}
.pvh-stats>div{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:14px 16px;backdrop-filter:blur(4px)}
.pvh-stats span{display:block;font-size:12px;opacity:.9}
.pvh-stats b{display:block;font-size:19px;font-weight:800;margin-top:4px;word-break:break-word}
.pvh-stats small{font-size:11px;font-weight:600;opacity:.85}

/* نوار مراحل */
.pvh-stepper{list-style:none;margin:0;padding:6px 8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--pv-line);border-radius:18px;position:relative}
.pvh-stepper li{display:grid;justify-items:center;gap:6px;position:relative;z-index:1;padding:8px 4px}
.pvh-stepper li:not(:last-child)::after{content:"";position:absolute;top:22px;inset-inline-start:calc(50% + 22px);width:calc(100% - 44px);height:3px;background:var(--pv-line);border-radius:3px;z-index:-1}
.pvh-stepper li.done:not(:last-child)::after{background:var(--pv-ok)}
.pvh-dot{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--pv-line);color:var(--pv-mut);font-weight:800;font-style:normal;font-size:14px}
.pvh-stepper li.done .pvh-dot{background:var(--pv-ok);border-color:var(--pv-ok);color:#fff}
.pvh-stepper li.now .pvh-dot{border-color:var(--pv-brand);color:var(--pv-brand);box-shadow:0 0 0 5px rgba(29,92,219,.12)}
.pvh-stepper em{font-style:normal;font-size:13px;font-weight:700;color:var(--pv-mut)}
.pvh-stepper li.done em,.pvh-stepper li.now em{color:var(--pv-ink)}

/* محتوای داخلی: تب‌ها، کارت‌ها، فرم‌ها */
.pvh-body{display:grid;gap:14px}
.pubix-vendor-hub{display:grid;gap:14px}
.pubix-vendor-hub .pv-tabs{display:inline-flex;flex-wrap:wrap;gap:4px;background:#fff;border:1px solid var(--pv-line);border-radius:14px;padding:4px;margin:0;width:max-content;max-width:100%}
.pubix-vendor-hub .pv-tabs a{padding:9px 16px;border-radius:10px;font-size:13px;font-weight:700;color:var(--pv-mut);text-decoration:none;transition:background .15s,color .15s}
.pubix-vendor-hub .pv-tabs a:hover{color:var(--pv-ink);background:var(--pv-bg)}
.pubix-vendor-hub .pv-tabs a.on{background:var(--pv-ink);color:#fff;box-shadow:0 4px 12px rgba(15,23,42,.18)}
.pubix-vendor-hub .card{background:#fff;border:1px solid var(--pv-line);border-radius:20px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.04);padding:22px}
.pubix-vendor-hub .card h3{font-size:17px;font-weight:800;margin:0 0 14px;color:var(--pv-ink)}
.pubix-vendor-hub label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#334155}
.pubix-vendor-hub input:not([type=checkbox]):not([type=radio]),.pubix-vendor-hub select,.pubix-vendor-hub textarea,.pubix-vendor-hub .input-text{width:100%;min-height:44px;border:1.5px solid #d6dee9;border-radius:12px;padding:10px 12px;font:inherit;font-size:14px;background:#f8fafd;color:var(--pv-ink);transition:border-color .15s,box-shadow .15s,background .15s}
.pubix-vendor-hub input:focus,.pubix-vendor-hub select:focus,.pubix-vendor-hub textarea:focus{outline:none;border-color:var(--pv-brand2);background:#fff;box-shadow:0 0 0 4px rgba(29,92,219,.12)}
.pubix-vendor-hub textarea{min-height:110px}
.pubix-vendor-hub .btn,.pubix-vendor-hub button[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 20px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--pv-brand),var(--pv-brand2));color:#fff;font:inherit;font-size:14px;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 6px 16px rgba(29,92,219,.22);transition:transform .15s,box-shadow .15s}
.pubix-vendor-hub .btn:hover,.pubix-vendor-hub button[type=submit]:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(29,92,219,.28);color:#fff}
.pubix-vendor-hub .btn.ghost{background:#fff;color:var(--pv-ink);border:1.5px solid #d6dee9;box-shadow:none}
.pubix-vendor-hub .btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.pubix-vendor-hub .woocommerce-message,.pubix-vendor-hub .woocommerce-error,.pubix-vendor-hub .woocommerce-info{border-radius:14px;padding:12px 16px;font-size:13px;font-weight:700;border:1px solid;margin:0}
.pubix-vendor-hub .woocommerce-message{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
.pubix-vendor-hub .woocommerce-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.pubix-vendor-hub .woocommerce-info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}
.pubix-vendor-hub img{max-width:100%;border-radius:14px}

/* فرم افزودن محصول */
.pubix-vendor-hub .pv-prod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:14px}
.pv-sku{display:grid;gap:6px}
.pv-sku-lbl{font-size:13px;font-weight:700;color:#334155}
.pv-sku-box{display:flex;align-items:stretch;border:1.5px solid #d6dee9;border-radius:12px;overflow:hidden;background:#f8fafd;direction:ltr}
.pv-sku-box:focus-within{border-color:var(--pv-brand2);background:#fff;box-shadow:0 0 0 4px rgba(29,92,219,.12)}
.pv-sku-box em{font-style:normal;font-weight:800;color:var(--pv-mut);background:#eef2f7;padding:0 12px;display:grid;place-items:center;border-inline-end:1px solid #d6dee9;direction:ltr;white-space:nowrap}
.pv-sku-box input{border:0!important;box-shadow:none!important;background:transparent!important;flex:1;min-width:0;min-height:42px;padding:0 12px!important;direction:ltr}
.pv-sku small{font-size:11.5px;color:var(--pv-mut);line-height:1.7}

@media (max-width:620px){
  .pvh{padding:8px 4px 32px}
  .pvh-hero{padding:18px;border-radius:20px}
  .pvh-hero h2{font-size:20px}
  .pvh-stats{grid-template-columns:1fr}
  .pvh-stats>div{display:flex;justify-content:space-between;align-items:center;gap:10px}
  .pvh-stats b{margin:0;font-size:16px}
  .pvh-stepper{grid-template-columns:repeat(3,minmax(0,1fr));padding:6px}
  .pvh-dot{width:34px;height:34px;font-size:13px}
  .pvh-stepper li:not(:last-child)::after{top:17px}
  .pvh-stepper em{font-size:12px}
  .pubix-vendor-hub .pv-tabs{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .pubix-vendor-hub .pv-tabs a{text-align:center;padding:9px 6px;font-size:12px}
  .pubix-vendor-hub .card{padding:16px;border-radius:18px}
  .pubix-vendor-hub .pv-prod-grid{grid-template-columns:1fr}
  .pubix-vendor-hub .btn,.pubix-vendor-hub button[type=submit]{width:100%}
}
@media (prefers-reduced-motion:reduce){.pvh *{transition:none!important;animation:none!important}}

/* ---------- آرشیو عمومی غرفه‌ها (/vendor/) ---------- */
.vg-page{max-width:1140px;margin:0 auto;padding:18px 16px 48px;display:grid;gap:18px;color:var(--pv-ink,#0f172a)}
.vg-hero{background:linear-gradient(135deg,#1d5cdb 0%,#3b82f6 100%);color:#fff;border-radius:24px;padding:26px 28px;box-shadow:0 18px 40px rgba(29,92,219,.22);position:relative;overflow:hidden}
.vg-hero::after{content:"";position:absolute;inset-inline-end:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.1)}
.vg-hero-txt{position:relative;z-index:1;display:grid;gap:6px;max-width:640px}
.vg-kicker{font-size:12px;font-weight:700;opacity:.9}
.vg-hero h1{font-size:28px;font-weight:800;margin:0}
.vg-hero p{font-size:14px;line-height:1.9;opacity:.92;margin:0}
.vg-stats{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.vg-stats>div{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:14px;padding:10px 16px;display:grid;min-width:120px}
.vg-stats b{font-size:20px;font-weight:800}
.vg-stats span{font-size:12px;opacity:.9}
.vg-tabs{display:inline-flex;flex-wrap:wrap;gap:4px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:4px;width:max-content;max-width:100%}
.vg-tabs a{padding:9px 16px;border-radius:10px;font-size:13px;font-weight:700;color:#64748b;text-decoration:none;transition:background .15s,color .15s}
.vg-tabs a:hover{color:#0f172a;background:#f8fafc}
.vg-tabs a.on{background:#0f172a;color:#fff;box-shadow:0 4px 12px rgba(15,23,42,.18)}
.vg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.vg-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;text-decoration:none;color:inherit;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;flex-direction:column}
.vg-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(15,23,42,.1);border-color:#cfe0ff}
.vg-top{display:flex;gap:12px;align-items:center;padding:16px}
.vg-name-box{min-width:0;display:grid;gap:4px}
.vg-card .vp-logo{width:52px;height:52px;border-radius:14px;background:#eef4ff;display:grid;place-items:center;overflow:hidden;flex:none;font-weight:800;color:#1d5cdb;font-size:18px}
.vg-card .vp-logo img{width:100%;height:100%;object-fit:cover}
.vg-card .vp-name{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.vg-card .vp-meta{font-size:12px;color:#64748b;display:flex;gap:8px;flex-wrap:wrap}
.vg-card .vp-star{color:#f59e0b;font-weight:700}
.vg-card .vp-divider{margin:0}
.vg-body{padding:12px 16px 16px;display:grid;gap:10px}
.vg-card .vp-count{font-size:12px;color:#64748b;font-weight:700}
.vg-products{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.vg-card .vp-products{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.vg-p{display:grid;gap:4px}
.vg-card .vp-thumb{aspect-ratio:1;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;overflow:hidden}
.vg-card .vp-thumb img{width:100%;height:100%;object-fit:cover}
.vg-card .vp-price{font-size:11px;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:20px;padding:36px;text-align:center}
.vg-empty h2{font-size:18px;font-weight:800;margin:0 0 6px}
.vg-empty p{color:#64748b;margin:0;font-size:14px}
.vg-cta{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;background:linear-gradient(135deg,#eef4ff,#fff);border:1px solid #cfe0ff;border-radius:20px;padding:20px 24px}
.vg-cta b{display:block;font-size:16px;font-weight:800;margin-bottom:4px}
.vg-cta span{font-size:13px;color:#64748b;line-height:1.8}
.vg-btn{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1d5cdb,#3b82f6);color:#fff!important;font-weight:800;font-size:14px;border-radius:12px;padding:12px 22px;text-decoration:none;box-shadow:0 8px 18px rgba(29,92,219,.25);white-space:nowrap}
@media (max-width:620px){
  .vg-hero{padding:20px}
  .vg-hero h1{font-size:23px}
  .vg-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .vg-tabs a{text-align:center;padding:9px 6px;font-size:12px}
  .vg-grid{grid-template-columns:1fr}
  .vg-btn{width:100%}
}
