/* Beds categories only: desktop/mobile contracts from Peep's grid and list mockups. */
body.ws-beds-alignment, .ws-beds-alignment .page-wrapper, .ws-beds-alignment .page-main { background: #fff !important; }
.ws-beds-alignment .page-main { padding-top: 8px; }
.ws-beds-alignment .columns { width: 91.6%; max-width: 1320px; margin: 0 auto; padding: 0 !important; gap: 14px 24px !important; }
.ws-beds-alignment .ws-category-intro { margin: 0; }
.ws-beds-alignment .ws-category-breadcrumb { margin: 0 0 8px; }
.ws-beds-alignment .ws-category-hero { height: 210px; min-height: 0; background: #fff; }
.ws-beds-alignment .ws-category-hero__copy { width: 49%; padding: 26px 16px; }
.ws-beds-alignment .ws-category-hero__copy h1 { font-size: 44px; margin-bottom: 6px; }
.ws-beds-alignment .ws-category-hero__copy p { font-size: 17px; line-height: 1.35; }
.ws-beds-alignment .ws-category-hero__shade { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.94) 35%,rgba(255,255,255,0) 60%); }
.ws-sofa-benefits { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; margin: 20px 0 0; list-style: none; }
.ws-sofa-benefits li { display: flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.35; }
.ws-sofa-benefits svg { width: 32px; height: 32px; flex-shrink: 0; }
.ws-beds-alignment .ws-catalog-product-list { padding: 0 !important; }
.ws-beds-alignment .ws-sofa-toolbar { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 40px; }
.ws-beds-alignment .ws-sofa-amount { margin: 0; white-space: nowrap; font-size: 13px; }
.ws-beds-alignment .ws-sofa-toolbar .modes { display: flex !important; visibility: visible !important; padding: 0; border: 0; width: auto; margin: 0; order: 0; gap: 4px; }
.ws-beds-alignment .modes-mode { width: 35px; height: 35px; padding: 7px; background-size: 18px; background-position: center; background-repeat: no-repeat; border: 1px solid #e3e7ed; border-radius: 4px; }
.ws-beds-alignment .modes-mode.active { background-color: #f1f3f5; }
.ws-beds-alignment .ws-sofa-sort-control { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; }
.ws-beds-alignment .toolbar-sorter { order: 0; gap: 5px; }
.ws-beds-alignment .toolbar-sorter label { margin: 0; }
.ws-beds-alignment .sorter-action { width: 24px; }
.ws-beds-alignment .limiter { order: 0; }
.ws-beds-alignment .form-select { padding-top: 7px; padding-bottom: 7px; font-size: 13px; height: 36px; border-color: #e3e7ed; border-radius: 4px; }
.ws-beds-alignment .ws-catalog-grid { margin: 0; padding: 10px 0 16px; gap: 12px; }
.ws-beds-alignment .products-grid .ws-catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ws-beds-alignment .ws-product-card { position: relative; padding: 0 !important; border: 1px solid #e3e7ed; border-radius: 5px; background: #fff; box-shadow: none; }
.ws-beds-alignment .product-item-photo { width: 100%; height: 130px; margin: 0 !important; background: #fff; }
.ws-beds-alignment .product-item-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ws-beds-alignment .product-info { padding: 8px !important; min-width: 0; }
.ws-beds-alignment .ws-product-card__name { font-size: 13px; line-height: 1.3; text-align: left; margin: 0 0 4px; }
.ws-beds-alignment .ws-product-card__price .price { font-size: 19px; font-weight: 700; color: #111; }
.ws-beds-alignment .ws-product-card__price .special-price .price { color: #ed001b; }
.ws-beds-alignment .ws-product-card__actions { padding-top: 7px; gap: 5px; flex-wrap: nowrap; }
.ws-beds-alignment .ws-product-card__actions > .btn { width: 100%; min-height: 36px; padding: 7px 6px; justify-content: center; font-size: 12px; }
.ws-beds-alignment .ws-product-card__actions > .btn span { display: inline !important; }
.ws-beds-alignment .ws-product-card__actions svg { width: 17px; height: 17px; }
.ws-beds-alignment .ws-product-card__actions > div:empty { display: none; }
.ws-beds-alignment [data-addto=compare] { display: none; }
.ws-beds-alignment .ws-sofa-toolbar--bottom { justify-content: center; padding: 6px 0 20px; }
.ws-beds-alignment .sidebar-main { margin: 0 !important; padding: 0; }
.ws-beds-alignment .ws-catalog-filters { margin: 0; padding: 0; background: #fff; }
.ws-beds-alignment #filters-heading { display: none; }
.ws-beds-alignment #filters-content { padding-top: 0; }
.ws-beds-alignment .filter-option { margin: 0; border: 1px solid #e3e7ed; border-radius: 0; box-shadow: none; }
.ws-beds-alignment .filter-options-title { padding: 10px 12px; }
.ws-beds-alignment .filter-options-title h3 { font-size: 14px; }
.ws-beds-alignment .filter-options-title > span { border: 0; padding: 0; }
.ws-beds-alignment .filter-options-title svg { width: 16px; height: 16px; }
.ws-beds-alignment .filter-options-content { padding: 5px 12px 12px; font-size: 12px; }
.ws-beds-alignment .filter-options-content a { align-items: center; gap: 5px; padding: 3px 0; }
.ws-beds-alignment .filter-options-content .items a:before { content: ''; width: 12px; height: 12px; border: 1px solid #c9ced6; border-radius: 2px; flex-shrink: 0; }
.ws-beds-alignment .filter-options-content .items a .count { margin-left: auto; }
.ws-beds-alignment .products-list .ws-catalog-grid { grid-template-columns: 1fr; gap: 0; }
.ws-beds-alignment .products-list .ws-product-card { flex-direction: row; border: 0; border-bottom: 1px solid #e3e7ed; border-radius: 0; padding: 9px 0 !important; }
.ws-beds-alignment .products-list .product-item-photo { width: 23%; height: 105px; flex-shrink: 0; }
.ws-beds-alignment .products-list .product-info { width: auto; flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 5px 16px; align-items: start; padding: 0 0 0 18px !important; }
.ws-beds-alignment .products-list .ws-product-card__name { grid-column: 1; grid-row: 1; font-size: 15px; }
.ws-beds-alignment .products-list .product-info > .py-1 { grid-column: 1; grid-row: 2; margin: 0; }
.ws-beds-alignment .products-list .ws-sofa-description { grid-column: 1; grid-row: 3 / span 2; font-size: 12px; line-height: 1.4; text-align: left; max-height: 52px; overflow: hidden; margin: 0; }
.ws-beds-alignment .products-list .ws-product-card__price { grid-column: 2; grid-row: 1 / span 2; padding: 0; }
.ws-beds-alignment .products-list .ws-product-card__actions { grid-column: 2; grid-row: 3; margin: 0; padding: 0; }
@media(min-width:768px) { .ws-beds-alignment .columns { grid-template-columns: 19.5% minmax(0,1fr) !important; } }
@media(max-width:767px) {
 .ws-beds-alignment .page-main { padding-top: 10px; }
 .ws-beds-alignment .columns { width: auto; margin: 0 16px; gap: 10px !important; }
 .ws-beds-alignment .ws-category-hero { height: auto; display: flex; flex-direction: column; overflow: visible; background: #fff; }
 .ws-beds-alignment .ws-category-hero > img { position: static; width: 100%; height: 100px; order: 2; border-radius: 5px; object-position: 66% center; }
 .ws-beds-alignment .ws-category-hero__shade { display: none; }
 .ws-beds-alignment .ws-category-hero__copy { width: 100%; padding: 0 0 12px; }
 .ws-beds-alignment .ws-category-hero__copy h1 { font-size: 27px; margin-bottom: 7px; }
 .ws-beds-alignment .ws-category-hero__copy p { font-size: 14px; }
 .ws-beds-alignment .ws-sofa-benefits { display: none; }
 .ws-beds-alignment .sidebar-main { position: relative; z-index: 3; align-self: start; }
 .ws-beds-alignment .ws-catalog-filters { border: 0; margin: 0; padding: 0; }
 .ws-beds-alignment #filters-heading { display: block; }
 .ws-beds-alignment #filters-heading > button { height: 43px; padding: 8px 10px; border: 1px solid #e3e7ed; border-radius: 5px; background: #fff; }
 .ws-beds-alignment #filters-heading .font-heading { font-size: 13px; }
 .ws-beds-alignment #filters-content { position: absolute; left: 0; top: 45px; width: calc(200% + 10px); max-height: 65vh; overflow-y: auto; background: #fff; padding: 10px; border: 1px solid #e3e7ed; box-shadow: 0 6px 16px #0002; }
 .ws-beds-alignment .ws-sofa-toolbar--top { grid-column: 1 / -1 !important; grid-row: 2 !important; display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: 43px 34px; gap: 8px 10px; align-self: start; }
 .ws-beds-alignment .ws-sofa-sort-control { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
 .ws-beds-alignment .ws-sofa-sort-label { display: none; }
 .ws-beds-alignment .toolbar-sorter { display: flex; width: 100%; }
 .ws-beds-alignment .toolbar-sorter label { flex: 1; }
 .ws-beds-alignment .toolbar-sorter select { width: 100%; height: 43px; }
 .ws-beds-alignment .sorter-action { display: none; }
 .ws-beds-alignment .ws-sofa-amount { grid-column: 1; grid-row: 2; font-size: 12px; }
 .ws-beds-alignment .ws-sofa-toolbar--top .modes { display: flex !important; grid-column: 2; grid-row: 2; justify-self: end; }
 .ws-beds-alignment .ws-sofa-toolbar .limiter { display: none; }
 .ws-beds-alignment .ws-catalog-grid { padding-top: 0; gap: 10px; }
 .ws-beds-alignment .products-grid .ws-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .ws-beds-alignment .product-item-photo { height: 108px; }
 .ws-beds-alignment .ws-product-card__name { font-size: 12px; }
 .ws-beds-alignment .ws-product-card__price .price { font-size: 17px; }
 .ws-beds-alignment .products-list .product-item-photo { width: 31%; height: 85px; }
 .ws-beds-alignment .products-list .product-info { padding-left: 10px !important; grid-template-columns: minmax(0,1fr) 105px; gap: 4px; }
 .ws-beds-alignment .products-list .ws-product-card__name { grid-column: 1 / -1; font-size: 12px; }
 .ws-beds-alignment .products-list .product-info > .py-1 { grid-column: 1 / -1; }
 .ws-beds-alignment .products-list .ws-sofa-description { display: none; }
 .ws-beds-alignment .products-list .ws-product-card__price { grid-column: 1; grid-row: 3; align-self: center; }
 .ws-beds-alignment .products-list .ws-product-card__actions { grid-column: 2; grid-row: 3; }
 .ws-beds-alignment .products-list .ws-product-card__actions > .btn { min-height: 30px; padding: 5px 3px; font-size: 10px; gap: 3px; }
 .ws-beds-alignment .products-list .ws-product-card__actions svg { width: 13px; height: 13px; }
}

/* Override legacy important card resets only within this category. */
.ws-beds-alignment .page-main { margin-top: 0 !important; }
.ws-beds-alignment .ws-product-card { border: 1px solid #e3e7ed !important; border-radius: 5px !important; }
.ws-beds-alignment .products-list .ws-product-card { border: 0 !important; border-bottom: 1px solid #e3e7ed !important; border-radius: 0 !important; }
.ws-beds-alignment .ws-product-card__actions .btn { background: #ffd800 !important; color: #111 !important; }

.ws-beds-alignment .page-main { padding-left: 0 !important; padding-right: 0 !important; }
.ws-beds-alignment .products-grid .ws-product-card__name { min-height: 34px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ws-beds-alignment .product-info > .py-1:not(:has(*)) { display: none; }
.ws-beds-alignment .products-grid .ws-product-card__actions { margin-top: 6px; }

.ws-beds-alignment .page-main { max-width: none !important; width: 100%; }

.ws-beds-alignment .ws-product-card__name, .ws-beds-alignment .ws-product-card__actions > .btn { font-weight: 700; }

.ws-beds-alignment .sidebar-main { width: 100% !important; max-width: none !important; }

/* Size navigation stays in one row and scrolls independently on narrow screens. */
.ws-beds-alignment .ws-bed-sizes { display:flex; gap:20px; align-items:start; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding:18px 0 8px; margin:0; scrollbar-width:thin; }
.ws-beds-alignment .ws-bed-size { flex:1 0 88px; max-width:128px; display:flex; flex-direction:column; align-items:center; gap:7px; color:#111; text-decoration:none; font-size:13px; font-weight:600; scroll-snap-align:start; }
.ws-beds-alignment .ws-bed-size__image { width:88px; height:88px; border-radius:50%; overflow:hidden; background:#fff; border:1px solid #e3e7ed; }
.ws-beds-alignment .ws-bed-size__image img { width:100%; height:100%; object-fit:contain; }
.ws-beds-alignment .ws-bed-size:hover .ws-bed-size__image, .ws-beds-alignment .ws-bed-size.is-active .ws-bed-size__image { border:2px solid #ffd800; }
.ws-beds-alignment .ws-bed-size:focus-visible, .ws-beds-alignment .ws-bed-sizes:focus-visible { outline:2px solid #111; outline-offset:3px; }
@media (max-width:767px) {
 .ws-beds-alignment .ws-bed-sizes { gap:12px; padding:14px 0 10px; max-width:100%; }
 .ws-beds-alignment .ws-bed-size { flex:0 0 74px; font-size:12px; }
 .ws-beds-alignment .ws-bed-size__image { width:68px; height:68px; }
}
@media (min-width:768px) and (max-width:1023px) {
 .ws-beds-alignment .products-grid .ws-catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .ws-beds-alignment .products-list .product-info { grid-template-columns:minmax(0,1fr) 150px; }
}

@media (max-width:767px) {
 .ws-beds-alignment #filters-heading > button { justify-content:center; gap:8px; }
 .ws-beds-alignment #filters-heading .font-heading { font-size:13px !important; font-weight:500; }
 .ws-beds-alignment #filters-heading > button > span:last-child { display:none; }
 .ws-beds-alignment #filters-heading > button::before { content:""; width:18px; height:18px; background:center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.7'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18M8 3v6M16 9v6M10 15v6'/%3E%3C/svg%3E"); }
}

@layer components { @media(max-width:767px) { .ws-beds-alignment #filters-heading .font-heading { font-size:13px !important; } } }
