/* =====================================================
   Ninax Collection — landing page
   Palette: cream / blush / burgundy
   Fonts: Vazirmatn · Playfair Display
   ===================================================== */

.nx-body {
    --nx-bg: #ffffff;
    --nx-bg-soft: #faf8f8;
    --nx-bg-blush: #f8f2f3;
    --nx-burgundy: #551827;
    --nx-pink: #d94b78;
    --nx-blush: #e8bdc5;
    --nx-text: #191417;
    --nx-border: #eee5e7;
    --nx-radius-card: 18px;
    --nx-radius-btn: 10px;
    --nx-topbar-h: 78px;
    --nx-nav-h: 52px;
    --nx-wrap: 1440px;
    --nx-shadow: 0 10px 28px rgba(25, 20, 23, 0.06);
    background: var(--nx-bg);
    color: var(--nx-text);
}

.nx-body .site-footer {
    padding-bottom: 48px;
}

.nx-wrap {
    width: min(var(--nx-wrap), calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ---------- Header ---------- */

.nx-topbar {
    position: sticky;
    top: 0;
    z-index: 220;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: var(--nx-topbar-h);
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nx-border);
}

.nx-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    justify-self: start;
}

.nx-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--nx-text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nx-hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(-45deg);
}

.nx-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.nx-hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(45deg);
}

.nx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(85, 24, 39, 0.12);
    background: #111;
}

.nx-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.nx-brand-top {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--nx-text);
}

.nx-brand-bottom {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3.2px;
    color: #8a7b80;
}

.nx-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    justify-self: end;
}

.nx-body .icon-btn:hover {
    background: var(--nx-bg-blush);
    color: var(--nx-pink);
}

.nx-body .icon-btn .badge {
    background: var(--nx-burgundy);
}


/* ---------- Category nav ---------- */

.nx-nav {
    position: sticky;
    top: var(--nx-topbar-h);
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--nx-nav-h);
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--nx-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.nx-nav::-webkit-scrollbar {
    display: none;
}

.nx-nav-link {
    flex: 0 0 auto;
    position: relative;
    padding: 12px 11px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nx-nav-link::after {
    content: "";
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: 6px;
    height: 1.5px;
    background: var(--nx-burgundy);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nx-nav-link:hover,
.nx-nav-link.active {
    color: var(--nx-burgundy);
}

.nx-nav-link.active::after,
.nx-nav-link:hover::after {
    transform: scaleX(1);
}

.nx-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(25, 20, 23, 0.28);
}


/* ---------- Hero ---------- */

.nx-hero {
    position: relative;
    height: min(62vw, 620px);
    min-height: 420px;
    overflow: hidden;
    background: #2a121c;
}

.nx-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    height: 58%;
    background: linear-gradient(180deg, transparent, rgba(20, 8, 16, 0.58));
    pointer-events: none;
}

.nx-hero-track,
.nx-hero-slide {
    position: absolute;
    inset: 0;
}

.nx-hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.nx-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.nx-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nx-hero-overlay {
    position: absolute;
    z-index: 3;
    left: 7%;
    right: auto;
    bottom: 16%;
    max-width: 480px;
    color: #fff;
    text-align: right;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.nx-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #f7d7de;
}

.nx-hero-overlay h1 {
    margin: 0 0 12px;
    font-family: var(--font-body);
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.45;
}

.nx-hero-lead {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

.nx-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--nx-text);
    transform: translateY(-50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nx-hero-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.nx-hero-prev { left: 18px; }
.nx-hero-next { right: 18px; }

.nx-hero-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nx-hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.nx-hero-dots button.is-active {
    width: 22px;
    border-radius: 8px;
    background: #fff;
}


/* ---------- Buttons ---------- */

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--nx-radius-btn);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.nx-btn-light {
    background: #fff;
    color: var(--nx-burgundy);
}

.nx-btn-light:hover {
    background: var(--nx-bg-blush);
}

.nx-btn-dark {
    background: var(--nx-burgundy);
    color: #fff;
}

.nx-btn-dark:hover {
    background: #3f101c;
}


/* ---------- Shop cards ---------- */

.nx-section {
    padding: 56px 0;
}

.nx-shop-section {
    background: var(--nx-bg-soft);
}

.nx-shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: ltr;
    gap: 22px;
}

.nx-shop-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 22px;
    background: #ead9dc;
    box-shadow: var(--nx-shadow);
}

.nx-shop-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nx-shop-card:hover img {
    transform: scale(1.04);
}

.nx-shop-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 36px 26px 26px;
    background: linear-gradient(180deg, transparent 0%, rgba(25, 20, 23, 0.78) 78%);
    color: #fff;
    direction: rtl;
    text-align: right;
}

.nx-shop-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.45;
}

.nx-shop-copy p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}


/* ---------- Benefits ---------- */

.nx-benefits {
    padding: 28px 0 48px;
    background: #fff;
}

.nx-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.nx-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 12px;
}

.nx-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border: 1px solid var(--nx-blush);
    border-radius: 50%;
    color: var(--nx-burgundy);
}

.nx-benefit h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
}

.nx-benefit p {
    margin: 0;
    font-size: 13px;
    color: #8a7b80;
}


/* ---------- Beauty banner ---------- */

.nx-beauty {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: #1b1020;
}

.nx-beauty-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
}

.nx-beauty-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(90deg, rgba(20, 8, 18, 0.18), rgba(20, 8, 18, 0.08));
    color: #fff;
    text-align: center;
}

.nx-beauty-en {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 4px;
    color: #f4d7e0;
}

.nx-beauty-copy h2 {
    margin: 0 0 22px;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.25;
}

.nx-beauty-copy h2 span {
    font-weight: 500;
}

.nx-about-note {
    padding: 36px 0 8px;
    background: var(--nx-bg-blush);
}

.nx-about-note p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 15px;
    line-height: 2.1;
    text-align: center;
    color: #4d3d43;
}


/* ---------- Popular products ---------- */

.nx-popular {
    background: var(--nx-bg-soft);
}

#popular,
#about,
#about-note {
    scroll-margin-top: calc(var(--nx-topbar-h) + var(--nx-nav-h) + 16px);
}

.nx-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.nx-section-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.nx-see-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--nx-burgundy);
    border-bottom: 1px solid transparent;
}

.nx-see-all:hover {
    border-bottom-color: var(--nx-burgundy);
}

.nx-product-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
}

.nx-product-grid::-webkit-scrollbar {
    height: 6px;
}

.nx-product-grid::-webkit-scrollbar-thumb {
    background: #e8bdc5;
    border-radius: 8px;
}

.nx-body .nx-product-card {
    flex: 0 0 calc((100% - 48px) / 4);
    scroll-snap-align: start;
    padding: 12px 12px 16px;
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-card);
    box-shadow: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nx-body .nx-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nx-shadow);
}

.nx-body .nx-product-card .card-image {
    border-radius: 14px;
    box-shadow: none;
    background: var(--nx-bg-soft);
}

.nx-body .nx-product-card .card-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nx-body .nx-product-card .add-to-bag {
    border-radius: var(--nx-radius-btn);
    background: var(--nx-burgundy);
}

.nx-body .nx-product-card .add-to-bag:hover {
    background: #3f101c;
}

.nx-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 16px;
    color: #8a7b80;
}


/* ---------- Newsletter ---------- */

.nx-newsletter {
    padding: 48px 0;
    background: #fff;
    border-top: 1px solid var(--nx-border);
}

.nx-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px;
    background: var(--nx-bg-blush);
    border: 1px solid var(--nx-border);
    border-radius: 20px;
}

.nx-newsletter-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.nx-newsletter-copy p {
    margin: 0;
    color: #6b5b61;
    line-height: 1.8;
}

.nx-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: min(420px, 100%);
}

.nx-newsletter-form input {
    flex: 1 1 220px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-btn);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--nx-text);
}

.nx-newsletter-form button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: var(--nx-radius-btn);
    background: var(--nx-burgundy);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.nx-newsletter-msg {
    flex-basis: 100%;
    margin: 0;
    font-size: 13px;
    color: var(--nx-burgundy);
}

.nx-newsletter-msg.is-error {
    color: #9b2c2c;
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .nx-body .nx-product-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 860px) {
    .nx-topbar {
        padding: 8px 16px;
        --nx-topbar-h: 66px;
    }

    .nx-brand-logo {
        width: 34px;
        height: 34px;
    }

    .nx-brand-top {
        font-size: 20px;
    }

    .nx-hamburger {
        visibility: hidden;
        pointer-events: none;
    }

    .nx-nav {
        justify-content: flex-start;
        gap: 2px;
        padding: 0 10px;
    }

    .nx-nav-link {
        padding: 10px 8px;
        font-size: 12px;
    }

    .nx-hero {
        height: 58vw;
        min-height: 280px;
        max-height: 420px;
    }

    .nx-hero-overlay {
        inset: auto 16px 18px 16px;
        max-width: none;
        text-align: center;
    }

    .nx-hero-overlay h1 {
        font-size: 22px;
    }

    .nx-hero-lead {
        display: none;
    }

    .nx-hero-arrow {
        width: 36px;
        height: 36px;
    }

    .nx-hero-prev { left: 10px; }
    .nx-hero-next { right: 10px; }

    .nx-shop-grid {
        grid-template-columns: 1fr 1fr;
        direction: ltr;
        gap: 10px;
    }

    .nx-shop-card,
    .nx-shop-card img {
        min-height: 188px;
    }

    .nx-shop-copy {
        padding: 14px 12px 12px;
    }

    .nx-shop-copy h2 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .nx-shop-copy p {
        display: none;
    }

    .nx-shop-copy .nx-btn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .nx-body .nx-product-card {
        flex-basis: min(72vw, 236px);
    }

    .nx-benefits {
        padding: 16px 0 24px;
    }

    .nx-benefits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .nx-benefit {
        padding: 8px 2px;
    }

    .nx-benefit-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .nx-benefit-icon svg {
        width: 18px;
        height: 18px;
    }

    .nx-benefit h3 {
        font-size: 11px;
        line-height: 1.35;
    }

    .nx-benefit p {
        font-size: 10px;
        line-height: 1.4;
    }

    .nx-beauty,
    .nx-beauty-image {
        min-height: 320px;
    }

    .nx-newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 18px;
        text-align: center;
    }

    .nx-body .user-account-name {
        display: none;
    }
}

@media (max-width: 520px) {
    .nx-wrap {
        width: min(var(--nx-wrap), calc(100% - 28px));
    }

    .nx-section {
        padding: 36px 0;
    }

    .nx-brand-bottom {
        letter-spacing: 2px;
    }

    .nx-benefits-grid {
        gap: 2px;
    }

    .nx-benefit-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
    }

    .nx-benefit h3 {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-hero-slide,
    .nx-shop-card img,
    .nx-product-card {
        transition: none;
    }
}
