/* =========================================================
   RABBORA LIVING — DESIGN TOKENS
   ========================================================= */
:root {
  --color-forest: #1b3a2f;
  --color-forest-dark: #12281f;
  --color-ivory: #f1ebde;
  --color-ivory-soft: #f8f4eb;
  --color-brass: #a47b4c;
  --color-brass-light: #c7a06b;
  --color-ink: #232320;
  --color-clay: #c89482;
  --color-sage: #dce3d4;
  --color-white: #ffffff;
  --color-border: rgba(35, 35, 32, 0.1);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(27, 58, 47, 0.08);
  --shadow-md: 0 10px 30px rgba(27, 58, 47, 0.12);
  --shadow-lg: 0 20px 60px rgba(27, 58, 47, 0.18);

  --container: 1240px;
  --header-h: 112px;
  --announce-h: 38px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;
}


/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

body {
  background-color: var(--color-ivory-soft);
  color: var(--color-ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-forest-dark);
}

:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background-color: var(--color-brass-light);
  color: var(--color-forest-dark);
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 999;
  background: var(--color-forest);
  color: var(--color-ivory-soft);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--color-brass);
  margin: 0 0 0.75rem;
}

.eyebrow--light {
  color: var(--color-brass-light);
}

.section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 3.5rem;
  }
}

.section-head--split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
}

@media (min-width: 768px) {
  .section-head--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-forest);
  transition: color var(--dur-fast) var(--ease);
  width: fit-content;
}

.link-arrow:hover {
  color: var(--color-brass);
}

.link-arrow--light {
  color: var(--color-brass-light);
}

.link-arrow--light:hover {
  color: var(--color-ivory-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-brass);
  color: var(--color-forest-dark);
}

.btn--primary:hover {
  background-color: var(--color-brass-light);
}

.btn--outline {
  border: 1px solid rgba(248, 244, 235, 0.5);
  color: var(--color-ivory-soft);
}

.btn--outline:hover {
  border-color: var(--color-ivory-soft);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--forest {
  background-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

.btn--forest:hover {
  background-color: var(--color-forest-dark);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
}

.announcement-bar {
  background-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

.announcement-bar p {
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.header-main {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  padding-block: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

@media (min-width: 640px) {
  .logo img {
    height: 72px;
  }
}

@media (min-width: 1024px) {
  .logo img {
    height: 88px;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Search bar (desktop) */
.search-bar {
  display: none;
  position: relative;
  flex: 1;
  align-items: center;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-ivory-soft);
  max-width: 680px;
  margin-inline: auto;
  transition: border-color var(--dur-fast) var(--ease);
}

.search-bar:focus-within {
  border-color: var(--color-brass);
}

@media (min-width: 860px) {
  .search-bar {
    display: flex;
  }
}

/* Mobile search: the same search-bar form is repositioned into a
   full-width overlay panel beneath the header when the mobile search
   toggle button is pressed, instead of duplicating the search markup. */
@media (max-width: 859px) {
  .search-bar.is-mobile-active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    height: 56px;
    padding-inline: 1rem;
    border-radius: 0;
    border-inline: none;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 300;
  }
}

.mobile-search-toggle {
  display: flex;
}

@media (min-width: 860px) {
  .icon-btn.mobile-search-toggle {
    display: none;
  }
}

.search-bar select {
  height: 100%;
  background: transparent;
  border: none;
  border-right: 1px solid var(--color-border);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding-inline: 0.75rem;
  font-size: 0.72rem;
  color: rgba(35, 35, 32, 0.7);
}

.search-bar input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-ink);
}

.search-bar input::placeholder {
  color: rgba(35, 35, 32, 0.4);
}

.search-bar > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-forest);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.search-bar > button:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 0.5rem;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease);
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background-color: var(--color-ivory-soft);
}

.search-suggestion__image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-sage);
  flex-shrink: 0;
}

.search-suggestion__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-suggestion__body {
  flex: 1;
  min-width: 0;
}

.search-suggestion__name {
  font-size: 0.875rem;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion__price {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-forest-dark);
}

.search-suggestions__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(35, 35, 32, 0.6);
}

.search-suggestions__viewall {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-forest);
}

.search-suggestions__viewall:hover {
  color: var(--color-brass);
}

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding-inline: 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  color: var(--color-forest);
  background-color: var(--color-ivory-soft);
}

/* Compact header for very small phones: four icon buttons plus the
   hamburger and logo don't fit at their normal size below ~400px, so
   trim padding/gaps rather than letting them overflow the viewport. */
@media (max-width: 399px) {
  .header-main__inner {
    gap: 0.5rem;
  }

  .logo img {
    height: 46px;
  }

  .hamburger {
    width: 34px;
    height: 34px;
  }

  .header-icons {
    gap: 0;
  }

  .icon-btn {
    height: 40px;
    padding-inline: 0.35rem;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .icon-count {
    min-width: 14px;
    height: 14px;
    font-size: 0.58rem;
  }
}

.icon-label {
  display: none;
  font-size: 0.8rem;
}

@media (min-width: 1024px) {
  .icon-label {
    display: inline;
  }
}

.icon-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  border-radius: 999px;
  background-color: var(--color-brass);
  color: var(--color-forest-dark);
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .icon-count {
    position: static;
    margin-left: 2px;
  }
}

/* Desktop nav */
.main-nav {
  display: none;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  height: 56px;
}

.main-nav__list > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav__list > li > a,
.main-nav__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: var(--color-ink);
  padding-block: 0.5rem;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.main-nav__list > li > a::after,
.main-nav__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.main-nav__list > li > a:hover,
.main-nav__list > li > a[aria-current="page"],
.main-nav__toggle:hover {
  color: var(--color-forest);
}

.main-nav__list > li > a:hover::after,
.main-nav__list > li > a[aria-current="page"]::after,
.main-nav__toggle:hover::after {
  transform: scaleX(1);
}

.main-nav__toggle svg {
  transition: transform var(--dur-fast) var(--ease);
  margin-top: 2px;
}

.main-nav__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Mega dropdown (desktop) */
.mega-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: 580px;
  padding-top: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
  z-index: 100;
}

.has-dropdown.is-open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 1.1rem;
}

.mega-dropdown {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.mega-dropdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 2.25rem;
}

.mega-dropdown__grid a {
  display: block;
  padding: 0.8rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}

.mega-dropdown__grid a:hover {
  background-color: var(--color-ivory-soft);
  padding-left: 0.85rem;
}

.mega-dropdown__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--color-ink);
}

.mega-dropdown__grid a:hover .mega-dropdown__title {
  color: var(--color-forest);
}

.mega-dropdown__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(35, 35, 32, 0.6);
}

.mega-dropdown__viewall {
  display: inline-flex;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-forest);
  transition: color var(--dur-fast) var(--ease);
}

.mega-dropdown__viewall:hover {
  color: var(--color-brass);
}

/* =========================================================
   MOBILE NAVIGATION DRAWER
   ========================================================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 40, 31, 0.5);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease);
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background-color: var(--color-white);
  z-index: 700;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-nav,
  .mobile-nav-overlay,
  .hamburger {
    display: none;
  }
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__head img {
  height: 44px;
  width: auto;
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-ink);
}

.mobile-nav__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.mobile-nav__list > li {
  border-bottom: 1px solid rgba(35, 35, 32, 0.05);
}

.mobile-nav__list > li > a {
  display: block;
  padding: 0.9rem 0.75rem;
  font-size: 0.95rem;
}

.mobile-accordion__row {
  display: flex;
  align-items: center;
}

.mobile-accordion__row > a {
  flex: 1;
  padding: 0.9rem 0.75rem;
  font-size: 0.95rem;
}

.mobile-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-ink);
}

.mobile-accordion__toggle svg {
  transition: transform var(--dur-fast) var(--ease);
}

.mobile-accordion__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background-color: var(--color-ivory-soft);
  transition: grid-template-rows var(--dur-med) var(--ease);
}

.mobile-accordion.is-open .mobile-accordion__panel {
  grid-template-rows: 1fr;
}

.mobile-accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-accordion__panel li a {
  display: block;
  padding: 0.65rem 1rem 0.65rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(35, 35, 32, 0.8);
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  background-color: var(--color-ivory);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding-block: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trust-bar__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .trust-bar__list {
    justify-content: space-between;
    overflow-x: visible;
  }
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--color-forest-dark);
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.trust-bar__item svg {
  color: var(--color-brass);
  flex-shrink: 0;
}

.trust-bar__item--rating {
  gap: 0.6rem;
}

.trust-bar__stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--color-brass);
  flex-shrink: 0;
}

.trust-bar__label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
}

.trust-bar__divider {
  width: 1px;
  height: 16px;
  background-color: var(--color-border);
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .trust-bar__divider {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  /* Fallback layer: shows the first hero image as a plain CSS background
     the instant the page paints, beneath the <img> slides. This is a
     safety net only — in normal use the <img> itself (preloaded, high
     priority) covers this immediately, but it guarantees there is never
     a moment with no image-like content behind the hero text. */
  background-image: url("images/hero-bedroom.jpg");
  background-size: cover;
  background-position: center;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1) translateX(0);
  transition: opacity 1.3s ease, transform 7.5s ease-out;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1.03) translateX(-0.6%);
}

/* Respect reduced-motion preference: skip the crossfade transition and
   the slow zoom/drift, and simply show the active slide instantly and
   statically instead. */
@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide.is-active {
    transition: none;
    transform: none;
  }
}

.hero__overlay {
  display: none !important;
  background: none !important;
}

.hero__inner {
  position: relative;
  z-index: 10;
  min-height: clamp(460px, 62vh, 560px);
  display: flex;
  align-items: flex-end;
  padding-block: 2.75rem;
}

@media (min-width: 768px) {
  .hero__inner {
    min-height: clamp(620px, 78vh, 780px);
    align-items: center;
    padding-block: 6rem;
  }
}

.hero__content {
  max-width: 34rem;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.7s var(--ease) forwards;
}

.hero__eyebrow {
  color: var(--color-brass-light);
}

.hero__heading {
  font-size: 2.5rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .hero__heading {
    font-size: 3.75rem;
  }
}

.hero__body {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.85);
}

@media (min-width: 768px) {
  .hero__body {
    font-size: 1rem;
  }
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   MOST POPULAR CATEGORIES (new section, directly below Hero)
   ========================================================= */
.popular-categories__subtitle {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(35, 35, 32, 0.65);
}

.category-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.category-carousel__track {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: max-content;
  animation: category-carousel-scroll 70s linear infinite;
}

/* Pause on desktop hover, and while a touch is active on mobile (JS adds
   .is-touch-paused on touchstart, removes it shortly after touchend) —
   the rest of the page keeps working normally either way. */
.category-carousel:hover .category-carousel__track,
.category-carousel.is-touch-paused .category-carousel__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .category-carousel__track {
    animation: none;
  }
}

@keyframes category-carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* The track holds two identical back-to-back sets of cards (JS
       duplicates the 36 cards once), so translating exactly one set's
       width — 50% of the full track — loops seamlessly with no visible
       jump back to the start. */
    transform: translateX(-50%);
  }
}

.category-carousel__track .popular-category-card {
  flex: 0 0 auto;
  width: 168px;
}

@media (min-width: 640px) {
  .category-carousel__track .popular-category-card {
    width: 190px;
  }
}

@media (min-width: 1024px) {
  .category-carousel__track .popular-category-card {
    width: 210px;
  }
}

.popular-category-card {
  display: block;
  text-align: center;
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease);
}

.popular-category-card:hover {
  transform: translateY(-4px);
}

.popular-category-card:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.popular-category-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-sage);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease);
}

.popular-category-card:hover .popular-category-card__image {
  box-shadow: var(--shadow-md);
}

.popular-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.popular-category-card:hover .popular-category-card__image img {
  transform: scale(1.08);
}

.popular-category-card h3 {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-ink);
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.grid--categories {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--categories {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid--categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  display: block;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-sage);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.category-card:hover .category-card__image img {
  transform: scale(1.06);
}

.category-card__body {
  padding: 1.25rem;
}

.category-card__body h3 {
  font-size: 1.35rem;
}

.category-card__body p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(35, 35, 32, 0.65);
}

.category-card__body .link-arrow {
  margin-top: 0.85rem;
}

/* =========================================================
   PRODUCT GRID / CARDS
   ========================================================= */
.products--alt {
  background-color: var(--color-ivory);
}

.grid--products {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .grid--products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid--products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-sage);
  display: block;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--color-forest);
  color: var(--color-ivory-soft);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

.product-card__wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-forest-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) var(--ease);
}

.product-card__wishlist:hover {
  background-color: var(--color-white);
}

.product-card__wishlist[aria-pressed="true"] svg path {
  fill: currentColor;
}

.product-card__body {
  padding: 1rem;
}

.product-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-ink);
}

.product-card__name:hover {
  color: var(--color-forest);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.product-card__stars {
  color: var(--color-brass);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.product-card__review-count {
  font-size: 0.72rem;
  color: rgba(35, 35, 32, 0.5);
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-forest-dark);
}

.product-card__price-prev {
  font-size: 0.75rem;
  color: rgba(35, 35, 32, 0.4);
  text-decoration: line-through;
}

.product-card__monthly {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(35, 35, 32, 0.5);
}

.product-card__demo-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(164, 123, 76, 0.7);
}

/* =========================================================
   PROMOTIONAL / EDITORIAL SECTION
   ========================================================= */
.promo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .promo__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.promo__image {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-sage);
}

@media (min-width: 768px) {
  .promo__image {
    aspect-ratio: 4 / 3;
  }
}

.promo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo__content {
  max-width: 28rem;
}

.promo__content h2 {
  font-size: 2rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .promo__content h2 {
    font-size: 2.5rem;
  }
}

.promo__content p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.7);
}

.promo__content .btn {
  margin-top: 1.75rem;
}

/* =========================================================
   ABOUT / EDITORIAL CONTENT
   ========================================================= */
.about-content {
  background-color: var(--color-ivory-soft);
}

.about-content__container {
  max-width: 760px;
}

.about-content__heading {
  font-size: 2.1rem;
  line-height: 1.2;
  text-align: center;
  color: var(--color-forest-dark);
}

@media (min-width: 768px) {
  .about-content__heading {
    font-size: 2.75rem;
  }
}

.about-content__prose {
  margin-top: 1.75rem;
}

.about-content__prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(35, 35, 32, 0.75);
}

.about-content__prose p + p {
  margin-top: 1.25rem;
}

.about-content__divider {
  width: 64px;
  height: 1px;
  margin: 3rem auto;
  background-color: var(--color-brass);
  opacity: 0.4;
}

.about-content__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .about-content__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }
}

.about-feature h3 {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1.15rem;
  color: var(--color-forest-dark);
}

.about-feature h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--color-brass);
}

.about-feature p {
  margin-top: 0.5rem;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.65);
}

.about-content__block {
  text-align: center;
}

.about-content__subheading {
  font-size: 1.6rem;
  color: var(--color-forest-dark);
}

@media (min-width: 768px) {
  .about-content__subheading {
    font-size: 1.9rem;
  }
}

.about-content__block .about-content__prose {
  text-align: left;
  margin-top: 1.25rem;
}

.about-content__cta {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--color-ink);
}

.about-content__cta a {
  font-weight: 600;
  color: var(--color-forest);
  transition: color var(--dur-fast) var(--ease);
}

.about-content__cta a:hover {
  color: var(--color-brass);
}

/* =========================================================
   WHY CHOOSE US (BENEFITS)
   ========================================================= */
.benefits {
  background-color: var(--color-forest-dark);
  color: var(--color-ivory-soft);
}

.benefits h2 {
  color: var(--color-ivory-soft);
}

.grid--benefits {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--benefits {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid--benefits {
    grid-template-columns: repeat(5, 1fr);
  }
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(199, 160, 107, 0.4);
  border-radius: 999px;
  color: var(--color-brass-light);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.15rem;
  color: var(--color-ivory-soft);
}

.benefit-card p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(248, 244, 235, 0.7);
}

/* =========================================================
   BRAND STORY
   ========================================================= */
.brand-story__panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.brand-story__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 640px) {
  .brand-story__image {
    aspect-ratio: 16 / 9;
  }
}

.brand-story__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 40, 31, 0.88), rgba(18, 40, 31, 0.25) 55%, transparent);
}

.brand-story__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  color: var(--color-ivory-soft);
  z-index: 1;
}

@media (min-width: 640px) {
  .brand-story__content {
    max-width: 26rem;
    padding: 2.5rem;
  }
}

.brand-story__content h2 {
  font-size: 2rem;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .brand-story__content h2 {
    font-size: 2.5rem;
  }
}

.brand-story__content p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.85);
}

.brand-story__content .link-arrow {
  margin-top: 1.25rem;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews {
  background-color: var(--color-ivory);
}

.grid--reviews {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--reviews {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid--reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.review-card__stars {
  color: var(--color-brass);
  letter-spacing: 2px;
}

.review-card blockquote {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.8);
}

.review-card figcaption {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}

.demo-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(164, 123, 76, 0.7);
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  background-color: var(--color-forest);
}

.newsletter__inner {
  max-width: 34rem;
  text-align: center;
}

.newsletter__inner h2 {
  font-size: 2rem;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .newsletter__inner h2 {
    font-size: 2.5rem;
  }
}

.newsletter__inner > p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(248, 244, 235, 0.75);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 480px) {
  .newsletter__form {
    flex-direction: row;
  }
}

.newsletter__form input {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 244, 235, 0.3);
  background-color: rgba(18, 40, 31, 0.4);
  color: var(--color-ivory-soft);
  padding-inline: 1rem;
  font-size: 0.875rem;
}

.newsletter__form input::placeholder {
  color: rgba(248, 244, 235, 0.5);
}

.newsletter__form input:focus {
  border-color: var(--color-brass-light);
  outline: none;
}

.newsletter__form button {
  height: 48px;
  padding-inline: 1.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-brass);
  color: var(--color-forest-dark);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.newsletter__form button:hover {
  background-color: var(--color-brass-light);
}

.newsletter__message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  min-height: 1.2em;
}

.newsletter__message.is-error {
  color: var(--color-clay);
}

.newsletter__message.is-success {
  color: var(--color-brass-light);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--color-forest-dark);
  color: var(--color-ivory-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  padding-block: 3.5rem;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(6, 1fr);
    padding-block: 5rem;
  }
}

.footer__brand {
  grid-column: span 2;
}

@media (min-width: 640px) {
  .footer__brand {
    grid-column: span 3;
  }
}

@media (min-width: 1024px) {
  .footer__brand {
    grid-column: span 1;
  }
}

.footer__logo {
  display: inline-block;
  background-color: var(--color-ivory-soft);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(248, 244, 235, 0.7);
}

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248, 244, 235, 0.6);
  margin-bottom: 1rem;
}

.footer__col ul li {
  margin-bottom: 0.6rem;
}

.footer__col ul li a,
.footer__col ul li {
  font-size: 0.875rem;
  color: rgba(248, 244, 235, 0.85);
  transition: color var(--dur-fast) var(--ease);
}

.footer__col ul li a:hover {
  color: var(--color-brass-light);
}

.footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(248, 244, 235, 0.1);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(248, 244, 235, 0.5);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(248, 244, 235, 0.25);
  color: rgba(248, 244, 235, 0.75);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.footer__social-link:hover {
  color: var(--color-forest-dark);
  background-color: var(--color-brass-light);
  border-color: var(--color-brass-light);
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(18, 40, 31, 0.35);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 40, 31, 0.4);
}

@media (max-width: 639px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 1rem;
    bottom: 1rem;
  }
}

/* =========================================================
   FABRIC SAMPLES PAGE — new rules only, scoped to this
   page's own class names so no other page is affected.
   ========================================================= */

/* ---- Hero: full-bleed image, centred text, no blank state ---- */
.fabric-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest-dark);
}

.fabric-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: fabricHeroZoom 22s ease-in-out infinite alternate;
}

@keyframes fabricHeroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fabric-hero__image {
    animation: none;
  }
}

.fabric-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 40, 31, 0.55) 0%, rgba(18, 40, 31, 0.42) 45%, rgba(18, 40, 31, 0.6) 100%);
  z-index: 1;
}

.fabric-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}

.fabric-hero__content {
  max-width: 38rem;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) forwards;
}

.fabric-hero__heading {
  font-size: 2.75rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .fabric-hero__heading {
    font-size: 4rem;
  }
}

.fabric-hero__body {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.9);
}

@media (min-width: 768px) {
  .fabric-hero__body {
    font-size: 1.05rem;
  }
}

.fabric-hero__content .btn {
  margin-top: 2rem;
}

/* ---- Scroll-reveal (used on fabric-samples page sections) ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Fabric introduction ---- */
.fabric-intro__inner {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.fabric-intro__text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.72);
}

/* ---- Fabric collection ---- */
.fabric-collection__subtitle {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: rgba(35, 35, 32, 0.65);
}

.fabric-selection-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-forest);
  background-color: var(--color-ivory);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
}

.fabric-limit-message {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-clay);
  background-color: rgba(200, 148, 130, 0.12);
  border: 1px solid rgba(200, 148, 130, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  width: fit-content;
}

.fabric-limit-message[hidden] {
  display: none;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
}

@media (min-width: 560px) {
  .fabric-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
}

.fabric-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.fabric-swatch__ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

@media (min-width: 768px) {
  .fabric-swatch__ring {
    width: 156px;
    height: 156px;
  }
}

@media (min-width: 1024px) {
  .fabric-swatch__ring {
    width: 184px;
    height: 184px;
  }
}

.fabric-swatch__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.fabric-swatch:hover .fabric-swatch__ring {
  transform: scale(1.06);
  box-shadow: var(--shadow-md);
}

.fabric-swatch__check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--color-forest);
  color: var(--color-ivory-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  box-shadow: 0 0 0 2px var(--color-white);
}

.fabric-swatch[aria-pressed="true"] .fabric-swatch__ring {
  border: 2px solid var(--color-brass);
  box-shadow: 0 0 0 3px rgba(164, 123, 76, 0.22), var(--shadow-md);
}

.fabric-swatch[aria-pressed="true"] .fabric-swatch__check {
  opacity: 1;
  transform: scale(1);
}

.fabric-swatch[aria-pressed="true"] .fabric-swatch__image {
  transform: scale(0.94);
  transition: transform var(--dur-fast) var(--ease);
}

.fabric-swatch__name {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-ink);
}

.fabric-swatch[aria-pressed="true"] .fabric-swatch__name {
  color: var(--color-forest);
  font-weight: 600;
}

.fabric-swatch--shake .fabric-swatch__ring {
  animation: fabricSwatchShake 0.4s ease;
}

@keyframes fabricSwatchShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---- Request Free Samples form ---- */
.fabric-form-section {
  background-color: var(--color-ivory);
}

.fabric-form__wrap {
  max-width: 46rem;
}

.fabric-form__intro {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.68);
  max-width: 38rem;
}

.fabric-form {
  margin-top: 2rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .fabric-form {
    padding: 2.5rem;
  }
}

.fabric-form__selected {
  background-color: var(--color-ivory-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.fabric-form__selected-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(35, 35, 32, 0.55);
  margin-bottom: 0.6rem;
}

.fabric-form__selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.fabric-form__selected-list li {
  font-size: 0.875rem;
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fabric-form__selected-empty {
  color: rgba(35, 35, 32, 0.5) !important;
  font-style: italic;
}

.fabric-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .fabric-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fabric-form__field--full {
  grid-column: 1 / -1;
}

.fabric-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fabric-form__field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}

.fabric-form__field input,
.fabric-form__field textarea {
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding-inline: 0.9rem;
  font-size: 0.9375rem;
  background-color: var(--color-ivory-soft);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.fabric-form__field textarea {
  height: auto;
  padding-block: 0.75rem;
  resize: vertical;
  min-height: 100px;
}

.fabric-form__field input:focus,
.fabric-form__field textarea:focus {
  outline: none;
  border-color: var(--color-brass);
  background-color: var(--color-white);
}

.fabric-form__field input[readonly] {
  cursor: default;
  color: rgba(35, 35, 32, 0.6);
}

.fabric-form__field input:invalid[aria-invalid="true"],
.fabric-form__field textarea:invalid[aria-invalid="true"] {
  border-color: var(--color-clay);
}

.fabric-form__submit {
  margin-top: 1.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .fabric-form__submit {
    width: auto;
  }
}

.fabric-form__message {
  margin-top: 1rem;
  font-size: 0.875rem;
  min-height: 1.2em;
}

.fabric-form__message.is-error {
  color: var(--color-clay);
}

.fabric-form__message.is-success {
  color: var(--color-forest);
}

/* ---- Review carousel ---- */
.fabric-review-carousel {
  margin-top: 1rem;
}

.fabric-review-carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.fabric-review-carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .fabric-review-carousel__track {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fabric-review-carousel__slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
  }

  .fabric-review-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}

.fabric-review-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.fabric-review-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-forest);
  background-color: var(--color-white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.fabric-review-carousel__btn:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

.fabric-review-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fabric-review-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-border);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.fabric-review-carousel__dot.is-active {
  background-color: var(--color-brass);
  transform: scale(1.3);
}

/* ---- Trust section ---- */
.fabric-trust {
  padding-block: 3rem;
}

.grid--fabric-trust {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid--fabric-trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fabric-trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
}

.fabric-trust-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(164, 123, 76, 0.35);
  border-radius: 999px;
  color: var(--color-brass);
}

.fabric-trust-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  line-height: 1.4;
}

/* ---- Fabric Samples form final button: green, matching the
   WhatsApp floating button's colour (#25d366) ---- */
.btn--whatsapp-green {
  background-color: #25d366;
  color: #ffffff;
}

.btn--whatsapp-green:hover {
  background-color: #1fb958;
}

/* ---- Fabric Samples form: marketing-consent section ---- */
.fabric-form__consent {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.fabric-form__consent-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 0.85rem;
}

.fabric-form__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink);
  cursor: pointer;
}

.fabric-form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #25d366;
  cursor: pointer;
}

.fabric-form__privacy-text {
  margin-top: 0.65rem;
  margin-left: calc(18px + 0.65rem);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(35, 35, 32, 0.55);
}

.fabric-form__privacy-text a {
  color: var(--color-forest);
  font-weight: 600;
  text-decoration: underline;
}

.fabric-form__privacy-text a:hover {
  color: var(--color-brass);
}

/* =========================================================
   BLANKET BOXES PAGE — new rules only, scoped to this
   page's own class names so no other page is affected.
   ========================================================= */

/* ---- Hero ---- */
.bb-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 60vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest-dark);
}

.bb-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: fabricHeroZoom 24s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .bb-hero__image {
    animation: none;
  }
}

.bb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 40, 31, 0.5) 0%, rgba(18, 40, 31, 0.38) 45%, rgba(18, 40, 31, 0.58) 100%);
  z-index: 1;
}

.bb-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}

.bb-hero__content {
  max-width: 36rem;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) forwards;
}

.bb-hero__heading {
  font-size: 2.75rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .bb-hero__heading {
    font-size: 4rem;
  }
}

.bb-hero__subheading {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-brass-light);
}

.bb-hero__body {
  margin-top: 1.1rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.9);
}

.bb-hero__content .btn {
  margin-top: 2rem;
}

/* ---- Introduction ---- */
.bb-intro__inner {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.bb-intro__text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.72);
}

.bb-intro__secondary {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-brass);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ---- Toolbar ---- */
.bb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.bb-toolbar__filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding-inline: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}

.bb-toolbar__panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bb-toolbar__field select {
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding-inline: 1rem;
  background-color: var(--color-white);
  font-size: 0.85rem;
  color: var(--color-forest-dark);
  min-width: 210px;
}

.bb-toolbar__view {
  display: flex;
  gap: 0.4rem;
}

.bb-toolbar__view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: rgba(35, 35, 32, 0.5);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.bb-toolbar__view-btn.is-active {
  color: var(--color-forest);
  border-color: var(--color-forest);
  background-color: var(--color-ivory);
}

@media (max-width: 767px) {
  .bb-toolbar {
    flex-wrap: wrap;
  }

  .bb-toolbar__filter-toggle {
    display: inline-flex;
    order: 1;
  }

  .bb-toolbar__view {
    order: 2;
  }

  .bb-toolbar__panel {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .bb-toolbar__panel.is-open {
    display: flex;
  }

  .bb-toolbar__field select {
    width: 100%;
  }
}

/* ---- Product grid / card additions ---- */
.bb-grid {
  grid-template-columns: 1fr;
  transition: opacity 0.2s var(--ease);
}

@media (min-width: 560px) {
  .bb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bb-grid.is-list-view {
  grid-template-columns: 1fr;
}

.bb-grid.is-list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
}

@media (max-width: 639px) {
  .bb-grid.is-list-view .product-card {
    grid-template-columns: 120px 1fr;
  }
}

.bb-grid.is-list-view .product-card__image-wrap {
  aspect-ratio: 1 / 1;
}

.bb-product-card__desc {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(35, 35, 32, 0.6);
}

.bb-product-card__cta {
  margin-top: 0.85rem;
  width: 100%;
  height: 42px;
  font-size: 0.8125rem;
}

.product-card__image-link.bb-product-open {
  cursor: pointer;
}

button.product-card__name.bb-product-open {
  display: block;
  text-align: left;
  width: 100%;
}

/* ---- SEO info section ---- */
.bb-info__inner {
  max-width: 46rem;
}

.bb-info__inner p {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(35, 35, 32, 0.72);
}

.bb-info__inner p:first-of-type {
  margin-top: 1.5rem;
}

.bb-trust {
  padding-block: 3rem;
  background-color: var(--color-ivory);
}

/* ---- Why Choose Our Blanket Boxes ---- */
.bb-why {
  background-color: var(--color-white);
}

.bb-why__head {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.bb-why__subtitle {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.65);
}

.bb-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .bb-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bb-why__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bb-why-card {
  position: relative;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.bb-why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(164, 123, 76, 0.3);
}

.bb-why-card__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(164, 123, 76, 0.55);
}

.bb-why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 1rem;
  border: 1px solid rgba(164, 123, 76, 0.35);
  border-radius: 999px;
  color: var(--color-brass);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.bb-why-card:hover .bb-why-card__icon {
  transform: scale(1.08);
  background-color: var(--color-brass);
  color: var(--color-white);
}

.bb-why-card h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--color-forest-dark);
}

.bb-why-card p {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.65);
}

/* Staggered upward reveal for the four cards, one after another. */
.bb-why__grid .bb-why-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.bb-why__grid .bb-why-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bb-why__grid .bb-why-card:nth-child(1) { transition-delay: 0s; }
.bb-why__grid .bb-why-card:nth-child(2) { transition-delay: 0.1s; }
.bb-why__grid .bb-why-card:nth-child(3) { transition-delay: 0.2s; }
.bb-why__grid .bb-why-card:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .bb-why-card,
  .bb-why__grid .bb-why-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bb-why-card:hover {
    transform: none;
  }

  .bb-why-card:hover .bb-why-card__icon {
    transform: none;
  }
}

/* ---- Product detail modal ---- */
.bb-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 40, 31, 0.55);
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}

.bb-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.bb-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(1000px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 801;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .bb-modal {
    padding: 2.5rem;
  }
}

.bb-modal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.bb-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--color-ivory-soft);
  color: var(--color-forest-dark);
  z-index: 2;
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-modal__close:hover {
  background-color: var(--color-ivory);
}

.bb-modal__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .bb-modal__body {
    grid-template-columns: 1fr 1fr;
  }
}

.bb-modal__main-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-sage);
}

.bb-modal__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s var(--ease);
}

.bb-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-modal__nav:hover {
  background-color: var(--color-white);
}

.bb-modal__nav--prev {
  left: 0.75rem;
}

.bb-modal__nav--next {
  right: 0.75rem;
}

.bb-modal__zoom {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-modal__zoom:hover {
  background-color: var(--color-white);
}

.bb-modal__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.bb-modal__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease);
}

.bb-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-modal__thumb.is-active {
  border-color: var(--color-brass);
}

.bb-modal__title {
  font-size: 1.6rem;
  line-height: 1.2;
}

.bb-modal__rating {
  margin-top: 0.6rem;
}

.bb-modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.bb-modal__price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-forest-dark);
}

.bb-modal__monthly {
  margin-top: 0.2rem;
}

.bb-modal__description {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(35, 35, 32, 0.72);
}

.bb-modal__section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(35, 35, 32, 0.55);
  margin-bottom: 0.6rem;
}

.bb-modal__features {
  margin-top: 1.5rem;
}

.bb-modal__features ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bb-modal__features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(35, 35, 32, 0.75);
}

.bb-modal__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--color-brass);
}

.bb-modal__fabrics {
  margin-top: 1.5rem;
}

.bb-modal__fabric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-ivory-soft);
}

.bb-modal__fabric-grid .fabric-swatch__ring {
  width: 52px;
  height: 52px;
}

.bb-modal__fabric-grid .fabric-swatch {
  width: 68px;
}

.bb-modal__fabric-grid .fabric-swatch__name {
  font-size: 0.66rem;
  line-height: 1.25;
}

.bb-modal__purchase {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.bb-modal__qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bb-modal__qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-forest-dark);
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-modal__qty-btn:hover {
  background-color: var(--color-ivory-soft);
}

.bb-modal__qty-value {
  width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.bb-modal__purchase-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .bb-modal__purchase-buttons {
    flex-direction: row;
  }
}

.bb-modal__add-cart,
.bb-modal__buy-now {
  flex: 1;
}

.bb-modal__purchase-message {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-forest);
  min-height: 1.2em;
}

.bb-modal__delivery-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bb-modal__delivery-info li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: rgba(35, 35, 32, 0.7);
}

.bb-modal__delivery-info svg {
  color: var(--color-brass);
  flex-shrink: 0;
}

.bb-modal__related {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.bb-modal__related-list {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
}

.bb-modal__related-item {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
}

.bb-modal__related-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color var(--dur-fast) var(--ease);
}

.bb-modal__related-item:hover img {
  border-color: var(--color-brass);
}

.bb-modal__related-item span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--color-ink);
}

body.bb-modal-open {
  overflow: hidden;
}

/* ---- Fullscreen lightbox ---- */
.bb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background-color: rgba(18, 40, 31, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.bb-lightbox[hidden] {
  display: none;
}

.bb-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.bb-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-ivory-soft);
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

/* =========================================================
   SOFAS PAGE — new rules only, scoped to this page's own
   class names so no other page is affected.
   ========================================================= */

/* ---- Hero ---- */
.sf-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest-dark);
}

.sf-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: fabricHeroZoom 24s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .sf-hero__image {
    animation: none;
  }
}

.sf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 40, 31, 0.52) 0%, rgba(18, 40, 31, 0.4) 45%, rgba(18, 40, 31, 0.6) 100%);
  z-index: 1;
}

.sf-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}

.sf-hero__content {
  max-width: 38rem;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
}

.sf-hero__heading {
  font-size: 2.75rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .sf-hero__heading {
    font-size: 4rem;
  }
}

.sf-hero__subheading {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-brass-light);
}

.sf-hero__body {
  margin-top: 1.1rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.9);
}

.sf-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
  animation-delay: 0.25s;
}

@media (min-width: 480px) {
  .sf-hero__ctas {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-hero__content,
  .sf-hero__ctas {
    opacity: 1;
    animation: none;
  }
}

/* ---- Introduction ---- */
.sf-intro__inner {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.sf-intro__text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.72);
}

/* ---- Product grid: exactly 4 per row on desktop ---- */
.sf-grid {
  grid-template-columns: 1fr;
  transition: opacity 0.2s var(--ease);
}

@media (min-width: 640px) {
  .sf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sf-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sf-product-card[hidden] {
  display: none;
}

/* ---- Trust grid (5 items) ---- */
.grid--sf-trust {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--sf-trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--sf-trust {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---- Why Choose Rabbora Living ---- */
.sf-why {
  background-color: var(--color-ivory);
}

.sf-why__head {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.sf-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .sf-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sf-why__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sf-why-card {
  padding: 2rem 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.sf-why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sf-why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(164, 123, 76, 0.35);
  border-radius: 999px;
  color: var(--color-brass);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.sf-why-card:hover .sf-why-card__icon {
  transform: scale(1.08);
  background-color: var(--color-brass);
  color: var(--color-white);
}

.sf-why-card h3 {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--color-forest-dark);
}

.sf-why-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.65);
}

/* ---- The Rabbora Living Difference ---- */
.sf-difference__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .sf-difference__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.sf-difference__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.sf-difference__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.sf-difference__image:hover img {
  transform: scale(1.04);
}

.sf-difference__content {
  max-width: 30rem;
}

.sf-difference__content h2 {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  line-height: 1.15;
}

.sf-difference__content p {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.72);
}

.sf-difference__content .btn {
  margin-top: 1.75rem;
}

/* ---- Modal dimensions line (sofa-specific addition) ---- */
.bb-modal__dimensions {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(35, 35, 32, 0.55);
}

/* =========================================================
   SOFAS PAGE — filter system (toolbar row, shared filter
   bar/drawer, colour swatches, grid/list toggle).
   ========================================================= */

/* A light-background outline button variant, for use on white/ivory
   panels where the existing .btn--outline (designed for dark hero
   backgrounds) would be too low-contrast. */
.btn--outline-forest {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-forest-dark);
}

.btn--outline-forest:hover {
  border-color: var(--color-forest);
  background-color: var(--color-ivory-soft);
}

/* ---- Top toolbar row: count | grid/list | Filters button ---- */
.sf-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sf-toolbar-row__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(35, 35, 32, 0.6);
}

.sf-toolbar-row__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sf-filters-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding-inline: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background-color: var(--color-white);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.sf-filters-btn:hover {
  border-color: var(--color-brass);
  background-color: var(--color-ivory-soft);
}

.sf-filters-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  background-color: var(--color-brass);
  color: var(--color-forest-dark);
  font-size: 0.68rem;
  font-weight: 700;
}

/* ---- Fallback / closest-match note ---- */
.sf-toolbar__empty {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: rgba(35, 35, 32, 0.68);
}

/* ---- Shared filter bar (desktop) / drawer (tablet & mobile) ---- */
.sf-filter-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 40, 31, 0.5);
  z-index: 750;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}

.sf-filter-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.sf-filter-drawer__head {
  display: none;
}

.sf-filter-drawer__body {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sf-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sf-filter-drawer__actions {
  display: none;
}

@media (min-width: 1024px) {
  .sf-filter-drawer__actions .sf-filter-apply {
    display: none;
  }

  .sf-filter-drawer__actions {
    display: flex;
    margin-top: 0.75rem;
    justify-content: flex-end;
  }
}

.sf-toolbar__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(35, 35, 32, 0.55);
}

.sf-filter-group select {
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding-inline: 0.85rem;
  background-color: var(--color-white);
  font-size: 0.82rem;
  color: var(--color-forest-dark);
  min-width: 150px;
}

/* ---- Desktop: filter bar always visible, inline ---- */
@media (min-width: 1024px) {
  .sf-filter-overlay {
    display: none;
  }

  .sf-filter-drawer {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    box-shadow: none;
    background-color: transparent;
    display: block;
    overflow: visible;
  }
}

/* ---- Tablet & mobile: slide-in drawer ---- */
@media (max-width: 1023px) {
  .sf-filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 380px;
    background-color: var(--color-white);
    z-index: 800;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    padding: 1.25rem;
  }

  .sf-filter-drawer.is-open {
    transform: translateX(0);
  }

  .sf-filter-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
  }

  .sf-filter-drawer__title {
    font-size: 1.25rem;
  }

  .sf-filter-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--color-forest-dark);
    background-color: var(--color-ivory-soft);
  }

  .sf-filter-drawer__body {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
    padding: 0;
    gap: 1.5rem;
  }

  .sf-filter-group select {
    width: 100%;
  }

  .sf-filter-drawer__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }

  .sf-filter-drawer__actions .btn {
    flex: 1;
  }
}

body.sf-drawer-open {
  overflow: hidden;
}

/* ---- Product grid: exactly 4 per row on desktop (unchanged) ---- */
.sf-grid.is-list-view {
  grid-template-columns: 1fr;
}

.sf-grid.is-list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
}

@media (max-width: 639px) {
  .sf-grid.is-list-view .product-card {
    grid-template-columns: 120px 1fr;
  }
}

.sf-grid.is-list-view .product-card__image-wrap {
  aspect-ratio: 1 / 1;
}

/* =========================================================
   MATTRESSES PAGE — new rules only, scoped to this page's
   own class names so no other page is affected.
   ========================================================= */

/* ---- Hero ---- */
.mt-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 60vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest-dark);
}

.mt-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: fabricHeroZoom 24s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .mt-hero__image {
    animation: none;
  }
}

.mt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 40, 31, 0.5) 0%, rgba(18, 40, 31, 0.38) 45%, rgba(18, 40, 31, 0.58) 100%);
  z-index: 1;
}

.mt-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}

.mt-hero__content {
  max-width: 36rem;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
}

.mt-hero__heading {
  font-size: 2.75rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .mt-hero__heading {
    font-size: 4rem;
  }
}

.mt-hero__body {
  margin-top: 1.1rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.9);
}

.mt-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .mt-hero__ctas {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-hero__content {
    opacity: 1;
    animation: none;
  }
}

/* ---- Category quick-filter pills ---- */
.mt-categories {
  padding-block: 1.5rem 0;
}

.mt-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mt-category-pill {
  height: 40px;
  padding-inline: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background-color: var(--color-white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.mt-category-pill:hover {
  border-color: var(--color-brass-light);
}

.mt-category-pill.is-active {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

/* ---- Toolbar row additions (sort field alongside Filters button) ---- */
.mt-sort-field select {
  height: 40px;
  min-width: 170px;
  font-size: 0.8rem;
}

.mt-view-toggle {
  display: none;
}

@media (min-width: 640px) {
  .mt-view-toggle {
    display: flex;
  }
}

/* ---- Pagination ---- */
.mt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.mt-pagination__page,
.mt-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background-color: var(--color-white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.mt-pagination__page:hover,
.mt-pagination__btn:hover:not(:disabled) {
  border-color: var(--color-brass-light);
}

.mt-pagination__page.is-active {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

.mt-pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---- Help section (interactive accordion cards) ---- */
.mt-help {
  background-color: var(--color-ivory);
}

.mt-help__inner {
  max-width: 52rem;
}

.mt-help-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mt-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mt-help-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1.5rem;
  transition: box-shadow var(--dur-fast) var(--ease);
}

.mt-help-card:hover {
  box-shadow: var(--shadow-sm);
}

.mt-help-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 1.1rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}

.mt-help-card__toggle svg {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--dur-fast) var(--ease);
}

.mt-help-card__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mt-help-card__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--dur-med) var(--ease);
}

.mt-help-card.is-open .mt-help-card__panel {
  grid-template-rows: 1fr;
}

.mt-help-card__panel p {
  overflow: hidden;
  padding-bottom: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.68);
}

/* ---- Detail view (own "page" swapped in via router) ---- */
.mt-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-size: 0.8rem;
  color: rgba(35, 35, 32, 0.55);
}

.mt-detail__breadcrumb a {
  color: var(--color-forest);
  font-weight: 600;
}

.mt-detail__breadcrumb a:hover {
  color: var(--color-brass);
}

.mt-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .mt-detail__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

.mt-detail__main-wrap {
  aspect-ratio: 4 / 3;
}

.mt-detail__title {
  margin-top: 0.4rem;
}

/* ---- Size / firmness option pills ---- */
.mt-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mt-option-pill {
  height: 42px;
  padding-inline: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background-color: var(--color-white);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.mt-option-pill:hover {
  border-color: var(--color-brass-light);
}

.mt-option-pill[aria-pressed="true"] {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

/* ---- Wishlist button on detail view ---- */
.mt-detail__wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-forest-dark);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.mt-detail__wishlist-btn:hover {
  border-color: var(--color-brass-light);
  background-color: var(--color-ivory-soft);
}

.mt-detail__wishlist-btn[aria-pressed="true"] {
  color: var(--color-clay);
  border-color: var(--color-clay);
}

.mt-detail__wishlist-btn[aria-pressed="true"] svg path {
  fill: currentColor;
}

@media (min-width: 480px) {
  .bb-modal__purchase-buttons {
    flex-wrap: wrap;
  }

  .mt-detail__wishlist-btn {
    flex: 0 0 auto;
  }
}

/* ---- Not found state ---- */
.mt-not-found {
  padding-block: 6rem;
}

.mt-not-found__inner {
  max-width: 30rem;
  text-align: center;
  margin-inline: auto;
}

.mt-not-found__inner h1 {
  margin-top: 0.5rem;
  font-size: 2.25rem;
}

.mt-not-found__inner p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(35, 35, 32, 0.68);
}

.mt-not-found__inner .btn {
  margin-top: 2rem;
}

/* ---- Product grid: exactly 3 per row on desktop ---- */
.mt-grid {
  grid-template-columns: 1fr;
  transition: opacity 0.2s var(--ease);
}

@media (min-width: 640px) {
  .mt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mt-product-card[hidden] {
  display: none;
}

.mt-grid.is-list-view {
  grid-template-columns: 1fr;
}

.mt-grid.is-list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
}

@media (max-width: 639px) {
  .mt-grid.is-list-view .product-card {
    grid-template-columns: 120px 1fr;
  }
}

.mt-grid.is-list-view .product-card__image-wrap {
  aspect-ratio: 1 / 1;
}

.mt-grid.is-large-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .mt-grid.is-large-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}