:root {
    --ink: #29211e;
    --wine: #762c3b;
    --plum: #362623;
    --paper: #faf7f1;
    --line: #dfd3c8;
    --muted: #665852;
    --rose: #ead0cd;
    --panel: #f2e9df;
    --leaf: #33463a;
}
.humann-studio .frame { width: min(100% - 3rem, 80rem); }
.market-announcement {
    padding: .55rem 1rem; text-align: center; background: var(--leaf);
    color: #fff; font-size: .83rem; letter-spacing: .025em;
}
.market-announcement a { color: inherit; text-underline-offset: .23em; }
.humann-studio .site-header { background: #fffdf9; }
.humann-studio .site-header .frame { min-height: 5rem; gap: .8rem 1.4rem; }
.humann-studio .brand {
    font: 700 clamp(1.35rem,2vw,1.8rem)/1 Georgia,serif;
    letter-spacing: -.06em; white-space: nowrap;
}
.humann-studio .brand span { color: var(--wine); font-weight: 400; }
.humann-studio .site-nav { gap: clamp(.8rem,2vw,2rem); font-weight: 600; font-size: .9rem; }
.humann-studio .header-actions { gap: clamp(.65rem,1.5vw,1.4rem); }
.humann-studio .header-cart {
    min-width: 49px; min-height: 44px; display: inline-grid; place-items: center;
    padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 2rem;
}
.humann-studio .store-search input { width: min(17vw, 15rem); }
.humann-studio .store-search button { min-height: 44px; padding-inline: .85rem; }
.humann-studio .action,
.market-filters button,
.market-contact-form button {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    min-height: 47px; padding: .65rem 1.2rem; border: none; border-radius: 2rem;
    background: var(--wine); color: #fff; font: 650 1rem/1.25 system-ui,sans-serif;
    text-decoration: none; cursor: pointer;
}
.humann-studio .action:hover,
.market-filters button:hover,
.market-contact-form button:hover { background: #58202e; }
.market-home { padding-block: clamp(1rem, 3vw, 2.6rem) clamp(3.5rem,8vw,7rem); }
.market-hero {
    display: grid; grid-template-columns: 1fr .94fr; gap: clamp(1.25rem,4vw,4.5rem);
    padding: clamp(1.1rem,3vw,3rem); border-radius: 1.1rem; background: var(--rose);
}
.market-hero-copy { align-self: center; padding: clamp(.15rem, 2vw, 2.3rem); }
.market-kicker {
    margin: 0 0 .8rem; color: var(--wine); font-size: .8rem; font-weight: 750;
    letter-spacing: .11em; text-transform: uppercase;
}
.market-hero h1 {
    margin: 0; max-width: 12ch; font: 400 clamp(3.1rem,7vw,6.45rem)/.97 Georgia,serif;
    letter-spacing: -.065em;
}
.market-hero-copy > p:not(.market-kicker) { margin: 1.25rem 0; max-width: 36ch; color: #574541; }
.market-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem; }
.market-hero-product {
    color: var(--ink); text-decoration: none; background: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    border-radius: .9rem; overflow: hidden; min-width: 0;
}
.market-hero-product img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: contain; }
.market-hero-product > span { display: grid; gap: .15rem; padding: .9rem 1.2rem; background: #fbf8f4; font-weight: 650; }
.market-hero-product small { color: var(--wine); font-weight: 650; }
.market-section { margin: clamp(3.3rem,7vw,6rem) 0; }
.market-section-head {
    display: flex; gap: 1rem; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; margin-bottom: 1.45rem;
}
.market-section-head h2,.market-resources h2,.market-product-details h2 {
    font: 400 clamp(2.25rem,4.8vw,4.1rem)/1 Georgia,serif; letter-spacing: -.055em; margin: 0;
}
.market-collections { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .9rem; }
.market-collections a {
    display: grid; gap: .35rem; background: #fff; border: 1px solid var(--line);
    border-radius: .75rem; color: var(--ink); text-decoration: none; overflow: hidden;
}
.market-collections a:hover { border-color: var(--wine); }
.market-collections img { width: 100%; aspect-ratio: 1.2; object-fit: contain; padding: .35rem; }
.market-collections a > span { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; font-weight: 650; }
.market-resources {
    display: grid; grid-template-columns: 1fr .83fr; gap: 1.6rem;
    padding: clamp(1.35rem, 5vw, 4rem); background: var(--leaf); color: #fff; border-radius: .95rem;
}
.market-resources a { color: #fff; }
.market-resource-links { display: grid; align-content: center; }
.market-resource-links a {
    display: flex; justify-content: space-between; gap: .6rem; padding: .8rem 0;
    border-block-end: 1px solid #8e9a90; text-decoration: none;
}
.humann-studio .content { padding-block: clamp(2rem,5vw,4.2rem); }
.humann-studio .content h1 { font-size: clamp(2.25rem,6vw,4.75rem); line-height: 1.07; letter-spacing: -.05em; }
.market-shop-heading { background: var(--panel); padding: 1.1rem; border-radius: .7rem; margin: 1rem 0; }
.market-shop-heading p { margin: 0 0 .65rem; }
.market-shop-heading nav,.market-ingredient-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.market-shop-heading nav a,.market-ingredient-links a {
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 2rem;
    min-height: 40px; padding: .45rem .75rem; text-decoration: none;
}
.market-shop-heading nav a[aria-current] { background: var(--wine); color: #fff; }
.market-filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem 1rem;
    border-bottom: 1px solid var(--line); padding: .6rem 0 1.15rem; margin-bottom: 1.3rem;
}
.market-filters label,.market-contact-form label { display: grid; gap: .25rem; font-weight: 650; }
.market-filters select,.market-contact-form input,.market-contact-form textarea {
    min-height: 46px; padding: .55rem .7rem; min-width: 0; font: inherit; color: var(--ink);
    border: 1px solid #ad9f97; border-radius: .42rem; background: #fff;
}
.market-filters > a { padding-block: .65rem; }
.humann-studio ul.products li.product a img {
    aspect-ratio: 1; width: 100%; object-fit: contain; background: #fff; border-radius: .6rem;
}
.humann-studio ul.products li.product {
    background: #fffdf9; border: 1px solid var(--line); padding: .75rem; border-radius: .85rem;
}
.humann-studio ul.products li.product .woocommerce-loop-product__title {
    font: 650 1.03rem/1.27 system-ui,sans-serif; color: var(--ink);
}
.humann-studio ul.products li.product .price,.humann-studio .summary .price { color: var(--wine); }
.humann-studio ul.products li.product .button { min-height: 44px; }
.humann-studio .site-footer { background: var(--plum); }
.humann-studio .site-footer .market-footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.3rem;
}
.market-footer-grid nav { display: grid; align-content: start; gap: .58rem; }
.market-footer-grid h2 { margin: 0 0 .2rem; font: 650 1rem system-ui,sans-serif; }
.market-footer-grid .brand span { color: #f2ccc5; }
.market-footer-grid p { color: #dfd3c8; }
.market-product-spec { color: var(--muted); font-weight: 550; }
.humann-studio .woocommerce-product-gallery {
    background: #fff; padding: .65rem; border-radius: .85rem; opacity: 1 !important;
}
.humann-studio .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
}
.humann-studio .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image {
    flex: 0 0 100%; min-width: 0; scroll-snap-align: start;
}
.humann-studio .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%; aspect-ratio: 1; object-fit: contain;
}
.humann-studio .woocommerce-product-gallery .flex-control-thumbs li img { aspect-ratio: 1; object-fit: contain; border-radius: .3rem; }
.market-product-details {
    clear: both; display: grid; grid-template-columns: .94fr 1fr; gap: 1.35rem;
    margin: 2.75rem 0; padding: clamp(1rem,4vw,3rem); background: var(--panel); border-radius: .85rem;
}
.market-product-details h2 { font-size: clamp(2rem,4vw,3.2rem); }
.market-product-details dl,.market-policy-rates { margin: 0; }
.market-product-details dl div,.market-policy-rates div {
    display: grid; grid-template-columns: minmax(88px,.65fr) 1fr; gap: .6rem;
    border-block-end: 1px solid #d3c3b7; padding: .65rem 0;
}
.market-product-details dt,.market-policy-rates dt { font-weight: 700; }
.market-product-details dd,.market-policy-rates dd { margin: 0; }
.market-editorial { max-width: 67rem; }
.market-editorial .market-lead { color: var(--muted); max-width: 52ch; margin: 0 0 1.5rem; font-size: 1.15rem; }
.market-editorial section,.market-editorial details {
    background: #fffdf9; padding: clamp(.85rem,3vw,1.5rem); border: 1px solid var(--line);
    border-radius: .65rem; margin: 0 0 .85rem;
}
.market-editorial section h2 { margin: 0 0 .5rem; }
.market-editorial section p:last-child,.market-editorial details p:last-child { margin-bottom: 0; }
.market-editorial summary { min-height: 44px; display: list-item; align-content: center; font-weight: 650; cursor: pointer; }
.market-editorial .market-collections { margin: 1rem 0 1.5rem; }
.market-contact-form { max-width: 39rem; display: grid; gap: .9rem; }
.market-contact-form button { justify-self: start; }
.market-contact-form label span { color: var(--muted); font-size: .84rem; }
.market-contact-form .market-form-company { position: absolute; inset-inline-start: -9999px; }
.market-form-status { border-inline-start: 4px solid var(--wine); padding: .55rem .8rem; background: var(--panel); }
@media (max-width: 940px) {
    .humann-studio .site-header .frame { gap: .45rem .8rem; }
    .humann-studio .store-search { width: 100%; }
    .humann-studio .store-search input { width: auto; flex: 1; }
}
@media (max-width: 720px) {
    .humann-studio .frame { width: calc(100% - 1.6rem); }
    .humann-studio .site-header .frame { padding-block: .55rem; }
    .humann-studio .site-nav { font-size: .94rem; }
    .market-hero,.market-resources,.market-product-details { grid-template-columns: 1fr; }
    .market-hero { gap: 1rem; }
    .market-hero h1 { font-size: clamp(2.95rem,12.4vw,4.2rem); }
    .market-hero-product img { aspect-ratio: 1.3; }
    .market-collections { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .humann-studio .site-footer .market-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .market-footer-grid > div:first-child { grid-column: 1 / -1; }
    .market-filters label { flex: 1 1 130px; }
    .market-filters select { width: 100%; }
}
