/* RC8 category discovery rows: horizontal carousels + dedicated category view. */
.rc8-category-rows {
  display: grid;
  gap: 30px;
  padding: 18px 0 10px;
}

.rc8-category-row-section { min-width: 0; }

.rc8-category-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 14px;
}

.rc8-category-row-heading h2 {
  margin: 0;
  color: #1b1b1d;
  font-size: clamp(30px, 7.8vw, 44px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
}

.rc8-see-all-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--rc8-orange, #f26a21);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.rc8-category-row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 8px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rc8-category-row-track::-webkit-scrollbar { display: none; }

.rc8-row-product-card,
.rc8-see-all-card {
  flex: 0 0 min(43vw, 210px);
  min-width: 150px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(27,27,29,.05);
  border-radius: 26px;
  background: #fff;
  color: #1b1b1d;
  box-shadow: 0 11px 30px rgba(31,27,23,.065);
  text-align: left;
  font: inherit;
}

.rc8-row-product-card {
  position: relative;
  padding: 0;
  cursor: pointer;
}

.rc8-row-product-card .product-art {
  position: relative;
  height: 164px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 0;
}

.rc8-row-product-card .product-art.has-photo { background: #f7f5f1; }

.rc8-row-product-card .product-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rc8-row-product-card .product-emoji { font-size: 58px; }

.rc8-card-favourite {
  position: absolute;
  z-index: 3;
  top: auto;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #242424;
  box-shadow: 0 5px 16px rgba(0,0,0,.12);
  font-family: Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rc8-card-favourite.active {
  color: var(--rc8-orange, #f26a21);
  transform: scale(1.03);
}

.rc8-card-favourite:focus-visible {
  outline: 3px solid rgba(242,106,33,.28);
  outline-offset: 2px;
}

.rc8-row-product-copy {
  min-height: 78px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 13px 15px 15px;
}

.rc8-row-product-copy h3 {
  margin: 0;
  overflow: hidden;
  color: #1b1b1d;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rc8-row-product-copy strong {
  display: block;
  color: #1b1b1d;
  font-size: 15px;
  font-weight: 750;
}

.rc8-see-all-card {
  position: relative;
  min-height: 242px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 10px;
  cursor: pointer;
  background: #fffaf6;
}

.rc8-see-all-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 154px;
  overflow: hidden;
  border-radius: 20px;
  background: #f4eee8;
}

.rc8-see-all-collage span {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4eee8;
  font-size: 28px;
}

.rc8-see-all-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rc8-see-all-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 3px 1px;
}

.rc8-see-all-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.rc8-see-all-copy b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rc8-orange, #f26a21);
  color: white;
  font-size: 22px;
  line-height: 1;
}

.rc8-category-page[hidden] { display: none !important; }

.rc8-category-page {
  position: fixed;
  inset: 0;
  z-index: 430;
  overflow-y: auto;
  pointer-events: auto;
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
  background: #faf9f7;
  color: #1b1b1d;
}

.rc8-category-page-shell {
  width: min(100%, 760px);
  min-height: 100%;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px calc(120px + env(safe-area-inset-bottom));
}

.rc8-category-page-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0 18px;
  background: rgba(250,249,247,.94);
  backdrop-filter: blur(18px);
}

.rc8-category-page-close {
  position: relative;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid #e1ded9;
  border-radius: 50%;
  background: #fff;
  color: #1b1b1d;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.rc8-category-page-topbar span {
  color: #8b8882;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rc8-category-page h1 {
  margin: 18px 0 24px;
  font-size: clamp(42px, 11vw, 66px);
  line-height: .98;
  letter-spacing: -.055em;
}

.rc8-category-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rc8-category-page-grid .rc8-row-product-card {
  min-width: 0;
  width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.rc8-category-page-open { overflow: hidden !important; }

@media (max-width: 470px) {
  .rc8-row-product-card,
  .rc8-see-all-card { flex-basis: 43vw; }

  .rc8-row-product-card .product-art { height: 152px; }
  .rc8-see-all-card { min-height: 230px; }
  .rc8-see-all-collage { min-height: 143px; }
}

@media (min-width: 700px) {
  .rc8-row-product-card,
  .rc8-see-all-card { flex-basis: 190px; }

  .rc8-category-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* RC28 nested customer-defined sections inside a category page. */
.rc8-category-page-grid.is-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.rc8-category-page-grid.is-rows .rc8-category-row-section {
  min-width: 0;
}

.rc8-category-page-grid.is-rows .rc8-category-row-track {
  margin-inline: -18px;
  padding-inline: 18px;
}

.rc8-category-page-grid.is-rows .rc8-category-row-heading h2 {
  font-size: clamp(28px, 7vw, 40px);
}


/* Category-page search + room type rows */
.rc8-category-page-search{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:54px;
  margin:4px 0 24px;
  padding:0 16px;
  border:1px solid #e2ded8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
  box-shadow:0 7px 24px rgba(41,35,29,.035);
}
.rc8-category-page-search>span{
  flex:0 0 auto;
  color:#2a2927;
  font-size:25px;
  line-height:1;
  transform:translateY(-1px);
}
.rc8-category-page-search input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#22211f;
  font:inherit;
  font-size:16px;
  font-weight:500;
  appearance:none;
  -webkit-appearance:none;
}
.rc8-category-page-search input::placeholder{color:#aaa59e}
.rc8-category-page-search input::-webkit-search-cancel-button{opacity:.55}

.rc8-category-page-search-empty{
  grid-column:1/-1;
  display:grid;
  gap:5px;
  min-height:160px;
  place-content:center;
  text-align:center;
  padding:28px;
  border:1px dashed #ddd7cf;
  border-radius:22px;
  background:#fff;
}
.rc8-category-page-search-empty strong{font-size:17px}
.rc8-category-page-search-empty span{color:#817b74;font-size:13px}

.rc8-category-page-search + #rc8-category-page-title{
  margin-top:0;
}

@media(max-width:470px){
  .rc8-category-page-search{
    min-height:52px;
    margin-bottom:22px;
    border-radius:17px;
  }
}


/* Search replaces Guest Hub label on every category page. */
.rc8-category-page-topbar{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:8px 0 14px;
}
.rc8-category-page-topbar .rc8-category-page-search-topbar{
  min-width:0;
  min-height:46px;
  margin:0;
  padding:0 14px;
  border-radius:999px;
  box-shadow:none;
}
.rc8-category-page-topbar .rc8-category-page-search-topbar>span{
  flex:0 0 auto;
  color:#2a2927;
  font-size:22px;
  font-weight:400;
  letter-spacing:0;
  line-height:1;
  text-transform:none;
  transform:translateY(-1px);
}
.rc8-category-page-topbar .rc8-category-page-search-topbar input{
  min-width:0;
  font-size:15px;
}
.rc8-category-page-topbar + #rc8-category-page-title{
  margin-top:14px;
}
@media(max-width:470px){
  .rc8-category-page-topbar{
    grid-template-columns:46px minmax(0,1fr);
    gap:10px;
    padding-bottom:14px;
  }
  .rc8-category-page-topbar .rc8-category-page-search-topbar{
    min-height:46px;
    margin:0;
    border-radius:999px;
  }
}

/* Category search: keyboard dismiss arrow sits INSIDE the search pill.
   Keep the two-column Back + Search layout even while typing. */
.rc8-category-page-topbar.is-search-focused,
.rc8-category-page-topbar {
  grid-template-columns: 46px minmax(0, 1fr);
}
.rc8-category-page-topbar .rc8-category-page-search-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 5px;
}
.rc8-category-page-topbar .rc8-category-page-search-topbar input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
}
.rc8-category-page-topbar .rc8-category-keyboard-done[hidden] {
  display: none !important;
}
.rc8-category-page-topbar .rc8-category-keyboard-done {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #ececef;
  color: #18191b;
  font: inherit;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.rc8-category-page-topbar .rc8-category-keyboard-done:focus-visible {
  outline: 2px solid #18191b;
  outline-offset: 2px;
}
@media (max-width: 470px) {
  .rc8-category-page-topbar.is-search-focused {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }
  .rc8-category-page-topbar .rc8-category-page-search-topbar {
    padding-right: 3px;
  }
}


/* BreakPoint: only the terminal See all presents full-width product rows.
   Parent screens keep the existing two-across photo-top cards and sliders. */
.rc8-category-page-grid.is-final-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-card {
  display: grid;
  grid-template-columns: clamp(100px, 29vw, 140px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 130px;
  padding: 9px;
  border-radius: 18px;
  box-sizing: border-box;
  text-align: left;
  scroll-snap-align: none;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-card .product-art {
  width: 100%;
  height: clamp(112px, 29vw, 142px);
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-card .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-card .rc8-row-product-copy {
  min-width: 0;
  min-height: 0;
  padding: 7px 7px 7px 0;
  display: grid;
  align-content: center;
  gap: 7px;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-card .rc8-row-product-copy h3 {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.22;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: #76716c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.rc8-category-page-grid.is-final-list .rc8-final-product-card .rc8-row-product-copy strong {
  font-size: 15px;
  line-height: 1.2;
}
@media (max-width: 470px) {
  .rc8-category-page-grid.is-final-list .rc8-final-product-card {
    gap: 11px;
    min-height: 117px;
  }
  .rc8-category-page-grid.is-final-list .rc8-final-product-card .product-art {
    height: 112px;
  }
  .rc8-category-page-grid.is-final-list .rc8-final-product-card .rc8-row-product-copy h3 {
    font-size: 16px;
  }
}

/* Customer checkout must remain reachable on See All and nested category
   pages without exiting them. Match the existing Home dock and black cart
   pill, with independent stacking inside this full-screen category layer. */
.rc8-category-page .rc8-category-dock{
 position:fixed;
 z-index:30;
 left:50%;
 right:auto;
 bottom:calc(12px + env(safe-area-inset-bottom,0px));
 width:min(calc(100% - 28px),680px);
 max-width:calc(100vw - 28px);
 transform:translateX(-50%);
 box-sizing:border-box;
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:2px;
 align-items:center;
 padding:10px 9px;
 background:rgba(255,255,255,.97);
 border-radius:28px;
 border:1px solid rgba(0,0,0,.04);
 box-shadow:0 12px 32px rgba(20,20,20,.11);
 backdrop-filter:blur(14px);
 -webkit-backdrop-filter:blur(14px);
}
.rc8-category-page .rc8-category-dock .dock-action{
 min-width:0;
 min-height:60px;
 padding:8px 2px;
}
.rc8-category-page .rc8-category-cart-shortcut{
 position:fixed;
 z-index:31;
 left:50%;
 right:auto;
 bottom:calc(105px + env(safe-area-inset-bottom,0px));
 transform:translateX(-50%);
 box-sizing:border-box;
 min-height:56px;
 max-width:calc(100vw - 42px);
 display:flex;
 align-items:center;
 justify-content:center;
 gap:10px;
 padding:12px 22px;
 border:0;
 border-radius:999px;
 background:#050505;
 color:#fff;
 box-shadow:0 10px 28px rgba(0,0,0,.25);
 white-space:nowrap;
 font:inherit;
 font-size:17px;
 cursor:pointer;
 touch-action:manipulation;
}
.rc8-category-page .rc8-category-cart-shortcut[hidden]{
 display:none!important;
}
.rc8-category-page .rc8-category-cart-shortcut strong{
 font-weight:650;
 font-size:17px;
}
.rc8-category-page .rc8-category-page-shell{
 padding-bottom:calc(200px + env(safe-area-inset-bottom,0px));
}
@media(max-width:360px){
 .rc8-category-page .rc8-category-dock{
  width:calc(100% - 16px);
  max-width:calc(100vw - 16px);
  padding:8px 4px;
 }
 .rc8-category-page .rc8-category-dock .dock-action small{font-size:10px}
 .rc8-category-page .rc8-category-cart-shortcut{bottom:calc(99px + env(safe-area-inset-bottom,0px))}
}
