:root {
    --ink: #050505;
    --paper: #f4f2ee;
    --ivory: #ffffff;
    --soft: #ece8e2;
    --muted: #6f6b66;
    --line: #d9d5ce;
    --signal-red: #8f1924;
    --signal-green: #16523d;
    --container: 1240px;
}

.footer-grid--compact {
    grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.8fr);
    align-items: start;
}

.footer-grid--compact > div:last-child {
    justify-self: end;
}

@media (max-width: 980px) {
    .header-search.is-open {
        width: clamp(160px, 26vw, 230px);
    }
}

@media (max-width: 640px) {
    .header-search {
        display: none;
    }
}

.header-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 28px;
    height: 42px;
    transition: width 220ms ease;
}

.header-search__input {
    position: absolute;
    right: 0;
    width: 0;
    height: 42px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    outline: 0;
    padding: 0 34px 0 0;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: width 240ms ease, opacity 160ms ease;
}

.header-search__input::placeholder {
    color: currentColor;
    opacity: 0.72;
}

.header-search.is-open {
    width: clamp(190px, 18vw, 300px);
}

.header-search.is-open .header-search__input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

.header-search .search-icon {
    z-index: 2;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
}

.header-actions.search-open .bag-icon,
.header-actions.search-open .account-icon {
    transform: translateX(-10px);
    opacity: 0.42;
}

.header-actions .bag-icon,
.header-actions .account-icon {
    transition: transform 220ms ease, opacity 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body.nav-open {
    overflow: hidden;
}

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

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

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 1000;
    width: auto;
    height: auto;
    clip: auto;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    background: var(--ivory);
}

.announcement-bar {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    display: grid;
    place-items: center;
    background: #d8d8d8;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.announcement-bar a {
    border-bottom: 1px solid currentColor;
}

.site-header {
    position: fixed;
    z-index: 70;
    top: 34px;
    left: 0;
    width: 100%;
    color: var(--ivory);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 82px;
    width: min(1640px, calc(100% - 64px));
    margin-inline: auto;
    overflow: hidden;
}

.footer-brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.22em;
}

.brand-mark {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 310px;
    height: 58px;
    overflow: visible;
}

.brand-mark img {
    flex: 0 0 auto;
    width: 310px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 180ms ease;
}

.site-header.is-scrolled .brand-mark img,
body:not(.home) .brand-mark img {
    filter: none;
}

.symbol-mark {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
}

.symbol-mark img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 180ms ease;
}

.site-header.is-scrolled .symbol-mark img,
body:not(.home) .symbol-mark img {
    filter: none;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-icon,
.menu-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: inherit;
}

.bag-icon {
    border: 2px solid currentColor;
    border-radius: 2px;
    width: 20px;
    height: 18px;
    margin-top: 5px;
}

.bag-icon::before {
    content: "";
    position: absolute;
    top: -8px;
    width: 9px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.bag-icon span {
    position: absolute;
    right: -9px;
    top: -12px;
    min-width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: currentColor;
    color: var(--ivory);
    font-size: 9px;
}

.site-header.is-scrolled .bag-icon span,
body:not(.home) .bag-icon span {
    color: var(--ink);
}

.account-icon::before,
.account-icon::after {
    content: "";
    position: absolute;
    border: 2px solid currentColor;
}

.account-icon::before {
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.account-icon::after {
    bottom: 3px;
    width: 15px;
    height: 8px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 0;
}

.search-icon::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 4px;
    width: 9px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.menu-button {
    width: auto;
    min-width: 92px;
    height: 34px;
    grid-auto-flow: column;
    gap: 10px;
    padding: 0 10px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.menu-lines {
    display: grid;
    gap: 5px;
    width: 24px;
}

.menu-lines span {
    display: block;
    height: 2px;
    background: currentColor;
}

.menu-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 44vw);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.nav-open .menu-overlay {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.menu-overlay__image {
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
        url("../images/bonafi-hero.png") center / cover no-repeat;
    filter: blur(5px);
    transform: scale(1.02);
}

.menu-panel {
    position: relative;
    overflow-y: auto;
    min-height: 100vh;
    padding: 86px 72px 64px;
    background: var(--ivory);
    color: var(--ink);
    transform: translateX(24px);
    transition: transform 220ms ease;
}

.nav-open .menu-panel {
    transform: translateX(0);
}

.menu-close {
    position: fixed;
    top: 20px;
    right: 22px;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--ivory);
    cursor: pointer;
}

.menu-close span {
    position: absolute;
    top: 29px;
    left: 17px;
    width: 26px;
    height: 2px;
    background: currentColor;
}

.menu-close span:first-child {
    transform: rotate(45deg);
}

.menu-close span:last-child {
    transform: rotate(-45deg);
}

.primary-nav .menu,
.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav .menu {
    display: grid;
    gap: 26px;
}

.primary-nav a {
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 500;
}

.menu-panel__secondary {
    display: grid;
    gap: 24px;
    margin-top: 72px;
    font-size: 17px;
    font-weight: 600;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 140px 20px 58px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32) 54%, rgba(0, 0, 0, 0.72)),
        var(--hero-image) center / cover no-repeat,
        var(--ink);
    color: var(--ivory);
}

.hero__content {
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 12px;
    color: currentColor;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.button,
.button:visited,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 34px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--ivory);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.button--light {
    background: var(--ivory);
    color: var(--ink);
    border-color: var(--ivory);
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--ivory);
}

.category-showcase__item {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(360px, 45vw) 82px;
    border-right: 1px solid var(--ivory);
}

.category-showcase__image {
    overflow: hidden;
    background: var(--soft);
}

.category-showcase__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-showcase__label {
    display: grid;
    place-items: center;
    padding: 0 16px;
    background: var(--ivory);
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

.collection-band {
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 34px 20px;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(22, 82, 61, 0.48), rgba(143, 25, 36, 0.42), rgba(5, 5, 5, 0.94)),
        var(--ink);
    color: var(--ivory);
    text-align: center;
}

.collection-band__inner {
    display: grid;
    gap: 12px;
}

.collection-band p {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

.collection-band a {
    justify-self: center;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-section {
    padding: 76px 0 94px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 28px;
}

.section-heading h2,
.content-page h1,
.page-shell h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
}

.section-heading a {
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-grid,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tile,
.woocommerce ul.products li.product {
    min-width: 0;
    background: var(--ivory);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
}

.product-tile__media,
.woocommerce ul.products li.product a img {
    aspect-ratio: 4 / 5;
    background: var(--soft);
    overflow: hidden;
}

.product-tile__media img,
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tile__body,
.woocommerce ul.products li.product {
    font-size: 14px;
}

.product-tile__body {
    padding: 16px 18px 22px;
}

.product-tile__title,
.woocommerce-loop-product__title {
    display: block;
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.product-tile__price,
.woocommerce ul.products li.product .price {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-weight: 700;
}

.empty-products {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--muted);
    text-align: center;
}

.page-shell,
.shop-main {
    padding-top: 156px;
    padding-bottom: 84px;
}

.bonafi-shop {
    background: var(--ivory);
}

.shop-hero {
    padding: 44px 0 34px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
}

.shop-hero h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(54px, 8vw, 118px);
    line-height: 0.9;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

.shop-toolbar .woocommerce-ordering {
    margin: 0;
}

.product-section--shop {
    padding-top: 1px;
}

.bonafi-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 36px;
}

.bonafi-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
}

.bonafi-pagination .current {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}

.content-page {
    max-width: 820px;
}

.content-page__body {
    margin-top: 24px;
    color: var(--muted);
}

.post-list {
    display: grid;
    gap: 16px;
}

.post-card {
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--ivory);
}

.site-footer {
    padding: 66px 0 28px;
    background: var(--ink);
    color: var(--ivory);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr;
    gap: 42px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
}

.site-footer p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

.footer-menu {
    display: grid;
    gap: 8px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.newsletter-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ivory);
    outline: 0;
}

.newsletter-form button {
    border: 0;
    background: transparent;
    color: var(--ivory);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering {
    color: var(--muted);
    font-size: 13px;
}

.woocommerce ul.products li.product .button {
    display: none;
}

.woocommerce-products-header {
    padding: 22px 0 28px;
}

.woocommerce-products-header__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 7vw, 92px);
    line-height: 0.9;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin: 0 0 18px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 42px;
    border: 1px solid var(--line);
    background: var(--ivory);
    padding: 0 12px;
}

.bonafi-product-detail {
    padding-top: 132px;
    background: var(--ivory);
}

.product-detail-hero {
    position: relative;
    height: min(720px, calc(100vh - 132px));
    min-height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.96), rgba(222, 217, 210, 0.72) 62%, rgba(202, 197, 189, 0.72)),
        var(--soft);
}

.product-detail-hero__stage {
    width: min(760px, 78vw);
    height: calc(100% - 48px);
    display: grid;
    place-items: center;
}

.product-detail-hero__stage img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.14));
}

.product-detail-thumbs {
    position: absolute;
    right: 76px;
    bottom: 34px;
    display: flex;
    gap: 7px;
    padding: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(10px);
}

.product-detail-thumbs a {
    width: 44px;
    height: 44px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: var(--ivory);
}

.product-detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    position: relative;
    z-index: 2;
    width: min(1760px, calc(100% - 160px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 540px);
    gap: 76px;
    margin: 0 auto;
    padding: 46px 0 58px;
    background: var(--ivory);
}

.product-detail-info__copy h1 {
    margin: 0 0 18px;
    font-family: Inter, Arial, sans-serif;
    font-size: 21px;
    font-weight: 500;
}

.product-detail-price {
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 26px;
}

.product-detail-description {
    max-width: 620px;
    color: var(--muted);
}

.product-detail-colors {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.product-detail-colors > span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-detail-colors div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-detail-colors button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.product-detail-buy form.cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 0;
}

.product-detail-buy form.cart .quantity {
    display: none;
}

.product-detail-buy form.cart .button {
    width: 100%;
    min-height: 60px;
    background: var(--ink);
    color: var(--ivory);
}

.woocommerce .quantity .qty {
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--line);
}

.product-detail-service {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.product-detail-service p {
    margin: 0;
}

.product-detail-tabs,
.related.products {
    width: min(1760px, calc(100% - 160px));
    margin-inline: auto;
}

.product-detail-tabs {
    padding-bottom: 50px;
}

.product-detail-tabs .tabs {
    display: flex;
    gap: 20px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.product-detail-tabs .tabs a {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}

.product-detail-tabs .woocommerce-Tabs-panel h2 {
    display: none;
}

.bonafi-auth {
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
    padding: 168px 0 92px;
}

.bonafi-auth__intro {
    max-width: 720px;
    margin-bottom: 34px;
}

.bonafi-auth__intro h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(62px, 8vw, 116px);
    line-height: 0.9;
}

.bonafi-auth__intro p:not(.eyebrow) {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.bonafi-auth__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 18px;
}

.bonafi-auth__grid--single {
    grid-template-columns: minmax(0, 720px);
}

.bonafi-auth-card {
    padding: 38px;
    border: 1px solid var(--line);
    background: var(--ivory);
}

.bonafi-auth-card--dark {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}

.bonafi-auth-card h2 {
    margin: 0 0 26px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}

.bonafi-auth-note {
    margin: -8px 0 26px;
    color: rgba(255, 255, 255, 0.72);
}

.bonafi-auth .form-row {
    margin: 0 0 18px;
}

.bonafi-auth label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.bonafi-auth input[type="text"],
.bonafi-auth input[type="email"],
.bonafi-auth input[type="password"] {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--ivory);
    color: var(--ink);
    padding: 0 14px;
    font-size: 16px;
}

.bonafi-auth-card--dark input[type="text"],
.bonafi-auth-card--dark input[type="email"],
.bonafi-auth-card--dark input[type="password"] {
    border-color: rgba(255, 255, 255, 0.28);
}

.bonafi-auth-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bonafi-auth .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    text-transform: none;
}

.bonafi-auth .woocommerce-form__input-checkbox {
    width: 16px;
    height: 16px;
}

.bonafi-auth .lost_password {
    margin: 20px 0 0;
}

.bonafi-auth .lost_password a {
    border-bottom: 1px solid currentColor;
    color: var(--muted);
    font-weight: 700;
}

.bonafi-auth-card--dark .button {
    background: var(--ivory);
    color: var(--ink);
    border-color: var(--ivory);
}

.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account .woocommerce {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    border: 1px solid var(--line);
    border-radius: 0;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    border-color: var(--line);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 0;
    padding-inline: 12px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    border: 1px solid var(--line);
    border-radius: 0;
}

@media (max-width: 980px) {
    .announcement-bar {
        height: 32px;
    }

    .site-header {
        top: 32px;
    }

    .header-shell {
        width: min(100% - 28px, 1640px);
        height: 70px;
    }

    .brand-mark {
        width: 250px;
        height: 48px;
    }

    .brand-mark img {
        width: 250px !important;
        max-height: 48px !important;
    }

    .account-icon {
        display: none;
    }

    .symbol-mark,
    .symbol-mark img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }

    .header-actions {
        gap: 18px;
    }

    .menu-overlay {
        grid-template-columns: 1fr;
    }

    .menu-overlay__image {
        display: none;
    }

    .menu-panel {
        padding: 88px 34px 44px;
    }

    .category-showcase,
    .product-grid,
    .woocommerce ul.products,
    .footer-grid,
    .product-detail-info,
    .bonafi-auth__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-info,
    .product-detail-tabs,
    .related.products {
        width: min(100% - 36px, var(--container));
    }

    .product-detail-thumbs {
        right: 28px;
        bottom: 24px;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-toolbar .woocommerce-ordering,
    .shop-toolbar .woocommerce-ordering select {
        width: 100%;
    }

    .woocommerce-cart-form,
    .woocommerce-checkout,
    .woocommerce-account .woocommerce {
        width: min(100% - 28px, 1240px);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-shell {
        grid-template-columns: 28px minmax(120px, 1fr) auto;
        column-gap: 8px;
        height: 64px;
        width: min(100% - 20px, 1640px);
    }

    .brand-mark {
        justify-self: center;
        width: clamp(132px, 39vw, 168px);
        height: 34px;
    }

    .brand-mark img {
        width: clamp(132px, 39vw, 168px) !important;
        max-height: 34px !important;
    }

    .symbol-mark,
    .symbol-mark img {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }

    .search-icon {
        display: none;
    }

    .bag-icon {
        width: 18px;
        height: 16px;
    }

    .header-actions {
        gap: 10px;
    }

    .menu-button {
        min-width: 58px;
        height: 32px;
        gap: 7px;
        padding-inline: 7px;
        font-size: 10px;
    }

    .menu-lines {
        width: 18px;
    }

    .hero {
        min-height: 100svh;
        padding: 120px 18px 52px;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.78)),
            var(--hero-mobile-image) center / cover no-repeat,
            var(--ink);
    }

    .hero__content {
        gap: 18px;
        max-width: 280px;
    }

    .menu-panel {
        min-height: 100dvh;
        padding: 78px 24px 36px;
    }

    .menu-close {
        width: 50px;
        height: 50px;
    }

    .menu-close span {
        top: 24px;
        left: 14px;
        width: 22px;
    }

    .primary-nav .menu {
        gap: 20px;
    }

    .primary-nav a {
        font-size: 26px;
    }

    .category-showcase,
    .product-grid,
    .woocommerce ul.products,
    .footer-grid,
    .product-detail-info,
    .bonafi-auth__grid {
        grid-template-columns: 1fr;
    }

    .bonafi-auth {
        width: min(100% - 28px, 1240px);
        padding-top: 132px;
    }

    .bonafi-auth-card {
        padding: 26px;
    }

    .category-showcase__item {
        grid-template-rows: minmax(310px, 86vw) 60px;
    }

    .section-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .bonafi-product-detail {
        padding-top: 112px;
    }

    .product-detail-hero {
        height: 55vh;
        min-height: 360px;
    }

    .product-detail-hero__stage {
        width: 88vw;
        height: calc(100% - 36px);
    }

    .product-detail-thumbs {
        right: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
        overflow-x: auto;
    }

    .product-detail-buy form.cart {
        grid-template-columns: 1fr;
    }

    .product-detail-info {
        gap: 28px;
        padding: 30px 0 42px;
    }

    .product-detail-tabs,
    .related.products {
        width: min(100% - 28px, var(--container));
    }

    .shop-main {
        padding-top: 120px;
    }

    .shop-hero {
        padding: 28px 0 24px;
    }

    .shop-hero h1 {
        font-size: 54px;
    }

    .product-section {
        padding: 46px 0 64px;
    }

    .product-section--shop {
        padding-top: 1px;
    }

    .product-tile__body {
        padding: 14px 14px 18px;
    }

    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tr,
    .woocommerce-cart table.shop_table td {
        display: block;
        width: 100%;
    }

    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    .woocommerce-cart table.shop_table tr {
        border-bottom: 1px solid var(--line);
    }

    .woocommerce-cart table.shop_table td {
        text-align: left !important;
        border-right: 0;
    }

    .woocommerce-cart .coupon {
        display: grid;
        gap: 10px;
        float: none !important;
    }

    .woocommerce-cart .coupon input,
    .woocommerce-cart .coupon .button,
    .woocommerce-cart .actions .button {
        width: 100% !important;
    }

    .woocommerce .cart-collaterals .cart_totals,
    .woocommerce-page .cart-collaterals .cart_totals {
        float: none;
        width: 100%;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review_heading {
        width: 100%;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2,
    .woocommerce-page .col2-set .col-1,
    .woocommerce-page .col2-set .col-2 {
        float: none;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .announcement-bar {
        height: 30px;
        padding-inline: 12px;
        text-align: center;
        font-size: 10px;
    }

    .site-header {
        top: 30px;
    }

    .brand-mark {
        width: clamp(126px, 38vw, 148px);
        height: 32px;
    }

    .brand-mark img {
        width: clamp(126px, 38vw, 148px) !important;
        max-height: 32px !important;
    }

    .symbol-mark,
    .symbol-mark img {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }

    .menu-button span:last-child {
        display: none;
    }

    .menu-button {
        min-width: 42px;
        padding-inline: 8px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 112px;
        padding-bottom: 46px;
    }

    .hero h1 {
        font-size: 18px;
    }
}
