/* =========================
   M1BEDS HOMEPAGE LAYOUT
   ========================= */

:root {
    --primary: #2074C2;
    --primary-dark: #155a9b;
    --primary-deep: #073763;
    --primary-soft: #eef6ff;
    --text-dark: #122033;
    --text-muted: #667085;
    --border: #e6eaf0;
    --bg: #f5f7fa;
    --white: #ffffff;
    --sale: #e74b2f;
    --green: #0ca678;
    --shadow: 0 6px 18px rgba(15, 35, 55, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
     font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    background: var(--bg);
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-wrap {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    margin-top: 28px;
}

.section h2 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.section-intro {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 14px;
}

/* TOP STRIP */

.top-strip {
    background: #f0f3f7;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.top-strip-inner {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-strip strong {
    color: var(--primary);
}

/* HEADER */

.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    flex-direction: column;
    min-width: 168px;
}

.logo span {
    color: var(--primary);
    font-size: 36px;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.logo small {
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
}

.search-box {
    margin-left: auto;
    display: flex;
    width: 330px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
}

.search-box input {
    border: 0;
    flex: 1;
    padding: 0 14px;
    outline: none;
}

.search-box button {
    width: 46px;
    border: 0;
    background: var(--white);
    color: var(--primary);
    font-size: 22px;
}

.header-icons {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary-deep);
}

.full-width {
    width: 100%;
}

/* HERO */

.hero {
    background:
        radial-gradient(circle at 70% 30%, rgba(32,116,194,0.20), transparent 30%),
        linear-gradient(90deg, #ffffff 0%, #f8fbff 52%, #eaf4ff 100%);
}

.hero-inner {
    min-height: 410px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 30px;
    overflow: hidden;
}

.promo-label {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 7px 10px;
    border-radius: 3px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1 {
    margin: 14px 0 12px;
    color: var(--primary);
    font-size: clamp(54px, 8vw, 92px);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.hero p {
    font-size: 18px;
    color: var(--primary-dark);
    font-weight: 700;
}

.hero-visual {
    height: 410px;
    position: relative;
}

.hero-bed {
    position: absolute;
    right: 0;
    bottom: 22px;
    width: 82%;
    height: 150px;
    border-radius: 18px 18px 8px 8px;
    background:
        repeating-linear-gradient(0deg, #fff, #fff 15px, #e8edf4 16px),
        linear-gradient(135deg, #fff, #e9edf4);
    box-shadow: var(--shadow);
}

.hero-bed::before {
    content: "";
    position: absolute;
    right: 7%;
    bottom: 120px;
    width: 68%;
    height: 150px;
    background: #d9dde5;
    border-radius: 22px 22px 6px 6px;
    box-shadow: inset 0 -18px 0 rgba(0,0,0,0.05);
}

.hero-bed::after {
    content: "ðŸŒ¼ ðŸŒ¼ ðŸŒ¼ ðŸŒ¼ ðŸŒ¼";
    position: absolute;
    left: 15%;
    bottom: -10px;
    font-size: 36px;
}

.hero-discount {
    position: absolute;
    top: 28px;
    right: 76px;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.hero-discount small {
    text-transform: uppercase;
    font-weight: 800;
}

.hero-discount strong {
    font-size: 112px;
    line-height: 0.8;
    letter-spacing: -0.06em;
}

.hero-discount span {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

/* BENEFITS */

.benefit-bar {
    background: var(--primary);
    color: #fff;
}

.benefit-grid {
    min-height: 74px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}

.benefit-grid div {
    padding-left: 42px;
    position: relative;
}

.benefit-grid div::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
}

.benefit-grid strong,
.benefit-grid span {
    display: block;
}

.benefit-grid span {
    opacity: 0.9;
    font-size: 12px;
}

/* SIZE CARDS */

.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.size-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.size-card {
    min-height: 108px;
    padding: 18px 12px;
    display: grid;
    place-items: center;
    text-align: center;
    border-right: 1px solid var(--border);
}

.size-card:last-child {
    border-right: 0;
}

.size-icon {
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
}

.size-card small {
    color: var(--text-muted);
}

.size-card-muted {
    background: #f5f6f8;
}

.mini-btn {
    background: var(--primary);
    color: #fff;
    padding: 7px 18px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
}

/* FINDER + PROMO */

.finder-promo {
    display: grid;
    grid-template-columns: 0.95fr 2.05fr;
    gap: 22px;
}

.finder-card {
    background: #fff;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.finder-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.finder-card a {
    height: 48px;
    border: 1px solid var(--border);
    padding: 0 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}

.promo-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.large-promo::before,
.small-promo::before {
    content: "";
    position: absolute;
    right: 52px;
    bottom: 40px;
    width: 350px;
    height: 115px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.brand-tag {
    position: absolute;
    top: 28px;
    left: 28px;
    background: var(--primary-deep);
    padding: 10px 18px;
    font-size: 24px;
    letter-spacing: 0.05em;
}

.sale-splash,
.discount-badge {
    position: absolute;
    top: 32px;
    right: 42px;
    background: var(--primary);
    color: #fff;
    padding: 18px;
    border-radius: 8px;
    font-weight: 900;
    transform: rotate(-12deg);
    box-shadow: var(--shadow);
}

.promo-card h2,
.review-card h2 {
    font-size: 28px;
    margin: 0 0 8px;
}

/* PRODUCTS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-height: 342px;
}

.badge-popular {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
}

.product-card-img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    display: block;
    margin: 18px 0 12px;
    background: #fff;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.25;
}

.features {
    font-size: 12px;
    color: var(--text-muted);
}

.reviews {
    color: var(--green);
    font-size: 12px;
    margin: 8px 0;
}

.price-row {
    background: #fff4f2;
    padding: 8px;
    font-size: 12px;
    margin-top: auto;
}

.price-row strong {
    color: var(--primary-deep);
    font-size: 18px;
}

.price-row small {
    display: block;
    color: var(--sale);
    font-weight: 800;
}

.finance {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0;
}

.card-footer {
    background: #eef8f0;
    margin: 10px -14px -14px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--primary-deep);
    font-weight: 700;
    text-align: center;
}

/* BRANDS */

.brand-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
}

.brand-row a {
    min-height: 84px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--border);
    color: var(--primary-deep);
    font-family: Georgia, serif;
    font-size: 20px;
    text-align: center;
}

.brand-row a:last-child {
    border-right: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    background: #f5f6f8;
}

/* PROMO GRID */

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 22px;
}

.small-promo {
    min-height: 500px;
}

.small-promo.warm {
    background:
        linear-gradient(0deg, rgba(2, 28, 55, 0.82), rgba(2, 28, 55, 0.05)),
        linear-gradient(135deg, #8a3b1f, #f0b17d);
}

.small-promo.blue {
    background:
        linear-gradient(0deg, rgba(2, 28, 55, 0.82), rgba(2, 28, 55, 0.05)),
        linear-gradient(135deg, #073763, #2074C2);
}

.review-card {
    background: var(--primary-deep);
    color: #fff;
    min-height: 290px;
    padding: 34px;
    text-align: center;
    display: grid;
    place-items: center;
    align-content: center;
}

/* INFO PANELS */

.info-panels {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.info-panels article {
    padding: 36px;
    border-right: 1px solid var(--border);
}

.info-panels article:last-child {
    border-right: 0;
}

.info-panels h3 {
    margin-top: 0;
    font-size: 22px;
}

.info-panels li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.info-icon {
    color: var(--primary);
    font-size: 38px;
}

.blue-panel {
    background: var(--primary);
    color: #fff;
}

.blue-panel li {
    color: #fff;
}

/* FOOTER CTA */

.footer-cta {
    background: var(--primary);
    color: #fff;
    margin-top: 52px;
}

.footer-cta-grid {
    min-height: 98px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.footer-cta form {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.footer-cta input {
    height: 40px;
    border: 0;
    padding: 0 12px;
    min-width: 250px;
}

.footer-cta button {
    border: 0;
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    padding: 0 18px;
}

.footer-cta small,
.footer-cta span {
    display: block;
    opacity: 0.9;
}

.footer-cta strong {
    display: block;
    font-size: 22px;
}

/* FOOTER */

.site-footer {
    background: #fff;
}

.footer-grid {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-grid h3 {
    margin-top: 0;
    font-size: 16px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.copyright {
    padding: 16px 0 26px;
    color: var(--text-muted);
    font-size: 13px;
}

.filter-bar {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.filter-bar select {
    padding: 8px;
}
.category-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.category-hero__text {
    padding: 40px;
}

.breadcrumb {
    padding: 15px 5px;
    margin: 0px 20px;
    color: #7a8493;
    font-size: 14px;
}

.breadcrumb strong {
    color: var(--primary);
}

ul.breadcrumb {
    list-style: none;
}

ul.breadcrumb li {
    display: inline;
}

ul.breadcrumb li+li:before {
    padding: 8px;
    color: #666;
    content: "/\00a0";
    font-size: 11px;
}

ul.breadcrumb li a {
    color: #7a8493;
    text-decoration: none;
}

ul.breadcrumb li a:hover {
    color: #01447e;
    text-decoration: underline;
}

.category-hero h1 {
    font-size: 34px;
    margin: 0 0 24px;
}

.category-hero p {
    max-width: 620px;
    line-height: 1.8;
    color: #6b7280;
    font-size: 16px;
}

.category-hero__image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.shop-size {
    padding-top: 46px;
    text-align: center;
    max-width: 1100px;
}

.shop-size h2 {
    font-size: 30px;
    margin-bottom: 34px;
}

.size-icon-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.size-icon-row a {
    color: #0f172a;
    text-align: center;
}

.size-icon-row span {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: #f0f0f0;
    color: var(--primary);
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    font-size: 34px;
    font-weight: 900;
}

.size-icon-row strong,
.size-icon-row small {
    display: block;
}

.size-icon-row small {
    margin-top: 5px;
    color: #6b7280;
}

.premium-filters {
    margin-top: 44px;
}

.premium-filter-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 1040px;
    margin: 0 auto;
}

.premium-filter-form select {
    height: 46px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 0 16px;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
}

.trust-strip {
    margin-top: 42px;
    margin-bottom: 32px;
    min-height: 62px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    color: #0f172a;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.trust-strip-primary {
    margin: 28px 0;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 18px 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    font-weight: 800;
    text-align: center;
    overflow: hidden;
}

.trust-item {
    transition: opacity 0.4s ease;
}

/* MOBILE VERSION */

@media (max-width: 768px) {

    .trust-strip-primary {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 58px;
        padding: 16px 20px;
        position: relative;
    }

    .trust-item {
        display: none;
        width: 100%;
        text-align: center;
        animation: fadeTrust 0.4s ease;
    }

    .trust-item.active {
        display: block;
    }
}

@keyframes fadeTrust {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-grid {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .category-hero {
        grid-template-columns: 1fr;
    }

    .size-icon-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-filter-form {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .main-nav,
    .header-icons {
        display: none;
    }

    .search-box {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 760px) {
    .top-strip-inner {
        justify-content: center;
    }

    .top-strip span {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 0;
    }

    .logo span {
        font-size: 30px;
    }

    .hero-inner,
    .finder-promo,
    .promo-grid,
    .info-panels,
    .footer-cta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
        padding: 48px 0 0;
    }

    .hero-visual {
        height: 250px;
    }

    .hero-discount {
        right: 20px;
    }

    .hero-discount strong {
        font-size: 74px;
    }

    .benefit-grid,
    .size-grid,
    .size-grid-6 {
            grid-template-columns: repeat(2, 1fr);
    }

    .benefit-grid {
        padding: 20px 0;
    }

    .size-card {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .brand-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-panels article {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .footer-cta input {
        min-width: 0;
        width: 100%;
    }
}

.plp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 32px;
}

.filter-sidebar {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 6px;
    background: #fff;
    padding: 20px; 
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #cfd4df;
    border-radius: 999px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar::after {
    content: "";
    position: sticky;
    bottom: -20px; 
    display: block;
    height: 40px;
    margin-left: -20px;
    margin-right: -20px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        #fff
    );
    pointer-events: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.filter-header h2 {
    margin: 0;
    font-size: 24px;
    color: #07182f;
}

.filter-header a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.filter-group {
    border-top: 1px solid #e3e8f0;
    padding-top: 22px;
    margin-top: 22px;
}

.filter-group h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--primary);
}

.filter-option-link {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    color: #07182f;
}

.filter-option-link strong {
    font-size: 15px;
    font-weight: 700;
}

.filter-option-link small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.3;
}

.filter-circle {
    width: 22px;
    height: 22px;
    border: 1px solid #b7c2d0;
    border-radius: 50%;
    margin-top: 1px;
    background: #fff;
}

.filter-option-link:hover .filter-circle {
    border-color: var(--primary);
}

.filter-option-link:hover strong {
    color: var(--primary);
}

.filter-option-link.is-active .filter-circle {
    background: var(--primary);
    border-color: var(--primary);
    position: relative;
}

.filter-option-link.is-active .filter-circle::after {
    content: "âœ“";
    position: absolute;
    left: 5px;
    top: 1px;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
}

.filter-option-link.is-active strong {
    color: var(--primary);
}

.product-results {
    min-width: 0;
}

.results-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

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

@media (max-width: 1000px) {
    .plp-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .product-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .product-grid-3 {
        grid-template-columns: 1fr;
    }
}

#productResults.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.subtitleCentered {
    font-size: 34px;
    text-align: center;
}

.subtitleUnderline {
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 5px auto 30px auto;
}

.content-wrap{
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 24px 48px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mattress-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(15, 35, 55, 0.08);
    transition: 0.2s ease;
}

.mattress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 35, 55, 0.12);
}

.mattress-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #414a63;
    color: #f5c86b;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mattress-image-wrap {
    display: block;
    background: #f8fafc;
}

.mattress-image {
    width: 100%;
    height: 230px;
    object-fit: contain;
    display: block;
}

.mattress-card-body {
    padding: 22px;
}

.mattress-brand {
    color: #606984;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.mattress-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.mattress-title {
    flex: 1;
    margin: 0;
}

.mattress-brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mattress-brand-logo img {
    max-width: 78px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.92;
}

/* MOBILE */

@media (max-width: 768px) {

    .mattress-title-row {
        gap: 10px;
        align-items: flex-start;
    }

    .mattress-brand-logo img {
        max-width: 60px;
        max-height: 26px;
    }
}

.mattress-title a {
    color: #2b2f38;
    line-height: 1.25;
}

.review-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.stars {
    display: inline-block;
    background: #00b67a;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 3px 5px;
    line-height: 1;
}

.review-note {
    color: #7a8493;
    font-size: 13px;
    margin-bottom: 14px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #3f4654;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spec-list span {
    width: 18px;
    color: var(--primary);
    text-align: center;
}

.price-panel {
    background: #f5f6fa;
    border-radius: 7px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.price-panel span {
    color: #1f2937;
    font-size: 15px;
}

.price-panel strong {
    color: #1f2937;
    font-size: 30px;
    margin-left: 4px;
    letter-spacing: -0.03em;
}

.price-panel small {
    display: block;
    color: #d32f2f;
    font-weight: 800;
    margin-top: 4px;
}

.delivery-note {
    color: #3f4654;
    font-size: 15px;
}

.filter-option-link.is-active .filter-circle {
    background: var(--primary);
    border-color: var(--primary);
    position: relative;
}

.filter-option-link.is-active .filter-circle::after {
    content: "âœ“";
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    position: absolute;
    left: 5px;
    top: 1px;
}

/* M1Beds desktop sidebar filter override */
@media (min-width: 901px) {

  .filter-sidebar .filters-ui {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .filter-sidebar .filters-toolbar-desktop {
    display: block;
  }

  .filter-sidebar .filters-toolbar {
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }

  .filter-sidebar .dropdown2 {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e3e8f0;
  }

  .filter-sidebar .dropbtn2 {
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 20px 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: #07182f;
    pointer-events: none;
  }

  .filter-sidebar .dropbtn2:after {
    display: none;
  }

  .filter-sidebar .dropdown2-content {
    display: block !important;
    position: static;
    min-width: 0;
    max-width: none;
    padding: 0 0 16px;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }

  .filter-sidebar .dropdown2-content a {
    display: block;
    margin-bottom: 6px;
  }

  .filter-sidebar .dropdown2-content .block > div,
  .filter-sidebar .dropdown2-content .sortby {
    background: transparent !important;
    padding: 8px 0 !important;
    border-radius: 0 !important;
    font-size: 15px;
    color: #07182f;
  }

  .filter-sidebar .dropdown2-content .block > div {
    grid-template-columns: 24px 1fr !important;
    grid-gap: 10px !important;
  }

  .filter-sidebar .dropdown2-content img {
    width: 21px;
  }

  .filter-sidebar .dropdown2-content a:hover .sortby,
  .filter-sidebar .dropdown2-content a:hover .block > div {
    color: var(--primary);
    background: transparent !important;
  }

  .filter-sidebar .dropbtn2-selected {
    background: #edf4fb !important;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--primary) !important;
    pointer-events: auto;
    margin: 12px 0;
  }

  .filter-sidebar .filter-active-chips {
    justify-content: flex-start;
    margin: 16px 0 0;
  }

}

.firmness-box {
    margin: 12px 0 16px;
    padding-bottom: 4px;
}

.firmness-title {
    font-size: 13px;
    font-weight: 800;
    color: #17233f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.firmness-info {
    width: 17px;
    height: 17px;
    border: 1.5px solid #7d8494;
    color: #7d8494;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    line-height: 1;
    text-transform: none;
}

.firmness-scale {
    position: relative;
    padding: 20px 0 30px;
}

.firmness-end {
    position: absolute;
    top: -2px;
    font-size: 13px;
    color: #17233f;
}

.firmness-soft {
    left: 0;
}

.firmness-firm {
    right: 0;
}

.firmness-track {
    position: relative;
    height: 2px;
    background: #cfd4df;
    margin: 0 4px;
}

.firmness-track::before,
.firmness-track::after,
.firmness-tick {
    content: "";
    position: absolute;
    top: -5px;
    width: 1.5px;
    height: 12px;
    background: #9aa2b2;
}

.firmness-track::before {
    left: 0;
}

.firmness-track::after {
    right: 0;
}

.firmness-tick {
    transform: translateX(-50%);
}

.firmness-dot {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #17233f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(23, 35, 63, 0.25);
    z-index: 2;
}

.firmness-result {
    position: absolute;
    top: 28px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #17233f;
    white-space: nowrap;
}

/* Multiple tension option version */

.firmness-box-options {
    padding: 0;
}

.tension-options {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 8px;
}

.tension-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f5f9;
    color: #17233f;
    font-size: 13px;
    font-weight: 700;
}

.tension-note {
    margin-top: 8px;
    font-size: 13px;
    color: #7d8494;
    text-align: center;
}

.mattressProductOptions {
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
    align-items: center;
    color: #1f2937;
    margin-bottom: 15px;
}

.categoryKeyPoints {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex-direction: column;
    align-items: center;
}

.delivery-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f5f7fb;
    color: #17233f;
    font-size: 13px;
    line-height: 1.35;
}

.delivery-note strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 1px;
}

.delivery-note span {
    display: block;
    color: #667085;
}

.delivery-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 4px;
    flex: 0 0 9px;
    background: #9aa2b2;
}

.delivery-note-in-stock {
    background: #eef8f1;
}

.delivery-note-in-stock .delivery-dot {
    background: #2f9e44;
}

.delivery-note-made-to-order {
    background: #fff7e8;
}

.delivery-note-made-to-order .delivery-dot {
    background: #d98c00;
}

.delivery-note-lead-time {
    background: #f5f7fb;
}

.delivery-note-lead-time .delivery-dot {
    background: #667085;
}

.product-message-slot {
    min-height: 22px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.product-message {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #16a34a;
}

/* colour variants */

.product-message.badge-blue {
    color: #2563eb;
}

.product-message.badge-orange {
    color: #ea580c;
}

.product-message.badge-dark {
    color: #17233f;
}

