
/* =========================================
   NEROLI FRAGRANCES — NEW HOMEPAGE DESIGN
   Clean white / editorial / modern
========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --white: #ffffff;
    --cream: #f8f6f2;
    --black: #171717;
    --grey: #777777;
    --line: #e9e7e3;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body img {
    max-width: 100%;
}

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

button {
    font: inherit;
}

/* ANNOUNCEMENT */

.announcement-bar {
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee9e1;
    color: #252525;
    font-size: 10px;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 12px;
}

/* HEADER */

.site-header {
    height: 82px;
    width: 100%;
    padding: 0 6%;
    background: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    color: #fff;
}

.brand-logo img {
    max-width: 155px;
    max-height: 52px;
    object-fit: contain;
}

.brand-logo span {
    font-family: var(--serif);
    font-size: 27px;
    letter-spacing: 4px;
}

.brand-logo .brand-wordmark {
    color: #fff;
    font-family: var(--sans);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .28em;
    line-height: 1;
    white-space: nowrap;
}

.brand-logo small {
    display: block;
    text-align: center;
    font-family: var(--sans);
    font-size: 8px;
    letter-spacing: 5px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    font-size: 13px;
    color: #fff;
    letter-spacing: .08em;
    position: relative;
    transition: opacity .3s ease;
}

.main-nav a:hover {
    opacity: .55;
}

.main-nav a::after {
    content: "";
    position: absolute;
    height: 1px;
    background: #fff;
    left: 0;
    bottom: -7px;
    width: 0;
    transition: width .3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: #fff;
}

.header-actions a {
    transition: opacity .3s ease;
}

.header-actions a:hover {
    opacity: .5;
}

.bag-link span {
    font-size: 11px;
    margin-left: 3px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.mobile-menu-search {
    display: none;
}

.mobile-menu-search-label {
    color: #777;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-menu-search-control {
    display: flex;
    width: 100%;
    gap: 8px;
}

.mobile-menu-search input {
    box-sizing: border-box;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d8d4cd;
    border-radius: 2px;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 14px;
}

.mobile-menu-search input::placeholder {
    color: #8a8781;
}

.mobile-menu-search button {
    min-width: 78px;
    padding: 0 13px;
    border: 0;
    border-radius: 2px;
    background: #171717;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* HERO */

.hero-section {
    min-height: 510px;
    display: grid;
    grid-template-columns: 43% 57%;
    background: #f4f0e9;
    overflow: hidden;
}

.hero-content {
    padding: 80px 5% 75px 13%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: heroText .9s ease both;
}

.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0 0 18px;
}

.hero-content h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.03;
    letter-spacing: -2px;
    margin: 0;
}

.hero-content h1 em {
    font-weight: 400;
}

.hero-description {
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    max-width: 390px;
    margin: 25px 0 28px;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    background: var(--black);
    color: white;
    padding: 17px 23px;
    font-size: 10px;
    letter-spacing: 1.3px;
    transition: background .3s ease, transform .3s ease;
}

.primary-button:hover {
    background: #555;
    transform: translateY(-3px);
}

.hero-image {
    min-height: 510px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, #e9dfd1, #f8f4ee 50%, #d7c9b8);
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 1.2s ease;
}

.hero-section:hover .hero-image img {
    transform: scale(1.025);
}

/* SECTION HEADINGS */

.section-heading {
    text-align: center;
    padding: 75px 20px 35px;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    margin: 0;
    letter-spacing: -1px;
}

.section-heading > p:not(.eyebrow) {
    color: var(--grey);
    font-size: 13px;
    margin-top: 14px;
}

/* CATEGORY CARDS */

.category-section {
    padding: 0 4% 75px;
}

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

.category-card {
    min-height: 330px;
    position: relative;
    overflow: hidden;
    background: #e9e2d9;
    display: flex;
    align-items: center;
}

.category-card:nth-child(2) {
    background: #e8d9d5;
}

.category-card:nth-child(3) {
    background: #d9d3ca;
}

.category-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.category-card:hover img {
    transform: scale(1.07);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.42),
        rgba(0,0,0,.02) 100%
    );
    transition: opacity .4s ease;
}

.category-card:hover::after {
    opacity: .8;
}

.category-overlay {
    position: relative;
    z-index: 2;
    color: white;
    padding: 30px;
}

.category-overlay > span:first-child {
    font-size: 9px;
    letter-spacing: 3px;
}

.category-overlay h3 {
    font-family: var(--serif);
    font-size: 39px;
    font-weight: 400;
    margin: 12px 0 22px;
}

.category-link {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.8);
}

/* BEST SELLERS */

.bestsellers-section {
    padding: 10px 5% 90px;
    background: #faf9f7;
}

.bestsellers-section .section-heading {
    padding-top: 70px;
}

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

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

.product-image {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0eeea;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 5px;
    color: #aaa;
    background: #efede9;
}

.product-details {
    padding: 17px 2px;
}

.product-category {
    color: var(--grey);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.product-details h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 9px;
}

.product-price {
    font-size: 13px;
    margin: 0 0 17px;
}

.product-button {
    display: inline-block;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    font-size: 9px;
    letter-spacing: 1.2px;
    transition: opacity .3s ease;
}

.product-button:hover {
    opacity: .5;
}

.empty-message {
    text-align: center;
    color: var(--grey);
    padding: 30px 0;
}

.center-button {
    text-align: center;
    margin-top: 45px;
}

.outline-button {
    display: inline-block;
    padding: 16px 30px;
    border: 1px solid var(--black);
    font-size: 10px;
    letter-spacing: 1.5px;
    transition: all .3s ease;
}

.outline-button:hover {
    color: white;
    background: var(--black);
}

/* BRAND MESSAGE */

.brand-message {
    padding: 105px 20px;
    text-align: center;
    background: #f1eee9;
}

.brand-message h2 {
    font-family: var(--serif);
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
}

.brand-message h2 em {
    font-weight: 400;
}

.brand-message > p:not(.eyebrow) {
    color: #666;
    font-size: 13px;
    margin: 20px 0 30px;
}

/* BENEFITS */

.benefits-section {
    padding: 65px 7%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.benefit span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;
}

.benefit h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 21px;
    margin: 13px 0 8px;
}

.benefit p {
    font-size: 12px;
    color: var(--grey);
    line-height: 1.7;
}

/* FOOTER */

.site-footer {
    background: #fff;
    padding: 65px 7% 25px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: 5px;
}

.footer-brand > p {
    font-size: 9px;
    letter-spacing: 5px;
    margin: 4px 0 15px;
}

.footer-brand > span {
    color: var(--grey);
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-column h4 {
    font-size: 10px;
    letter-spacing: 2px;
    margin: 5px 0 10px;
}

.footer-column a {
    font-size: 12px;
    color: #666;
    transition: color .3s ease;
}

.footer-column a:hover {
    color: #000;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 10px;
    color: #888;
}

/* ANIMATIONS */

@keyframes heroText {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .site-header {
        padding: 0 4%;
    }

    .main-nav {
        gap: 17px;
    }

    .hero-content {
        padding-left: 9%;
    }

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

    .category-card {
        min-height: 270px;
    }

}

@media (max-width: 760px) {

    .announcement-bar {
        height: 30px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .site-header {
        height: 68px;
    }

    .brand-logo {
        min-width: auto;
    }

    .brand-logo img {
        max-width: 125px;
        max-height: 42px;
    }

    .brand-logo span {
        font-size: 22px;
    }

    .brand-logo .brand-wordmark {
        font-size: 21px;
        letter-spacing: .24em;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .site-header .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        width: min(380px, 94vw);
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        z-index: 1100;
        padding: 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid #e9e7e3;
        background: #fff;
        color: #171717;
        box-shadow: 0 16px 35px rgba(0,0,0,.14);
    }

    .site-header .main-nav.nav-open {
        display: flex;
    }

    .site-header .main-nav > a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        background: #fff;
        color: #171717;
        font-size: 14px;
    }

    .site-header .main-nav > a::after {
        display: none;
    }

    .site-header .mobile-menu-search {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding-bottom: 16px;
        margin-bottom: 7px;
        border-bottom: 1px solid #eee;
    }

    .header-actions .desktop-search-link {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        margin-right: 20px;
        gap: 15px;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 65px 8% 45px;
    }

    .hero-content h1 {
        font-size: clamp(42px, 11vw, 60px);
    }

    .hero-image {
        min-height: 330px;
    }

    .hero-image img {
        min-height: 330px;
    }

    .section-heading {
        padding-top: 55px;
    }

    .category-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        min-height: 300px;
    }

    .bestsellers-section {
        padding-left: 5%;
        padding-right: 5%;
    }

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

    .product-details h3 {
        font-size: 17px;
    }

    .brand-message {
        padding: 75px 20px;
    }

    .benefits-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .site-footer {
        grid-template-columns: repeat(2, 1fr);
        padding: 50px 7% 25px;
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

@media (max-width: 380px) {

    .product-grid {
        gap: 10px;
    }

    .product-details h3 {
        font-size: 15px;
    }

    .product-button {
        font-size: 8px;
    }

}
