/* CUETEKS Black Friday homepage, draft theme only.
   Existing photographs, gallery controls, scene coordinates and glass motion
   remain owned by their original modules. All additions are homepage scoped. */

body.template-home .ct-bf-home-module {
  --ct-bf-burgundy: #592538;
  --ct-bf-ivory: #f5efe7;
  --ct-bf-rose: #c7a6a1;
  --ct-bf-ink: #302b28;
  --ct-bf-muted: #75666a;
  --ct-bf-rule: #e1d2d1;
  --ct-bf-tint: #f7f1ef;
  --ct-brand: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module .ct-eyebrow,
body.template-home .ct-bf-home-module .lm-eyebrow {
  color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module .ct-bf-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--ct-bf-burgundy);
  background: var(--ct-bf-burgundy);
  color: var(--ct-bf-ivory);
  font: 500 11px/1.45 Outfit, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

body.template-home .ct-bf-home-module .ct-bf-module-offer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  width: fit-content;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 10px 14px;
  border-inline-start: 2px solid var(--ct-bf-burgundy);
  background: #efe0df;
  color: var(--ct-bf-burgundy);
  font: 400 13px/1.6 Outfit, Arial, sans-serif;
}

body.template-home .ct-bf-home-module .ct-bf-module-offer strong {
  font-weight: 600;
}

/* A compact promotional tab, clear of the product and native card controls. */
body.template-home .ct-bf-home-module .ct-bf-card-tag {
  position: absolute;
  z-index: 3;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 91px;
  padding: 9px 11px;
  border: 1px solid #a77e7b;
  background: var(--ct-bf-burgundy);
  color: var(--ct-bf-ivory);
  font-family: Outfit, Arial, sans-serif;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

body.template-home .ct-bf-home-module .ct-bf-card-tag-main {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .015em;
}

body.template-home .ct-bf-home-module .ct-bf-card-tag-code {
  color: #e8cfca;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  direction: ltr;
  unicode-bidi: isolate;
}

body.template-home .ct-bf-home-module .ct-bf-module-note {
  max-width: 64em;
  margin: 20px 0 0;
  color: var(--ct-bf-muted);
  font: 400 12px/1.65 Outfit, Arial, sans-serif;
}

body.template-home .ct-bf-home-module .ct-bf-module-note strong {
  color: var(--ct-bf-burgundy);
  font-weight: 500;
}

body.template-home .ct-bf-home-module .ct-textlink {
  color: var(--ct-bf-burgundy);
  text-decoration-color: var(--ct-bf-rose);
  text-underline-offset: 5px;
}

body.template-home .ct-bf-home-module .ct-button,
body#f-theme.template-home .ct-bf-home-module .ct-product-link {
  background: var(--ct-bf-burgundy);
  color: var(--ct-bf-ivory);
  border-color: var(--ct-bf-burgundy);
  transition: background-color .18s ease, border-color .18s ease;
}

body.template-home .ct-bf-home-module .ct-button:hover,
body#f-theme.template-home .ct-bf-home-module .ct-product-link:hover {
  background: #421b2a;
  border-color: #421b2a;
  color: var(--ct-bf-ivory);
}

/* Photographic room cards stay quiet; only their caption accents change. */
body.template-home .ct-bf-home-module .ct-collections--rooms .ct-collection {
  background: #f6f3ef;
}

body.template-home .ct-bf-home-module .ct-room-action {
  border-top-color: var(--ct-bf-rule);
  color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module .ct-room-arrow {
  border-color: var(--ct-bf-rose);
}

body.template-home .ct-bf-home-module .ct-collections--rooms .ct-collection:hover .ct-room-caption {
  background: #f1e9e5;
}

body.template-home .ct-bf-home-module .ct-collections--rooms .ct-collection:hover .ct-room-arrow,
body.template-home .ct-bf-home-module .ct-collections--rooms .ct-collection:focus-visible .ct-room-arrow {
  background: var(--ct-bf-burgundy);
  color: var(--ct-bf-ivory);
  border-color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module .ct-collections--types .ct-collection:hover {
  border-color: var(--ct-bf-rose);
}

body.template-home .ct-bf-home-module .ct-collections--types .ct-collection-title,
body.template-home .ct-bf-home-module .ct-material h3 {
  color: var(--ct-bf-ink);
}

/* The regular amount remains readable; this is a coupon estimate, not a sale price. */
body.template-home .ct-bf-home-module .ct-bf-price {
  min-width: 0;
  margin: 0 0 10px;
  font-family: Outfit, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

body.template-home .ct-bf-home-module .ct-bf-price-current,
body.template-home .ct-bf-home-module .ct-bf-price-current * {
  color: #645b59;
  text-decoration: none !important;
}

body.template-home .ct-bf-home-module .ct-bf-price-current {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

body.template-home .ct-bf-home-module .ct-bf-price-row,
body.template-home .ct-bf-home-module .ct-bf-price-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin: 0;
  color: var(--ct-bf-burgundy);
  line-height: 1.45;
}

body.template-home .ct-bf-home-module .ct-bf-discount,
body.template-home .ct-bf-home-module .ct-bf-price-value {
  color: var(--ct-bf-burgundy);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
}

body.template-home .ct-bf-home-module .ct-bf-from {
  color: var(--ct-bf-burgundy);
  font-size: 12px;
  font-weight: 400;
}

body.template-home .ct-bf-home-module .ct-bf-price-label {
  color: var(--ct-bf-burgundy);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .015em;
}

body.template-home .ct-bf-home-module .ct-bf-saving,
body.template-home .ct-bf-home-module .ct-bf-price-saving {
  margin: 4px 0 0;
  color: var(--ct-bf-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

/* Four calm product columns with room for every price line. */
body.template-home .ct-bf-home-module.ct-bf-selected .ct-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: stretch;
}

body.template-home .ct-bf-home-module.ct-bf-selected .ct-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.template-home .ct-bf-home-module.ct-bf-selected .ct-product-media {
  flex: none;
  width: 100%;
}

body.template-home .ct-bf-home-module.ct-bf-selected .ct-product h3 {
  margin-bottom: 10px;
  min-height: 3em;
  overflow-wrap: break-word;
}

body.template-home .ct-bf-home-module.ct-bf-selected .ct-bf-price {
  min-height: 78px;
  margin-bottom: 8px;
}

body.template-home .ct-bf-home-module.ct-bf-selected .ct-product-note {
  margin-bottom: 17px;
}

body.template-home .ct-bf-home-module.ct-bf-selected .ct-product-link {
  margin-top: auto;
  text-align: center;
}

/* Preserve the photographed scene; let the information rows grow naturally. */
body.template-home .ct-bf-home-module.ct-bf-look .ct-look {
  background: #f4eee8;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product {
  grid-template-columns: 24px 68px minmax(0, 1fr) 18px;
  gap: 12px;
  padding-block: 17px;
  min-height: 118px;
  height: auto;
  align-items: center;
  border-color: var(--ct-bf-rule);
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product > div:not(.ct-look-thumb) {
  min-width: 0;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-look-thumb {
  width: 68px;
  height: 68px;
  aspect-ratio: 1;
  align-self: center;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product h3 {
  margin-bottom: 7px;
  overflow-wrap: break-word;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-bf-price {
  margin-bottom: 4px;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-bf-price-current {
  margin-bottom: 2px;
  font-size: 12px;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-bf-discount,
body.template-home .ct-bf-home-module.ct-bf-look .ct-bf-price-value {
  font-size: 17px;
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-number {
  color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product.is-highlighted {
  background: #eee1df;
  outline-color: var(--ct-bf-rose);
}

body.template-home .ct-bf-home-module.ct-bf-look .ct-hotspot:hover,
body.template-home .ct-bf-home-module.ct-bf-look .ct-hotspot:focus-visible,
body.template-home .ct-bf-home-module.ct-bf-look .ct-hotspot.is-highlighted {
  background: var(--ct-bf-burgundy);
  color: var(--ct-bf-ivory);
}

/* Glass photography keeps its existing transform, animation and overlay. */
body.template-home .ct-bf-home-module.ct-bf-glass .ct-bf-module-badge {
  background: var(--ct-bf-ivory);
  border-color: var(--ct-bf-ivory);
  color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module.ct-bf-glass .ct-bf-module-offer {
  background: rgba(68, 27, 42, .76);
  color: var(--ct-bf-ivory);
  border-inline-start-color: var(--ct-bf-rose);
  margin: 0 0 23px;
  padding: 9px 13px;
}

body.template-home .ct-bf-home-module.ct-bf-glass .ct-bf-module-note {
  color: var(--ct-bf-ivory);
}

body.template-home .ct-bf-home-module.ct-bf-glass .ct-gm-link {
  background: var(--ct-bf-ivory);
  color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module.ct-bf-glass .ct-gm-link:hover {
  background: #e8d9d5;
}

/* The planner remains an interactive sizing tool, with one restrained offer. */
body.template-home .ct-bf-home-module.ct-bf-light .lm-calc__cta {
  background: var(--ct-bf-ivory);
  color: var(--ct-bf-burgundy);
  border-color: var(--ct-bf-ivory);
}

/* Three-part closing strip: the offer, a usable coupon, then one clear action. */
body.template-home .ct-bf-home-module.ct-bf-closing {
  padding: 31px 0;
  background: #351522;
  color: var(--ct-bf-ivory);
  font-family: Outfit, Arial, sans-serif;
  border-block-start: 1px solid #9a6d69;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(180px, .7fr);
  align-items: center;
  gap: 28px 44px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-eyebrow {
  margin: 0 0 8px;
  color: #d3a9a1;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.template-home .ct-bf-home-module.ct-bf-closing h2 {
  max-width: 24ch;
  margin: 0;
  color: var(--ct-bf-ivory);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
  white-space: pre-line;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-discount {
  display: block;
  margin: 0;
  color: var(--ct-bf-ivory);
  font: 500 clamp(38px, 4.1vw, 60px)/1.05 Outfit, Arial, sans-serif;
  letter-spacing: -.045em;
  white-space: nowrap;
}

body.template-home .ct-bf-home-module.ct-bf-selected h2 {
  white-space: pre-line;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-home-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-copy > p:not(.ct-bf-eyebrow):not(.ct-bf-closing-discount) {
  max-width: 34em;
  margin: 9px 0 0;
  color: #ebdeda;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-code-label {
  margin: 0;
  color: #d3a9a1;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 8px 9px;
  padding-inline-start: 17px;
  border: 1px dashed #a77e7b;
  background: #421e2c;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-code {
  display: block;
  margin: 0;
  color: var(--ct-bf-ivory);
  font: 500 28px/1.2 Outfit, Arial, sans-serif;
  letter-spacing: .12em;
  direction: ltr;
  unicode-bidi: isolate;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-close-note {
  margin: 0;
  color: #d6c2bf;
  font: 300 11px/1.5 Outfit, Arial, sans-serif;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-copy-code,
body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ct-bf-ivory);
  border-radius: 0;
  background: var(--ct-bf-ivory);
  color: var(--ct-bf-burgundy);
  font: 500 12px/1.5 Outfit, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-button {
  min-height: 56px;
  width: 100%;
  margin: 0;
  padding-inline: 20px;
  letter-spacing: .075em;
  text-transform: uppercase;
  border-color: var(--ct-bf-ivory);
  background: var(--ct-bf-ivory);
  color: var(--ct-bf-burgundy);
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-copy-code:hover {
  background: #e6d7d2;
  border-color: #e6d7d2;
}

body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-button:hover {
  background: #e6d7d2;
  border-color: #e6d7d2;
}

body.template-home .ct-bf-home-module :is(a, button, input, summary, label[for]):focus-visible {
  outline: 2px solid var(--ct-bf-burgundy);
  outline-offset: 4px;
}

body.template-home .ct-bf-home-module.ct-bf-glass :is(a, button):focus-visible,
body.template-home .ct-bf-home-module.ct-bf-closing :is(a, button):focus-visible {
  outline-color: var(--ct-bf-ivory);
}

body.template-home .ct-bf-home-module:dir(rtl) .ct-eyebrow,
body.template-home .ct-bf-home-module:dir(rtl) .ct-bf-eyebrow,
body.template-home .ct-bf-home-module:dir(rtl) .ct-bf-module-badge,
body.template-home .ct-bf-home-module:dir(rtl) .ct-bf-code-label {
  letter-spacing: 0;
}

body.template-home .ct-bf-home-module:dir(rtl) .ct-bf-price-row,
body.template-home .ct-bf-home-module:dir(rtl) .ct-bf-price-offer {
  text-align: start;
}

body.template-home .ct-bf-home-module.ct-bf-closing:dir(rtl) h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.template-home .ct-bf-home-module.ct-bf-selected .ct-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product {
    grid-template-columns: 24px 68px minmax(0, 1fr) 18px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(150px, .75fr);
    gap: 24px;
    padding-inline: 26px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-copy-code {
    padding-inline: 12px;
  }
}

@media (max-width: 767px) {
  body.template-home .ct-bf-home-module .ct-bf-module-badge {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: .05em;
  }

  body.template-home .ct-bf-home-module .ct-bf-card-tag {
    inset-block-start: 6px;
    inset-inline-start: 6px;
    min-width: 0;
    width: 64px;
    max-width: calc(100% - 50px);
    padding: 6px;
    gap: 2px;
  }

  body.template-home .ct-bf-home-module .ct-bf-card-tag-main {
    font-size: 10px;
  }

  body.template-home .ct-bf-home-module .ct-bf-card-tag-code {
    font-size: 9px;
  }

  body.template-home .ct-bf-home-module .ct-bf-module-offer {
    margin-top: 16px;
    padding: 9px 11px;
    font-size: 12px;
  }

  body.template-home .ct-bf-home-module .ct-bf-module-note {
    margin-top: 16px;
    font-size: 11px;
  }

  body.template-home .ct-bf-home-module.ct-bf-selected .ct-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  body.template-home .ct-bf-home-module.ct-bf-selected .ct-product h3 {
    font-size: 13px;
    line-height: 1.5;
    min-height: 3em;
    margin-bottom: 8px;
  }

  body.template-home .ct-bf-home-module.ct-bf-selected .ct-bf-price {
    min-height: 78px;
  }

  body.template-home .ct-bf-home-module .ct-bf-price-current {
    font-size: 12px;
  }

  body.template-home .ct-bf-home-module .ct-bf-discount,
  body.template-home .ct-bf-home-module .ct-bf-price-value {
    font-size: 17px;
  }

  body.template-home .ct-bf-home-module .ct-bf-price-label,
  body.template-home .ct-bf-home-module .ct-bf-from,
  body.template-home .ct-bf-home-module .ct-bf-saving,
  body.template-home .ct-bf-home-module .ct-bf-price-saving {
    font-size: 10px;
  }

  body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product {
    grid-template-columns: 18px 58px minmax(0, 1fr) 16px;
    gap: 9px;
    min-height: 116px;
    padding-block: 16px;
  }

  body.template-home .ct-bf-home-module.ct-bf-look .ct-look-thumb {
    width: 58px;
    height: 58px;
  }

  body.template-home .ct-bf-home-module.ct-bf-look .ct-look-product h3 {
    font-size: 13px;
    line-height: 1.45;
  }

  body.template-home .ct-bf-home-module.ct-bf-glass .ct-bf-module-offer {
    margin: 0 0 18px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing {
    padding: 25px 0;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    padding-inline: 20px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-discount {
    font-size: 43px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing h2 {
    max-width: 27ch;
    font-size: 26px;
    line-height: 1.15;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-copy > p:not(.ct-bf-eyebrow):not(.ct-bf-closing-discount) {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.55;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-closing-action {
    gap: 7px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-code {
    font-size: 24px;
  }

  body.template-home .ct-bf-home-module.ct-bf-closing .ct-bf-button {
    min-height: 48px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.template-home .ct-bf-home-module :is(.ct-button, .ct-product-link, .ct-bf-copy-code, .ct-bf-button) {
    transition: none;
  }
}
