.ccmi-home {
    --ccmi-cream: #faf6ed;
    --ccmi-sand: #f1e2d1;
    --ccmi-plum: #541f31;
    --ccmi-ink: #321f1d;
    --ccmi-terra: #8a462f;
    background: var(--ccmi-cream);
    color: var(--ccmi-ink);
    font: 16px/1.6 system-ui, sans-serif;
}
.ccmi-home *, .ccmi-home *::before, .ccmi-home *::after { box-sizing: border-box; }
.ccmi-home .ccmi-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--ccmi-sand); }
.ccmi-home .ccmi-hero-copy { padding: clamp(32px, 5vw, 76px); align-self: center; }
.ccmi-home .ccmi-hero-image { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.ccmi-home .ccmi-hero h1, .ccmi-home .ccmi-section > h2, .ccmi-home .ccmi-seller h2 {
    margin: 0 0 18px;
    color: var(--ccmi-ink);
    font: 400 clamp(32px, 4.2vw, 58px)/1.05 Georgia, serif;
    letter-spacing: -.05em;
}
.ccmi-home .ccmi-hero h1 { font-size: clamp(44px, 6.8vw, 98px); letter-spacing: -.07em; }
.ccmi-home .ccmi-eyebrow { margin: 0 0 14px; color: var(--ccmi-terra); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.ccmi-home .ccmi-intro { max-width: 36ch; margin: 0 0 24px; }
.ccmi-home .ccmi-button, .ccmi-home .ccmi-secondary {
    display: inline-flex; align-items: center; gap: 12px; padding: 11px 17px; border: 1px solid var(--ccmi-plum);
    border-radius: 4px; text-decoration: none; font-weight: 650;
}
.ccmi-home .ccmi-button { background: var(--ccmi-plum); color: #fff; }
.ccmi-home .ccmi-button:hover { background: #743048; color: #fff; }
.ccmi-home .ccmi-secondary { color: var(--ccmi-plum); }
.ccmi-home a:focus-visible { outline: 3px solid var(--ccmi-terra); outline-offset: 3px; }
.ccmi-home .ccmi-section { padding: clamp(30px, 5vw, 66px); }
.ccmi-home .ccmi-makers { background: var(--ccmi-sand); }
.ccmi-home .ccmi-seller { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ccmi-home .ccmi-seller p:last-child { max-width: 56ch; margin-bottom: 0; }
.ccmi-home .ccmi-seller .ccmi-button { flex-shrink: 0; }
@media (max-width: 680px) {
    .ccmi-home .ccmi-hero { grid-template-columns: 1fr; }
    .ccmi-home .ccmi-hero-image { height: 265px; min-height: 0; }
    .ccmi-home .ccmi-seller { align-items: flex-start; flex-direction: column; }
}

body.ccmi-page { margin: 0; background: #faf6ed; }
.ccmi-shell { color: #321f1d; font: 16px/1.6 system-ui, sans-serif; }
.ccmi-shared-header .ccmi-ribbon { padding: 8px 16px; background: #541f31; color: #fff; text-align: center; font-size: 12px; letter-spacing: .09em; }
.ccmi-shared-header .ccmi-header, .ccmi-shell .ccmi-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 18px max(5vw, 20px); background: #fffcf5;
}
.ccmi-shell .ccmi-footer { border-top: 1px solid #ded1c3; font-size: 14px; flex-wrap: wrap; }
.ccmi-shared-header .ccmi-header a { color: inherit; text-decoration: none; }
.ccmi-shared-header .ccmi-header a:hover { text-decoration: underline; }
.ccmi-shared-header .ccmi-header .ccmi-brand, .ccmi-shell .ccmi-footer .ccmi-brand {
    color: #541f31; font: 400 25px/1.15 Georgia, serif; letter-spacing: -.04em;
}
.ccmi-shared-header .ccmi-header nav { display: flex; flex-wrap: wrap; gap: 14px clamp(15px, 3vw, 36px); font-size: 14px; }
.ccmi-shared-header .ccmi-cart { border: 1px solid #ded1c3; border-radius: 999px; padding: 7px 16px; }
@media (max-width: 680px) {
    .ccmi-shared-header .ccmi-header { flex-wrap: wrap; }
    .ccmi-shared-header .ccmi-header nav { order: 2; width: 100%; }
}

.ccmi-shared-header {
    background: #fffcf5;
    color: #321f1d;
    font: 16px/1.6 system-ui, sans-serif;
}
.ccmi-shared-header .ccmi-header-image {
    display: block;
    width: 100%;
    height: clamp(65px, 7vw, 108px);
    object-fit: cover;
    object-position: center;
}
.ccmi-shared-header--home .ccmi-header-image {
    height: clamp(120px, 13vw, 208px);
}

.ccmi-home.ccmi-seller-page { padding: clamp(24px, 5vw, 56px); }
.ccmi-home.ccmi-seller-page h2 {
    margin: 0 0 18px;
    color: var(--ccmi-ink);
    font: 400 clamp(32px, 4.2vw, 58px)/1.05 Georgia, serif;
    letter-spacing: -.05em;
}
.ccmi-seller-page p { max-width: 58ch; }

/* Give the seller and directory pages the same usable width as the shop. */
body.ccmi-wide-market-page .wp-site-blocks main {
    --wp--style--global--content-size: var(--wp--style--global--wide-size, 1280px);
}
body.ccmi-wide-market-page .wp-site-blocks main .wp-block-post-title,
body.ccmi-wide-market-page .wp-site-blocks main .entry-content > :not(.alignfull),
body.ccmi-wide-market-page .wp-site-blocks main .entry-content > #dokan-seller-listing-wrap {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin-inline: auto;
}
body.ccmi-wide-market-page .ccmi-seller-page,
body.ccmi-wide-market-page #dokan-seller-listing-wrap {
    width: 100%;
}

.ccmi-maker-form { display: grid; gap: 16px; max-width: 640px; }
.ccmi-maker-form label { display: grid; gap: 6px; font-weight: 650; }
.ccmi-maker-form input:not([type=file]), .ccmi-maker-form textarea {
    width: 100%; font: inherit; border: 1px solid #b6a89b; border-radius: 4px; padding: 9px 12px;
}
.ccmi-maker-form button { width: fit-content; cursor: pointer; font: inherit; }
.ccmi-maker-form p { margin: 0; }

.ccmi-maker-guide .ccmi-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 30px);
    margin-top: 26px;
}
.ccmi-maker-guide .ccmi-guide-step {
    min-width: 0;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid #ded1c3;
    border-radius: 6px;
    background: #fffcf5;
    overflow-wrap: anywhere;
}
.ccmi-maker-guide.ccmi-seller-page .ccmi-guide-step h2 {
    font-size: clamp(24px, 3vw, 37px);
    margin: 0 0 12px;
}
.ccmi-maker-guide .ccmi-guide-step p { margin: 0; }
@media (max-width: 720px) {
    .ccmi-maker-guide .ccmi-guide-grid { grid-template-columns: minmax(0, 1fr); }
}

.ccmi-shop-tools {
    box-sizing: border-box;
    margin-block: 20px 24px;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid #ded1c3;
    border-radius: 6px;
    background: #faf6ed;
    color: #321f1d;
}
.ccmi-shop-tools label, .ccmi-shop-tools nav p { display: block; margin: 0 0 8px; font-weight: 650; }
.ccmi-shop-tools .ccmi-shop-search-row { display: flex; gap: 8px; }
.ccmi-shop-tools input[type=search] {
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #b6a89b;
    border-radius: 4px;
    background: #fffcf5;
    color: inherit;
    font: inherit;
}
.ccmi-shop-tools button, .ccmi-shop-tools a[aria-current=page] {
    border: 1px solid #541f31;
    background: #541f31;
    color: #fff;
}
.ccmi-shop-tools button { padding: 8px 14px; border-radius: 4px; font: inherit; cursor: pointer; }
.ccmi-shop-tools nav { margin-top: 18px; }
.ccmi-shop-tools ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ccmi-shop-tools a { display: inline-block; padding: 5px 12px; border: 1px solid #b6a89b; border-radius: 20px; color: #541f31; text-decoration: none; }
.ccmi-shop-tools a:hover { text-decoration: underline; }
