/* ============================================================
   Vers Detail Pages — product, news, case, video, partner
   Brand: #ed1b24 · #c9a962 · cream #faf8f4
   ============================================================ */

.vers-detail-section {
  position: relative;
  padding: 72px 0 120px;
  background: var(--vers-pages-cream, #faf8f4);
}

.vers-detail-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201, 169, 98, 0.35) 50%, transparent 95%);
  pointer-events: none;
}

/* ---- Product detail ---- */
.vers-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.vers-product-gallery {
  position: sticky;
  top: 120px;
}

.vers-product-gallery-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.vers-product-gallery-main a,
.vers-product-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vers-product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.vers-product-gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.vers-product-gallery-thumbs button.is-active,
.vers-product-gallery-thumbs button:hover {
  border-color: var(--vers-brand, #ed1b24);
  transform: translateY(-2px);
}

.vers-product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vers-product-info-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vers-gold, #c9a962);
  margin-bottom: 12px;
}

.vers-product-info-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: #19352d;
  margin-bottom: 12px;
}

.vers-product-info-slogan {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.62);
  margin-bottom: 28px;
}

.vers-product-params {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.vers-product-params li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vers-product-params li:last-child {
  border-bottom: none;
}

.vers-product-params li span:first-child {
  color: rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.vers-product-params li span:last-child {
  font-weight: 600;
  color: #19352d;
  text-align: right;
}

.vers-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--vers-brand, #ed1b24);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vers-product-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237, 27, 36, 0.28);
}

.vers-product-content-block {
  margin-top: 64px;
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.vers-product-content-block h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #19352d;
}

.vers-product-content-block p,
.vers-product-content-block li {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.72);
}

.vers-product-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.vers-product-trust-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vers-product-trust-item i {
  font-size: 28px;
  color: var(--vers-brand, #ed1b24);
  margin-bottom: 10px;
  display: block;
}

.vers-product-trust-item h4 {
  font-size: 15px;
  margin: 0;
  color: #19352d;
}

/* ---- News article ---- */
.vers-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.vers-article-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.vers-article-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.vers-article-hero-date {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  color: #19352d;
}

.vers-article-body {
  padding: 36px 40px 40px;
}

.vers-article-intro {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.62);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vers-article-title {
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.35;
  color: #19352d;
  margin-bottom: 24px;
}

.vers-article-content {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.78);
}

.vers-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.vers-article-disclaimer {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(201, 169, 98, 0.08);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.55);
}

.vers-article-sidebar {
  position: sticky;
  top: 120px;
}

.vers-sidebar-block {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.vers-sidebar-block h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #19352d;
}

.vers-sidebar-news-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.vers-sidebar-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vers-sidebar-news-item:hover {
  opacity: 0.85;
}

.vers-sidebar-news-thumb {
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.vers-sidebar-news-meta {
  flex: 1;
  min-width: 0;
}

.vers-sidebar-news-date {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}

.vers-sidebar-news-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #19352d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vers-sidebar-cta {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #19352d 0%, #2a4a40 100%);
  color: #fff;
}

.vers-sidebar-cta h3 {
  color: #fff;
  margin-bottom: 16px;
}

.vers-sidebar-cta a {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--vers-brand, #ed1b24);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* ---- Case / partner / video gallery detail ---- */
.vers-gallery-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
}

.vers-gallery-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  min-height: 420px;
}

.vers-gallery-slider .carousel-item {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.vers-gallery-slider .carousel-control-prev,
.vers-gallery-slider .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 1;
  margin: 0 16px;
  color: #19352d;
}

.vers-gallery-info {
  padding: 36px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.vers-gallery-info h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #19352d;
}

.vers-gallery-info-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 24px;
}

.vers-gallery-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vers-gallery-meta li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

.vers-gallery-meta li:last-child {
  border-bottom: none;
}

.vers-gallery-meta .label {
  flex-shrink: 0;
  min-width: 88px;
  color: rgba(0, 0, 0, 0.5);
}

.vers-gallery-meta .value {
  font-weight: 600;
  color: #19352d;
}

/* Video detail */
.vers-video-player-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #19352d;
  aspect-ratio: 16 / 9;
}

.vers-video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vers-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 53, 45, 0.35);
  cursor: pointer;
  transition: background 0.3s ease;
}

.vers-video-play-overlay:hover {
  background: rgba(25, 53, 45, 0.2);
}

.vers-video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--vers-brand, #ed1b24);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 32px rgba(237, 27, 36, 0.35);
}

/* ---- Article prev/next nav ---- */
.vers-article-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vers-article-nav ul {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vers-article-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
  min-height: 72px;
}

.vers-article-nav a:hover {
  border-color: rgba(237, 27, 36, 0.2);
  transform: translateY(-2px);
}

.vers-article-nav .nav-next a {
  justify-content: flex-end;
  text-align: right;
}

.vers-article-nav .nav-dir {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vers-gold, #c9a962);
  margin-bottom: 4px;
}

.vers-article-nav .nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #19352d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vers-article-nav .nav-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #19352d;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.vers-article-nav .nav-back:hover {
  background: var(--vers-brand, #ed1b24);
  border-color: var(--vers-brand, #ed1b24);
  color: #fff;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .vers-product-cta,
  .vers-product-gallery-thumbs button,
  .vers-article-nav a,
  .vers-article-nav .nav-back {
    transition: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .vers-detail-section {
    padding: 56px 0 88px;
  }

  .vers-product-detail,
  .vers-article-layout,
  .vers-gallery-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vers-product-gallery,
  .vers-article-sidebar {
    position: static;
  }

  .vers-product-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .vers-article-body {
    padding: 28px 24px 32px;
  }

  .vers-gallery-slider,
  .vers-gallery-slider .carousel-item {
    min-height: 280px;
  }
}

@media (max-width: 575px) {
  .vers-product-content-block {
    padding: 24px 20px;
  }

  .vers-article-nav ul {
    grid-template-columns: 1fr;
  }

  .vers-article-nav .nav-back {
    justify-self: center;
    order: -1;
  }

  .vers-product-trust {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
