* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #2d2a26;
    background: #fbfaf7;
    line-height: 1.5;
}

a {
    color: #8a4a2f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eadfd4;
}

.top-bar {
    background: #27352f;
    color: #fff;
    font-size: 14px;
}

.top-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
    padding: 7px 0;
}

.top-bar a {
    color: #fff;
}

.site-brand-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(160px, auto) 1fr auto;
    padding: 16px 0 12px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 0 14px;
}

.site-brand {
    align-items: center;
    color: #2d2a26;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
}

.site-brand img {
    display: block;
    max-height: 58px;
    max-width: 190px;
    object-fit: contain;
}

.site-slogan {
    color: #635c55;
    margin: 0;
}

.header-cta {
    border: 1px solid #27352f;
    border-radius: 6px;
    color: #27352f;
    font-weight: 700;
    padding: 8px 12px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 15px;
    justify-content: center;
}

.site-nav__item {
    position: relative;
}

.site-subnav {
    background: #fff;
    border: 1px solid #eadfd4;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(39, 53, 47, .12);
    display: none;
    left: 0;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    top: 100%;
    z-index: 50;
}

.site-subnav--scent {
    max-width: min(320px, calc(100vw - 32px));
    min-width: 250px;
}

.site-subnav a {
    display: block;
    padding: 7px 9px;
    white-space: normal;
}

.site-nav__item:hover .site-subnav,
.site-nav__item:focus-within .site-subnav {
    display: block;
}

.site-main {
    min-height: 70vh;
}

.site-footer {
    margin-top: 48px;
    padding: 30px 0 18px;
    border-top: 1px solid #eadfd4;
    color: #74665c;
    background: #fff;
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(170px, 1fr));
}

.footer-grid h2,
.footer-grid h3 {
    color: #2d2a26;
    margin: 0 0 10px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li {
    margin-bottom: 7px;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid #eadfd4;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 14px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-links a {
    border: 1px solid #decfc1;
    border-radius: 6px;
    color: #27352f;
    font-weight: 700;
    padding: 7px 10px;
}

.social-links--stack {
    align-content: start;
    flex-direction: column;
}

.footer-social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-bar a {
    align-items: center;
    background: #fbfaf7;
    border: 1px solid #decfc1;
    border-radius: 999px;
    color: #27352f;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    padding: 6px 10px 6px 7px;
}

.footer-social-bar a:hover {
    background: #fff7ef;
    text-decoration: none;
}

.footer-social-bar svg {
    fill: #27352f;
    height: 20px;
    width: 20px;
}

.footer-social-bar text {
    fill: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.hero {
    padding: 56px 0 34px;
    background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

.hero-storefront {
    min-height: 360px;
}

.hero-storefront--image {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .72) 52%, rgba(255, 255, 255, .18) 100%),
        var(--hero-image) center / cover no-repeat;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: 0;
}

.hero p {
    margin: 0 0 22px;
    max-width: 620px;
    color: #6f6258;
    font-size: 19px;
}

.button {
    display: inline-block;
    padding: 11px 18px;
    color: #fff;
    background: #8a4a2f;
    border-radius: 6px;
    font-weight: 700;
}

.button-secondary {
    background: #fff;
    border: 1px solid #decfc1;
    color: #8a4a2f;
}

.section-soft {
    background: #fff7ef;
    border-bottom: 1px solid #eadfd4;
    border-top: 1px solid #eadfd4;
}

.intro-row {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.intro-layout {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
}

.intro-image {
    aspect-ratio: 4 / 3;
    background: #fff;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.contact-band {
    align-items: center;
    background: #fff;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px;
}

.contact-band h2,
.contact-band p {
    margin: 0;
}

.contact-buttons,
.product-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-contact-buttons {
    margin: 14px 0;
}

.section {
    padding: 32px 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: 28px;
}

.product-sort {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: -6px 0 18px;
}

.product-sort label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.product-sort select {
    border: 1px solid #decfc1;
    border-radius: 4px;
    color: #2d2a26;
    font: inherit;
    padding: 8px 30px 8px 10px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.category-list a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #decfc1;
    border-radius: 999px;
    background: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.breadcrumb a::after {
    color: #8c8178;
    content: "/";
    margin-left: 8px;
}

.scent-page h1 {
    margin-top: 0;
}

.scent-group-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 18px;
}

.scent-group-grid a {
    background: #fff;
    border: 1px solid #decfc1;
    border-radius: 6px;
    color: #2d2a26;
    display: block;
    padding: 12px 14px;
}

.scent-cover {
    aspect-ratio: 16 / 7;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    display: block;
    margin: 16px 0 20px;
    object-fit: cover;
    width: 100%;
}

.scent-group-card {
    min-height: 100%;
}

.scent-group-card img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    display: block;
    margin: 0 0 10px;
    object-fit: cover;
    width: 100%;
}

.scent-english-name {
    color: #74665c;
    font-size: 15px;
    margin: 4px 0 0;
}

.scent-description {
    margin: 18px 0;
}

.scent-description > *:first-child {
    margin-top: 0;
}

.scent-description > *:last-child {
    margin-bottom: 0;
}

.scent-note-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 14px 0 22px;
}

.scent-note-card {
    background: #fff;
    border: 1px solid #decfc1;
    border-radius: 6px;
    color: #2d2a26;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.scent-note-card:hover {
    border-color: #8a4a2f;
    text-decoration: none;
}

.scent-note-card__image {
    background: #f3eee8;
    display: block;
}

.scent-note-card__image img {
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.scent-note-card__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    padding: 9px;
}

.media-gallery {
    position: relative;
}

.media-gallery__main {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.media-gallery__image {
    max-height: 520px;
    object-fit: contain;
}

.media-gallery__thumbs {
    margin-bottom: 18px;
}

.media-gallery__thumb img {
    object-fit: cover;
}

.media-lightbox[hidden] {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.article-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    margin-top: 18px;
}

.article-card {
    background: #fff;
    border: 1px solid #eadfd4;
    border-radius: 6px;
    overflow: hidden;
}

.article-card__link {
    color: #2d2a26;
    display: block;
    text-decoration: none;
}

.article-card__image {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.article-card__body {
    display: block;
    padding: 12px;
}

.article-card__title {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.article-card__summary {
    color: #74665c;
    display: block;
    font-size: 14px;
    line-height: 1.45;
    margin-top: 8px;
}

.article-detail__avatar {
    border-radius: 6px;
    display: block;
    margin: 16px 0 20px;
    max-height: 460px;
    object-fit: cover;
    width: 100%;
}

.article-content img {
    border-radius: 6px;
    display: block;
    height: auto;
    margin: 14px auto;
    max-width: 100%;
}

.site-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.site-pagination a,
.site-pagination span {
    border: 1px solid #decfc1;
    border-radius: 4px;
    min-width: 38px;
    padding: 7px 10px;
    text-align: center;
}

.site-pagination a.is-active {
    background: #8a4a2f;
    border-color: #8a4a2f;
    color: #fff;
}

.product-card {
    overflow: hidden;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    background: #fff;
}

.product-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f3eee8;
}

.product-card__body {
    padding: 13px;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.stock-badge {
    background: #edf0f3;
    border-radius: 999px;
    color: #4b5563;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
    padding: 3px 8px;
}

.stock-badge--out {
    background: #fff1cf;
    color: #74530b;
}

.stock-badge--hot {
    background: #fde3df;
    color: #9f1d14;
}

.muted {
    color: #74665c;
}

.price {
    margin-top: 8px;
    font-weight: 700;
    color: #8a4a2f;
}

.old-price {
    margin-left: 6px;
    color: #8c8178;
    text-decoration: line-through;
    font-weight: 400;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 32px;
}

.detail-image {
    width: 100%;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    background: #fff;
}

.product-gallery {
    position: relative;
}

.gallery-main {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.gallery-nav {
    align-items: center;
    background: rgba(39, 53, 47, .88);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 38px;
    justify-content: center;
    position: absolute;
    top: calc(50% - 38px);
    width: 38px;
    z-index: 2;
}

.gallery-nav--prev {
    left: 10px;
}

.gallery-nav--next {
    right: 10px;
}

.gallery-thumbs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    margin-top: 10px;
}

.gallery-thumb {
    background: #fff;
    border: 2px solid #eadfd4;
    border-radius: 6px;
    cursor: pointer;
    padding: 3px;
}

.gallery-thumb.is-active {
    border-color: #27352f;
}

.gallery-thumb img {
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: contain;
    width: 100%;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    inset: 0;
    position: fixed;
    z-index: 1000;
}

.gallery-lightbox__backdrop {
    background: rgba(0, 0, 0, .82);
    border: 0;
    inset: 0;
    position: absolute;
}

.gallery-lightbox__dialog {
    align-items: center;
    display: flex;
    inset: 24px;
    justify-content: center;
    position: absolute;
}

.gallery-lightbox__dialog img {
    background: #fff;
    max-height: calc(100vh - 80px);
    max-width: calc(100vw - 96px);
    object-fit: contain;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: 999px;
    color: #1f2933;
    cursor: pointer;
    position: absolute;
}

.gallery-lightbox__close {
    font-size: 28px;
    height: 40px;
    right: 12px;
    top: 12px;
    width: 40px;
}

.gallery-lightbox__nav {
    font-size: 34px;
    height: 46px;
    top: calc(50% - 23px);
    width: 46px;
}

.gallery-lightbox__nav--prev {
    left: 12px;
}

.gallery-lightbox__nav--next {
    right: 12px;
}

.is-lightbox-open {
    overflow: hidden;
}

.detail-meta {
    padding: 18px;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    background: #fff;
}

.content-block {
    overflow-x: auto;
    padding: 18px;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    background: #fff;
}

.content-block img {
    max-width: 100%;
}

.content-rich img {
    max-width: 100%;
}

.page-banner {
    background: var(--page-banner-image) center / cover no-repeat;
    min-height: 260px;
}

.page-content {
    background: #fff;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    padding: 24px;
}

.info-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1040px) {
    .scent-note-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .scent-note-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header__inner,
    .detail-layout,
    .intro-row,
    .site-brand-row,
    .intro-layout,
    .contact-band {
        display: block;
    }

    .site-nav {
        margin-top: 10px;
    }

    .header-cta {
        display: inline-block;
        margin-top: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        margin-top: 14px;
    }
}

@media (max-width: 560px) {
    .scent-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .scent-note-grid {
        grid-template-columns: 1fr;
    }
}
