/* Vendor profile page — always dark header (light page surface, no hero) */

.vendor-profile-page .header {
  background:
    linear-gradient(180deg, rgba(8, 14, 27, 0.96) 0%, rgba(7, 12, 23, 0.95) 100%);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.vp-breadcrumb {
  padding: calc(var(--header-h) + 16px) 0 0;
  background: var(--surface-1);
}

.vp-admin-preview {
  padding: calc(var(--header-h) + 16px) 0 0;
  background: var(--surface-1);
}

.vp-admin-preview__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background:
    linear-gradient(135deg, rgba(197, 160, 89, 0.14) 0%, rgba(197, 160, 89, 0.05) 55%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.vp-admin-preview__copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.vp-admin-preview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  color: #8a6a2f;
  background: rgba(197, 160, 89, 0.18);
  border: 1px solid rgba(197, 160, 89, 0.28);
}

.vp-admin-preview__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vp-admin-preview__text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.vp-admin-preview__text span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.vp-admin-preview__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #8a6a2f;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vp-admin-preview__action:hover {
  background: rgba(197, 160, 89, 0.16);
  border-color: rgba(197, 160, 89, 0.5);
  color: #6f5424;
}

@media (max-width: 640px) {
  .vp-admin-preview__bar {
    align-items: stretch;
  }

  .vp-admin-preview__action {
    justify-content: center;
    width: 100%;
  }
}

.vendor-profile-page .vp-content {
  min-height: 60vh;
  background: var(--surface-1);
}

.vp-skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--surface-3) 45%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: vp-skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes vp-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.vp-skeleton--breadcrumb {
  width: 220px;
  height: 16px;
  border-radius: var(--radius-full);
}

.vp-skeleton--gallery {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
}

.vp-skeleton--thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
}

.vp-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vp-skeleton--badge {
  width: 180px;
  height: 28px;
  border-radius: var(--radius-full);
}

.vp-skeleton--title {
  width: min(100%, 260px);
  height: 28px;
}

.vp-skeleton--subtitle {
  width: min(100%, 220px);
  height: 14px;
}

.vp-skeleton--text {
  width: 100%;
  height: 14px;
}

.vp-skeleton-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vp-skeleton--stat {
  height: 58px;
  border-radius: var(--radius-lg);
}

.vp-skeleton-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vp-skeleton--chip {
  width: 112px;
  height: 30px;
  border-radius: var(--radius-full);
}

.vp-skeleton-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.vp-skeleton--button {
  height: 46px;
  border-radius: var(--radius-full);
}

.vp-skeleton--button-outline {
  opacity: 0.72;
}

.vp-skeleton--heading {
  width: min(100%, 220px);
  height: 24px;
  margin-bottom: 16px;
}

.vp-skeleton--paragraph {
  width: 100%;
  height: 14px;
  margin-bottom: 10px;
}

.vp-skeleton--paragraph-short {
  width: 72%;
}

.vp-skeleton-services {
  display: grid;
  gap: 12px;
}

.vp-skeleton--service {
  height: 92px;
  border-radius: var(--radius-lg);
}

.vp-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.vp-breadcrumb a:hover {
  color: var(--gold-500);
}

.vp-hero {
  padding: 20px 0 40px;
  background: var(--surface-1);
}

.vp-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

.vp-gallery__main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-800);
  box-shadow: var(--shadow-md);
}

.vp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.22s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.vp-gallery__main img.is-fading {
  opacity: 0;
  transform: scale(1.03);
}

.vp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

/* Keep selected-state border visible (do not inherit site button border reset). */
.site-root button.vp-gallery__thumb,
.vp-gallery__thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.25s;
  box-sizing: border-box;
}

.site-root button.vp-gallery__thumb.is-active,
.vp-gallery__thumb.is-active {
  border-color: var(--gold-400) !important;
  outline: 2px solid var(--gold-400);
  outline-offset: -2px;
}

.site-root .vp-gallery__thumb img,
.vp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-gallery-videos {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.vp-gallery-videos__title {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.vp-video-player {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-0);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.22s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.vp-video-player.is-fading {
  opacity: 0;
  transform: scale(1.02);
}

.vp-video-player__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.vp-video-player__name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.vp-video-player__platform {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.vp-video-player__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
}

.vp-video-player__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vp-video-carousel {
  position: relative;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vp-video-thumbs {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
}

.vp-video-thumbs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.vp-video-thumbs::-webkit-scrollbar {
  display: none;
}

.vp-video-carousel__nav {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s, background-color 0.2s;
}

.vp-video-carousel__nav:hover:not(:disabled) {
  border-color: var(--gold-400);
  background: var(--surface-1);
}

.vp-video-carousel__nav:disabled,
.vp-video-carousel__nav.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.vp-video-carousel__nav--prev,
.vp-video-carousel__nav--next {
  left: auto;
  right: auto;
}

/* Keep selected-state border visible (do not inherit site button border reset). */
.site-root button.vp-video-thumb,
.vp-video-thumb {
  position: relative;
  flex: 0 0 calc((100% - 30px) / 4);
  width: calc((100% - 30px) / 4);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: inherit;
  padding: 0;
  background: var(--navy-800);
  transition: border-color 0.25s;
  text-align: left;
  scroll-snap-align: start;
  pointer-events: auto;
  box-sizing: border-box;
}

.vp-video-thumb img,
.vp-video-thumb__placeholder,
.vp-video-thumb__label {
  pointer-events: none;
}

.site-root button.vp-video-thumb.is-active,
.vp-video-thumb.is-active {
  border-color: var(--gold-400) !important;
  outline: 2px solid var(--gold-400);
  outline-offset: -2px;
}

.vp-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-video-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gold-400);
}

.vp-video-thumb__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 6px 6px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vp-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.vp-sidebar__card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}

.vp-sidebar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vp-sidebar__top h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1.2;
  margin-bottom: 6px;
}

.vp-sidebar__category {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.vp-match {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.28);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vp-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 18px;
  padding: 14px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vp-stat {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.vp-stat strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 2px;
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

.vp-stat--rating strong {
  color: var(--gold-500);
}

.vp-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.vp-highlights span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.vp-sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vp-sidebar__actions .btn {
  width: 100%;
  justify-content: center;
}

.vp-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: rgba(197, 160, 89, 0.92);
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

.vp-body {
  padding: 0 0 clamp(64px, 8vw, 88px);
  background: var(--surface-1);
}

.vp-section {
  margin-top: clamp(36px, 5vw, 48px);
}

.vp-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 14px;
}

.vp-section > p {
  color: var(--text-secondary);
  line-height: 1.72;
  max-width: 720px;
}

.vp-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
  margin-top: 18px;
}

.vp-service {
  padding: clamp(18px, 2.5vw, 22px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-0);
  transition: box-shadow 0.3s, transform 0.3s;
}

.vp-service:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vp-service h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vp-service p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.vp-service strong {
  font-size: 0.9375rem;
  color: var(--gold-500);
}

.vp-reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.vp-review {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-0);
}

.vp-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vp-review__head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.vp-review__head h4 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.vp-review__head p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.vp-review__stars {
  margin-left: auto;
  color: var(--gold-400);
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.vp-review blockquote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
}

.vp-related .rv-grid {
  margin-top: 18px;
}

.vp-related .card {
  flex: none;
  width: 100%;
}

.vp-locked,
.vp-not-found {
  display: none;
  text-align: center;
  padding: clamp(56px, 8vw, 88px) 24px;
}

.vendor-profile-page.is-locked .vp-locked {
  display: block;
}

.vendor-profile-page.is-locked .vp-content {
  display: none;
}

.vendor-profile-page.is-not-found .vp-not-found {
  display: block;
}

.vendor-profile-page.is-not-found .vp-content {
  display: none;
}

@media (max-width: 960px) {
  .vp-layout {
    grid-template-columns: 1fr;
  }

  .vp-sidebar {
    position: static;
  }

  .vp-services {
    grid-template-columns: 1fr;
  }

  .vp-reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vp-gallery__thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-video-thumb {
    flex-basis: calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
  }

  .vp-video-carousel__nav {
    width: 32px;
    height: 32px;
  }
}
