/**
 * Business Profile — Epsilon
 * تصميم موسّع • هرمية بصرية • تفاصيل احترافية
 */

/* ========== Design Tokens ========== */
#bpr-seller.bpr-body {
  --bpr-primary: #3b49df;
  --bpr-primary-hover: #2f3ab2;
  --bpr-primary-soft: rgba(59, 73, 223, 0.12);
  --bpr-surface: #ffffff;
  --bpr-surface-2: #f6f8fb;
  --bpr-surface-3: #eef1f6;
  --bpr-text: #0d1b2a;
  --bpr-text-2: #1b263b;
  --bpr-text-3: #415a77;
  --bpr-text-muted: #778da9;
  --bpr-border: rgba(0, 0, 0, 0.06);
  --bpr-border-2: rgba(0, 0, 0, 0.1);
  --bpr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --bpr-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --bpr-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --bpr-shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.16);
  --bpr-radius: 12px;
  --bpr-radius-lg: 20px;
  --bpr-radius-xl: 28px;
  --bpr-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bpr-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bpr-transition: 0.28s var(--bpr-ease);
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
  color: var(--bpr-text);
}

/* ========== Hero — غلاف درامي ========== */
.bpr-cover {
  min-height: 280px;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

/* Hide breadcrumbs on business profile page so cover sticks to header */
.sec-bpr-seller #breadcrumbs {
  display: none !important;
}

/* Remove top spacing created for breadcrumbs so cover is flush to header */
.content.sec-bpr-seller {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.content.sec-bpr-seller #bpr-seller {
  margin-top: 0 !important;
}

.bpr-cover .bpr-wrap {
  padding-top: 34%;
  position: relative;
  overflow: hidden;
}

.bpr-cover .bpr-wrap .bpr-wrap-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* طبقات التعتيم والعمق */
.bpr-cover .bpr-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13, 27, 42, 0.75) 0%, rgba(13, 27, 42, 0.4) 45%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.bpr-cover .bpr-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* خط زخرفي سفلي */
.bpr-cover .bpr-wrap .bpr-wrap-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--bpr-primary), transparent);
  opacity: 0.9;
  z-index: 2;
}

/* أزرار التواصل — زجاجي */
.bpr-cover .bpr-contact-us {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 3;
}

#bpr-seller .bpr-cover .bpr-contact-us,
#bpr-seller .bpr-cover .bpr-socials,
.bpr-cover .bpr-contact-us,
.bpr-cover .bpr-socials {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bpr-cover .bpr-contact-us a.bpr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: var(--bpr-primary);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(59, 73, 223, 0.45);
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition), background var(--bpr-transition);
}

.bpr-cover .bpr-contact-us a.bpr-btn.bpr-go:hover {
  background: var(--bpr-primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(59, 73, 223, 0.5);
  color: #fff;
}

.bpr-cover .bpr-contact-us a.bpr-btn.bpr-go:active {
  transform: translateY(-1px);
}

.bpr-cover .bpr-contact-us a.bpr-disabled {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: not-allowed;
  box-shadow: none;
}

/* السوشيال — كبسولات زجاجية */
.bpr-cover .bpr-socials {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
}

.bpr-cover .bpr-socials .bpr-right-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.bpr-cover .bpr-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--bpr-transition), background var(--bpr-transition), color var(--bpr-transition);
}

.bpr-cover .bpr-socials a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  color: #fff;
}

/* ========== البطاقة الرئيسية — ظل وعمق ========== */
#bpr-seller .bpr-inside {
  margin-top: 0;
  position: relative;
  z-index: 4;
  border-radius: var(--bpr-radius-xl);
  box-shadow: var(--bpr-shadow-xl);
  border: 1px solid var(--bpr-border);
  padding: 0;
  overflow: hidden;
  background: var(--bpr-surface);
  transition: box-shadow var(--bpr-transition);
}

#bpr-seller .bpr-inside:hover {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.12);
}

/* ========== منطقة البروفايل — يسار/يمين ========== */
.bpr-profile {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.bpr-profile .bpr-left {
  padding: 28px 40px 40px 40px;
  border-right: 1px solid var(--bpr-border);
  flex: 1;
  min-width: 0;
  position: relative;
}

/* الشعار + النوع */
.bpr-profile .bpr-left .bpr-icon {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: -70px auto 15px !important;
  width: 140px !important;
  height: 140px !important;
  display: block !important;
  z-index: 99 !important;
}

.bpr-profile .bpr-left .bpr-icon img {
  width: 140px !important;
  height: 140px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 5px solid #fff !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  box-sizing: border-box !important;
  display: block !important;
}

.bpr-profile .bpr-left .bpr-box {
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px 10px !important;
  width: 100% !important;
  clear: both !important;
}

.bpr-profile .bpr-left .bpr-box h1 {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin: 0 0 8px 0 !important;
  order: 0 !important;
}

.bpr-profile .bpr-left .bpr-box .bpr-category {
  display: none !important;
}

.bpr-profile .bpr-left .bpr-box .bpr-verified {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex !important;
  width: 24px !important;
  height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 24px !important;
  order: 0 !important;
}

.bpr-profile .bpr-left .bpr-box .bpr-verified img {
  display: none !important;
}

.bpr-profile .bpr-left .bpr-box .bpr-verified::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("/oc-content/uploads/custom-images/Verification-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.bpr-profile .bpr-left .bpr-box .bpr-type-wrap {
  order: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

.bpr-profile .bpr-left .bpr-box .bpr-type-wrap .bpr-user-type {
  font-size: 10px;
  padding: 1px 8px;
  line-height: 18px;
}

.bpr-profile .bpr-left .bpr-box > * {
  order: 10;
}

.bpr-profile .bpr-left .bpr-box > h1,
.bpr-profile .bpr-left .bpr-box > .bpr-verified,
.bpr-profile .bpr-left .bpr-box > .bpr-type-wrap {
  order: 0;
}

.bpr-profile .bpr-left .bpr-box > .bpr-category,
.bpr-profile .bpr-left .bpr-box > .bpr-reg,
.bpr-profile .bpr-left .bpr-box > .bpr-about,
.bpr-profile .bpr-left .bpr-box > .bpr-features,
.bpr-profile .bpr-left .bpr-box > #bpr-gallery,
.bpr-profile .bpr-left .bpr-box > #bpr-video {
  flex: 0 0 100% !important;
  width: 100% !important;
}

@media screen and (min-width: 992px) {
  .bpr-profile .bpr-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .bpr-profile .bpr-left .bpr-icon {
    margin: -70px 22px 0 0 !important;
    flex: 0 0 auto;
    float: none !important;
  }

  .bpr-profile .bpr-left .bpr-box {
    align-items: flex-start !important;
    text-align: left !important;
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start !important;
    gap: 10px 10px;
  }

  [dir="rtl"] .bpr-profile .bpr-left .bpr-box {
    justify-content: flex-start !important;
    text-align: right !important;
  }

  .bpr-profile .bpr-left .bpr-box > h1,
  .bpr-profile .bpr-left .bpr-box > .bpr-verified,
  .bpr-profile .bpr-left .bpr-box > .bpr-type-wrap {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }

  .bpr-profile .bpr-left .bpr-box > .bpr-category,
  .bpr-profile .bpr-left .bpr-box > .bpr-reg,
  .bpr-profile .bpr-left .bpr-box > .bpr-about,
  .bpr-profile .bpr-left .bpr-box > .bpr-features,
  .bpr-profile .bpr-left .bpr-box > #bpr-gallery,
  .bpr-profile .bpr-left .bpr-box > #bpr-video {
    flex: 0 0 100%;
    width: 100%;
  }

  [dir="rtl"] .bpr-profile .bpr-left {
    text-align: right;
  }

  [dir="rtl"] .bpr-profile .bpr-left .bpr-icon {
    margin: -70px 0 0 22px !important;
    float: none !important;
  }

  [dir="rtl"] .bpr-profile .bpr-left .bpr-box {
    align-items: flex-start !important;
    text-align: right !important;
  }
}

/* اسم الشركة — تيبوغرافيا قوية */
.bpr-profile h1,
#bpr-seller .bpr-inside .bpr-profile h1 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--bpr-text);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.bpr-profile .bpr-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  margin: 0 0 14px 0;
  flex-wrap: wrap;
}

html[dir="rtl"] .bpr-profile .bpr-actions{
  justify-content:flex-start;
}

.bpr-profile .bpr-actions .bpr-socials{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

.bpr-profile .bpr-actions .bpr-social{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background: var(--bpr-surface-2);
  border: 1px solid var(--bpr-border);
  color: var(--bpr-text-2);
  text-decoration:none;
  transition: transform var(--bpr-transition), background var(--bpr-transition);
}

.bpr-profile .bpr-actions .bpr-social:hover{
  transform: translateY(-2px);
  background: var(--bpr-primary-soft);
}

.bpr-profile .bpr-actions .bpr-contact-us{
  margin-left:auto;
}

html[dir="rtl"] .bpr-profile .bpr-actions .bpr-contact-us{
  margin-left: 0;
  margin-right:auto;
}

.bpr-profile .bpr-actions .bpr-contact-us a.bpr-btn{
  height:44px;
  padding:0 18px;
  border-radius:999px;
}

@media screen and (max-width: 767px) {
  .bpr-profile .bpr-actions{
    justify-content:center;
  }

  .bpr-profile .bpr-actions .bpr-contact-us{
    margin-left: 0;
    margin-right:0;
    width:100%;
    display:flex;
    justify-content:center;
  }
}

/* التصنيفات — أقراص */
.bpr-profile .bpr-category {
  margin: 0 0 12px 0;
}

.bpr-profile .bpr-category a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bpr-primary);
  text-decoration: none;
  background: var(--bpr-primary-soft);
  border-radius: 999px;
  transition: background var(--bpr-transition), color var(--bpr-transition), transform 0.2s var(--bpr-ease);
}

.bpr-profile .bpr-category a:hover {
  background: var(--bpr-primary);
  color: #fff;
  transform: translateY(-1px);
}

.bpr-profile .bpr-category span {
  display: none;
}

/* منذ سنة — شارة صغيرة */
.bpr-profile .bpr-reg {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bpr-text-muted);
  background: var(--bpr-surface-2);
  border-radius: 999px;
  margin: 0 0 16px 0;
}

/* عن الشركة */
.bpr-profile .bpr-about {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bpr-text-2);
  margin: 0 0 24px 0;
}

/* ========== الميزات — كروت مصغرة ========== */
.bpr-profile .bpr-features {
  margin: 28px 0 0 0;
  padding: 24px 0 0 0;
  border-top: 1px solid var(--bpr-border);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.bpr-profile .bpr-features .bpr-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bpr-surface-2);
  border-radius: var(--bpr-radius);
  border: 1px solid var(--bpr-border);
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition), border-color var(--bpr-transition);
}

.bpr-profile .bpr-features .bpr-feat:hover {
  transform: translateY(-2px);
  box-shadow: var(--bpr-shadow);
  border-color: var(--bpr-primary-soft);
}

.bpr-profile .bpr-features .bpr-ic {
  flex-shrink: 0;
}

.bpr-profile .bpr-features .bpr-ic img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.bpr-profile .bpr-features .bpr-feat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--bpr-text-2);
}

.bpr-category-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 15px 0 25px 0 !important;
  width: 100% !important;
  clear: both !important;
  position: relative !important;
  z-index: 99 !important;
}

.bpr-category-gallery a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bpr-text-2) !important;
  background: var(--bpr-surface-2) !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  box-shadow: var(--bpr-shadow-sm) !important;
  transition: all 0.3s ease !important;
  border: 1px solid var(--bpr-border) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.bpr-category-gallery a:hover {
  background: var(--bpr-primary-soft) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--bpr-shadow) !important;
  color: var(--bpr-primary) !important;
}

/* ========== المعرض ========== */
#bpr-gallery {
  margin: 48px 0 0 0 !important;
  padding: 44px 0 0 0 !important;
  border-top: 1px solid var(--bpr-border);
  clear: both !important;
  position: relative !important;
  z-index: 1 !important;
  float: none !important;
  display: block !important;
  isolation: isolate !important;
}

/* Ensure gallery and posts cannot collapse into cover due to floats/overlaps */
.sec-bpr-seller #bpr-gallery,
.sec-bpr-seller #bpr-gallery .bpr-posts {
  display: flow-root;
}

/* Contact button above first post */
#bpr-gallery .bpr-gallery-top-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 18px 0;
  position: relative;
  z-index: 2;
}

/* hide legacy large contact button above first post (we show it inside each post actions) */
#bpr-gallery .bpr-gallery-top-actions {
  display: none;
}

#bpr-gallery .bpr-post-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

#bpr-gallery .bpr-post-actions .bpr-post-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

#bpr-gallery .bpr-post-actions .bpr-post-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

#bpr-gallery .bpr-post-actions .bpr-btn.bpr-post-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  background: var(--bpr-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 73, 223, 0.35);
}

#bpr-gallery .bpr-post-actions .bpr-btn.bpr-post-contact:hover {
  background: var(--bpr-primary-hover);
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-btn.bpr-post-contact i {
  font-size: 14px;
  line-height: 1;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick .bpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

/* Bootstrap-like modern colors for action buttons */
#bpr-gallery .bpr-post-actions .bpr-share-toggle {
  background: #6c757d;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-share-toggle:hover {
  background: #5c636a;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick a[href^="tel:"] {
  background: #0d6efd;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick a[href^="tel:"]:hover {
  background: #0b5ed7;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick a[href^="https://wa.me/"] {
  background: #198754;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick a[href^="https://wa.me/"]:hover {
  background: #157347;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-contact-wide {
  background: #0d6efd;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-contact-wide:hover {
  background: #0b5ed7;
  color: #fff;
}

#bpr-gallery .bpr-post-actions .bpr-post-quick .bpr-btn i {
  font-size: 14px;
  line-height: 1;
}

#bpr-gallery .bpr-post-actions .bpr-share {
  position: relative;
}

#bpr-gallery .bpr-post-actions .bpr-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: var(--bpr-surface);
  border: 1px solid var(--bpr-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--bpr-shadow);
  display: none;
  z-index: 10;
}

html[dir="rtl"] #bpr-gallery .bpr-post-actions .bpr-share-menu {
  left: auto;
  right: 0;
}

#bpr-gallery .bpr-post-actions .bpr-share.open .bpr-share-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#bpr-gallery .bpr-post-actions .bpr-share-menu a.bpr-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bpr-surface-2);
  border: 1px solid var(--bpr-border);
  color: var(--bpr-text-2);
  text-decoration: none;
}

#bpr-gallery .bpr-post-actions .bpr-share-menu a.bpr-social:hover {
  background: var(--bpr-primary-soft);
}

#bpr-gallery .bpr-post-actions .bpr-post-contact-wide {
  flex: 1 1 auto;
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  #bpr-gallery .bpr-post-actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  #bpr-gallery .bpr-post-actions .bpr-post-quick {
    gap: 6px;
    flex: 0 0 auto;
  }

  #bpr-gallery .bpr-post-actions .bpr-post-quick .bpr-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  #bpr-gallery .bpr-post-actions .bpr-post-contact-wide {
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

#bpr-gallery .bpr-post-author-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#bpr-gallery .bpr-post-verified {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

#bpr-gallery .bpr-post-verified::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("/oc-content/uploads/custom-images/Verification-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#bpr-gallery .bpr-posts {
  clear: both;
}

#bpr-gallery .bpr-head {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bpr-text);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

#bpr-gallery .bpr-gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

#bpr-gallery .bpr-gallery-images a {
  display: block;
  border-radius: var(--bpr-radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition);
}

#bpr-gallery .bpr-gallery-images a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 50%);
  opacity: 0;
  transition: opacity var(--bpr-transition);
}

#bpr-gallery .bpr-gallery-images a:hover {
  transform: scale(1.05);
  box-shadow: var(--bpr-shadow-lg);
}

#bpr-gallery .bpr-gallery-images a:hover::after {
  opacity: 1;
}

#bpr-gallery .bpr-gallery-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--bpr-radius);
  transition: transform 0.4s var(--bpr-ease-out);
}

#bpr-gallery .bpr-gallery-images a:hover img {
  transform: scale(1.08);
}

/* ========== الفيديو ========== */
#bpr-video {
  margin: 32px 0 0 0;
  padding: 28px 0 0 0;
  border-top: 1px solid var(--bpr-border);
}

#bpr-video .bpr-head {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bpr-text);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

#bpr-video .bpr-video-cards {
  display: grid;
  gap: 20px;
}

#bpr-video.list .bpr-video-cards {
  grid-template-columns: 1fr;
}

#bpr-video.grid .bpr-video-cards {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#bpr-video .bpr-video-card {
  border-radius: var(--bpr-radius-lg);
  overflow: hidden;
  box-shadow: var(--bpr-shadow);
  border: 1px solid var(--bpr-border);
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition);
}

#bpr-video .bpr-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bpr-shadow-lg);
}

#bpr-video .bpr-video-card iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: none;
}

#bpr-video.grid .bpr-video-card iframe {
  height: 180px;
}

/* ========== الشريط الجانبي ========== */
.bpr-profile .bpr-right {
  width: 340px;
  max-width: 100%;
  padding: 36px 32px 40px 32px;
  border-left: 1px solid var(--bpr-border);
  background: var(--bpr-surface-2);
}

.bpr-profile .bpr-right > div {
  background: var(--bpr-surface);
  border: 1px solid var(--bpr-border);
  border-radius: var(--bpr-radius);
  padding: 20px 20px 20px 56px;
  margin-bottom: 16px;
  min-height: 56px;
  box-shadow: var(--bpr-shadow-sm);
  transition: box-shadow var(--bpr-transition), border-color var(--bpr-transition);
}

.bpr-profile .bpr-right > div:hover {
  box-shadow: var(--bpr-shadow);
  border-color: var(--bpr-border-2);
}

.bpr-profile .bpr-right > div > i {
  position: absolute;
  left: 18px;
  top: 50%;
  margin-top: -16px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bpr-primary), var(--bpr-primary-hover));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(59, 73, 223, 0.35);
}

.bpr-profile .bpr-right-box {
  padding: 0;
  min-height: 0;
}

.bpr-profile .bpr-phone a,
.bpr-profile .bpr-location a,
.bpr-profile .bpr-links a {
  color: var(--bpr-text-2);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--bpr-transition);
}

.bpr-profile .bpr-phone a:hover,
.bpr-profile .bpr-location a:hover {
  color: var(--bpr-primary);
}

.bpr-profile .bpr-links a,
.bpr-profile .bpr-links .bpr-comp-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 0;
  color: var(--bpr-primary);
  font-weight: 600;
}

.bpr-profile .bpr-links a:hover,
.bpr-profile .bpr-links .bpr-comp-all:hover {
  text-decoration: underline;
  color: var(--bpr-primary-hover);
}

/* زر تواصل في الشريط */
.bpr-profile .bpr-contact-us {
  margin-top: 8px;
}

.bpr-profile .bpr-contact-us .bpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--bpr-primary), var(--bpr-primary-hover));
  border: none;
  border-radius: var(--bpr-radius);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(59, 73, 223, 0.4);
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition);
}

.bpr-profile .bpr-contact-us .bpr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 73, 223, 0.45);
  color: #fff;
}

/* إشعار قانوني */
.bpr-profile .bpr-legal-notice-sidebar {
  margin-top: 8px;
}

.bpr-legal-notice-sidebar .bpr-legal-notice-head {
  cursor: pointer;
  font-weight: 700;
  color: var(--bpr-text-2);
}

.bpr-legal-notice-sidebar .bpr-legal-notice-text {
  font-size: 13px;
  color: var(--bpr-text-3);
  line-height: 1.6;
}

/* ========== فلاتر الإعلانات ========== */
#bpr-seller .bpr-filters {
  margin: 0;
  padding: 24px 32px;
  background: var(--bpr-surface-2);
  border-top: 1px solid var(--bpr-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

#bpr-seller .bpr-filters > strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bpr-text);
  padding-bottom: 0;
  border-bottom: 3px solid var(--bpr-primary);
  margin-right: auto;
}

#bpr-seller .bpr-filters .bpr-select {
  margin: 0;
}

#bpr-seller .bpr-filters .bpr-select select,
#bpr-seller .bpr-filters .bpr-select .select-box {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bpr-text-2);
  background: var(--bpr-surface);
  border: 1px solid var(--bpr-border-2);
  border-radius: var(--bpr-radius);
  min-width: 160px;
}

#bpr-seller .bpr-filters .bpr-show-all {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bpr-primary);
  text-decoration: none;
  background: var(--bpr-primary-soft);
  border-radius: var(--bpr-radius);
  transition: background var(--bpr-transition), color var(--bpr-transition), transform 0.2s var(--bpr-ease);
}

#bpr-seller .bpr-filters .bpr-show-all:hover {
  background: var(--bpr-primary);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ========== خريطة ========== */
#bpr-seller .bpr-map {
  margin: 0;
  padding: 0 32px 24px;
  border-radius: 0 0 var(--bpr-radius-xl) var(--bpr-radius-xl);
  overflow: hidden;
}

/* ========== شبكة الإعلانات ========== */
#bpr-seller .bpr-inside-trans {
  margin: 0;
  padding: 32px 32px 40px;
}

#bpr-seller .bpr-inside-trans .products.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -4px;
}

#bpr-seller .bpr-inside-trans .products.grid .simple-prod {
  width: calc(25% - 24px) !important;
  margin: 0 !important;
  border-radius: var(--bpr-radius-lg);
  overflow: hidden;
}

#bpr-seller .bpr-inside-trans .simple-prod .simple-wrap {
  border-radius: var(--bpr-radius-lg);
  box-shadow: var(--bpr-shadow);
  transition: box-shadow var(--bpr-transition), transform var(--bpr-transition);
}

#bpr-seller .bpr-inside-trans .simple-prod:hover .simple-wrap {
  box-shadow: var(--bpr-shadow-lg);
  transform: translateY(-4px);
}

#bpr-seller .bpr-inside-all {
  margin: 0;
  padding: 32px;
}

body #bpr-seller.bpr-block .bpr-inside-all,
#bpr-seller .bpr-inside-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 0 32px 40px;
}

#bpr-seller .bpr-comp,
body #bpr-seller.bpr-block .bpr-comp {
  float: none;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0;
  border-radius: var(--bpr-radius-lg);
  overflow: hidden;
  background: var(--bpr-surface);
  border: 1px solid var(--bpr-border);
  box-shadow: var(--bpr-shadow);
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition), border-color var(--bpr-transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

#bpr-seller .bpr-comp:hover,
body #bpr-seller.bpr-block .bpr-comp:hover {
  transform: translateY(-8px);
  box-shadow: var(--bpr-shadow-xl);
  border-color: var(--bpr-primary-soft);
}

#bpr-seller .bpr-comp .bpr-cover {
  position: relative;
  overflow: hidden;
}

#bpr-seller .bpr-comp .bpr-cover .bpr-wrap {
  padding-top: 66%;
  border-radius: var(--bpr-radius-lg) var(--bpr-radius-lg) 0 0;
}

#bpr-seller .bpr-comp .bpr-cover .bpr-wrap .bpr-wrap-img {
  transition: transform 0.5s var(--bpr-ease-out);
}

#bpr-seller .bpr-comp:hover .bpr-cover .bpr-wrap .bpr-wrap-img {
  transform: scale(1.08);
}

#bpr-seller .bpr-comp .bpr-info {
  padding: 20px;
}

#bpr-seller .bpr-comp .bpr-title,
body #bpr-seller.bpr-block .bpr-comp .bpr-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--bpr-text);
  margin: 0 0 8px 0;
  line-height: 1.35;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color var(--bpr-transition);
}

#bpr-seller .bpr-comp:hover .bpr-title {
  color: var(--bpr-primary);
}

#bpr-seller .bpr-comp .bpr-loc {
  font-size: 13px;
  color: var(--bpr-text-muted);
  margin: 0 0 12px 0;
  height: auto;
}

#bpr-seller .bpr-comp .bpr-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#bpr-seller .bpr-comp .bpr-count,
#bpr-seller .bpr-comp .bpr-user-type {
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.2;
}

#bpr-seller .bpr-comp .bpr-count {
  background: var(--bpr-surface-2);
  color: var(--bpr-text-muted);
}

/* ========== نموذج التواصل (في الغلاف) ========== */
#sellerContact {
  border-radius: var(--bpr-radius-lg);
  overflow: hidden;
  box-shadow: var(--bpr-shadow-xl);
  background: var(--bpr-surface);
}

#sellerContact .bpr-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bpr-text);
}

#sellerContact input,
#sellerContact textarea {
  border-radius: var(--bpr-radius);
  border: 1px solid var(--bpr-border-2);
  transition: border-color var(--bpr-transition), box-shadow var(--bpr-transition);
}

#sellerContact input:focus,
#sellerContact textarea:focus {
  outline: none;
  border-color: var(--bpr-primary);
  box-shadow: 0 0 0 3px var(--bpr-primary-soft);
}

#sellerContact .bpr-btn {
  background: linear-gradient(135deg, var(--bpr-primary), var(--bpr-primary-hover));
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--bpr-radius);
  padding: 14px 24px;
  transition: transform var(--bpr-transition), box-shadow var(--bpr-transition);
}

#sellerContact .bpr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 73, 223, 0.4);
  color: #fff;
}

/* ========== الترقيم ========== */
#bpr-pagination {
  margin: 28px 0 0 0;
  padding: 0 32px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

#bpr-pagination a,
#bpr-pagination span {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--bpr-text-2);
  background: var(--bpr-surface);
  border: 1px solid var(--bpr-border-2);
  border-radius: var(--bpr-radius);
  text-decoration: none;
  transition: all var(--bpr-transition);
}

#bpr-pagination a:hover,
#bpr-pagination a.bpr-active {
  background: var(--bpr-primary);
  color: #fff;
  border-color: var(--bpr-primary);
}

/* ========== رسائل وتحذيرات ========== */
#bpr-seller .bpr-msg-wrap .bpr-msg {
  border-radius: var(--bpr-radius);
  font-weight: 600;
  padding: 20px 24px;
}

#bpr-seller .bpr-empty {
  padding: 48px 32px;
  text-align: center;
  font-size: 16px;
  color: var(--bpr-text-muted);
  border-radius: var(--bpr-radius-lg);
  background: var(--bpr-surface-2);
}

/* ========== RTL ========== */
[dir="rtl"] .bpr-profile .bpr-left {
  padding: 36px 40px 40px 40px;
  border-right: none;
  border-left: 1px solid var(--bpr-border);
  text-align: right;
}

[dir="rtl"] .bpr-profile .bpr-left .bpr-icon {
  float: right;
  margin: 0 0 0 24px;
}

[dir="rtl"] .bpr-profile .bpr-category a {
  margin: 0 0 0 6px;
}

[dir="rtl"] .bpr-profile .bpr-right {
  border-left: none;
  border-right: 1px solid var(--bpr-border);
}

[dir="rtl"] .bpr-profile .bpr-right > div {
  padding: 20px 56px 20px 20px;
}

[dir="rtl"] .bpr-profile .bpr-right > div > i {
  left: auto;
  right: 18px;
}

[dir="rtl"] .bpr-cover .bpr-socials {
  right: auto;
  left: 2px;
}

[dir="rtl"] .bpr-cover .bpr-socials .bpr-right-box {
  justify-content: flex-start;
}

[dir="rtl"] .bpr-cover .bpr-contact-us {
  left: auto;
  right: 32px;
}

[dir="rtl"] #bpr-seller .bpr-filters > strong {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] #bpr-seller .bpr-filters .bpr-show-all {
  margin-right: 0;
  margin-left: auto;
}

/* ========== استجابة ========== */
@media screen and (max-width: 1200px) {
  .bpr-profile .bpr-right {
    width: 300px;
  }

  #bpr-seller .bpr-inside-trans .products.grid .simple-prod {
    width: calc(33.33% - 24px) !important;
  }

  body #bpr-seller.bpr-block .bpr-inside-all,
  #bpr-seller .bpr-inside-all {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 992px) {
  .bpr-profile .bpr-left,
  .bpr-profile .bpr-right {
    width: 100%;
    max-width: 100%;
    border: none;
    border-bottom: 1px solid var(--bpr-border);
    padding: 28px 24px;
  }

  .bpr-profile .bpr-right {
    background: var(--bpr-surface);
  }

  .bpr-profile .bpr-right > div {
    padding: 18px 18px 18px 52px;
  }

  [dir="rtl"] .bpr-profile .bpr-right > div {
    padding: 18px 52px 18px 18px;
  }

  #bpr-seller .bpr-inside {
    margin-top: -32px;
    border-radius: var(--bpr-radius-lg);
  }

  #bpr-seller .bpr-filters {
    padding: 20px 24px;
  }

  #bpr-seller .bpr-inside-trans .products.grid .simple-prod {
    width: calc(50% - 24px) !important;
  }

  body #bpr-seller.bpr-block .bpr-inside-all,
  #bpr-seller .bpr-inside-all {
    margin: 0 24px 32px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
  }

  #bpr-seller .bpr-inside-trans {
    padding: 24px;
  }

  #bpr-pagination {
    padding: 0 24px 24px;
  }
}

/* ========== موبايل — تخطيط شبيه بغلاف وصفحة فيسبوك ========== */
@media screen and (max-width: 767px) {
  /* غلاف بعرض الشاشة بالكامل مثل فيسبوك */
  #bpr-seller .bpr-inside .bpr-cover {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
  }

  .bpr-cover {
    min-height: 0;
    border-radius: 0;
  }

  .bpr-cover .bpr-wrap {
    padding-top: 40%;
    border-radius: 0;
  }

  .bpr-cover .bpr-wrap::before,
  .bpr-cover .bpr-wrap::after {
    display: none;
  }

  .bpr-cover .bpr-wrap .bpr-wrap-img::after {
    display: none;
  }

  /* أيقونات السوشيال في الزاوية العليا مثل فيسبوك */
  .bpr-cover .bpr-socials {
    top: 16px;
    right: 16px;
    left: auto;
    bottom: auto;
  }

  .bpr-cover .bpr-socials .bpr-right-box {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }

  .bpr-cover .bpr-socials a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    margin: 0;
    border-radius: 50%;
  }

  /* زر التواصل: شريط أسفل الغلاف مثل "مراسلة" في فيسبوك */
  .bpr-cover .bpr-contact-us {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  }

  .bpr-cover .bpr-contact-us a.bpr-btn {
    width: 100%;
    justify-content: center;
    height: 48px;
    border-radius: 24px;
    font-size: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  /* البطاقة الرئيسية: تبدأ فوراً تحت الغلاف مع تداخل */
  #bpr-seller .bpr-inside {
    margin-top: 0;
    padding: 0 0 24px 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  /* منطقة البروفايل: تُسحب لأعلى لتتداخل مع الغلاف — الصورة في أعلى المنتصف */
  .bpr-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bpr-profile .bpr-left {
    width: 100%;
    padding: 0 0 20px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bpr-profile .bpr-left .bpr-icon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    margin: -80px auto 12px !important;
    width: 120px !important;
    height: 120px !important;
    flex-shrink: 0;
    order: -1;
  }

  .bpr-profile .bpr-left .bpr-icon img {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    aspect-ratio: 1 / 1 !important;
    max-width: none !important;
    border-radius: 50% !important;
    border: 4px solid #1877f2 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    object-fit: cover !important;
    box-sizing: border-box !important;
  }

  .bpr-profile .bpr-type-wrap {
    margin: 0;
    width: auto;
    display: inline-flex;
    justify-content: center;
  }

  /* الاسم + علامة التوثيق في سطر واحد بأسلوب فيسبوك */
  .bpr-profile .bpr-left .bpr-box {
    width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .bpr-profile .bpr-left .bpr-box h1 {
    margin: 0;
  }

  .bpr-profile .bpr-left .bpr-box .bpr-verified {
    order: 2;
  }

  .bpr-profile .bpr-left .bpr-box h1 {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
  }

  .bpr-profile .bpr-left .bpr-box .bpr-type-wrap {
    order: 3;
    width: auto;
    margin: 0;
  }

  .bpr-profile .bpr-left .bpr-box .bpr-type-wrap .bpr-user-type {
    margin: 0;
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
  }

  .bpr-profile .bpr-left .bpr-box .bpr-category,
  .bpr-profile .bpr-left .bpr-box .bpr-reg,
  .bpr-profile .bpr-left .bpr-box .bpr-about,
  .bpr-profile .bpr-left .bpr-box .bpr-features,
  .bpr-profile .bpr-left .bpr-box #bpr-gallery,
  .bpr-profile .bpr-left .bpr-box #bpr-video {
    flex: 0 0 100%;
    width: 100%;
  }

  .bpr-profile .bpr-left .bpr-box .bpr-category {order: 4;}
  .bpr-profile .bpr-left .bpr-box .bpr-reg {order: 5;}
  .bpr-profile .bpr-left .bpr-box .bpr-about {order: 6;}
  .bpr-profile .bpr-left .bpr-box .bpr-features {order: 7;}
  .bpr-profile .bpr-left .bpr-box #bpr-gallery {order: 8;}
  .bpr-profile .bpr-left .bpr-box #bpr-video {order: 9;}

  .bpr-profile .bpr-verified {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    vertical-align: middle;
  }

  .bpr-profile .bpr-verified img {
    display: none !important;
  }

  .bpr-profile .bpr-verified::before {
    width: 28px;
    height: 28px;
  }

  .bpr-profile h1,
  #bpr-seller .bpr-inside .bpr-profile h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    display: inline-block;
  }

  .bpr-profile .bpr-category {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    gap: 6px;
    margin: 0 0 10px 0;
  }

  .bpr-profile .bpr-category::-webkit-scrollbar {
    display: none;
  }

  .bpr-profile .bpr-category a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .bpr-profile .bpr-category a {
    margin: 0;
  }

  .bpr-profile .bpr-reg {
    margin: 0 0 16px 0;
    font-size: 13px;
  }

  .bpr-profile .bpr-about {
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0 8px;
  }

  /* شريط أزرار الإجراءات مثل فيسبوك (مراسلة، اتصال، موقع) */
  .bpr-profile .bpr-right {
    width: 100%;
    padding: 0 16px 24px;
    border: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .bpr-profile .bpr-right > div {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
    max-width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: 12px;
    background: var(--bpr-surface);
    border: 1px solid var(--bpr-border);
    box-shadow: var(--bpr-shadow-sm);
  }

  [dir="rtl"] .bpr-profile .bpr-right > div {
    padding: 14px 44px 14px 16px;
  }

  .bpr-profile .bpr-right .bpr-phone a,
  .bpr-profile .bpr-right .bpr-location a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
  }

  /* زر تواصل بارز إن وُجد في الشريط الجانبي */
  .bpr-profile .bpr-contact-us {
    flex: 1 1 100%;
    margin-top: 4px;
  }

  .bpr-profile .bpr-contact-us .bpr-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 24px;
    font-size: 16px;
  }

  /* الميزات والمعرض والفيديو */
  .bpr-profile .bpr-features {
    grid-template-columns: 1fr;
    margin: 20px 16px 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--bpr-border);
    text-align: left;
  }

  [dir="rtl"] .bpr-profile .bpr-features {
    text-align: right;
  }

  .bpr-profile .bpr-features .bpr-feat {
    flex-direction: row;
  }

  #bpr-gallery,
  #bpr-video {
    margin: 48px 0 0 0 !important;
    padding: 28px 0 0 0 !important;
  }

  #bpr-gallery .bpr-head,
  #bpr-video .bpr-head {
    text-align: center;
  }

  #bpr-gallery .bpr-gallery-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  #bpr-video.grid .bpr-video-cards {
    grid-template-columns: 1fr;
  }

  /* فلاتر وإعلانات */
  #bpr-seller .bpr-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
  }

  #bpr-seller .bpr-filters > strong {
    margin: 0 0 12px 0;
  }

  #bpr-seller .bpr-filters .bpr-select select,
  #bpr-seller .bpr-filters .bpr-select .select-box {
    min-width: 100%;
  }

  #bpr-seller .bpr-inside-trans .products.grid {
    gap: 16px;
  }

  #bpr-seller .bpr-inside-trans .products.grid .simple-prod {
    width: calc(50% - 16px) !important;
  }

  body #bpr-seller.bpr-block .bpr-inside-all,
  #bpr-seller .bpr-inside-all {
    margin: 0 16px 24px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  #bpr-seller .bpr-inside-trans {
    padding: 20px 16px;
  }

  /* RTL موبايل */
  [dir="rtl"] .bpr-cover .bpr-socials {
    right: auto;
    left: 16px;
  }

  [dir="rtl"] .bpr-cover .bpr-socials .bpr-right-box {
    justify-content: flex-start;
  }

  [dir="rtl"] .bpr-profile .bpr-left {
    text-align: center;
  }

  [dir="rtl"] .bpr-profile .bpr-left .bpr-box {
    flex-direction: row;
  }

  [dir="rtl"] .bpr-profile .bpr-left .bpr-box h1 {
    order: 1;
  }

  [dir="rtl"] .bpr-profile .bpr-left .bpr-box .bpr-verified {
    order: 2;
  }

  [dir="rtl"] .bpr-profile .bpr-features {
    text-align: right;
  }
}

@media screen and (max-width: 480px) {
  #bpr-seller .bpr-inside {
    margin-top: -24px;
    border-radius: var(--bpr-radius);
  }

  #bpr-seller .bpr-inside-trans .products.grid .simple-prod {
    width: 100% !important;
  }

  body #bpr-seller.bpr-block .bpr-inside-all,
  #bpr-seller .bpr-inside-all {
    grid-template-columns: 1fr;
    margin: 0 16px 20px;
  }
}
