﻿.section-space {
    padding: 85px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
}

    .section-heading h2,
    .section-heading-row h2 {
        margin-bottom: 12px;
        color: #161616;
        font-size: clamp(1.9rem, 4vw, 2.7rem);
        font-weight: 700;
    }

    .section-heading p,
    .section-heading-row p {
        margin-bottom: 0;
        color: #737373;
        line-height: 1.8;
    }

.section-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    color: #c51c2c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Service highlights */

.service-highlights {
    position: relative;
    z-index: 5;
    margin-top: -35px;
}

.service-highlight-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.09);
}

.service-highlight-item {
    display: flex;
    min-height: 115px;
    padding: 26px;
    align-items: center;
    gap: 16px;
    border-right: 1px solid #ededed;
}

    .service-highlight-item:last-child {
        border-right: 0;
    }

.service-icon {
    display: inline-flex;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #c51c2c;
    background-color: rgba(197, 28, 44, 0.09);
    border-radius: 50%;
    font-size: 1.25rem;
}

/* Categories */

/* =========================
   HOME CATEGORY CARDS
========================= */

.category-section {
    background-color: #ffffff;
}

.category-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 355px;
    padding: 38px 28px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .category-card::before {
        position: absolute;
        top: -58px;
        right: -58px;
        width: 160px;
        height: 160px;
        content: "";
        background-color: rgba(220, 53, 69, 0.06);
        border-radius: 50%;
    }

    .category-card:hover {
        transform: translateY(-8px);
        border-color: rgba(220, 53, 69, 0.24);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    }

.category-icon {
    position: relative;
    z-index: 2;
    display: flex;
    width: 96px;
    height: 96px;
    margin: 0 auto 25px;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

    .category-icon i {
        display: inline-block;
        color: inherit;
        font-size: 40px !important;
        line-height: 1;
    }

.category-card:hover .category-icon {
    color: #ffffff;
    background-color: #dc3545;
    transform: scale(1.06);
}

.category-card h5 {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
    color: #171717;
    font-size: 1.7rem;
    font-weight: 700;
}

.category-card p {
    position: relative;
    z-index: 2;
    min-height: 52px;
    margin-bottom: 30px;
    color: #737373;
    font-size: 1rem;
    line-height: 1.7;
}

.category-explore {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-size: 1rem;
    font-weight: 600;
}

.category-card:hover .category-explore i {
    transform: translateX(5px);
}

.category-explore i {
    transition: transform 0.25s ease;
}
/* =========================================
   PROMOTION BANNER
========================================= */

.promotion-banner {
    position: relative;
    overflow: hidden;
    padding: 52px 60px;
    color: #ffffff;
    background: radial-gradient( circle at 92% 8%, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 180px, transparent 181px ), linear-gradient( 120deg, #191919 0%, #292929 63%, #642f35 100% );
    border-radius: 28px;
}

    .promotion-banner .row {
        min-height: 390px;
    }

.promotion-small-title {
    display: inline-block;
    margin-bottom: 18px;
    color: #ff7d88;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.promotion-banner h2 {
    max-width: 680px;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: clamp(2.4rem, 3.7vw, 3.7rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.promotion-banner p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.8;
}

.promotion-banner .btn {
    padding: 13px 26px;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.promotion-image {
    display: block;
    width: 100%;
    max-width: 540px;
    max-height: 340px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 28px rgba(0, 0, 0, 0.35));
}

/* =========================================
   WHY CHOOSE US
========================================= */

.why-section {
    background-color: #ffffff;
}

.why-image-wrapper {
    position: relative;
}

.why-image {
    display: block;
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: 26px;
}

.why-experience-card {
    position: absolute;
    right: -24px;
    bottom: 42px;
    display: flex;
    min-width: 235px;
    padding: 30px 32px;
    flex-direction: column;
    color: #ffffff;
    background-color: #cf1e31;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

    .why-experience-card strong {
        margin-bottom: 8px;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.1;
    }

    .why-experience-card span {
        font-size: 0.95rem;
        line-height: 1.5;
    }

.why-title {
    max-width: 720px;
    margin-bottom: 24px;
    color: #202124;
    font-size: clamp(2.5rem, 4vw, 3.7rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.14;
}

.why-description {
    max-width: 720px;
    margin-bottom: 36px;
    color: #737373;
    font-size: 1.05rem;
    line-height: 1.8;
}

.why-feature {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-start;
    gap: 20px;
}

    .why-feature:last-child {
        margin-bottom: 0;
    }

.why-feature-icon {
    display: flex;
    width: 66px;
    height: 66px;
    min-width: 66px;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    font-size: 27px;
}

.why-feature h5 {
    margin: 2px 0 7px;
    color: #171717;
    font-size: 1.12rem;
    font-weight: 700;
}

.why-feature p {
    margin: 0;
    color: #747474;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================================================
   PREMIUM CUSTOMER REVIEW CAROUSEL
   ========================================================= */

.review-slider {
    --visible-cards: 3;
    --review-gap: 24px;
    position: relative;
    margin-top: 2.5rem;
    padding: 0 42px 48px;
}

.review-slider-viewport {
    overflow: hidden;
    padding: 12px 0 24px;
}

.review-slider-track {
    display: flex;
    align-items: stretch;
    gap: var(--review-gap);
    transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.review-slide {
    display: flex;
    flex: 0 0 calc( (100% - ((var(--visible-cards) - 1) * var(--review-gap))) / var(--visible-cards) );
    min-width: 0;
}

/* Equal-height card */

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 510px;
    overflow: hidden;
    border: 1px solid rgba(30, 30, 30, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(32, 32, 32, .09);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .review-card::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient( 90deg, #b22222, #dc3545, #ff9818 );
        content: "";
    }

    .review-card:hover {
        transform: translateY(-7px);
        border-color: rgba(178, 34, 34, .2);
        box-shadow: 0 28px 65px rgba(32, 32, 32, .15);
    }

.review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2rem 0;
}

.review-stars {
    display: flex;
    gap: .3rem;
    color: #ff9818;
    font-size: 1.25rem;
}

.review-quote-icon {
    color: rgba(178, 34, 34, .11);
    font-size: 3rem;
    line-height: 1;
}

.review-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 2rem;
}

.review-product {
    margin-bottom: .45rem;
    color: #b22222;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.review-title {
    margin-bottom: .85rem;
    color: #222;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.35;
}

.review-quote {
    display: -webkit-box;
    min-height: 9rem;
    margin: 0;
    overflow: hidden;
    color: #62656b;
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.review-featured-badge {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    border: 1px solid rgba(178, 34, 34, .18);
    border-radius: 999px;
    background: #fff4f4;
    color: #b22222;
    font-size: .72rem;
    font-weight: 700;
}

.review-admin-reply {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid #c72727;
    border-radius: 0 14px 14px 0;
    background: #faf7f2;
}

.review-reply-heading {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    color: #bd2525;
    font-size: .84rem;
    font-weight: 700;
}

.review-reply-text {
    color: #6b6b6b;
    font-size: .88rem;
    line-height: 1.6;
}

.review-card-footer {
    margin: 0 2rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(30, 30, 30, .08);
}

.review-customer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

.review-avatar-image {
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(20, 20, 20, .16);
}

.review-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e21d38, #a60f25);
    color: #fff;
    box-shadow: 0 10px 24px rgba(178, 34, 34, .22);
    font-size: 1.5rem;
    font-weight: 800;
}

.review-customer-info {
    min-width: 0;
}

.review-name {
    overflow: hidden;
    color: #202020;
    font-size: 1rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-role {
    margin-top: .2rem;
    font-size: .8rem;
}

.verified-badge,
.customer-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 650;
}

.verified-badge {
    color: #198754;
}

.customer-badge {
    color: #777;
}

.review-date {
    margin-top: .25rem;
    color: #999;
    font-size: .73rem;
}

/* Controls */

.review-slider-button {
    position: absolute;
    z-index: 10;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #c62626;
    box-shadow: 0 12px 32px rgba(30, 30, 30, .15);
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

    .review-slider-button:hover {
        transform: translateY(-50%) scale(1.06);
        background: #b22222;
        color: #fff;
    }

.review-slider-prev {
    left: -5px;
}

.review-slider-next {
    right: -5px;
}

/* Dots */

.review-slider-dots {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.review-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c7c7c7;
    transition: width .3s ease, border-radius .3s ease, background-color .3s ease;
}

    .review-slider-dot.active {
        width: 28px;
        border-radius: 999px;
        background: #b22222;
    }

/* Tablet: 2 cards */

@media (max-width: 991.98px) {
    .review-slider {
        --visible-cards: 2;
    }
}

/* Mobile: 1 card */

@media (max-width: 767.98px) {
    .review-slider {
        --visible-cards: 1;
        padding-right: 0;
        padding-left: 0;
    }

    .review-slider-button {
        display: none;
    }

    .review-card {
        min-height: 490px;
    }
}
/* =========================================================
   REVIEW FOOTER
   ========================================================= */

.review-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 2rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(30, 30, 30, 0.08);
}

.review-customer {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.review-avatar {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

.review-avatar-image {
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(20, 20, 20, 0.16);
}

.review-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, #e21d38, #a60f25 );
    color: #fff;
    box-shadow: 0 10px 24px rgba(178, 34, 34, 0.22);
    font-size: 1.5rem;
    font-weight: 800;
}

.review-customer-info {
    min-width: 0;
}

.review-name {
    overflow: hidden;
    color: #1f1f1f;
    font-size: 1rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-role {
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.verified-badge,
.customer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.verified-badge {
    color: #198754;
}

.customer-badge {
    color: #777;
}

.review-date {
    margin-top: 0.25rem;
    color: #9a9a9a;
    font-size: 0.72rem;
}

.review-helpful {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.35rem;
    color: #777;
    font-size: 0.78rem;
}

    .review-helpful i {
        color: #b22222;
    }

/* =========================================================
   CAROUSEL CONTROLS
   ========================================================= */

.review-carousel-control {
    top: 50%;
    bottom: auto;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(25, 25, 25, 0.15);
    opacity: 1;
}

    .review-carousel-control.carousel-control-prev {
        left: 0;
    }

    .review-carousel-control.carousel-control-next {
        right: 0;
    }

.review-control-circle {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #b22222;
    font-size: 1.1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.review-carousel-control:hover .review-control-circle {
    background: #b22222;
    color: #fff;
}

.review-carousel-indicators {
    bottom: 0;
    gap: 0.4rem;
    margin-bottom: 0;
}

    .review-carousel-indicators [data-bs-target] {
        width: 9px;
        height: 9px;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background-color: #c4c4c4;
        opacity: 1;
        transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    }

    .review-carousel-indicators .active {
        width: 28px;
        border-radius: 999px;
        background-color: #b22222;
    }

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .premium-review-carousel {
        padding-right: 0;
        padding-left: 0;
    }

    .review-slide-item {
        padding: 0 0.25rem;
    }

    .review-card {
        min-height: 480px;
    }

    .review-card-top {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .review-card-content {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .review-card-footer {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }

    .review-carousel-control {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .review-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-helpful {
        margin-left: 74px;
    }
}
/* =========================================
   SHOP MATTRESSES BY SIZE
========================================= */

.mattress-size-section {
    background-color: #fffdfb;
}

.size-card {
    display: flex;
    min-height: 210px;
    height: 100%;
    padding: 32px 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #161616;
    background-color: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .size-card:hover {
        color: #161616;
        border-color: rgba(220, 53, 69, 0.28);
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
        text-decoration: none;
        transform: translateY(-7px);
    }

.size-icon {
    display: flex;
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.09);
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

    .size-icon i {
        font-size: 34px;
        line-height: 1;
    }

.size-card:hover .size-icon {
    color: #ffffff;
    background-color: #dc3545;
    transform: scale(1.07);
}

.size-card strong {
    display: block;
    margin-bottom: 9px;
    font-size: 1.15rem;
    font-weight: 700;
}

.size-card small {
    display: block;
    color: #7b7b7b;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* =========================================
   Sleep 
========================================= */

.sleep-help-section {
    padding: 4.5rem 0;
    background: #fff;
}

.sleep-help-card {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 4rem;
    border-radius: 24px;
    background: radial-gradient( circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 30% ), linear-gradient( 135deg, #d51d32 0%, #b80f25 100% );
    box-shadow: 0 24px 55px rgba(178, 34, 34, 0.18);
}

    .sleep-help-card::before {
        position: absolute;
        top: -80px;
        right: -50px;
        width: 240px;
        height: 240px;
        border: 35px solid rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        content: "";
    }

.sleep-help-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.sleep-help-text {
    max-width: 720px;
}

.sleep-help-eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sleep-help-text h2 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.sleep-help-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 1rem;
    min-width: 275px;
}

.sleep-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 60px;
    padding: 0.9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

    .sleep-help-btn i {
        font-size: 1.3rem;
    }

    .sleep-help-btn:hover {
        transform: translateY(-3px);
    }

.sleep-help-btn-primary {
    background: #fff;
    color: #171717;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

    .sleep-help-btn-primary:hover {
        background: #fbf7f0;
        color: #b22222;
    }

.sleep-help-btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
}

    .sleep-help-btn-outline:hover {
        border-color: #fff;
        background: #fff;
        color: #b22222;
    }

/* Tablet */

@media (max-width: 991.98px) {
    .sleep-help-card {
        padding: 2.75rem 2.5rem;
    }

    .sleep-help-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 2rem;
    }

    .sleep-help-actions {
        width: 100%;
        min-width: 0;
        flex-direction: row;
    }

    .sleep-help-btn {
        flex: 1;
    }
}

/* Mobile */

@media (max-width: 575.98px) {
    .sleep-help-section {
        padding: 3rem 0;
    }

    .sleep-help-card {
        padding: 2.25rem 1.5rem;
        border-radius: 18px;
    }

    .sleep-help-text h2 {
        font-size: 2rem;
    }

    .sleep-help-actions {
        flex-direction: column;
    }

    .sleep-help-btn {
        width: 100%;
    }
}