/* =====================================================
   Video Detail — Shop the Look
   Premium women's fashion video shopping page
   Soft palette: rose, blush, mocha (no black buttons)
   ===================================================== */

/* Override Bootstrap/dark buttons in video detail context */
.vd-page .btn-primary,
.vd-page button.btn-primary {
  background: var(--ph-rose) !important;
  border-color: var(--ph-rose) !important;
  color: #fff !important;
}
.vd-page .btn-primary:hover {
  background: #9a6b67 !important;
  border-color: #9a6b67 !important;
  color: #fff !important;
}

.vd-main {
  background: var(--ph-cream);
  padding: 2rem 0 4rem;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── Hero (video + look panel) ── */
.vd-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.vd-hero-video {
  position: relative;
}

.vd-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vd-hero-editorial {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--ph-border);
}

.vd-hero-editorial .vd-editorial-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin: 0 0 .6rem 0;
}

.vd-hero-editorial .vd-editorial-title:not(:first-child) {
  margin-top: 1.25rem;
}

.vd-hero-editorial .vd-editorial-prose {
  font-size: .9rem;
  color: var(--ph-taupe);
  line-height: 1.65;
  margin: 0;
}

.vd-hero-editorial .vd-editorial-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: .88rem;
  color: var(--ph-taupe);
  line-height: 1.6;
}

.vd-hero-editorial .vd-best-for li {
  text-transform: capitalize;
}

.vd-video-wrap {
  position: relative;
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: var(--ph-shadow);
  background: #000;
  min-height: 200px;
}

.vd-video-wrap video {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.vd-video-error {
  position: absolute;
  inset: 0;
  background: var(--ph-off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: .9rem;
  color: var(--ph-taupe);
}

.vd-video-error-hint {
  font-size: .78rem;
  margin-top: .75rem;
  color: var(--ph-light);
}

.vd-video-error code {
  background: var(--ph-blush);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .75rem;
}

.vd-tiktok-fallback {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ph-dark);
  font-weight: 600;
  text-decoration: none;
  padding: .5rem 1rem;
  background: var(--ph-blush);
  border-radius: var(--ph-radius);
  margin-top: .5rem;
  transition: background .2s, color .2s;
}
.vd-tiktok-fallback:hover {
  background: var(--ph-mocha);
  color: #fff;
}

.vd-video-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: var(--ph-radius-pill);
  background: rgba(255,255,255,.95);
  color: var(--ph-mocha);
  z-index: 2;
}

.vd-video-stats {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: var(--ph-radius-pill);
  color: var(--ph-mocha);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(28,23,20,.08);
  border: 1px solid rgba(139,125,119,.15);
  z-index: 2;
}

.vd-like-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  color: var(--ph-mocha);
  cursor: pointer;
  padding: 0;
  transition: transform .2s, color .2s;
}

.vd-like-btn:hover { transform: scale(1.08); color: var(--ph-rose); }
.vd-like-btn.liked { color: var(--ph-rose); }

/* ── Look Summary Panel (stronger, premium) ── */
.vd-hero-panel.vd-look-summary {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  padding: 2.25rem 2.25rem 2.5rem;
  box-shadow: var(--ph-shadow);
  border: 1px solid var(--ph-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vd-panel-header {
  margin-bottom: -.25rem;
}

.vd-look-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .35rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.vd-creator-meta {
  font-size: .75rem;
  color: var(--ph-light);
  letter-spacing: .04em;
  margin: 0;
}

.vd-look-desc {
  font-size: .95rem;
  color: var(--ph-taupe);
  line-height: 1.65;
  margin: 0;
}

.vd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}

.vd-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: var(--ph-radius-pill);
  background: var(--ph-blush);
  color: var(--ph-mocha);
}

.vd-budget-switch {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.vd-budget-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ph-taupe);
}

.vd-tabs-inner {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.vd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}

/* Video detail: soft rose buttons (no black) */
.vd-hero-actions .ph-btn-primary.vd-cta-primary,
.vd-hero-actions .ph-btn-primary {
  min-width: 160px;
  padding: .85rem 1.5rem;
  background: var(--ph-rose);
  color: #fff;
  box-shadow: 0 2px 12px rgba(176,122,118,.25);
}
.vd-hero-actions .ph-btn-primary:hover {
  background: #9a6b67;
  color: #fff;
}

.vd-hero-actions .ph-btn-secondary {
  min-width: 140px;
  border-color: var(--ph-dusty-pink);
  color: var(--ph-mocha);
}
.vd-hero-actions .ph-btn-secondary:hover {
  background: var(--ph-blush);
  border-color: var(--ph-rose);
  color: var(--ph-dark);
}

.vd-panel-actions {
  display: flex;
  gap: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--ph-border);
  margin-top: .25rem;
}

.vd-save-btn,
.vd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ph-mocha);
  background: var(--ph-off-white);
  border: 1.5px solid var(--ph-border);
  cursor: pointer;
  padding: .5rem 1rem;
  border-radius: var(--ph-radius-pill);
  transition: all var(--ph-transition);
}

.vd-save-btn:hover,
.vd-share-btn:hover {
  color: var(--ph-rose);
  border-color: var(--ph-dusty-pink);
  background: var(--ph-blush);
}

.vd-save-btn.saved {
  color: var(--ph-rose);
  border-color: var(--ph-rose);
  background: rgba(176,122,118,.12);
}

.vd-save-btn i,
.vd-share-btn i {
  font-size: 1rem;
}

.vd-tab {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .6rem 1.25rem;
  border-radius: var(--ph-radius-pill);
  border: 1.5px solid var(--ph-border);
  background: var(--ph-off-white);
  color: var(--ph-mocha);
  cursor: pointer;
  transition: all var(--ph-transition);
}

.vd-tab:hover {
  border-color: var(--ph-dusty-pink);
  color: var(--ph-dark);
  background: var(--ph-blush);
}

.vd-tab.active {
  background: var(--ph-rose);
  border-color: var(--ph-rose);
  color: #fff;
}

/* ── Section titles ── */
.vd-section {
  margin-bottom: 2.5rem;
}

.vd-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .4rem;
}

.vd-section-sub {
  font-size: .9rem;
  color: var(--ph-taupe);
  margin-bottom: 1.5rem;
}

/* ── Look Breakdown cards ── */
.vd-breakdown {
  padding: 2.5rem 0;
}

.vd-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.vd-breakdown-card {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: var(--ph-shadow);
  border: 1px solid var(--ph-border);
  transition: transform var(--ph-transition), box-shadow var(--ph-transition);
}

.vd-breakdown-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ph-shadow-hover);
}

.vd-breakdown-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vd-breakdown-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--ph-off-white);
}

.vd-breakdown-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}

.vd-breakdown-card:hover .vd-breakdown-img img {
  transform: scale(1.06);
}

.vd-item-role {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: var(--ph-radius-pill);
  background: rgba(255,255,255,.95);
  color: var(--ph-mocha);
}

.vd-breakdown-body {
  padding: 1rem 1.1rem 1.2rem;
}

.vd-breakdown-brand {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ph-taupe);
  margin-bottom: .25rem;
}

.vd-breakdown-title {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ph-dark);
  margin-bottom: .4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-why-matches {
  font-size: .78rem;
  color: var(--ph-taupe);
  line-height: 1.4;
  margin-bottom: .5rem;
}

.vd-breakdown-price {
  margin-bottom: .6rem;
}

.vd-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ph-dark);
}

.vd-cta {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ph-rose);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--ph-transition), color var(--ph-transition);
}

.vd-breakdown-link:hover .vd-cta {
  border-color: var(--ph-rose);
  color: var(--ph-mocha);
}

/* ── Editorial (Why This Look Works / Best For) ── */
.vd-editorial {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  padding: 2rem 2.25rem;
  border: 1px solid var(--ph-border);
}

.vd-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.vd-editorial-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: 1rem;
}

.vd-editorial-prose {
  font-size: .95rem;
  color: var(--ph-taupe);
  line-height: 1.7;
  margin: 0;
}

.vd-editorial-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: .9rem;
  color: var(--ph-taupe);
  line-height: 1.7;
}

.vd-best-for li {
  text-transform: capitalize;
}

/* ── Complete the Look (2x2 styling panels) ── */
.vd-complete {
  padding: 3rem 0;
}

.vd-complete-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.vd-complete-panel {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  padding: 2rem 1.75rem 2rem;
  border: 1px solid var(--ph-border);
  box-shadow: var(--ph-shadow);
  transition: box-shadow var(--ph-transition);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vd-complete-panel:nth-child(odd) {
  border-left: 3px solid var(--ph-blush);
}

.vd-complete-panel:nth-child(even) {
  border-left: 3px solid var(--ph-sage);
}

.vd-complete-panel:hover {
  box-shadow: var(--ph-shadow-hover);
}

.vd-complete-panel-header {
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ph-border);
}

.vd-complete-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin: 0 0 .4rem 0;
  letter-spacing: .02em;
}

.vd-complete-panel-note {
  font-size: .82rem;
  color: var(--ph-taupe);
  line-height: 1.45;
  margin: 0;
}

.vd-complete-panel-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.vd-complete-panel-cards .vd-complete-mini-card:only-child {
  grid-column: 1 / -1;
  max-width: 180px;
}

.vd-complete-mini-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--ph-off-white);
  border-radius: var(--ph-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ph-border);
  transition: transform var(--ph-transition), box-shadow var(--ph-transition);
}

.vd-complete-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ph-shadow);
}

.vd-complete-mini-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ph-blush);
}

.vd-complete-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}

.vd-complete-mini-card:hover .vd-complete-mini-img img {
  transform: scale(1.04);
}

.vd-complete-mini-body {
  padding: .85rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.vd-complete-mini-name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ph-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-complete-mini-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ph-mocha);
}

/* ── More From This Vibe (stronger editorial cards) ── */
.vd-related {
  padding: 3rem 0;
}

.vd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.vd-related-grid-strong {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.vd-related-card.vd-related-entry {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: var(--ph-shadow);
  border: 1px solid var(--ph-border);
  transition: transform var(--ph-transition), box-shadow var(--ph-transition);
}

.vd-related-card.vd-related-entry:hover {
  transform: translateY(-6px);
  box-shadow: var(--ph-shadow-hover);
}

.vd-related-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--ph-blush);
}

.vd-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.vd-related-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity var(--ph-transition);
}

.vd-related-card:hover .vd-related-play {
  opacity: 1;
}

.vd-related-play i {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.vd-related-badge {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: var(--ph-radius-pill);
  background: rgba(255,255,255,.95);
  color: var(--ph-mocha);
}

.vd-related-body {
  padding: 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .5rem;
}

.vd-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin: 0;
  line-height: 1.3;
}

.vd-related-cta {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ph-rose);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--ph-transition);
}

.vd-related-card:hover .vd-related-cta {
  gap: .6rem;
}

.vd-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ph-taupe);
  padding: 2rem;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .vd-hero {
    grid-template-columns: 1fr;
  }
  .vd-hero-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .vd-main { padding: 1rem 0 2.5rem; }
  .vd-hero { gap: 1.5rem; margin-bottom: 1.5rem; }
  .vd-hero-panel { padding: 1.5rem; }
  .vd-look-title { font-size: 1.4rem; }
  .vd-breakdown-grid { grid-template-columns: 1fr; }
  .vd-complete-grid-2x2 { grid-template-columns: 1fr; }
  .vd-complete-panel-cards { grid-template-columns: repeat(2, 1fr); }
  .vd-related-grid,
  .vd-related-grid-strong { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 480px) {
  .vd-tabs-inner { justify-content: center; }
  .vd-hero-actions { flex-direction: column; }
  .vd-hero-actions .ph-btn-primary,
  .vd-hero-actions .ph-btn-secondary { width: 100%; }
}
