/* =========================================================
   SOLID OTTOMAN BEDS — PAGE-SPECIFIC STYLESHEET
   ---------------------------------------------------------
   Only contains styles for solid-ottoman-beds.html. Relies on
   style.css (loaded first) for design tokens and reuses the
   shared toolbar/filter-drawer/pagination/option-pill patterns
   already established on other category pages (sf-toolbar-row,
   sf-filter-drawer, mt-pagination, bb-modal__*) rather than
   duplicating them.
   ========================================================= */

/* ---- Hero (image + overlay, matching the same structure used on
   every other category page) ---- */
.so-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 48vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest-dark);
}

.so-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .so-hero__image {
    object-fit: contain;
  }
}


.so-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;
}

.so-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 3.5rem;
}

.so-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);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.so-hero__heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .so-hero__heading {
    font-size: 3.5rem;
  }
}

.so-hero__body {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.9);
}

.so-hero__content .btn {
  margin-top: 1.75rem;
}

/* ---- Breadcrumb ---- */
.so-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.1rem;
  font-size: 0.8rem;
  color: rgba(35, 35, 32, 0.55);
}

.so-breadcrumb a {
  color: var(--color-forest);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.so-breadcrumb a:hover {
  color: var(--color-brass);
}

/* ---- Introduction ---- */
.so-intro {
  padding-block: 2.5rem;
}

.so-intro__inner {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.so-intro__inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-forest-dark);
}

.so-intro__inner p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.72);
}

/* ---- Product grid: default 3/row desktop, switchable to 2 or 4 ---- */
.so-grid {
  grid-template-columns: 1fr;
  transition: opacity 0.2s ease;
}

@media (min-width: 640px) {
  .so-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .so-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.so-grid.so-grid--cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .so-grid.so-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.so-grid.so-grid--cols-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .so-grid.so-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .so-grid.so-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.so-product-card[hidden] {
  display: none;
}

.so-product-card__cta {
  margin-top: 0.85rem;
  width: 100%;
  height: 42px;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Clean image placeholder (used until real product photos are
   added — never a broken <img src=""> icon) ---- */
.so-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background-color: var(--color-ivory);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(35, 35, 32, 0.4);
}

.so-image-placeholder--large {
  min-height: 320px;
  font-size: 0.85rem;
}

.so-detail__main-wrap {
  display: flex;
}

/* ---- SEO content reuses .bb-info, no page-specific override needed ---- */

/* =========================================================
   MISSING SHARED DETAIL-PAGE STYLES (added — these classes
   are used in solid-base-ottomans.html but had no CSS rules
   at all in this file, matching bugs found and fixed on
   storage-drawers.css)
   ========================================================= */

.mt-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}

@media (min-width: 900px) {
  .mt-detail__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

.mt-detail__gallery,
.mt-detail__info {
  min-width: 0;
}

.bb-modal__main-image-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  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;
  object-position: center;
  display: block;
}

.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);
}

.mt-detail__back-row {
  padding-top: 1.25rem;
}

.mt-detail__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  transition: color var(--dur-fast) var(--ease);
}

.mt-detail__back-link:hover {
  color: var(--color-brass);
}

.bb-modal__fabric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.bb-modal__fabric-grid .fabric-swatch__ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.bb-modal__fabric-grid .fabric-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  width: 68px;
}

.bb-modal__fabric-collections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
}

.bb-modal__fabric-collection-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-forest-dark);
  margin-bottom: 0.75rem;
}

.ob-addon {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.ob-addon__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 0.5rem;
}

.ob-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ob-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.ob-toggle__switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background-color: var(--color-border);
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease);
}

.ob-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease);
}

.ob-toggle[aria-pressed="true"] .ob-toggle__switch {
  background-color: var(--color-forest);
}

.ob-toggle[aria-pressed="true"] .ob-toggle__switch::after {
  transform: translateX(18px);
}

.ob-toggle__label {
  font-size: 0.85rem;
  color: var(--color-ink);
}

.ob-toggle__label em {
  font-style: normal;
  color: rgba(35, 35, 32, 0.55);
}

.ob-addon__image {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  border: 1px solid var(--color-border);
}

.ob-option-message {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-clay);
  min-height: 1.2em;
}

.so-custom-request {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-ink);
  background-color: var(--color-white);
  resize: vertical;
  min-height: 90px;
}

.so-custom-request:focus {
  outline: none;
  border-color: var(--color-brass);
}

.so-delay-date-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.so-delay-date-wrap label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(35, 35, 32, 0.6);
}

.so-delay-date-wrap input[type="date"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-ink);
  background-color: var(--color-white);
  max-width: 220px;
}

.so-image-placeholder.ob-addon__image {
  max-width: 240px;
  height: 160px;
  margin-bottom: 0.85rem;
}

.bb-modal__fabric-grid .fabric-swatch__name {
  font-size: 0.66rem;
  line-height: 1.25;
}

.bb-modal__fabric-grid .fabric-swatch__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bb-modal__fabric-grid .fabric-swatch[aria-pressed="true"] .fabric-swatch__ring {
  border-color: var(--color-brass);
  box-shadow: 0 0 0 2px rgba(164, 123, 76, 0.2);
}

.bb-modal__fabric-grid .fabric-swatch__check {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: rgba(18, 40, 31, 0.72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.bb-modal__fabric-grid .fabric-swatch[aria-pressed="true"] .fabric-swatch__check {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fabric-swatch__ring--fallback {
  background-color: var(--color-sage);
}


.rd2-dimensions__table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.rd2-dimensions__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 420px;
}

.rd2-dimensions__table th,
.rd2-dimensions__table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.rd2-dimensions__table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(35, 35, 32, 0.55);
  background-color: var(--color-ivory-soft);
}

.rd2-dimensions__table tbody tr:last-child td {
  border-bottom: none;
}

.rd2-dimensions__table--compact {
  min-width: 0;
  font-size: 0.8rem;
}


.rd2-dimensions__table-row--current td {
  font-weight: 700;
  color: var(--color-forest);
  background-color: var(--color-ivory-soft);
}


.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__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);
}
.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;
}


.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 !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding-inline: 0.75rem !important;
  border: 1px solid #d8d2c4 !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #23231f !important;
  background-color: #ffffff !important;
  cursor: pointer;
}

.mt-pagination__page:hover,
.mt-pagination__btn:hover:not(:disabled) {
  border-color: #a47b4c !important;
}

.mt-pagination__page.is-active {
  background-color: #12281f !important;
  border-color: #12281f !important;
  color: #f7f3ea !important;
}

.mt-pagination__btn:disabled {
  opacity: 0.4 !important;
  cursor: default;
}

/* ---- Solid Ottoman only: active pagination page uses the brand
   brown/tan accent instead of the shared dark-green default, so
   this does not affect Mattresses or any other page using
   .mt-pagination. ---- */
.so-toolbar-pagination .mt-pagination__page.is-active {
  background-color: #a47b4c !important;
  border-color: #a47b4c !important;
  color: #ffffff !important;
}

/* ---- Solid Ottoman only: pagination sits inline in the toolbar
   row next to Sort, with a small gap and safe wrapping on narrow
   screens instead of the centered block-level layout used when
   pagination stands alone under the grid. ---- */
.so-toolbar-pagination {
  justify-content: flex-start;
  margin-top: 0;
  flex-wrap: wrap;
}

@media (max-width: 639px) {
  .sf-toolbar-row__right {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}


.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-modal__description {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(35, 35, 32, 0.72);
}


.bb-modal__fabrics {
  margin-top: 1.5rem;
}


.bb-modal__monthly {
  margin-top: 0.2rem;
}


.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__rating {
  margin-top: 0.6rem;
}


.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);
}


.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__title {
  font-size: 1.6rem;
  line-height: 1.2;
}


.bb-product-card__desc {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(35, 35, 32, 0.6);
}


.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-not-found {
  padding-block: 6rem;
  text-align: center;
  max-width: 30rem;
  margin-inline: auto;
}


.mt-not-found h1 {
  margin-top: 0.5rem;
  font-size: 2.25rem;
}


.mt-not-found p {
  margin-top: 0.75rem;
  color: rgba(35, 35, 32, 0.65);
}


.mt-not-found .btn {
  margin-top: 1.75rem;
}

.sf-toolbar__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sf-toolbar__field select {
  height: 40px;
  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);
}


.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__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__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.bb-modal__thumb.so-image-placeholder {
  min-height: 0;
  width: 64px;
  height: 64px;
  font-size: 0.55rem;
  padding: 0;
  border-style: dashed;
}

/* ---- Fullscreen image lightbox (matching Ottoman Beds) ---- */
.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);
}

/* ---- Solid Ottoman only: column-view toggle (2/3/4 columns per
   row) buttons. Scoped to .so-view-toggle so other category pages
   sharing the same .bb-toolbar__view-btn class are unaffected. ---- */
.so-view-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.so-view-toggle .bb-toolbar__view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 0.6rem;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #23231f;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.so-view-toggle .bb-toolbar__view-btn:hover {
  border-color: #a47b4c;
}

.so-view-toggle .bb-toolbar__view-btn.is-active {
  background-color: #a47b4c;
  border-color: #a47b4c;
  color: #ffffff;
}
/* =====================================================================
   PASTE THIS AT THE VERY END OF solid-base-ottomans.css
   Mobile hero fix (768px and below ONLY — desktop is untouched).
   - Photo fills the whole hero edge to edge (cover): no dark green
     bands/block above or below it, even if an earlier mobile rule set
     object-fit: contain.
   - Slow zoom animation off on phones (scaling the photo up made it soft).
   - No opacity / filter / transform on the photo.
   - Lighter overlay so the photo reads clearly; text stays readable
     through its existing text-shadow.
   - Hero height follows its content instead of a tall fixed minimum.
   Placed at the end of the file so it wins over the earlier hero rules.
   ===================================================================== */
@media (max-width: 768px) {
  .so-hero {
    min-height: 0;
    height: auto;
  }

  .so-hero__image {
    object-fit: cover;
    object-position: center center;
    animation: none;
    transform: none;
    opacity: 1;
    filter: none;
  }

  .so-hero__overlay {
    background: linear-gradient(180deg, rgba(18, 40, 31, 0.32) 0%, rgba(18, 40, 31, 0.2) 45%, rgba(18, 40, 31, 0.4) 100%);
  }
}