/* Death Decor — FBT + linked variation product add-ons */

/* ---- Frequently bought together: match product gold ATC ---- */
.single-product .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button,
.single-product .wd-fbt .wd-fbt-purchase-btn.button,
.single-product .wd-fbt .wd-fbt-purchase button,
.single-product .wd-fbt .wd-fbt-purchase .button,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.button,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase button,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 3rem !important;
  padding: 0.75rem 1.25rem !important;
  box-sizing: border-box;
  background: #8c6d3e !important;
  background-color: #8c6d3e !important;
  color: #050505 !important;
  border: 1px solid #8c6d3e !important;
  border-radius: 0.25rem !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.single-product .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button:hover,
.single-product .wd-fbt .wd-fbt-purchase-btn.button:hover,
.single-product .wd-fbt .wd-fbt-purchase button:hover,
.single-product .wd-fbt .wd-fbt-purchase .button:hover,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button:hover,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.button:hover,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase button:hover,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase .button:hover {
  background: #e9c176 !important;
  background-color: #e9c176 !important;
  border-color: #e9c176 !important;
  color: #050505 !important;
  box-shadow: none !important;
}

.single-product .wd-fbt .wd-fbt-purchase-btn.wd-disabled,
.wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.wd-disabled {
  opacity: 0.55;
  pointer-events: none;
}

html[data-theme="light"] .single-product .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-purchase-btn.button,
html[data-theme="light"] .wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button,
html[data-theme="light"] .wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.button {
  background: #8c6d3e !important;
  border-color: #8c6d3e !important;
  color: #050505 !important;
}

html[data-theme="light"] .single-product .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button:hover,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-purchase-btn.button:hover,
html[data-theme="light"] .wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.single_add_to_cart_button:hover,
html[data-theme="light"] .wd-fbt-wrap .wd-fbt .wd-fbt-purchase-btn.button:hover {
  background: #e9c176 !important;
  border-color: #e9c176 !important;
  color: #050505 !important;
}

/* ---- FBT section: mockup vertical bundle list ---- */
.single-product .wd-fbt-wrap {
  margin: 2rem auto 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--dd-theme-surface-variant, #353434);
  border-radius: 0.25rem;
  background: var(--dd-theme-charcoal, #1a1a1a);
  box-sizing: border-box;
}

/* Nested inside .product-tabs-inner .container — drop WoodMart's extra .container. */
.single-product .product-tabs-inner .wd-fbt-wrap.container {
  max-width: none;
  width: 100%;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  margin-left: 0;
  margin-right: 0;
}

.single-product .wd-fbt-wrap > .wd-el-title,
.single-product .wd-fbt-wrap > .title.slider-title,
.single-product .wd-fbt-wrap > h4.title {
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
  color: var(--dd-theme-ink, #f4f4f4) !important;
  margin: 0 0 0.35rem !important;
}

.single-product .wd-fbt-wrap > .wd-el-title + p,
.single-product .wd-fbt-wrap .dd-fbt-lede {
  margin: 0 0 1.5rem;
  color: var(--dd-theme-muted, #c4c7c7);
  font-size: 0.95rem;
}

/* Hide WoodMart horizontal product carousel — list rows carry images */
.single-product .wd-fbt.wd-design-side .wd-carousel-container,
.single-product .wd-fbt.wd-design-side .wd-products,
.single-product .wd-fbt.wd-design-side .products,
.single-product .wd-fbt.wd-design-side > .wd-carousel-wrap {
  display: none !important;
}

.single-product .wd-fbt.wd-design-side {
  display: block !important;
}

.single-product .wd-fbt .wd-fbt-form {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

@media (min-width: 900px) {
  .single-product .wd-fbt .wd-fbt-form {
    grid-template-columns: 1fr minmax(200px, 240px);
  }
}

.single-product .wd-fbt .wd-fbt-products {
  display: grid !important;
  gap: 0.85rem;
  width: 100%;
}

.single-product .wd-fbt .wd-fbt-product {
  position: relative;
  margin: 0 !important;
  padding: 0.75rem !important;
  border: 1px solid var(--dd-theme-outline, #444748) !important;
  border-radius: 0.25rem;
  background: var(--dd-theme-bg, #141313);
  box-sizing: border-box;
}

.single-product .wd-fbt .wd-fbt-product:not(:last-child)::after {
  content: "+";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--dd-theme-bronze, #8c6d3e);
  color: #050505;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  z-index: 2;
}

.single-product .wd-fbt .wd-fbt-product-heading {
  display: grid !important;
  grid-template-columns: auto 72px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: center;
  margin: 0 !important;
}

.single-product .wd-fbt .wd-fbt-product-heading:not(:has(input[type="checkbox"])) {
  grid-template-columns: 72px minmax(0, 1fr);
}

.single-product .wd-fbt .wd-fbt-product input[type="checkbox"] {
  margin: 0 !important;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--dd-theme-secondary, #e9c176);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.single-product .wd-fbt .wd-fbt-product .dd-fbt-thumb {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 0.2rem;
  background: var(--dd-theme-charcoal, #1a1a1a);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.single-product .wd-fbt .wd-fbt-product-heading:not(:has(input[type="checkbox"])) .dd-fbt-thumb {
  grid-column: 1;
}

.single-product .wd-fbt .wd-fbt-product .dd-fbt-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.single-product .wd-fbt .wd-fbt-product-heading > label {
  display: block;
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin: 0 !important;
  min-width: 0;
}

.single-product .wd-fbt .wd-fbt-product-heading:not(:has(input[type="checkbox"])) > label {
  grid-column: 2;
}

.single-product .wd-fbt .wd-fbt-product-heading .price {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  margin: 0 !important;
  font-size: 0.95rem !important;
  color: var(--dd-theme-secondary, #e9c176) !important;
  font-family: "EB Garamond", Georgia, serif !important;
  line-height: 1.2 !important;
}

.single-product .wd-fbt .wd-fbt-product-heading:not(:has(input[type="checkbox"])) .price {
  grid-column: 2;
}

.single-product .wd-fbt .wd-fbt-product-heading .wd-entities-title,
.single-product .wd-fbt .wd-fbt-product-heading .wd-entities-title a,
.single-product .wd-fbt .wd-fbt-product-heading .title,
.single-product .wd-fbt .wd-fbt-product-heading .title a {
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  text-align: left !important;
  color: var(--dd-ink, #f4f4f4) !important;
  margin: 0 !important;
  transition: color 0.25s;
  position: relative;
  z-index: 1;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.single-product .wd-fbt .wd-fbt-product-heading label:hover .wd-entities-title,
.single-product .wd-fbt .wd-fbt-product-heading label:hover .wd-entities-title a,
.single-product .wd-fbt .wd-fbt-product-heading label:hover .title,
.single-product .wd-fbt .wd-fbt-product-heading label:hover .title a {
  color: var(--dd-theme-secondary, #e9c176) !important;
}

.single-product .wd-fbt .wd-fbt-purchase {
  border: 1px solid var(--dd-theme-outline, #444748);
  border-radius: 0.25rem;
  padding: 1.25rem;
  background: var(--dd-theme-bg, #141313);
  box-sizing: border-box;
}

.single-product .wd-fbt .wd-fbt-purchase .price {
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 400 !important;
  color: var(--dd-theme-ink, #f4f4f4) !important;
  margin: 0.35rem 0 0.25rem !important;
  line-height: 1.1 !important;
}

.single-product .wd-fbt .wd-fbt-desc {
  margin: 0 0 1rem !important;
  color: var(--dd-theme-secondary, #e9c176) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .single-product .wd-fbt-wrap {
  background: #f5f3ee;
  border-color: var(--dd-theme-surface-variant);
}

html[data-theme="light"] .single-product .wd-fbt-wrap > .wd-el-title,
html[data-theme="light"] .single-product .wd-fbt-wrap > .title.slider-title,
html[data-theme="light"] .single-product .wd-fbt-wrap > h4.title {
  color: var(--dd-theme-ink) !important;
}

html[data-theme="light"] .single-product .wd-fbt .wd-fbt-product,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-purchase {
  background: #fbf9f4;
  border-color: var(--dd-theme-outline);
}

html[data-theme="light"] .single-product .wd-fbt .wd-fbt-product-heading .wd-entities-title,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-product-heading .wd-entities-title a,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-product-heading .title,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-product-heading .title a,
html[data-theme="light"] .single-product .wd-fbt .wd-fbt-purchase .price {
  color: var(--dd-theme-ink) !important;
}

@media (max-width: 899px) {
  .single-product .wd-fbt .wd-fbt-product:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -0.75rem;
    transform: translate(50%, 50%);
  }
}

/* ---- Linked variation swatches (mockup chips) ---- */
.variations_form-linked {
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--dd-theme-surface-variant, #353434);
  border-bottom: 1px solid var(--dd-theme-surface-variant, #353434);
}

.variations_form-linked table.variations,
.variations_form-linked table.variations tbody,
.variations_form-linked table.variations tr,
.variations_form-linked table.variations th,
.variations_form-linked table.variations td {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  vertical-align: top;
}

.variations_form-linked table.variations th.label {
  margin-bottom: 0.75rem;
}

.variations_form-linked table.variations th.label label {
  display: inline;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dd-theme-muted, #c4c7c7);
}

.variations_form-linked table.variations th.label label .dd-lv-current {
  font-weight: 700;
  color: var(--dd-theme-ink, #f4f4f4);
}

.variations_form-linked .wd-swatches-product {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.variations_form-linked .wd-swatch {
  display: grid !important;
  grid-template-columns: 48px 1fr;
  gap: 0.65rem;
  align-items: center;
  min-width: 160px;
  max-width: 100%;
  width: auto;
  height: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0.55rem 0.85rem 0.55rem 0.85rem !important;
  border: 1px solid var(--dd-theme-outline, #444748) !important;
  border-radius: 0.25rem;
  background: var(--dd-theme-charcoal, #1a1a1a) !important;
  color: var(--dd-theme-ink, #f4f4f4) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
}

.variations_form-linked .wd-swatch::before,
.variations_form-linked .wd-swatch::after {
  display: none !important;
  content: none !important;
}

.variations_form-linked .wd-swatch:hover {
  border-color: var(--dd-theme-secondary, #e9c176) !important;
  color: var(--dd-theme-ink, #f4f4f4) !important;
}

.variations_form-linked .wd-swatch.wd-active {
  border-color: var(--dd-theme-secondary, #e9c176) !important;
  box-shadow: inset 0 0 0 1px var(--dd-theme-secondary, #e9c176) !important;
}

.variations_form-linked .wd-swatch .wd-swatch-bg {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.2rem !important;
  overflow: hidden;
  background: color-mix(in srgb, var(--dd-theme-secondary, #e9c176) 12%, var(--dd-theme-charcoal, #1a1a1a)) !important;
  box-shadow: none !important;
}

.variations_form-linked .wd-swatch .wd-swatch-bg img {
  display: block;
  width: 48px !important;
  height: 48px !important;
  max-width: none;
  object-fit: cover;
  border-radius: 0.2rem;
}

.variations_form-linked .wd-swatch .wd-swatch-text {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0.35rem 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: inherit !important;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1 !important;
  clip: auto !important;
  position: static !important;
}

.variations_form-linked .wd-swatch.wd-text {
  grid-template-columns: 1fr;
  padding: 0.65rem 0.85rem !important;
}

.variations_form-linked .wd-swatch.wd-disabled {
  opacity: 0.55;
}

html[data-theme="light"] .variations_form-linked .wd-swatch {
  background: #f5f3ee !important;
  color: var(--dd-theme-ink) !important;
  border-color: var(--dd-theme-outline) !important;
}

html[data-theme="light"] .variations_form-linked .wd-swatch:hover,
html[data-theme="light"] .variations_form-linked .wd-swatch.wd-active {
  border-color: var(--dd-theme-secondary) !important;
}

html[data-theme="light"] .variations_form-linked .wd-swatch.wd-active {
  box-shadow: inset 0 0 0 1px var(--dd-theme-secondary) !important;
}

html[data-theme="light"] .variations_form-linked table.variations th.label label .dd-lv-current {
  color: var(--dd-theme-ink);
}

@media (max-width: 480px) {
  .variations_form-linked .wd-swatch {
    min-width: calc(50% - 0.4rem);
    flex: 1 1 calc(50% - 0.4rem);
  }
}
