/* White category hubs for Clothing and Women's Trousers. Does not change existing room card CSS. */

body.room-white-hub {
  --bg: #ffffff;
  --bg-2: #f6f4f1;
  --bg-card: #ffffff;
  --line: #e6e1da;
  --line-2: #d8d2ca;
  --text: #1c1a19;
  --fog: #5e5a56;
  --dim: #8a8580;
  --accent: #8a735c;
  background: #ffffff;
  color: #1c1a19;
}
body.room-white-hub .site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
body.room-white-hub .shade-wrap { background: #ffffff; }
body.room-white-hub .shade-wrap::before { display: none; }
body.room-white-hub .back-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #1c1a19;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (min-width: 720px) {
  body.room-white-hub .back-pill {
    top: 14px;
    left: max(16px, calc((100vw - min(1480px, 100% - 48px)) / 2));
    z-index: 50;
  }
  body.room-white-hub .site-header .bar .brand {
    margin-left: 148px;
    flex-shrink: 0;
  }
}
body.room-white-hub .hero {
  padding: 2px 0 0;
  background: #ffffff;
}
body.room-white-hub .hero .crumbs {
  margin: 0;
  line-height: 1.2;
}
body.room-white-hub .hero .label,
body.room-white-hub .hero .lead,
body.room-white-hub .hero .lead-more {
  display: none;
}
body.room-white-hub .hero h1 {
  color: var(--text);
  max-width: none;
  width: 100%;
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  white-space: nowrap;
}
@media (max-width: 640px) {
  body.room-white-hub .hero h1 { white-space: normal; }
}
body.room-white-hub .crumbs a { color: var(--fog); }

.whub-section {
  padding: 8px 0 28px;
}
.whub-section h2 {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.whub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .whub-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
}
@media (min-width: 960px) {
  .whub-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px 16px; }
}
@media (min-width: 1200px) {
  .whub-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.wcard {
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wcard .wimg {
  margin: 0;
  background: #f7f5f2;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wcard .wimg a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.wcard .wimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.wcard .wbody {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.wcard .pbrand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.wcard h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.wcard h3 a {
  color: var(--text);
  text-decoration: none;
}
.wcard h3 a:hover,
.wcard h3 a:focus-visible {
  text-decoration: underline;
}
.wcard .pnote {
  margin: 0;
  color: var(--fog);
  font-size: 0.92rem;
}
.wcard .prating {
  margin: 0;
  color: var(--fog);
  font-size: 0.9rem;
}
.wcard .price {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.wcard .pactions {
  margin-top: auto;
  padding-top: 12px;
}
body.room-white-hub .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--fog);
}

/* Category navigation on the Clothing hub and its category pages.
   Typographic tabs in the Everyday manner. No colourful fill hover, no animation. */
.whub-cats {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.whub-cats .wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.whub-cats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}
.whub-cats a {
  display: inline-block;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--fog);
  text-decoration: none;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.whub-cats a:hover,
.whub-cats a:focus-visible,
.whub-cats a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: #E8B4B8;
  text-decoration: none;
}
.whub-section h2 a {
  color: inherit;
  text-decoration: none;
}
.whub-section h2 a:hover,
.whub-section h2 a:focus-visible {
  text-decoration: underline;
}

/* Room filter bar — Everyday polish, white rooms only. Does not change card colours or hovers. */
.room-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: transparent;
}
.room-filters .filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 0 1 180px;
  box-sizing: border-box;
}
.room-filters .filter label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
}
.room-filters .filter select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236d6864' stroke-width='1' d='M1 1l5 5 5-5'/></svg>") no-repeat right 12px center;
  border: 0;
  border-bottom: 1px solid #d4cfc8;
  border-radius: 0;
  padding: 8px 32px 8px 0;
  font-size: 14px;
  font-weight: 300;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.room-filters .filter-search {
  min-width: 0;
  flex: 1 1 200px;
  max-width: 320px;
}
.room-filters .filter-search input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #d4cfc8;
  border-radius: 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 300;
  font-family: inherit;
  color: var(--text);
}
.room-filters .filter select:hover,
.room-filters .filter select:focus,
.room-filters .filter-search input[type="search"]:hover,
.room-filters .filter-search input[type="search"]:focus {
  border-bottom-color: #D9A3A8;
  outline: none;
}
.room-filters .filter-search input[type="search"]::placeholder {
  color: var(--dim);
  opacity: 0.85;
}
.room-filters .filter-search input[type="search"]::-webkit-search-decoration,
.room-filters .filter-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}
.room-filters .filter-meta {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 8px;
  min-width: 0;
}
.room-filters #filter-count {
  font-size: 13px;
  color: var(--fog);
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
}
.room-filters .filter-reset {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.room-filters .filter-reset:hover,
.room-filters .filter-reset:focus-visible {
  color: var(--text);
  border-bottom-color: #E8B4B8;
  outline: none;
}
.filter-empty {
  display: none;
  text-align: center;
  padding: 36px 0 48px;
  color: var(--fog);
  font-size: 16px;
  margin: 0;
}
.filter-empty.is-visible { display: block; }
.filter-empty[hidden] { display: none; }
@media (max-width: 700px) {
  .room-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
  }
  .room-filters .filter,
  .room-filters .filter-search,
  .room-filters .filter select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .room-filters .filter-meta {
    margin-left: 0;
    padding-bottom: 0;
  }
  .whub-cats .wrap { justify-content: flex-start; }
}

/* White-room filter chips. Typographic, light borders, rose current state.
   Does not change .tchip or .tcard colours, hovers, or animations. */
.whub-chip-groups {
  flex: 1 1 100%;
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
  min-width: 0;
}
.whub-chip-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.whub-chip-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1;
}
.wchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}
.wchip {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  line-height: 1.2;
}
.wchip:hover,
.wchip:focus-visible {
  color: var(--text);
  border-color: #D9A3A8;
  outline: none;
}
.wchip[aria-pressed="true"] {
  color: var(--text);
  border-color: #D9A3A8;
  background: #ffffff;
}

/* t794u: never show exposed chip rows on white rooms. Options live in <select>s. */
body.room-white-hub .whub-chip-groups,
body.room-white-hub .whub-chip-group,
body.room-white-hub .wchips,
body.room-white-hub .wchip {
  display: none !important;
}


/* Sticky compact filter + category tabs, pinned just beneath the site header.
   Size / Showing / Reset are removed so the filter controls stay on one row. */
body.room-white-hub {
  --shop-header-h: 64px;
}
body.room-white-hub .whub-sticky {
  position: sticky;
  top: var(--shop-header-h, 64px);
  z-index: 25; /* below .site-header (40), .cat-menu-list (50), .ed-search-panel (80) */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
body.room-white-hub .whub-sticky .room-filters {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px 12px;
  padding: 6px 0 8px;
  margin-top: 0;
  border-top: 0;
  background: transparent;
}
body.room-white-hub .whub-sticky .room-filters .filter {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
}
body.room-white-hub .whub-sticky .room-filters .filter-search {
  flex: 1.2 1 140px;
  max-width: 240px;
  min-width: 0;
}
body.room-white-hub .whub-sticky .whub-cats {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
}
body.room-white-hub .whub-sticky .whub-cats .wrap {
  min-height: 40px;
  padding-top: 2px;
  padding-bottom: 2px;
}
body.room-white-hub .room-filters .filter-meta,
body.room-white-hub #filter-size,
body.room-white-hub .filter[data-filter-group="size"],
body.room-white-hub #filter-count,
body.room-white-hub .filter-reset {
  display: none !important;
}
@media (max-width: 700px) {
  body.room-white-hub .whub-sticky .room-filters {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  body.room-white-hub .whub-sticky .room-filters .filter,
  body.room-white-hub .whub-sticky .room-filters .filter-search {
    max-width: none;
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Hide the uppercase filter field labels (they duplicate the default option /
   placeholder text) so the sticky bar is shorter and more of each product
   image stays in view. Labels stay in the DOM for assistive tech. */
body.room-white-hub .room-filters .filter label,
body.room-white-hub .room-filters .filter-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.room-white-hub .room-filters .filter,
body.room-white-hub .room-filters .filter-search {
  position: relative;
  gap: 0;
}
body.room-white-hub .room-filters {
  align-items: center;
  padding: 4px 0 2px;
  margin-top: 0;
}
body.room-white-hub .whub-sticky .room-filters {
  align-items: center;
  padding: 2px 0 2px;
  gap: 6px 12px;
}
body.room-white-hub .whub-sticky .whub-cats .wrap {
  min-height: 32px;
  padding-top: 0;
  padding-bottom: 0;
}
body.room-white-hub .whub-sticky .whub-cats a {
  padding: 6px 0;
}
