/* BR COTTFAB — Editorial Featured Collection
   Loaded last on the homepage. Scoped to #featured-products to avoid global conflicts.
   Keeps the site's existing --font-heading and --font-body families. */
#featured-products.fp-section {
  --fp-red: #c0392b;
  --fp-ink: var(--text-dark, #1a1a2e);
  --fp-muted: var(--text-muted, #706b67);
  --fp-border: #e6ded7;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(64px, 7.2vw, 104px) 0 clamp(70px, 7vw, 96px) !important;
  background:
    radial-gradient(ellipse at 0% 16%, rgba(192,57,43,.055), transparent 33%),
    radial-gradient(ellipse at 100% 85%, rgba(20,166,183,.05), transparent 31%),
    #faf8f6 !important;
}
#featured-products.fp-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(80,65,56,.22) .65px, transparent .8px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
#featured-products.fp-section::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg,#c0392b 0 28%,#e5a629 28% 40%,#28a879 40% 57%,#20afc2 57% 76%,#d52d8b 76% 100%);
  opacity: .78;
}
#featured-products > .container { position: relative; z-index: 1; }

/* Heading uses a clear display/body type scale, retaining site font variables. */
#featured-products .fp-heading {
  display: grid !important; grid-template-columns: minmax(0,1fr) auto !important;
  grid-template-areas: "copy action" !important; align-items: end !important;
  column-gap: 38px !important; row-gap: 20px !important;
  margin: 0 0 clamp(30px,3.2vw,42px) !important; padding: 0 !important;
}
#featured-products .fp-heading-copy { grid-area: copy; min-width: 0; max-width: 780px; }
#featured-products .fp-eyebrow {
  display: flex !important; align-items: center !important; gap: 11px !important;
  margin: 0 0 15px !important; color: var(--fp-red) !important;
  font-family: var(--font-body, sans-serif) !important; font-size: 10px !important;
  font-weight: 600 !important; letter-spacing: .19em !important; line-height: 1.5 !important;
}
#featured-products .fp-eyebrow-line { display: inline-block; width: 28px; height: 2px; flex: 0 0 28px; background: var(--fp-red); }
#featured-products .fp-title {
  margin: 0 0 12px !important; color: var(--fp-ink) !important;
  font-family: var(--font-heading, Georgia, serif) !important;
  font-size: clamp(38px,4.2vw,58px) !important; font-weight: 500 !important;
  letter-spacing: -.035em !important; line-height: 1.08 !important;
}
#featured-products .fp-title-mark { color: var(--fp-red) !important; }
#featured-products .fp-description {
  max-width: 640px !important; margin: 0 !important; color: var(--fp-muted) !important;
  font-family: var(--font-body, sans-serif) !important; font-size: clamp(14px,1.15vw,16px) !important;
  line-height: 1.8 !important;
}
#featured-products .fp-explore-link {
  grid-area: action !important; align-self: end !important; justify-self: end !important;
  display: inline-flex !important; align-items: center !important; gap: 20px !important;
  min-height: 44px; margin: 0 0 5px !important; padding: 0 0 10px !important;
  border: 0 !important; border-bottom: 1px solid #c9beb5 !important; border-radius: 0 !important;
  background: transparent !important; color: var(--fp-ink) !important;
  font-family: var(--font-body, sans-serif) !important; font-size: 12px !important;
  font-weight: 600 !important; text-decoration: none !important; white-space: nowrap !important;
  transition: color .25s ease, border-color .25s ease !important;
}
#featured-products .fp-explore-link span { color: var(--fp-red); font-size: 18px; transition: transform .28s ease; }
#featured-products .fp-explore-link:hover { color: var(--fp-red) !important; border-color: var(--fp-red) !important; }
#featured-products .fp-explore-link:hover span { transform: translate(4px,-3px); }

/* Grid: consistent four-column editorial rhythm on desktop. */
#featured-products .fp-grid {
  display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  align-items: stretch !important; gap: 28px 22px !important; margin: 0 !important;
}
#featured-products .fp-card {
  --fp-order: 0; position: relative !important; display: flex !important; flex-direction: column !important;
  min-width: 0 !important; height: 100% !important; overflow: hidden !important;
  border: 1px solid rgba(62,48,39,.12) !important; border-radius: 4px !important;
  background: #fff !important; box-shadow: 0 5px 18px rgba(35,27,22,.045) !important;
  transform: translate3d(0,0,0); transition: transform .42s cubic-bezier(.2,.75,.25,1),
    box-shadow .42s ease,border-color .35s ease !important;
  transition-delay: 0ms !important;
}
#featured-products .fp-card::before {
  content: ""; position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg,#c0392b,#e5a629,#28a879,#20afc2,#d52d8b);
  transform: scaleX(0); transform-origin: left; transition: transform .42s ease; pointer-events: none;
}
#featured-products .fp-card:hover { transform: translate3d(0,-7px,0) !important; border-color: rgba(192,57,43,.35) !important; box-shadow: 0 20px 40px rgba(35,27,22,.12) !important; }
#featured-products .fp-card:hover::before { transform: scaleX(1); }

/* Product image: contain, never cover. A small inset leaves room for safe parallax movement. */
#featured-products .fp-image-link { display: block !important; margin: 0 !important; padding: 0 !important; color: inherit; text-decoration: none; }
#featured-products .fp-image {
  position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: #f0eeeb !important; border-bottom: 1px solid #e8e1db !important;
}
#featured-products .fp-image img,
#featured-products .fp-image img.img-main {
  position: relative !important; inset: auto !important; display: block !important;
  width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;
  box-sizing: border-box !important; padding: 7px !important; margin: 0 !important;
  object-fit: contain !important; object-position: center !important; opacity: 1 !important;
  transform: translate3d(0,calc(var(--fp-scroll-parallax,0px) + var(--fp-pointer-parallax,0px)),0) !important;
  transition: filter .35s ease !important;
}
#featured-products .fp-image-glint {
  position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg,transparent 28%,rgba(255,255,255,.26) 46%,transparent 62%);
  transform: translateX(-110%); transition: transform .8s cubic-bezier(.2,.7,.25,1),opacity .25s ease;
}
#featured-products .fp-card:hover .fp-image-glint { opacity: 1; transform: translateX(110%); }
#featured-products .fp-image-action {
  position: absolute; right: 13px; bottom: 13px; z-index: 2; display: grid; place-items: center;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%;
  background: rgba(255,255,255,.96); color: var(--fp-red); font-size: 19px;
  opacity: 0; transform: translateY(7px) rotate(-12deg); transition: opacity .28s ease,transform .32s ease;
}
#featured-products .fp-card:hover .fp-image-action,
#featured-products .fp-image-link:focus-visible .fp-image-action { opacity: 1; transform: translateY(0) rotate(0); }

/* Card information: category, featured marker, title, material, metadata. */
#featured-products .fp-card-body { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; min-width: 0 !important; padding: 19px 18px 17px !important; background: #fff !important; }
#featured-products .fp-card-top { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 9px !important; margin: 0 0 13px !important; }
#featured-products .fp-category {
  display: block !important; min-width: 0; color: var(--fp-red) !important;
  font-family: var(--font-body, sans-serif) !important; font-size: 9px !important; font-weight: 600 !important;
  letter-spacing: .12em !important; line-height: 1.45 !important; text-transform: uppercase !important;
}
#featured-products .fp-stars { flex: 0 0 auto; color: var(--fp-red); font-family: var(--font-body,sans-serif); font-size: 11px; letter-spacing: 2px; line-height: 1; }
#featured-products .fp-product-name {
  margin: 0 0 7px !important; color: var(--fp-ink) !important;
  font-family: var(--font-heading, Georgia, serif) !important; font-size: clamp(20px,1.65vw,24px) !important;
  font-weight: 500 !important; letter-spacing: -.018em !important; line-height: 1.25 !important;
}
#featured-products .fp-product-name a { color: inherit !important; text-decoration: none !important; transition: color .25s ease; }
#featured-products .fp-product-name a:hover { color: var(--fp-red) !important; }
#featured-products .fp-composition {
  min-height: 23px; margin: 0 !important; color: #746e69 !important;
  font-family: var(--font-body,sans-serif) !important; font-size: 13px !important; line-height: 1.55 !important;
}
#featured-products .fp-card-footer {
  display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important;
  flex-wrap: nowrap !important; margin-top: auto !important; padding-top: 14px !important;
  border-top: 1px solid #eae4de !important;
}
#featured-products .fp-colors {
  display: inline-flex !important; align-items: center !important; gap: 6px !important; min-width: 0 !important;
  max-width: 60% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: #6f6964 !important; font-family: var(--font-body,sans-serif) !important;
  font-size: 10px !important; font-weight: 500 !important; line-height: 1.4 !important; white-space: nowrap !important;
}
#featured-products .fp-color-icon { display: inline-flex; flex: 0 0 auto; color: #8b817b; }
#featured-products .fp-details-link {
  display: inline-flex !important; align-items: center !important; gap: 7px !important; flex: 0 0 auto !important;
  margin: 0 !important; padding: 0 !important; color: var(--fp-ink) !important;
  font-family: var(--font-body,sans-serif) !important; font-size: 10px !important; font-weight: 600 !important;
  line-height: 1.4 !important; text-decoration: none !important; white-space: nowrap !important;
  transition: color .25s ease !important;
}
#featured-products .fp-details-link span { display: inline-block; color: var(--fp-red); transition: transform .25s ease; }
#featured-products .fp-details-link:hover { color: var(--fp-red) !important; }
#featured-products .fp-details-link:hover span { transform: translateX(4px); }

/* Strong, intentional collection CTA. */
#featured-products .fp-bottom-link { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 12px !important; margin: clamp(36px,4.5vw,54px) 0 0 !important; }
#featured-products .fp-all-button {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 25px !important;
  min-width: 260px !important; min-height: 54px !important; padding: 0 22px !important;
  border: 1px solid var(--fp-red) !important; border-radius: 2px !important; background: var(--fp-red) !important;
  color: #fff !important; font-family: var(--font-body,sans-serif) !important; font-size: 12px !important;
  font-weight: 600 !important; letter-spacing: .025em !important; text-decoration: none !important;
  box-shadow: 0 7px 18px rgba(192,57,43,.14) !important;
  transition: transform .28s ease,background .28s ease,border-color .28s ease,box-shadow .28s ease !important;
}
#featured-products .fp-all-button span { color: #fff; font-size: 18px; transition: transform .28s ease; }
#featured-products .fp-all-button:hover { transform: translateY(-3px) !important; background: #982d23 !important; border-color: #982d23 !important; box-shadow: 0 13px 27px rgba(192,57,43,.22) !important; }
#featured-products .fp-all-button:hover span { transform: translate(4px,-3px); }
#featured-products .fp-bottom-note { margin: 0; color: #8a827b; font-family: var(--font-body,sans-serif); font-size: 11px; letter-spacing: .025em; }

/* Scroll reveal is isolated from global .revealed/transform rules. */
#featured-products.fp-motion-ready .fp-reveal { opacity: 0; transform: translate3d(0,24px,0); transition: opacity .75s ease,transform .75s cubic-bezier(.2,.7,.25,1); }
#featured-products.fp-motion-ready .fp-reveal.is-in { opacity: 1; transform: translate3d(0,0,0); }
#featured-products.fp-motion-ready .fp-card.fp-reveal { transition-delay: calc(var(--fp-order,0) * 75ms); }
#featured-products.fp-motion-ready .fp-card.fp-reveal.is-in:hover { transform: translate3d(0,-7px,0) !important; }

@media (max-width: 1050px) {
  #featured-products .fp-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 22px 18px !important; }
  #featured-products .fp-card-body { padding: 16px 14px 14px !important; }
  #featured-products .fp-product-name { font-size: clamp(19px,2vw,22px) !important; }
}
@media (max-width: 760px) {
  #featured-products.fp-section { padding: 52px 0 60px !important; }
  #featured-products .fp-heading { grid-template-columns: minmax(0,1fr) !important; grid-template-areas: "copy" "action" !important; gap: 17px !important; margin-bottom: 27px !important; }
  #featured-products .fp-title { font-size: clamp(32px,7.5vw,43px) !important; }
  #featured-products .fp-description { font-size: 13px !important; }
  #featured-products .fp-explore-link { justify-self: start !important; align-self: start !important; margin: 0 !important; }
  #featured-products .fp-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 18px 13px !important; }
  #featured-products .fp-image { aspect-ratio: 16 / 9 !important; }
  #featured-products .fp-card-body { padding: 13px 12px 12px !important; }
  #featured-products .fp-card-top { align-items: center !important; gap: 6px !important; margin-bottom: 10px !important; }
  #featured-products .fp-category { font-size: 8px !important; letter-spacing: .07em !important; }
  #featured-products .fp-stars { font-size: 9px; letter-spacing: 1px; }
  #featured-products .fp-product-name { font-size: clamp(16px,4.3vw,20px) !important; }
  #featured-products .fp-composition { min-height: 34px; font-size: 11px !important; }
  #featured-products .fp-card-footer { align-items: flex-start !important; flex-direction: column !important; gap: 9px !important; padding-top: 10px !important; }
  #featured-products .fp-colors { max-width: 100% !important; font-size: 9px !important; }
  #featured-products .fp-details-link { font-size: 10px !important; }
  #featured-products .fp-image-action { width: 30px; height: 30px; right: 9px; bottom: 9px; }
  #featured-products .fp-all-button { min-width: 230px !important; min-height: 50px !important; }
}
@media (max-width: 390px) {
  #featured-products .fp-grid { gap: 13px 10px !important; }
  #featured-products .fp-card-body { padding: 11px 9px 10px !important; }
  #featured-products .fp-product-name { font-size: 16px !important; }
  #featured-products .fp-colors, #featured-products .fp-details-link { font-size: 9px !important; }
  #featured-products .fp-stars { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #featured-products *, #featured-products *::before, #featured-products *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #featured-products.fp-motion-ready .fp-reveal { opacity: 1 !important; transform: none !important; }
}
