.furniture-product-detail {
  padding: 32px 0 64px;
}

.furniture-product-breadcrumb-bar {
  margin-bottom: 24px;
  padding: 0 4px;
}

.furniture-product-breadcrumb {
  margin-bottom: 0;
}

.furniture-product-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--furniture-text-muted);
}

.furniture-product-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
}

.furniture-product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: color-mix(in srgb, var(--furniture-charcoal) 20%, transparent);
  font-size: 0.8rem;
}

.furniture-product-breadcrumb .breadcrumb-item a {
  color: var(--furniture-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.furniture-product-breadcrumb .breadcrumb-item a:hover {
  color: var(--furniture-sage);
}

.furniture-product-breadcrumb .breadcrumb-item.active {
  color: var(--furniture-text);
  font-weight: 600;
}

.furniture-product-hero {
  display: grid;
  gap: 32px;
  margin-bottom: 54px;
  align-items: start;
}

@media (min-width: 992px) {
  .furniture-product-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
    gap: 64px;
  }
}

.furniture-product-hero-no-media {
  grid-template-columns: minmax(0, 820px);
}

.furniture-product-media {
  min-width: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 992px) {
  .furniture-product-media {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

.furniture-product-gallery {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--furniture-border);
  border-radius: var(--furniture-radius);
  background:
    linear-gradient(135deg, rgba(91, 111, 87, 0.08), rgba(138, 95, 61, 0.12)),
    var(--furniture-surface);
}

.furniture-product-gallery .swiper-slide a {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.furniture-product-gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.furniture-product-gallery a:hover .furniture-product-gallery-image,
.furniture-product-gallery a:focus-visible .furniture-product-gallery-image {
  transform: scale(1.015);
}

.swiper-gallery-nav {
  width: 42px;
  height: 42px;
  color: var(--furniture-charcoal) !important;
  border: 1px solid var(--furniture-border);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--furniture-shadow-soft);
}

.swiper-gallery-nav::after {
  font-size: 16px !important;
  font-weight: 800;
}

.swiper-gallery-nav:hover,
.swiper-gallery-nav:focus-visible {
  color: var(--furniture-sage) !important;
  background: var(--furniture-surface);
}

.furniture-product-gallery .swiper-pagination-bullet {
  background: rgba(32, 28, 24, 0.28);
  opacity: 1;
}

.furniture-product-gallery .swiper-pagination-bullet-active {
  background: var(--furniture-sage);
}

.furniture-product-thumbs {
  width: 100%;
  padding: 2px;
}

.furniture-product-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--furniture-border);
  border-radius: var(--furniture-radius);
  background: var(--furniture-surface);
  opacity: 0.62;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.furniture-product-thumbs .swiper-slide-thumb-active .furniture-product-thumb {
  border-color: var(--furniture-sage);
  opacity: 1;
  transform: translateY(-1px);
}

.furniture-product-thumb-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.furniture-product-intro {
  min-width: 0;
  padding: 18px 0 0;
}

.furniture-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.furniture-product-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(91, 111, 87, 0.28);
  border-radius: var(--furniture-radius);
  background: rgba(91, 111, 87, 0.08);
  color: var(--furniture-sage);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.furniture-product-chip:hover,
.furniture-product-chip:focus-visible {
  border-color: rgba(91, 111, 87, 0.5);
  background: rgba(91, 111, 87, 0.14);
  color: var(--furniture-text);
}

.furniture-product-title {
  margin: 0 0 28px;
  color: var(--furniture-text);
  font-family: "Marcellus", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.furniture-product-summary {
  margin-bottom: 32px;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--furniture-sage);
  color: var(--furniture-text-muted);
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 500;
}

.furniture-product-summary > :last-child,
.furniture-product-copy > :last-child,
.furniture-product-specs > :last-child {
  margin-bottom: 0;
}

.furniture-product-copy {
  color: var(--furniture-text);
  font-size: 0.98rem;
  line-height: 1.78;
}

/* Guard against narrow columns from DB content and handle unclosed tags */
.furniture-product-copy [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

.furniture-product-copy h2,
.furniture-product-copy h3,
.furniture-product-copy h4,
.furniture-product-copy p {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  clear: both;
}

.furniture-product-copy p,
.furniture-product-specs p,
.furniture-product-specs ul,
.furniture-product-specs ol {
  margin-bottom: 1rem;
}

.furniture-product-copy h2,
.furniture-product-copy h3,
.furniture-product-copy h4,
.furniture-product-specs h2,
.furniture-product-specs h3,
.furniture-product-specs h4 {
  margin: 1.35rem 0 0.7rem;
  color: var(--furniture-text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
}

.furniture-product-section {
  display: grid;
  gap: 32px;
  padding-top: 64px;
  margin-top: 54px;
  border-top: 1px solid var(--furniture-border);
}

.furniture-product-section-title {
  position: relative;
  margin: 0;
  color: var(--furniture-text);
  font-family: "Marcellus", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.furniture-product-section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  margin-top: 16px;
  background-color: var(--furniture-sage);
  opacity: 0.8;
}

.furniture-product-specs {
  width: 100%;
  max-width: 1100px;
  padding: 32px;
  border: 1px solid var(--furniture-border);
  border-radius: var(--furniture-radius);
  background: var(--furniture-surface);
  box-shadow: var(--furniture-shadow-soft);
  color: var(--furniture-text);
  line-height: 1.8;
}

.furniture-product-specs ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.furniture-product-specs li {
  margin-bottom: 12px;
}

.furniture-product-specs li::marker {
  color: var(--furniture-sage);
  font-size: 1.1em;
}

.furniture-product-specs table {
  width: 100% !important;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.furniture-product-specs th,
.furniture-product-specs td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--furniture-border);
  font-size: 1rem;
  vertical-align: middle;
}

.furniture-product-specs tr:last-child th,
.furniture-product-specs tr:last-child td {
  border-bottom: 0;
}

.furniture-product-specs th {
  width: 35%;
  background-color: var(--furniture-surface-soft);
  color: var(--furniture-text);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-align: left;
}

.furniture-product-specs td {
  color: var(--furniture-text-muted);
  font-family: "Manrope", sans-serif;
}

.furniture-product-specs tr:nth-child(even) td {
  background-color: color-mix(in srgb, var(--furniture-sage) 2%, transparent);
}

.furniture-product-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.furniture-product-reference {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--furniture-border);
  border-radius: var(--furniture-radius);
  background: var(--furniture-surface);
  color: var(--furniture-text);
  text-decoration: none;
}

.furniture-product-reference:hover,
.furniture-product-reference:focus-visible {
  border-color: rgba(91, 111, 87, 0.42);
  color: var(--furniture-text);
}

.furniture-product-reference-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.furniture-product-reference strong,
.furniture-product-reference span span {
  overflow-wrap: anywhere;
}

.furniture-product-reference strong {
  color: var(--furniture-text);
  font-size: 0.98rem;
  line-height: 1.32;
}

.furniture-product-reference span span {
  color: var(--furniture-text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Video Cards */
.furniture-product-video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--furniture-border);
  border-radius: var(--furniture-radius);
  background: var(--furniture-surface);
  box-shadow: var(--furniture-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.furniture-product-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--furniture-shadow);
}

.furniture-product-video-frame {
  background: var(--furniture-charcoal);
  border-radius: calc(var(--furniture-radius) - 1px) calc(var(--furniture-radius) - 1px) 0 0;
  overflow: hidden;
}

.furniture-product-video-info {
  padding: 16px 20px;
  border-top: 1px solid var(--furniture-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--furniture-surface) 40%, transparent), transparent);
}

.furniture-product-video-name {
  margin: 0;
  color: var(--furniture-text);
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.video-poster {
  position: relative;
  display: block;
  background-size: cover;
  background-position: center;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--furniture-charcoal) 15%, transparent);
  transition: background-color 0.3s ease;
}

.furniture-product-video-card:hover .video-poster::after {
  background: color-mix(in srgb, var(--furniture-charcoal) 30%, transparent);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) scale(1);
  color: var(--furniture-surface);
  font-size: 4rem;
  opacity: 0.9;
  filter: drop-shadow(var(--furniture-shadow-soft));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.furniture-product-video-card:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

[data-bs-theme="dark"] .furniture-product-gallery,
body.dark-mode .furniture-product-gallery,
[data-bs-theme="dark"] .furniture-product-specs,
body.dark-mode .furniture-product-specs {
  background:
    linear-gradient(135deg, rgba(91, 111, 87, 0.12), rgba(138, 95, 61, 0.1)),
    var(--furniture-surface);
}

[data-bs-theme="dark"] .swiper-gallery-nav,
body.dark-mode .swiper-gallery-nav {
  color: var(--furniture-text) !important;
  background: rgba(32, 35, 31, 0.9);
}

@media (max-width: 991.98px) {
  .furniture-product-detail {
    gap: 20px;
    padding-top: 14px;
  }

  .furniture-product-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .furniture-product-media {
    position: static !important;
  }

  .furniture-product-gallery .swiper-slide a {
    aspect-ratio: unset;
    height: 240px;
  }

  .furniture-product-gallery-image {
    object-fit: contain;
    height: 240px;
    width: 100%;
  }

  .furniture-product-intro {
    padding-top: 0;
  }

  .furniture-product-title {
    font-size: 1.75rem;
    margin-bottom: 14px;
  }

  .furniture-product-meta {
    margin-bottom: 14px;
  }
}

@media (max-width: 575.98px) {
  .furniture-product-detail {
    gap: 16px;
    padding: 12px 0 36px;
  }

  .furniture-product-breadcrumb .breadcrumb {
    row-gap: 4px;
  }

  .furniture-product-breadcrumb .breadcrumb-item,
  .furniture-product-breadcrumb .breadcrumb-item a {
    font-size: 0.88rem;
  }

  .furniture-product-gallery .swiper-slide a {
    height: 200px;
  }

  .furniture-product-gallery-image {
    height: 200px;
  }

  .furniture-product-media {
    gap: 10px;
  }

  .swiper-gallery-nav {
    width: 34px;
    height: 34px;
  }

  .swiper-gallery-nav::after {
    font-size: 14px !important;
  }

  .furniture-product-title {
    margin-bottom: 12px;
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .furniture-product-summary {
    padding-left: 12px;
    font-size: 0.97rem;
  }

  .furniture-product-specs {
    padding: 14px;
  }

  .furniture-product-section {
    padding-top: 20px;
    gap: 14px;
  }

  .furniture-product-section-title {
    font-size: 1.3rem;
  }

  .furniture-product-reference-grid {
    grid-template-columns: 1fr;
  }
}
