:root {
    color-scheme: light;
    --green-950: #102d27;
    --green-850: #183d34;
    --green-700: #2d6656;
    --sage: #dce8df;
    --cream: #f7f4ec;
    --paper: #fffdf8;
    --ink: #15231f;
    --muted: #61706a;
    --line: #d9dfd9;
    --accent: #d2a84a;
    --danger: #a13a3a;
    --shadow: 0 18px 50px rgb(16 45 39 / 10%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button,
a,
summary,
input,
select {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.content-shell,
.nav-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--green-950);
    color: white;
}

.nav-shell {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    color: white;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-decoration: none;
}

.market-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #edf5f0;
    font-size: .86rem;
    white-space: nowrap;
}

.market-selector select,
.market-selector button {
    min-height: 38px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 8px;
}

.market-selector select {
    max-width: 160px;
    background: white;
    color: var(--ink);
    padding: 5px 28px 5px 9px;
}

.market-selector button {
    background: transparent;
    color: white;
    padding: 5px 9px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a,
.link-button,
.account-label {
    color: #edf5f0;
    font-size: .94rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover,
.link-button:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-links .nav-cta {
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 999px;
    padding: 9px 14px;
}

.nav-form {
    margin: 0;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hero {
    background:
        radial-gradient(circle at 80% 20%, rgb(210 168 74 / 18%), transparent 30%),
        var(--green-950);
    color: white;
}

.hero-inner {
    padding-block: clamp(74px, 11vw, 138px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green-700);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #c4ddd2;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.12;
}

h1 {
    margin-bottom: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    font-weight: 500;
    letter-spacing: -.04em;
}

h2 {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 500;
    letter-spacing: -.025em;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.14rem;
}

h3 a,
.comparison-product h2 a {
    text-decoration: none;
}

h3 a:hover,
.comparison-product h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-copy {
    max-width: 660px;
    margin: 0 0 32px;
    color: #dbe8e2;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-search,
.search-row {
    display: flex;
    gap: 10px;
}

.hero-search {
    max-width: 720px;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #b8c4be;
    border-radius: 9px;
    background: white;
    color: var(--ink);
    padding: 11px 13px;
}

.hero-search input {
    min-height: 58px;
    border: 0;
    padding-inline: 20px;
    font-size: 1.03rem;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 17px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--green-850);
    color: white;
}

.button-accent {
    min-width: 120px;
    background: var(--accent);
    color: var(--green-950);
}

.button-quiet {
    border-color: #bac8c1;
    background: transparent;
    color: var(--green-950);
}

.button-secondary {
    border-color: #bac8c1;
    background: var(--paper);
    color: var(--green-950);
}

.button-full {
    width: 100%;
}

.gender-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.gender-links a {
    min-width: 90px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 999px;
    padding: 9px 15px;
    color: white;
    text-align: center;
    text-decoration: none;
}

.page-section {
    padding-block: clamp(54px, 7vw, 86px);
}

.section-tint {
    background: var(--sage);
}

.section-heading,
.results-heading,
.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2,
.results-heading h2,
.catalog-heading h1 {
    margin-bottom: 0;
}

.catalog-heading h1,
.search-page > h1,
.comparison-page > h1,
.auth-card h1,
.state-page h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.text-link {
    color: var(--green-700);
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.perfume-grid > div {
    min-width: 0;
}

.perfume-grid > div > form {
    margin-top: 10px;
}

.perfume-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgb(16 45 39 / 5%);
}

.perfume-image-link {
    display: block;
    background: linear-gradient(145deg, #edf2ed, #dde8df);
}

.perfume-card img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: var(--muted);
    font-size: .9rem;
}

.meta-list span + span::before {
    content: "•";
    margin-right: 14px;
    color: #9ca8a2;
}

.alternative-count {
    margin: 14px 0 10px;
    color: var(--muted);
    font-size: .9rem;
}

.page-search {
    max-width: 760px;
    margin-bottom: 42px;
}

.page-search > label,
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 750;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 32px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.filter-button {
    min-width: 100px;
}

.empty-state {
    padding: 54px 24px;
    border: 1px dashed #aebbb4;
    border-radius: 16px;
    text-align: center;
}

.empty-state.compact {
    padding: 32px 20px;
}

.empty-state h2,
.empty-state h3,
.empty-state p {
    margin-bottom: 8px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
}

.pager form {
    margin: 0;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(36px, 8vw, 90px);
    padding-block: clamp(54px, 8vw, 100px);
}

.product-image {
    overflow: hidden;
    border-radius: 22px;
    background: var(--sage);
    box-shadow: var(--shadow);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-summary h1 {
    margin-bottom: 18px;
}

.product-meta {
    margin-bottom: 24px;
}

.product-description {
    max-width: 680px;
    margin: 0 0 28px;
    color: #3e4d47;
    font-size: 1.05rem;
}

.starting-price {
    margin: 0 0 24px;
    color: var(--green-700);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-actions form {
    margin: 0;
}

.price-alert-form {
    display: grid;
    grid-template-columns: minmax(210px, 2fr) minmax(150px, 1fr) 90px auto;
    align-items: end;
}

.detail-user-actions > .product-actions {
    margin-bottom: 32px;
}

.price-alert-form label {
    align-self: center;
}

.status-message {
    border-left: 4px solid var(--green-700);
    border-radius: 8px;
    background: var(--sage);
    padding: 12px 14px;
}

.field-hint {
    color: var(--muted);
    font-size: .88rem;
}

.fragrance-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 64px;
}

.fragrance-details > div,
.note-group,
.accord-item {
    min-width: 0;
}

.note-groups,
.accord-list {
    display: grid;
    gap: 18px;
}

.note-group h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.accord-list {
    gap: 14px;
}

.accord-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 7px;
}

.accord-heading span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.accord-heading strong {
    white-space: nowrap;
}

.accord-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sage);
}

.accord-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green-700);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chip,
.badge,
.comparison-label {
    border-radius: 999px;
    background: var(--sage);
    padding: 6px 11px;
    font-size: .83rem;
    font-weight: 700;
}

.chip small {
    margin-left: 4px;
    color: var(--muted);
}

.alternative-list,
.offer-list {
    display: grid;
    gap: 16px;
}

.offer-volume-groups {
    display: grid;
    gap: 24px;
}

.offer-volume-heading {
    margin: 0 0 10px;
}

.alternative-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    overflow: hidden;
    border: 1px solid rgb(16 45 39 / 12%);
    border-radius: 16px;
    background: var(--paper);
}

.alternative-card > img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    background: #edf2ed;
}

.alternative-content {
    padding: 24px 24px 24px 0;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-block: 18px;
}

.score-grid > div,
.comparison-scores > div {
    min-width: 0;
    border-radius: 10px;
    background: #edf3ef;
    padding: 12px;
}

.score-grid strong,
.score-grid span,
.comparison-scores strong,
.comparison-scores span {
    display: block;
}

.score-grid strong {
    font-size: 1.15rem;
}

.score-grid span,
.comparison-scores span {
    color: var(--muted);
    font-size: .78rem;
}

.reference-price,
.section-note,
.muted {
    color: var(--muted);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    padding: 18px;
}

.offer-heading,
.offer-buy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-heading h3 {
    margin: 0;
}

.badge {
    background: #f5e7bc;
    color: #684e0c;
}

.offer-buy strong {
    white-space: nowrap;
    font-size: 1.1rem;
}

.offer-unit-price {
    color: var(--muted);
    font-size: .88rem;
    white-space: nowrap;
}

.offer-regular-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.offer-promo-code,
.offer-promo-validity {
    font-size: 0.85rem;
}

.offer-promo-code {
    font-weight: 700;
}

.comparison-page > h1 span {
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: .45em;
    font-weight: 500;
}

.comparison-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
}

.comparison-product {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 22px;
}

.comparison-product > img {
    width: 100%;
    aspect-ratio: 1;
    margin: 16px 0 22px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--sage);
}

.comparison-label.alternative {
    background: #f5e7bc;
}

.comparison-scores {
    display: grid;
    gap: 10px;
    text-align: center;
}

.comparison-scores .primary-score {
    background: var(--green-850);
    color: white;
}

.comparison-scores .primary-score span {
    color: #d6e6df;
}

.comparison-scores strong {
    font-size: 1.35rem;
}

.profile-facts {
    margin-bottom: 0;
}

.profile-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-block: 9px;
}

.profile-facts dt {
    color: var(--muted);
}

.profile-facts dd {
    min-width: 0;
    margin: 0;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.comparison-section {
    margin-top: 48px;
}

.price-pair,
.offer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.price-pair > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    padding: 18px;
}

.savings-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    background: #fff8df;
    padding: 20px;
}

.savings-callout .eyebrow {
    margin: 0;
}

.offer-columns .offer-card {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 12px;
}

.offer-columns .offer-buy {
    justify-content: space-between;
}

.auth-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 50px 20px;
    background: linear-gradient(145deg, var(--sage), var(--cream));
}

.auth-card {
    width: min(100%, 500px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    padding: clamp(26px, 6vw, 46px);
    box-shadow: var(--shadow);
}

.auth-intro {
    margin: -6px 0 28px;
    color: var(--muted);
}

.auth-card .field {
    margin-bottom: 18px;
}

.field-validation-error,
.validation-summary-errors {
    color: var(--danger);
}

.field-validation-error {
    display: block;
    margin-top: 5px;
    font-size: .84rem;
}

.validation-summary ul {
    padding-left: 20px;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 20px;
}

.check-field input {
    width: 20px;
    min-height: 20px;
}

.auth-switch {
    margin: 22px 0 0;
    text-align: center;
}

.state-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: 80px;
}

.state-page p {
    max-width: 650px;
}

.site-footer {
    background: var(--green-950);
    color: #d8e5df;
}

.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .88rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 980px) {
    .card-grid,
    .perfume-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-button {
        width: 100%;
    }

    .comparison-products {
        grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
        gap: 14px;
    }
}

@media (max-width: 1100px) {
    .nav-shell {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-block: 16px;
    }

    .brand-mark {
        padding-top: 5px;
    }

    .market-selector {
        flex: 1 1 220px;
        order: 3;
    }

    .market-selector select {
        flex: 1;
        max-width: none;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu > summary {
        display: block;
        min-height: 42px;
        border: 1px solid rgb(255 255 255 / 45%);
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        list-style: none;
    }

    .mobile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu:not([open]) .mobile-nav {
        display: none;
    }

    .mobile-menu[open] .mobile-nav {
        position: absolute;
        inset: 100% 0 auto;
        display: grid;
        gap: 0;
        border-top: 1px solid rgb(255 255 255 / 12%);
        background: var(--green-950);
        padding: 8px 14px 18px;
    }

    .nav-links a,
    .account-label,
    .nav-form {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 9px 10px;
    }

    .nav-links .nav-cta {
        margin-top: 5px;
        justify-content: center;
    }

    .link-button {
        min-height: 44px;
        text-align: left;
    }
}

@media (max-width: 800px) {
    .content-shell,
    .nav-shell {
        width: min(100% - 28px, 1180px);
    }

    .market-selector {
        flex: 1 1 100%;
        width: 100%;
    }

    .hero-search,
    .search-row,
    .section-heading,
    .results-heading,
    .catalog-heading,
    .footer-inner,
    .savings-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search .button,
    .search-row .button {
        width: 100%;
    }

    .card-grid,
    .perfume-grid,
    .filter-bar,
    .product-hero,
    .fragrance-details,
    .comparison-products,
    .price-pair,
    .offer-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-bar {
        padding: 14px;
    }

    .product-hero {
        gap: 34px;
    }

    .product-image {
        width: min(100%, 430px);
        margin-inline: auto;
    }

    .alternative-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 16px;
    }

    .alternative-card > img {
        min-height: 100%;
    }

    .alternative-content {
        padding: 18px 16px 18px 0;
    }

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

    .comparison-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: 2;
    }

    .comparison-product:last-child {
        order: 3;
    }

    .offer-card {
        align-items: stretch;
        flex-direction: column;
    }

    .price-alert-form {
        display: flex;
    }

    .offer-buy {
        justify-content: space-between;
    }
}

@media (max-width: 420px) {
    .content-shell,
    .nav-shell {
        width: min(100% - 22px, 1180px);
    }

    h1 {
        font-size: 2.35rem;
    }

    .gender-links a {
        flex: 1 1 85px;
    }

    .alternative-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .alternative-card > img {
        max-height: 220px;
    }

    .alternative-content {
        padding: 20px;
    }

    .card-actions .button {
        width: 100%;
    }

    .offer-buy {
        align-items: stretch;
        flex-direction: column;
    }

    .offer-buy .button {
        width: 100%;
    }

    .pager {
        gap: 10px;
    }
}
