/* ═══════════════════════════════════════════════════
   OJAHUB — PREMIUM VENDOR PROFILE STYLES
   This file is loaded AFTER style.css on marketplace.html
   It only adds new classes — it does not remove anything
   from your existing style.css.

   Design notes:
   - Light theme (white card + brand orange accents),
     matching the rest of the site — no dark backgrounds.
   - Tag colors reused from your original .vd-tag classes
     (already designed for light backgrounds, high contrast).
   - Avatar circle rules use !important + the #detailImg.vp-avatar
     combined selector because your existing style.css has an
     older rule targeting "#detailImg" by ID (width:100%, height:320px)
     left over from a previous layout. An ID selector always beats
     a plain class selector in CSS, regardless of file load order —
     so without this, the old rule silently overrides our circle
     sizing and stretches the avatar into an oval. This guarantees
     our sizing always wins.
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   PREMIUM VENDOR PROFILE HERO
   ═══════════════════════════════════════════ */
.vp-hero {
  max-width: 1100px;
  margin: 0 auto 20px;
  background: #fff5ee;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.vp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

/* ── PERFECT CIRCLE AVATAR ──
   #detailImg.vp-avatar (ID + class combined) is used so this
   always beats the older #detailImg rule in style.css. */
#detailImg.vp-avatar,
.vp-avatar {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  background: #f3f4f6;
  border: 3px solid #fdf1e6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.vp-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff7a00;
  border: 3px solid #ffffff;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.35);
}

.vp-hero-info {
  flex: 1;
  min-width: 0;
}

.vp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e65100;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.vp-hero-info h1 {
  font-size: 27px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.25;
}

.vp-location {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

/* ── LOCATION PIN — explicit brand color + fixed minimum size so it
   always reads clearly as a location marker, never shrinks down to
   an unrecognizable smudge next to the text ── */
.vp-location svg {
  flex-shrink: 0;
  width: 16px !important;
  height: 21px !important;
  color: #e65100;
  vertical-align: middle;
}

.vd-tag svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.vp-desc {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 620px;
}

.vp-desc p {
  margin: 0;
}

.vendor-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Tag colors reused from your original design system —
   already tuned for good contrast on light backgrounds.

   ── CHAT-BUBBLE SHAPE ──
   Was a plain, evenly-rounded pill (border-radius: 20px on
   all four corners). Changed to an asymmetric radius so one
   corner stays sharp — the same trick real chat bubbles use
   (WhatsApp/iMessage) to read as a "speech bubble" instead of
   a generic rounded rectangle. */
.vd-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 16px 16px 16px 4px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
}

.vd-tag--category {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffcc80;
}

.vd-tag--location {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}

.vd-tag--wa {
  background: #f0fff4;
  color: #128c3e;
  border-color: #b7ebc9;
}

.vd-tag--no-wa {
  background: #f5f5f5;
  color: #999999;
  border-color: #dddddd;
}

.vd-tag--verified {
  background: #f3e8ff;
  color: #6a1b9a;
  border-color: #ce93d8;
}

.vp-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vp-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.12s;
}
.vp-whatsapp-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.vp-claim-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s;
}
.vp-claim-link:hover {
  color: #ff7a00;
}

.vp-hero .hidden {
  display: none !important;
}

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  .vp-hero {
    padding: 28px 26px;
    gap: 22px;
  }
  .vp-avatar-wrap {
    width: 80px;
    height: 80px;
  }
  #detailImg.vp-avatar,
  .vp-avatar {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }
  .vp-hero-info h1 {
    font-size: 23px;
  }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 640px) {
  .vp-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 20px;
    margin-left: 16px;
    margin-right: 16px;
    gap: 16px;
  }
  .vp-avatar-wrap {
    width: 88px;
    height: 88px;
  }
  #detailImg.vp-avatar,
  .vp-avatar {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }
  .vp-location,
  .vendor-detail-tags,
  .vp-actions {
    justify-content: center;
  }
  .vp-desc {
    max-width: 100%;
  }
  .vp-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .vp-whatsapp-btn {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
   BUYER FEEDBACK PANEL
   ═══════════════════════════════════════════ */
.vp-feedback-card {
  max-width: 1100px;
  margin: 0 auto 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.vp-feedback-header {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.vp-feedback-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff3e0;
  color: #e65100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.vp-feedback-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.vp-feedback-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
}

.vp-sentiment-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vp-sentiment-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fafafa;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.vp-sentiment-btn:hover {
  border-color: #d1d5db;
}
.vp-sentiment-btn.active[data-sentiment="positive"] {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #15803d;
}
.vp-sentiment-btn.active[data-sentiment="neutral"] {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}
.vp-sentiment-btn.active[data-sentiment="negative"] {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.vp-feedback-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s;
  box-sizing: border-box;
  color: #111827;
}
.vp-feedback-textarea:focus {
  border-color: #ff7a00;
}

.vp-feedback-input {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px;
  outline: none;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s;
  display: block;
  color: #111827;
}
.vp-feedback-input:focus {
  border-color: #ff7a00;
}

.vp-feedback-submit {
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.12s;
  font-family: inherit;
}
.vp-feedback-submit:hover {
  background: #e56c00;
  transform: translateY(-1px);
}
.vp-feedback-submit:disabled {
  background: #fbc07b;
  cursor: not-allowed;
  transform: none;
}

.vp-feedback-status {
  font-size: 12.5px;
  margin: 10px 0 0;
  min-height: 16px;
}
.vp-feedback-status.success {
  color: #16a34a;
  font-weight: 600;
}
.vp-feedback-status.error {
  color: #ef4444;
  font-weight: 600;
}

@media (max-width: 640px) {
  .vp-feedback-card {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px 20px;
  }
  .vp-feedback-input {
    max-width: 100%;
  }
}
