﻿/* ---------- RESET / BASE ---------- */
.nb-hero, .nb-value-icons, .nb-offer-collection, .nb-shop-by-collection, .nb-product-grid, .nb-faq {
    font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
}

/* ---------- HERO ---------- */
.nb-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 500px;
    background: #efe7e1;
    color: #111;
}
.nb-hero__visual {
    position: absolute;
    inset: 0 0 0 40%;
    z-index: -3;
    background: url('/productImages/sofaHomePage.png') center right / cover no-repeat;
}

.nb-hero__inner {
    width: min(100%, 1280px);
    min-height: inherit;
    margin: 0 auto;
    padding: 64px 28px;
    display: flex;
    align-items: center;
}

.nb-hero__card {
    width: min(100%, 540px);
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid #ded3cc;
    border-radius: 28px;
    background: #fffdfc;
    box-shadow: 0 18px 50px rgba(31,26,22,.10);
}

.nb-hero__eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d9ccc4;
    border-radius: 999px;
    background: #f7f2ee;
    color: #6b5a50;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .055em;
    margin-bottom: 14px;
}

.nb-hero h1 {
    font-size: clamp(44px, 5.8vw, 76px);
    line-height: .94;
    letter-spacing: -.06em;
    font-weight: 950;
    margin: 0;
}

    .nb-hero h1 span {
        display: block;
        color: #6b5a50;
    }

.nb-hero__subtext {
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.5;
    font-weight: 650;
    margin: 18px 0 0;
    max-width: 48ch;
}

.nb-hero__note {
    width: fit-content;
    margin-top: 18px;
    padding: 11px 14px;
    border: 1px solid #ded3cc;
    border-radius: 14px;
    background: #f8f4f1;
    font-size: 14px;
    font-weight: 800;
}

.nb-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 23px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}

.nb-btn--primary {
    background: #6b5a50;
    color: #fff;
    box-shadow: 0 12px 28px rgba(83,68,59,.22);
}

.nb-btn--secondary {
    background: #fff;
    color: #111;
    border: 2px solid #6b5a50;
}

.nb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31,26,22,.16);
}

.nb-btn--primary:hover {
    background: #514237;
}

.nb-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
    color: #5e534d;
    font-size: 13px;
    font-weight: 800;
}

    .nb-hero__proof span {
        position: relative;
        padding-left: 18px;
    }

        .nb-hero__proof span::before {
            content: "✔";
            position: absolute;
            left: 0;
            color: #6b5a50;
            font-weight: 950;
        }

/* ---------- VALUE ICONS ---------- */
.nb-value-icons {
    background: #f8f6f4;
    padding: 40px 20px;
}

.nb-value-icons__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

    .nb-value-icons__list li {
        text-align: center;
    }

    .nb-value-icons__list h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 8px 0 4px;
    }

    .nb-value-icons__list p {
        font-size: 13px;
        color: #555;
        margin: 0;
    }

/* ---------- OFFER COLLECTION ---------- */
.nb-offer-collection {
    padding: 48px 20px;
    background: #fff;
}

.nb-offer-collection__header {
    text-align: center;
    margin-bottom: 32px;
}

    .nb-offer-collection__header h2 {
        font-size: clamp(32px, 4vw, 48px);
        font-weight: 900;
        letter-spacing: -.02em;
        margin: 8px 0;
    }

.nb-offer-collection__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.nb-offer-card {
    background: #faf8f6;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .2s;
}

    .nb-offer-card:hover {
        transform: translateY(-4px);
    }

.nb-offer-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nb-offer-tag {
    display: inline-block;
    background: #b8894f;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 12px 0 0 12px;
}

.nb-offer-card__media img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.nb-offer-card__body {
    padding: 16px;
}

    .nb-offer-card__body h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 8px;
    }

.nb-offer-card__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.nb-price-compare {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.nb-price {
    font-size: 20px;
    font-weight: 900;
    color: #111;
}

/* ---------- SHOP BY COLLECTION ---------- */
.nb-shop-by-collection {
    background: #f1efec;
    padding: 48px 20px;
    text-align: center;
}

    .nb-shop-by-collection h3 {
        font-size: 28px;
        font-weight: 900;
        margin-bottom: 24px;
    }

.nb-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.nb-collection-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: transform .2s;
}

    .nb-collection-card:hover {
        transform: scale(1.02);
    }

    .nb-collection-card img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .nb-collection-card span {
        display: block;
        padding: 12px 0;
        font-weight: 700;
        font-size: 14px;
    }

/* ---------- PRODUCT GRID (CAROUSEL) ---------- */
.nb-product-grid {
    padding: 48px 20px;
    background: #fff;
}

.nb-product-grid__header h2 {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 32px;
}

.nb-product-grid__slides {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.nb-product-card {
    flex: 0 0 260px;
    background: #faf8f6;
    border-radius: 16px;
    scroll-snap-align: start;
    overflow: hidden;
    transition: transform .2s;
}

    .nb-product-card:hover {
        transform: translateY(-4px);
    }

    .nb-product-card a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

.nb-product-card__image {
    position: relative;
}

    .nb-product-card__image img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

.nb-badge--sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
}

.nb-product-card__info {
    padding: 16px;
}

    .nb-product-card__info h4 {
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 8px;
    }

.nb-product-card__color-dots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

    .nb-product-card__color-dots .dot {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid rgba(0,0,0,.1);
    }

    .nb-product-card__color-dots .plus {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #222;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 900;
    }

.nb-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.nb-price-label {
    font-size: 12px;
    color: #888;
}

.nb-compare {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.nb-quick-add {
    display: block;
    width: 100%;
    padding: 10px;
    background: #222;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

    .nb-quick-add:hover {
        background: #444;
    }

/* ---------- FAQ ---------- */
.nb-faq {
    background: #181818;
    color: #fff;
    padding: 56px 20px;
}

.nb-faq__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

    .nb-faq__head h2 {
        font-size: clamp(42px, 4.4vw, 66px);
        line-height: .88;
        letter-spacing: -.06em;
        text-transform: uppercase;
        font-weight: 900;
        text-align: right;
    }

.nb-faq__desc {
    color: #c8c8c8;
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
}

.nb-faq__list {
    max-width: 1160px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.1);
}

    .nb-faq__list details {
        border-bottom: 1px solid rgba(255,255,255,.1);
        padding: 18px 0;
    }

    .nb-faq__list summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
        font-size: 15px;
    }

        .nb-faq__list summary::-webkit-details-marker {
            display: none;
        }

        .nb-faq__list summary::after {
            content: "+";
            width: 28px;
            height: 28px;
            min-width: 28px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,.16);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all .18s;
        }

    .nb-faq__list details[open] summary {
        color: #ff4fa3;
    }

        .nb-faq__list details[open] summary::after {
            content: "−";
            color: #ff4fa3;
            border-color: rgba(255,79,163,.45);
            background: rgba(255,79,163,.07);
        }

    .nb-faq__list p {
        padding-top: 12px;
        color: #c8c8c8;
        font-size: 13.5px;
        line-height: 1.6;
    }

.nb-faq__cta {
    max-width: 1160px;
    margin: 40px auto 0;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

    .nb-faq__cta p:first-child {
        font-size: 18px;
        font-weight: 700;
    }

    .nb-faq__cta p:last-child {
        font-size: 14px;
        color: #a0a0a0;
    }

.nb-btn--ghost {
    background: transparent;
    color: #d0d0d0;
    border: 1px solid rgba(255,255,255,.18);
}

    .nb-btn--ghost:hover {
        border-color: rgba(255,255,255,.38);
    }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .nb-hero {
        min-height: 640px;
        align-items: flex-end;
    }

    
        .nb-hero__visual {
            inset: 0 0 auto 0;
            height: 54%;
            background-position: center top;
            background-image: url('/productImages/sofaHomePage.png');
        }
    

    .nb-hero__inner {
        padding: 330px 16px 22px;
        align-items: flex-end;
    }

    .nb-hero__card {
        width: 100%;
        padding: 22px;
        border-radius: 22px;
    }

    .nb-hero h1 {
        font-size: clamp(38px, 11.6vw, 54px);
    }

    .nb-hero__buttons {
        grid-template-columns: 1fr;
    }

        .nb-hero__buttons .nb-btn {
            width: 100%;
        }

    .nb-faq__head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

        .nb-faq__head h2 {
            text-align: left;
            font-size: clamp(34px, 9vw, 52px);
        }

    .nb-faq__cta {
        flex-direction: column;
    }

        .nb-faq__cta div:last-child {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
        }

        .nb-faq__cta .nb-btn {
            width: 100%;
            text-align: center;
        }

    .nb-offer-collection__grid {
        grid-template-columns: 1fr 1fr;
    }

    .nb-collection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nb-value-icons__list {
        grid-template-columns: 1fr 1fr;
    }

    .nb-product-card {
        flex: 0 0 180px;
    }
}

@media (max-width: 480px) {
    .nb-offer-collection__grid {
        grid-template-columns: 1fr;
    }

    .nb-value-icons__list {
        grid-template-columns: 1fr 1fr;
    }

    .nb-collection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nb-product-card {
        flex: 0 0 160px;
    }
}
/* ===== PRODUCT DETAIL PAGE ===== */
.nb-product-detail {
    padding: 40px 20px;
    background: #fff;
}

.nb-product-detail__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.nb-product-detail__gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}

.nb-product-detail__main-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nb-product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nb-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

    .nb-breadcrumb a {
        color: #888;
        text-decoration: none;
    }

        .nb-breadcrumb a:hover {
            color: #181818;
        }

    .nb-breadcrumb .current {
        color: #181818;
        font-weight: 600;
    }

.nb-product-detail__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
}

.nb-product-detail__short-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.nb-product-detail__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.nb-product-detail__price {
    font-size: 26px;
    font-weight: 900;
    color: #181818;
}

.nb-product-detail__compare-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.nb-product-detail__savings {
    background: #e8f0e0;
    color: #2d6a4f;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.nb-product-detail__cart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.nb-product-detail__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nb-product-detail__quantity label {
        font-weight: 600;
        font-size: 14px;
    }

    .nb-product-detail__quantity input {
        width: 70px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 6px;
        text-align: center;
        font-size: 16px;
    }

.nb-btn--full {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

.nb-product-detail__stock {
    font-size: 14px;
    font-weight: 600;
}

    .nb-product-detail__stock .in-stock {
        color: #2d6a4f;
    }

    .nb-product-detail__stock .out-of-stock {
        color: #d32f2f;
    }

.nb-product-detail__meta {
    font-size: 14px;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 4px;
}

    .nb-product-detail__meta p {
        margin: 4px 0;
    }

.nb-product-detail__accordion {
    margin-top: 8px;
    border-top: 1px solid #eee;
}

    .nb-product-detail__accordion details {
        border-bottom: 1px solid #eee;
        padding: 12px 0;
    }

    .nb-product-detail__accordion summary {
        cursor: pointer;
        font-weight: 700;
        font-size: 15px;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .nb-product-detail__accordion summary::-webkit-details-marker {
            display: none;
        }

        .nb-product-detail__accordion summary::after {
            content: "+";
            font-size: 20px;
            color: #888;
            transition: transform 0.2s;
        }

    .nb-product-detail__accordion details[open] summary::after {
        content: "−";
    }

.nb-product-detail__accordion-content {
    padding-top: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .nb-product-detail__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nb-product-detail__gallery {
        position: static;
    }

    .nb-product-detail__title {
        font-size: 24px;
    }

    .nb-product-detail__price {
        font-size: 22px;
    }

    .nb-product-detail__cart-form {
        flex-direction: column;
        align-items: stretch;
    }

    .nb-product-detail__quantity {
        justify-content: center;
    }
}

/* ===== PRODUCT OPTIONS (Size, Color, Storage) ===== */
.nb-option-group {
    margin-bottom: 16px;
}

.nb-option-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #181818;
}

    .nb-option-label span {
        font-weight: 400;
        color: #555;
    }

.nb-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Regular option buttons (Size, Storage) */
.nb-option-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

    .nb-option-btn:hover {
        border-color: #999;
        background: #f5f5f5;
    }

    .nb-option-btn.active {
        border-color: #181818;
        background: #181818;
        color: #fff;
    }

/* Color swatch buttons */
.nb-swatch-btn {
    padding: 4px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #ddd;
}

    .nb-swatch-btn:hover {
        border-color: #999;
    }

    .nb-swatch-btn.active {
        border-color: #181818;
        border-width: 3px;
    }

.nb-swatch-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== MATTRESS UPSELL ===== */
.nb-mattress-upsell {
    background: #f4f7f2;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e0e8dc;
    margin: 8px 0;
}

    .nb-mattress-upsell label {
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #181818;
    }

    .nb-mattress-upsell input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #181818;
        cursor: pointer;
    }

/* ===== THUMBNAIL GALLERY ===== */
.nb-product-detail__thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.nb-product-detail__thumbnail-item {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

    .nb-product-detail__thumbnail-item:hover {
        border-color: #181818;
    }

    .nb-product-detail__thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nb-option-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nb-swatch-btn {
        width: 36px;
        height: 36px;
    }

    .nb-swatch-dot {
        width: 26px;
        height: 26px;
    }

    .nb-product-detail__thumbnail-item {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .nb-option-buttons {
        gap: 6px;
    }

    .nb-option-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .nb-swatch-btn {
        width: 32px;
        height: 32px;
    }

    .nb-swatch-dot {
        width: 22px;
        height: 22px;
    }

    .nb-product-detail__thumbnail-item {
        width: 50px;
        height: 50px;
    }
}


/* ==========================================
   SPECIAL OFFER SECTION – EYE-CATCHING STYLE
   ========================================== */
.nb-offer-collection {
    padding: 60px 20px;
    background: linear-gradient(145deg, #fdf6f0, #fce9d6); /* Warm gradient */
    border-radius: 24px;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

    /* Add a subtle decorative blob */
    .nb-offer-collection::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 79, 163, 0.06);
        z-index: 0;
        pointer-events: none;
    }

    .nb-offer-collection::after {
        content: "";
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: rgba(184, 137, 79, 0.08);
        z-index: 0;
        pointer-events: none;
    }

/* Header */
.nb-offer-collection__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

    .nb-offer-collection__header .nb-eyebrow {
        display: inline-block;
        background: #b8894f;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 6px 16px;
        border-radius: 40px;
        margin-bottom: 12px;
    }

    .nb-offer-collection__header h2 {
        font-size: clamp(34px, 5vw, 52px);
        font-weight: 900;
        color: #1a1a1a;
        margin: 0 0 10px;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

        .nb-offer-collection__header h2 span {
            color: #b8894f;
        }

    .nb-offer-collection__header .nb-subheading {
        font-size: 18px;
        color: #4a4a4a;
        max-width: 600px;
        margin: 0 auto 20px;
        line-height: 1.5;
    }

    /* CTA Button */
    .nb-offer-collection__header .nb-btn--primary {
        background: #b8894f;
        color: #fff;
        border: none;
        padding: 14px 32px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(184, 137, 79, 0.35);
    }

        .nb-offer-collection__header .nb-btn--primary:hover {
            background: #a0743f;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(184, 137, 79, 0.45);
        }

/* Grid cards */
.nb-offer-collection__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nb-offer-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(184, 137, 79, 0.15);
    position: relative;
}

    .nb-offer-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(184, 137, 79, 0.2);
        border-color: #b8894f;
    }

/* Card tag */
.nb-offer-tag {
    display: inline-block;
    background: #b8894f;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 30px;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(184, 137, 79, 0.3);
}

/* Image */
.nb-offer-card__media img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nb-offer-card:hover .nb-offer-card__media img {
    transform: scale(1.04);
}

/* Body */
.nb-offer-card__body {
    padding: 18px 16px 20px;
}

    .nb-offer-card__body h3 {
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 8px;
        line-height: 1.3;
    }

.nb-offer-card__prices {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.nb-price-compare {
    text-decoration: line-through;
    color: #999;
    font-size: 15px;
}

.nb-price {
    font-size: 22px;
    font-weight: 900;
    color: #b8894f;
}

/* Responsive */
@media (max-width: 768px) {
    .nb-offer-collection {
        padding: 40px 12px;
        border-radius: 16px;
        margin: 0 4px;
    }

    .nb-offer-collection__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .nb-offer-card__body h3 {
        font-size: 15px;
    }

    .nb-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nb-offer-collection__grid {
        grid-template-columns: 1fr;
    }


}

/* ---------- Product Listing Page ---------- */
.product-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

    .filter-btn.active,
    .filter-btn:hover {
        background: #181818;
        color: #fff;
    }

/* Product Rows */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-row {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .product-row:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    }

.product-image {
    position: relative;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e63946;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-details {
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .product-details h2 {
        font-size: 26px;
        font-weight: 800;
        margin: 0 0 8px;
        color: #181818;
    }

    .product-details .description {
        font-size: 15px;
        color: #555;
        line-height: 1.6;
        margin: 0 0 14px;
    }

.variant-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

    .variant-info .size,
    .variant-info .storage {
        background: #f0f0f0;
        padding: 2px 12px;
        border-radius: 20px;
    }

    .variant-info .color {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1px solid #ddd;
    }

.price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.compare-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.current-price {
    font-size: 26px;
    font-weight: 900;
    color: #181818;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .actions .btn {
        padding: 10px 24px;
        border-radius: 40px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
    }

    .actions .btn-outline {
        background: transparent;
        border: 2px solid #181818;
        color: #181818;
    }

        .actions .btn-outline:hover {
            background: #181818;
            color: #fff;
        }

    .actions .btn-primary {
        background: #181818;
        border: 2px solid #181818;
        color: #fff;
    }

        .actions .btn-primary:hover {
            background: #333;
            border-color: #333;
        }

/* Responsive */
@media (max-width: 768px) {
    .product-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-details {
        padding: 20px;
    }

        .product-details h2 {
            font-size: 22px;
        }

    .current-price {
        font-size: 22px;
    }
}

.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #181818;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .floating-cart:hover {
        background: #333;
    }

/* ===== REVIEWS ===== */
.nb-reviews-section {
    margin-top: 40px;
    padding: 30px 20px;
    background: #f9f8f6;
    border-radius: 16px;
}

.nb-reviews-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .nb-reviews-header h3 {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
    }

.nb-reviews-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nb-stars {
    color: #f5b342;
    font-size: 18px;
    letter-spacing: 2px;
}

.nb-average {
    font-size: 20px;
    font-weight: 700;
}

.nb-count {
    color: #666;
    font-size: 14px;
}

.nb-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nb-review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.nb-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .nb-review-header strong {
        font-weight: 700;
        font-size: 16px;
    }

.nb-review-stars {
    color: #f5b342;
    font-size: 14px;
}

.nb-review-date {
    color: #999;
    font-size: 13px;
    margin-left: auto;
}

.nb-review-comment {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.nb-no-reviews {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

.nb-login-to-review {
    margin-top: 16px;
    color: #666;
}

    .nb-login-to-review a {
        color: #181818;
        font-weight: 700;
        text-decoration: underline;
    }

/* Review Form */
.nb-review-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e3e0;
}

    .nb-review-form h4 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 16px;
    }

.nb-form-group {
    margin-bottom: 16px;
}

    .nb-form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .nb-form-group select,
    .nb-form-group textarea {
        width: 100%;
        max-width: 400px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        font-family: inherit;
    }

        .nb-form-group select:focus,
        .nb-form-group textarea:focus {
            outline: none;
            border-color: #181818;
            box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
        }

@media (max-width: 768px) {
    .nb-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nb-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .nb-review-date {
        margin-left: 0;
    }
}

/* ===== HOME REVIEWS ===== */
.nb-home-reviews {
    padding: 60px 20px;
    background: #f9f8f6;
}

    .nb-home-reviews .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

        .nb-home-reviews .section-header h2 {
            font-size: 32px;
            font-weight: 900;
            margin: 0;
        }

        .nb-home-reviews .section-header p {
            color: #666;
            font-size: 16px;
        }

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .review-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.review-stars {
    color: #f5b342;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-comment {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

    .review-author strong {
        color: #181818;
    }

    .review-author a {
        color: #181818;
        text-decoration: underline;
    }

        .review-author a:hover {
            color: #6b5a50;
        }

.review-date {
    color: #999;
    font-size: 13px;
    margin-left: auto;
}

@media (max-width: 600px) {
    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .review-date {
        margin-left: 0;
    }
}

.navbar {
    z-index: 1030 !important; /* higher than floating elements */
}
.navbar {
    background-color: #f8f9fa !important; /* Bootstrap light */
}
.text-danger {
    display: block !important;
}
.navbar-brand img {
    height: 45px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px; /* Smaller on mobile */
    }
}

/* ========== COLOR SWATCHES ========== */
.nb-option-group {
    margin-bottom: 16px;
}

.nb-option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}

.nb-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nb-option-btn.nb-swatch-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #ddd;
    padding: 3px;
    overflow: hidden;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

    .nb-option-btn.nb-swatch-btn:hover {
        transform: scale(1.05);
        border-color: #aaa;
    }

    .nb-option-btn.nb-swatch-btn.active {
        border-color: #0a5d5d;
        box-shadow: 0 0 0 2px rgba(10, 93, 93, 0.3);
    }

    .nb-option-btn.nb-swatch-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

.nb-swatch-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Tooltip */
.swatch-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    font-weight: 400;
    letter-spacing: 0.3px;
}

    .swatch-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: rgba(0, 0, 0, 0.85);
    }


/* ─────────── Reset & base ─────────── */
.product-listing {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: 'Inter', sans-serif;
    color: #211d1a;
    background: #fbf9f6;
}

/* ─────────── Category filter (pill style) ─────────── */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    background: #e8e4de;
    color: #211d1a;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

    .filter-btn.active,
    .filter-btn:hover {
        background: #a9772f;
        color: #fff;
    }

/* ─────────── Empty state ─────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

    .empty-state h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .empty-state p {
        color: #6b6259;
        margin-bottom: 20px;
    }

/* ─────────── Product grid ─────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px 16px;
    container-type: inline-size;
}

/* ─────────── Individual product card ─────────── */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #b8b0a6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

    .product-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

/* Entire card is a clickable link (for accessibility) */
.product-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .product-card__link .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

/* ─────────── Image area ─────────── */
.product-card__image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f2ed;
    overflow: hidden;
}

    .product-card__image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
    }

.product-card:hover .product-card__image-wrapper img {
    transform: scale(1.03);
}

/* Sale badge */
.product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3c4a3e;
    color: #fbf9f6;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 12px 3px 8px;
    border-radius: 0;
    letter-spacing: 0.06em;
    z-index: 2;
}

/* ─────────── Content area ─────────── */
.product-card__content {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Rating (optional) */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b6259;
}

    .product-card__rating .stars {
        color: #e8b520;
        letter-spacing: 1px;
    }

.rating-count {
    font-size: 0.7rem;
}

/* Title */
.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #211d1a;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #a9772f;
    margin-top: 2px;
}

    .product-card__price .compare-price {
        font-size: 0.9rem;
        color: #6b6259;
        text-decoration: line-through;
        font-weight: 400;
    }

/* Variant info (size / storage) */
.product-card__variant-info {
    font-size: 0.75rem;
    color: #6b6259;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* Action button – appears on hover (like NiceBeds) */
.product-card__action {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #fbf9f6;
    color: #211d1a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    z-index: 2;
}

    .product-card__action:hover {
        background: #a9772f;
        color: #fff;
        border-color: #a9772f;
    }

/* ─────────── Responsive tweaks ─────────── */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card__content {
        padding: 10px;
    }

    .product-card__title {
        font-size: 0.9rem;
    }

    .product-card__price {
        font-size: 1rem;
    }

    .product-card__action {
        font-size: 0.8rem;
        padding: 8px;
    }
}

@media (max-width: 420px) {
    .product-grid {
        gap: 8px;
    }

    .product-card__content {
        padding: 8px;
    }
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    animation: lightboxFadeIn 0.25s;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper {
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

    .lightbox-image-wrapper img {
        max-width: 90vw;
        max-height: 85vh;
        object-fit: contain;
        transition: transform 0.1s ease;
        transform: scale(1);
    }

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
    font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    user-select: none;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(0,0,0,0.8);
    }

.lightbox-controls {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    color: #fff;
}

    .lightbox-controls button {
        background: rgba(255,255,255,0.2);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.4);
        padding: 6px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
    }

        .lightbox-controls button:hover {
            background: rgba(255,255,255,0.3);
        }

.lightbox-counter {
    color: #fff;
    margin-top: 8px;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 6px 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }
}