/* Noara home + catalog layouts */

.nr-wrap {
    width: min(1200px, calc(100% - 1.5rem));
    margin-inline: auto;
}

.nr-hero {
    margin: 0;
}

.nr-hero__slider {
    position: relative;
}

.nr-hero__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nr-hero__track::-webkit-scrollbar {
    display: none;
}

.nr-hero__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
    overflow: hidden;
    background: #efe6e0;
    min-height: 180px;
    color: inherit;
    text-decoration: none;
}

.nr-hero__slide img {
    display: block;
    width: 100%;
    height: clamp(180px, 42vw, 420px);
    object-fit: cover;
}

.nr-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--nr-ink);
    box-shadow: 0 4px 14px rgba(43, 36, 32, .12);
    cursor: pointer;
}

.nr-hero__nav--prev {
    inset-inline-start: .75rem;
}

.nr-hero__nav--next {
    inset-inline-end: .75rem;
}

.nr-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .7rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: .35rem;
    pointer-events: none;
}

.nr-hero__dots .carousel-dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.nr-hero__dots .carousel-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

.nr-hero__copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(43, 36, 32, .55));
    color: #fff;
}

.nr-hero__copy h1,
.nr-hero__copy strong {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 800;
    margin: 0 0 .35rem;
}

.nr-hero__kicker {
    display: inline-block;
    font-size: .78rem;
    opacity: .9;
    margin-bottom: .25rem;
}

/* MelShine promo mosaic: 3 columns (square | tall | stacked halfs), fluid width */
.nr-promos-wrap {
    width: 100%;
    max-width: none;
    margin: 1rem 0 0;
    padding: 0;
}

.nr-promos {
    display: grid;
    /* Mobile: square + tall side-by-side; fulls underneath */
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: .35rem;
    direction: ltr; /* MelShine physical order: square, tall, stacked fulls */
}

.nr-promo {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0; /* MelShine: sharp mosaic tiles */
    background: #efe6e0;
    color: #fff;
    text-decoration: none;
    min-width: 0;
    min-height: 0;
}

.nr-promo:hover {
    color: #fff;
}

.nr-promo__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nr-promo--square-left {
    grid-column: 1;
    aspect-ratio: 1 / 1;
}

.nr-promo--square-right {
    grid-column: 2;
    aspect-ratio: 2 / 3;
}

.nr-promo--full {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
}

.nr-promo__copy {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: .7rem .85rem .85rem;
    background: linear-gradient(transparent, rgba(43, 36, 32, .55));
    direction: rtl;
    text-align: right;
}

.nr-promo__kicker {
    display: block;
    font-size: .72rem;
    opacity: .9;
    margin-bottom: .15rem;
}

.nr-promo__title {
    display: block;
    font-size: clamp(.9rem, 2.6vw, 1.15rem);
    font-weight: 800;
    line-height: 1.3;
}

.nr-promo__text {
    display: block;
    margin-top: .2rem;
    font-size: .78rem;
    opacity: .92;
}

.nr-promo__link {
    display: inline-block;
    margin-top: .35rem;
    font-size: .78rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .nr-promos-wrap {
        margin-top: 1.1rem;
    }

    .nr-promos {
        /* MelShine desktop: square | tall | two stacked halfs — ~3:2:3, fluid */
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr);
        grid-template-rows: auto auto;
        gap: 0;
    }

    .nr-promo--square-left {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: 1 / 1;
    }

    .nr-promo--square-right {
        grid-column: 2;
        grid-row: 1 / span 2;
        /* 2fr width × 2:3 ≈ same height as 3fr square */
        aspect-ratio: 2 / 3;
    }

    .nr-promo--full {
        grid-column: 3;
        /* two 2:1 tiles stack to the square height */
        aspect-ratio: 2 / 1;
    }
}

/* Search pill retired — MelShine uses icon-only search in the header actions */

.nr-drawer-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .75rem 1rem;
    width: calc(100% - 2rem);
    padding: .7rem .9rem;
    border: 1px solid var(--nr-line);
    border-radius: 12px;
    background: #fff;
    color: var(--nr-ink-2);
    cursor: pointer;
    font-weight: 600;
}

.nr-brands {
    margin: 1.4rem 0 0;
}

.nr-brands__track {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding: .15rem 0 .35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.nr-brands__item {
    flex: none;
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    min-width: 104px;
    height: 72px;
    padding: .45rem .7rem;
    border: 1px solid var(--nr-line);
    border-radius: var(--nr-radius-sm);
    background: var(--nr-surface);
    text-decoration: none;
    color: var(--nr-ink-2);
    font-size: .8rem;
    font-weight: 700;
}

.nr-brands__item img {
    max-width: 88px;
    max-height: 52px;
    object-fit: contain;
}

.nr-catalog__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .35rem 0 1rem;
}

.nr-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--nr-line);
    background: var(--nr-surface);
    border-radius: 999px;
    padding: .45rem .9rem;
    font-weight: 700;
    color: var(--nr-ink);
    cursor: pointer;
}

.nr-catalog__layout {
    display: grid;
    gap: 1.25rem;
}

.nr-catalog__filters--desk {
    display: none;
}

@media (min-width: 992px) {
    .nr-catalog__layout {
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: start;
    }

    .nr-catalog__filters--desk {
        display: block;
        position: sticky;
        top: 5.5rem;
        padding: 1rem;
        border: 1px solid var(--nr-line);
        border-radius: var(--nr-radius);
        background: var(--nr-surface);
    }

    .nr-filter-btn {
        display: none;
    }

    .nr-catalog__filters--desk .pf-panel__close {
        display: none;
    }
}

.nr-filter-drawer {
    max-width: 360px;
}

.nr-filter-drawer__body {
    padding: 1rem;
}

.nr-filter-drawer .pf-panel__close {
    display: inline-block;
}

.theme-noara .search-drawer__submit,
.theme-noara .pf-btn--primary {
    background: var(--nr-primary);
    border-color: var(--nr-primary);
}

.nr-benefits {
    margin: 1rem 0 0;
}

.nr-benefits ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nr-benefits ul {
        grid-template-columns: repeat(6, 1fr);
    }
}

.nr-benefits a,
.nr-benefits span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .75rem .4rem;
    background: var(--nr-surface);
    border: 1px solid var(--nr-line);
    border-radius: var(--nr-radius-sm);
    text-decoration: none;
    color: var(--nr-ink-2);
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    min-height: 88px;
}

.nr-benefits a i,
.nr-benefits span i {
    font-size: 1.15rem;
    color: var(--nr-primary);
}

.nr-section {
    margin: 1.75rem 0 0;
}

.nr-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.nr-section__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nr-ink);
}

.nr-section__head a {
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.nr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 768px) {
    .nr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1100px) {
    .nr-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* product card — MelShine-like */
.nr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--nr-surface);
    border: 1px solid var(--nr-line);
    border-radius: var(--nr-radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.nr-card:hover {
    box-shadow: 0 10px 28px rgba(43, 36, 32, .08);
    transform: translateY(-2px);
}

.nr-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f3eeea;
    overflow: hidden;
}

.nr-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nr-card__ph {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--nr-primary);
    font-size: 2rem;
}

.nr-card__off {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 2;
    min-width: 42px;
    padding: .28rem .4rem;
    border-radius: 8px;
    background: var(--nr-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}

.nr-card__off--out {
    background: var(--nr-ink-3);
}

.nr-card__wish {
    position: absolute;
    top: .55rem;
    left: .55rem;
    z-index: 3;
}

.nr-card__wish-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--nr-primary-dark);
    box-shadow: 0 2px 8px rgba(43, 36, 32, .1);
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.nr-card__wish-btn.is-on {
    color: #d46a7a;
}

.nr-card__body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .75rem .7rem .9rem;
    flex: 1;
}

.nr-card__title {
    margin: 0;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--nr-ink);
}

.nr-card__title a {
    color: inherit;
    text-decoration: none;
}

.nr-card__price {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .5rem;
}

.nr-card__price del {
    font-size: .75rem;
    color: var(--nr-ink-3);
}

.nr-card__price strong {
    font-size: .95rem;
    color: var(--nr-primary-dark);
}

.nr-card__price span {
    font-size: .72rem;
    color: var(--nr-ink-3);
}

/* catalog */
.nr-catalog__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 .75rem;
}

.nr-catalog__head h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.nr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .85rem;
}

.nr-chips a {
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--nr-line);
    background: var(--nr-surface);
    color: var(--nr-ink-2);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
}

.nr-chips a.is-on {
    background: var(--nr-primary);
    border-color: var(--nr-primary);
    color: #fff;
}

.nr-sort {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: .85rem;
}

.nr-sort a.is-on {
    color: var(--nr-primary-dark);
    font-weight: 700;
}

.nr-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.nr-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

/* pdp wish */
.nr-pdp-wish {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-inline-start: .5rem;
}

.nr-pdp-wish button,
.nr-pdp-wish a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--nr-line);
    background: var(--nr-surface);
    border-radius: 999px;
    padding: .4rem .85rem;
    color: var(--nr-primary-dark);
    cursor: pointer;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
}

.nr-pdp-wish .is-on {
    color: #d46a7a;
    border-color: #f0c4c8;
}
