/* Ensure ancestor elements allow sticky positioning without horizontal overflow */
html, body {
  overflow-x: clip !important;
}

/* ==========================================================================
   Furniture Concepts — Single Product Page Styles
   Reference: Metal Bunk Bed with Square Tube Deck (UNI150 - 8" Clearance)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb Bar
   -------------------------------------------------------------------------- */
.product-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-family: var(--font-condensed);
  font-size: 14px;
}

.product-breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.product-breadcrumb-inner a {
  color: var(--forest);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-breadcrumb-inner a:hover {
  color: var(--lime-dark);
  text-decoration: underline;
}

.product-breadcrumb-inner .separator {
  color: #b0aba2;
  font-size: 11px;
}

.product-breadcrumb-inner .current {
  color: var(--charcoal);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* --------------------------------------------------------------------------
   Single Product Hero / Main Details
   -------------------------------------------------------------------------- */
.product-detail-section {
  padding: 48px 0 64px;
  background: var(--cream);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --------------------------------------------------------------------------
   Gallery Column (Sticky on Scroll within section)
   -------------------------------------------------------------------------- */
.product-gallery-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 32px;
  align-self: flex-start;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
}

@media (max-width: 991px) {
  .product-gallery-wrap {
    position: static;
    top: auto;
  }
}

.product-gallery-main {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 43, 36, 0.05);
}

.product-gallery-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.gallery-badge.lime {
  background: var(--lime);
  color: var(--forest);
}

.gallery-badge.alert {
  background: #c93b2b;
  color: #fff;
}

.product-gallery-main img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
}

.product-gallery-main:hover img {
  transform: scale(1.08);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-condensed);
  font-size: 12px;
  color: #888;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumb-btn {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.gallery-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumb-btn:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.gallery-thumb-btn.active {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 2px rgba(110, 128, 17, 0.25);
  background: #fbfbf9;
}

/* --------------------------------------------------------------------------
   Product Info Column
   -------------------------------------------------------------------------- */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.product-meta-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.product-series-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime-dark);
  margin-bottom: 6px;
}

.product-main-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 10px;
}

.product-sku-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-condensed);
  font-size: 14px;
  color: var(--muted);
}

.product-sku-row strong {
  color: var(--charcoal);
  font-weight: 700;
}

.product-availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2b7a4b;
  font-weight: 700;
}

.product-availability-pill::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b7a4b;
}

/* Commercial Pricing Card */
.product-pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime-dark);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-pricing-heading {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-pricing-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Highlights List */
.product-feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

@media (max-width: 600px) {
  .product-feature-highlights {
    grid-template-columns: 1fr;
  }
}

.product-feature-highlights li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--charcoal);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-feature-highlights li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--lime-dark);
}

/* --------------------------------------------------------------------------
   Interactive Configurator Options
   -------------------------------------------------------------------------- */
.product-configurator-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(20, 43, 36, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-label {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-selected-value {
  color: var(--lime-dark);
  font-weight: 700;
  text-transform: none;
  font-size: 13px;
}

/* Radio Option Pills */
.config-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-pill-btn {
  background: #f7f6f2;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-condensed);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.config-pill-btn:hover {
  border-color: var(--forest);
  background: #fff;
}

.config-pill-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  box-shadow: 0 3px 8px rgba(20, 43, 36, 0.15);
}

/* Swatches */
.config-swatches-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.config-swatch-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.config-swatch-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--forest);
}

.config-swatch-btn.active {
  box-shadow: 0 0 0 2px var(--lime-dark), 0 3px 6px rgba(0, 0, 0, 0.15);
  transform: scale(1.08);
}

/* Checkbox Accessories */
.config-addons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-addon-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf9;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13.5px;
}

.config-addon-label:hover {
  background: #fff;
  border-color: var(--forest);
}

.config-addon-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-addon-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
  cursor: pointer;
}

.config-addon-price {
  font-family: var(--font-condensed);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lime-dark);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Order Actions (Qty + CTA Buttons)
   -------------------------------------------------------------------------- */
.product-actions-wrap {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}

.product-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  height: 48px;
  padding: 4px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--forest);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #f0f0ea;
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  background: transparent;
}

.product-add-quote-btn {
  flex: 1;
  min-width: 220px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--forest);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(20, 43, 36, 0.16);
}

.product-add-quote-btn:hover {
  background: var(--lime);
  color: var(--forest);
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 43, 36, 0.2);
}

.product-secondary-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.spec-download-btn,
.direct-contact-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
  font-family: var(--font-condensed);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.spec-download-btn:hover,
.direct-contact-btn:hover {
  border-color: var(--forest);
  background: #f8fbf9;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Key Benefit Cards (4-Grid)
   -------------------------------------------------------------------------- */
.product-perks-section {
  padding: 20px 0 60px;
  background: var(--cream);
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .perks-grid {
    grid-template-columns: 1fr;
  }
}

.perk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 43, 36, 0.06);
}

.perk-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #edf3e7;
  color: var(--lime-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.perk-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
}

.perk-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Product Tabbed Information Area (Full Width & No Vertical Scroll)
   -------------------------------------------------------------------------- */
.product-tabs-section {
  padding: 64px 0 72px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.tabs-nav-bar {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 36px;
  overflow-x: auto;
  overflow-y: hidden; /* Prevents vertical scrollbar on tab bar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  padding-bottom: 0;
  position: relative;
}

.tabs-nav-bar::-webkit-scrollbar {
  display: none;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  padding: 14px 24px;
  font-family: var(--font-condensed);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.tab-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: background 0.2s ease;
}

.tab-nav-btn:hover {
  color: var(--forest);
}

.tab-nav-btn.active {
  color: var(--forest);
  font-weight: 700;
}

.tab-nav-btn.active::after {
  background: var(--lime-dark);
}

.tab-panels-wrapper {
  width: 100%;
  min-height: 460px; /* Prevents vertical scroll jump when switching tabs */
}

.tab-panel-content {
  display: none;
  width: 100%;
  animation: tabFadeIn 0.25s ease;
}

.tab-panel-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Description Prose - Full Width */
.tab-prose {
  width: 100%;
  max-width: 100%;
}

.tab-prose h3 {
  font-size: clamp(22px, 2.5vw, 26px);
  color: var(--forest);
  margin: 0 0 14px;
  line-height: 1.25;
}

.tab-prose p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 18px;
}

.tab-callout-quote {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f7f9f6;
  border-left: 4px solid var(--lime-dark);
  padding: 20px 28px;
  border-radius: 8px;
  margin: 24px 0;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--forest);
}

/* Spec Table - Full Width */
.spec-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #edf0ea;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  background: #f7f9f6;
  font-family: var(--font-condensed);
  font-weight: 700;
  color: var(--forest);
  width: 32%;
  letter-spacing: 0.02em;
}

.spec-table td {
  color: var(--charcoal);
  line-height: 1.5;
}

.spec-table tr:hover td {
  background: #fafaf8;
}

/* Downloads List */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
}

.download-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 43, 36, 0.08);
}

.download-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #feeceb;
  color: #c93b2b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 4px;
}

.download-info p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.download-link {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   FAQ Accordion Section
   -------------------------------------------------------------------------- */
.product-faq-section {
  padding: 64px 0;
  background: var(--cream);
}

.faq-list {
  max-width: 860px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--forest);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
}

.faq-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
  color: var(--lime-dark);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--charcoal);
}

.faq-item.active .faq-answer-panel {
  max-height: 400px;
  padding: 0 24px 22px;
}

/* --------------------------------------------------------------------------
   Related Products Carousel / Grid
   -------------------------------------------------------------------------- */
.related-products-section {
  padding: 64px 0 80px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.related-grid .popular-card {
  flex: none;
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1100px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Turnkey Quote Banner Form
   -------------------------------------------------------------------------- */
.product-quote-cta-section {
  background: var(--forest);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.product-quote-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .product-quote-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.quote-cta-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: #fff;
  line-height: 1.15;
  margin: 0 0 14px;
}

.quote-cta-text h2 em {
  color: var(--lime);
  font-style: italic;
}

.quote-cta-text p {
  color: #d1ded9;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.quote-cta-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 13.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-badge-item svg {
  color: var(--lime);
}

