.app-heading,.catalog-heading { padding-top:30px; }
.app-heading .crumbs,.catalog-heading .crumbs { margin-bottom:.65rem; }
.app-heading h1,.catalog-heading h1 { margin:0; font-size:clamp(2.45rem,5.5vw,5.4rem); line-height:1.01; }
.app-heading > div:last-child,.catalog-heading > div { display:flex; align-items:center; gap:.75rem 1rem; flex-wrap:wrap; justify-content:space-between; }
.app-heading > p { margin:.85rem 0 0; }
.app-page { padding-top:24px; }
.catalog-page { padding:19px 0 60px; }
.catalog-tabs { display:flex; flex-wrap:wrap; gap:.43rem; padding-bottom:17px; border-bottom:1px solid var(--line); }
.catalog-tabs .filter-chip { border-radius:8px; padding:.48rem .68rem; }
.catalog-tabs .is-active { background:#e6ecd6; }
.catalog-columns { display:grid; grid-template-columns:230px minmax(0,1fr); gap:clamp(14px,2vw,28px); margin-top:21px; align-items:start; }
.catalog-sidebar { position:sticky; top:15px; }
.catalog-panel { border:1px solid var(--line); border-radius:14px; background:var(--white); padding:15px; }
.catalog-panel > summary { display:block; font-weight:700; color:var(--ink); font-size:1rem; margin-bottom:0; list-style:none; cursor:pointer; }
.catalog-panel > summary::-webkit-details-marker { display:none; }
.catalog-panel > summary .bi { margin-right:.38rem; }
.catalog-panel > summary::after { float:right; content:"+"; }
.catalog-panel[open] > summary { margin-bottom:.8rem; }
.catalog-panel[open] > summary::after { content:"−"; }
.catalog-panel .form-stack { gap:.76rem; }
.catalog-panel .form-control,.catalog-panel .form-select { font-size:.88rem; }
.catalog-panel .form-stack .btn { width:100%; }
.catalog-panel .filter-reset { font-size:.86rem; text-align:center; }
.filter-group { display:grid; gap:.66rem; padding:.78rem 0 .15rem; border-top:1px solid var(--line); }
.result-bar { min-height:49px; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; }
.result-bar p { color:var(--ink); font-weight:600; font-size:.93rem; margin:0; }
.result-bar label { display:flex; align-items:center; gap:.5rem; font-size:.86rem; font-weight:700; }
.result-bar select { width:auto; min-height:39px; font-size:.85rem; }
.catalog-main .product-grid { gap:13px; }
.product-page { padding-top:24px; }
.product-stage { grid-template-columns:minmax(0,1.28fr) minmax(0,1fr); gap:clamp(20px,4vw,60px); }
.product-media { min-width:0; }
.product-page .detail-photo,.product-stage .detail-photo { position:relative; margin:0; border-radius:19px; aspect-ratio:1.19; }
.media-zoom { position:absolute; bottom:13px; right:13px; color:var(--ink); background:#fffdf3; border:1px solid var(--line); padding:.55rem .68rem; font-size:.79rem; }
.media-zoom:hover { background:#ededd9; }
.photo-dialog { width:min(calc(100% - 24px),720px); max-height:calc(100% - 24px); padding:0; border:0; border-radius:13px; background:var(--white); overflow:auto; }
.photo-dialog::backdrop { background:#1b201cbd; }
.photo-dialog form { position:absolute; top:9px; right:9px; }
.photo-dialog .icon-btn { background:var(--white); }
.photo-dialog img { width:100%; height:auto; }
.product-purchase { position:sticky; top:15px; border:1px solid var(--line); padding:clamp(18px,2.8vw,35px); border-radius:18px; background:var(--white); }
.product-purchase h1 { font-size:clamp(2.14rem,4.1vw,4rem); margin:.45rem 0 .6rem; text-wrap:balance; }
.product-purchase .maker-link { font-size:.93rem; }
.product-purchase .detail-price { font-size:1.9rem; margin:.9rem 0 .7rem; }
.purchase-actions { margin:1rem 0; }
.purchase-actions .btn { flex:1; }
.purchase-actions input { width:64px; padding-inline:.45rem; }
.personal-link { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.6rem; padding:.7rem; border:1px solid #e3ddc7; border-radius:9px; color:var(--ink); background:#f7f3e3; text-decoration:none; }
.personal-link:hover { background:#f0e8cf; }
.personal-link :is(strong,small) { display:block; }
.personal-link small { color:var(--soft-ink); }
.delivery-link { display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:.87rem; margin-top:.8rem; text-decoration:none; }
.delivery-link > .bi:last-child { margin-left:auto; }
.product-story { display:grid; grid-template-columns:1.35fr .9fr 1fr; align-items:stretch; gap:1rem; margin-top:1.25rem; padding-top:1.2rem; border-top:1px solid var(--line); }
.product-story h2 { font-size:1.35rem; }
.product-story p { margin:0; line-height:1.65; }
.product-story dl { display:grid; gap:.65rem; margin:0; padding:0 0 0 1rem; border-left:1px solid var(--line); }
.product-story dt { font-size:.79rem; color:var(--soft-ink); }
.product-story dd { font-weight:700; margin:0; }
.product-maker { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:.6rem; padding:.7rem; background:var(--shell); border:1px solid var(--line); border-radius:11px; color:var(--ink); text-decoration:none; }
.product-maker img { width:58px; height:58px; object-fit:cover; border-radius:8px; }
.product-maker :is(small,strong,span > span) { display:block; }
.product-maker small { font-size:.64rem; letter-spacing:.12em; color:var(--accent); }
.product-maker span > span { font-size:.8rem; color:var(--soft-ink); }
.maker-stage { grid-template-columns:1.15fr 1fr; margin:0; border-radius:19px; background:#e9eddb; }
.maker-stage .studio-copy { padding:clamp(20px,3.8vw,50px); }
.maker-stage h1 { font-size:clamp(2.35rem,4.9vw,5.2rem); }
.maker-directory .maker-grid { gap:15px; }
.maker-card { border-radius:14px; display:flex; flex-direction:column; }
.maker-card > div { display:flex; flex-direction:column; flex:1; padding:1.05rem 1.15rem; }
.maker-card img { aspect-ratio:1.58; }
.maker-card .studio-location { font-weight:700; }
.maker-card .text-link { margin-top:auto; padding-top:.5rem; }
.directory-toolbar { background:var(--shell); border-radius:12px; }
.gift-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:15px; margin-bottom:35px; }
.gift-image { min-height:330px; position:relative; border-radius:17px; overflow:hidden; background:#e8dbc2; }
.gift-image img { position:absolute; width:100%; height:100%; object-fit:cover; }
.gift-layout .gift-picker { align-content:center; border-radius:16px; background:var(--shell); }
.gift-layout .form-row { grid-template-columns:1fr 1fr; }
.gift-layout .form-row label:last-child { grid-column:1/-1; }
.gift-page .occasion-grid { margin-top:0; }
.occasion-card span { border:1px solid var(--line); border-top:none; border-radius:0 0 12px 12px; background:var(--white); }
.request-layout { grid-template-columns:minmax(0,1fr) minmax(0,.8fr); }
.request-notebook { padding:clamp(16px,2vw,24px); border-radius:14px; background:var(--shell); }
.request-notebook h2 { font-size:1.65rem; }
.request-notebook .request-note h2 { font-size:1.2rem; margin:0; }
.request-notebook .form-actions .btn { --bs-btn-padding-y:.45rem; }
.checkout-steps { list-style:none; display:flex; flex-wrap:wrap; gap:.38rem; padding:0; margin:.9rem 0; }
.checkout-steps li > :is(a,span) { display:inline-block; border-radius:7px; padding:.4rem .63rem; background:#eeeee5; color:var(--soft-ink); font-size:.81rem; font-weight:700; text-decoration:none; }
.checkout-steps li[aria-current] > span { color:#233021; background:#dfe8c9; }
.checkout-shell { grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr); }
.checkout-form { display:grid; gap:.85rem; }
.checkout-panel h2 .bi,.field-panel h2 .bi { color:var(--accent); font-size:1rem; margin-right:.3rem; }
.checkout-panel .choice:has(input:checked) { background:#edf1e3; border-color:#9ea78e; }
.checkout-shell .totals { background:#ebefdc; border-color:#d6dfc5; }
.checkout-shell > [data-totals],.cart-layout > .totals,.seller-workspace > .listing-preview { position:sticky; top:15px; }
.cart-layout .line-item { padding:15px; grid-template-columns:94px minmax(0,1fr) auto; }
.cart-layout .line-item img { width:94px; height:94px; border-radius:10px; }
.cart-layout .line-item h2 { font-size:1.2rem; }
.cart-layout .totals .btn { width:100%; }
.account-shell { display:grid; grid-template-columns:225px minmax(0,1fr); gap:1rem; align-items:start; }
.account-side { display:grid; padding:.45rem; border:1px solid var(--line); background:var(--shell); border-radius:12px; }
.account-side a { color:var(--ink); display:flex; align-items:center; gap:.64rem; padding:.58rem .64rem; border-radius:7px; text-decoration:none; font-size:.9rem; }
.account-side a:hover,.account-side a[aria-current] { background:#dfe8cf; color:var(--accent-dark); }
.account-body { min-width:0; }
.account-body .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.account-intro { background:#ebefda; }
.account-intro h2 { font-size:1.8rem; }
.account-grid a { margin-top:auto; }
.auth-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; max-width:1000px; }
.auth-image { border-radius:14px; overflow:hidden; min-height:310px; }
.auth-image img { width:100%; height:100%; object-fit:cover; }
.auth-layout .auth-panel { max-width:none; width:100%; display:grid; margin:0; align-content:center; }
.auth-links { display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
.workspace-tools { display:flex; justify-content:space-between; align-items:center; gap:.6rem; flex-wrap:wrap; padding:.75rem 1rem; border:1px solid var(--line); border-radius:10px; background:var(--shell); margin-bottom:.85rem; font-weight:700; }
.workspace-tools .bi { margin-right:.3rem; }
.workspace-count { margin:0; font-size:.85rem; font-weight:700; }
.seller-workspace { grid-template-columns:minmax(0,1.55fr) minmax(245px,1fr); }
.field-panel { scroll-margin-top:16px; }
.editor-nav { display:flex; gap:.33rem; flex-wrap:wrap; margin-bottom:1rem; }
.editor-nav a { padding:.3rem .48rem; border-radius:5px; text-decoration:none; background:#e8eddb; color:var(--accent-dark); font-weight:700; font-size:.75rem; }
.upload-area { border:1px dashed #9ca790; background:#f0f2e6; border-radius:9px; padding:.65rem .75rem; }
.upload-area small { display:block; margin-top:.28rem; color:var(--soft-ink); }
.help-shell { grid-template-columns:235px minmax(0,1fr); grid-template-areas:"nav article"; gap:1.5rem; }
.help-shell .prose { grid-area:article; max-width:82ch; }
.help-shell .info-aside { grid-area:nav; border-radius:12px; background:var(--shell); }
.help-shell .info-aside a[aria-current] { font-weight:700; }
.sell-stage { background:#e7ebd9; }
@media(max-width:1100px) {
    .catalog-main .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:850px) {
    .catalog-columns { grid-template-columns:185px minmax(0,1fr); gap:12px; }
    .catalog-main .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .product-story { grid-template-columns:1fr 1fr; }
    .product-maker { grid-column:1/-1; }
    .checkout-shell,.seller-workspace { grid-template-columns:1fr; }
    .checkout-shell > [data-totals],.cart-layout > .totals,.seller-workspace > .listing-preview { position:static; }
}
@media(max-width:680px) {
    .app-heading,.catalog-heading { padding-top:23px; }
    .catalog-page { padding-bottom:34px; }
    .catalog-sidebar,.product-purchase { position:static; }
    .catalog-tabs { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; padding-bottom:10px; }
    .catalog-tabs a { flex:none; }
    .catalog-columns { grid-template-columns:1fr; margin-top:12px; }
    .catalog-panel { padding:11px 12px; }
    .catalog-panel > summary { display:flex; align-items:center; gap:.3rem; cursor:pointer; margin:0; }
    .catalog-panel > summary::after { margin-left:auto; content:"+"; }
    .catalog-panel[open] > summary { margin-bottom:.65rem; }
    .catalog-panel[open] > summary::after { content:"−"; }
    .catalog-main .product-grid { gap:8px; }
    .result-bar { margin-bottom:6px; }
    .product-stage,.maker-stage,.gift-layout,.request-layout,.account-shell,.auth-layout { grid-template-columns:1fr; }
    .product-story { gap:.75rem; }
    .product-story dl { padding-left:.7rem; }
    .maker-directory .maker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .maker-card > div { padding:.7rem; }
    .maker-card h2 { font-size:1.12rem; }
    .maker-card .text-link { font-size:.78rem; }
    .gift-image { min-height:212px; }
    .gift-layout { margin-bottom:22px; }
    .auth-image { min-height:0; height:148px; }
    .account-side { display:flex; flex-wrap:wrap; gap:.2rem; }
    .account-side a { padding:.37rem .45rem; font-size:.8rem; }
    .account-body .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .help-shell { grid-template-columns:1fr; grid-template-areas:"article" "nav"; }
}
@media(max-width:600px) {
    .cart-layout .line-item { grid-template-columns:62px minmax(0,1fr); padding:9px; }
    .cart-layout .line-item img { width:62px; height:62px; }
    .cart-layout .line-item h2 { font-size:1.03rem; }
    .gift-layout .form-row { grid-template-columns:1fr; }
    .product-purchase { padding:15px; }
    .purchase-actions { gap:.32rem; }
    .purchase-actions .btn { --bs-btn-padding-x:.47rem; }
    .purchase-actions input { width:52px; }
}


/* Shared treatments for browse, product, checkout, and seller screens. */
.app-heading,.catalog-heading { padding-top:23px; }
.app-heading h1,.catalog-heading h1,.maker-stage h1,.product-purchase h1 {
    font:800 clamp(2.65rem,6.9vw,6.65rem)/.85 var(--poster);
    text-transform:uppercase;
    letter-spacing:-.018em;
    margin:.2rem 0;
    overflow-wrap:anywhere;
}
.catalog-heading > div { background:var(--ink); border:1px solid var(--ink); color:white; padding:clamp(14px,2.15vw,30px); }
.catalog-heading h1,.catalog-heading > div .text-link { color:var(--signal); }
.catalog-heading > div :focus-visible { outline-color:var(--signal); }
.app-heading { border-bottom:1px solid var(--ink); padding-bottom:13px; }
.app-heading > p { margin:.6rem 0 0; }
.catalog-page { padding-top:12px; }
.catalog-tabs { padding-bottom:12px; border-color:var(--ink); }
.catalog-tabs .filter-chip { border-radius:2px; border-color:var(--ink); padding:.42rem .65rem; }
.catalog-tabs :is(.filter-chip:hover,.is-active) { background:var(--signal); border-color:var(--ink); color:var(--ink); }
.catalog-columns { gap:clamp(12px,1.8vw,24px); grid-template-columns:225px minmax(0,1fr); }
.catalog-panel { padding:0; border-radius:2px; overflow:hidden; }
.catalog-panel > summary { color:#fff; background:var(--ink); padding:.62rem .8rem; }
.catalog-panel > summary:focus-visible { outline-color:var(--signal); outline-offset:-4px; }
.catalog-panel[open] > summary { margin:0; }
.catalog-panel .form-stack { padding:.75rem; }
.filter-group { border-color:#bfbfb2; }
.result-bar { border-bottom:1px solid var(--ink); padding:0 0 .4rem; margin:0 0 .65rem; }
.applied-filters { display:flex; flex-wrap:wrap; gap:.35rem; margin:0 0 .7rem; }
.applied-filters a { display:inline-flex; max-width:100%; align-items:center; gap:.55rem; overflow-wrap:anywhere; border:1px solid var(--ink); padding:.3rem .5rem; background:var(--signal); color:var(--ink); text-decoration:none; font-size:.79rem; font-weight:750; }
.applied-filters a:hover { background:#f4fcaa; }
.result-bar label { font-weight:750; }
.result-bar p { font-weight:750; }
.product-stage { grid-template-columns:minmax(0,1.18fr) minmax(0,1fr); gap:clamp(12px,2.55vw,35px); }
.product-page .detail-photo,.product-stage .detail-photo { border-radius:2px; border:1px solid var(--ink); aspect-ratio:1.12; }
.media-zoom,.photo-dialog,.favorite-outline { border-color:var(--ink); border-radius:2px; }
.media-zoom:hover { background:var(--signal); }
.product-purchase { border-radius:2px; padding:clamp(14px,2vw,29px); }
.product-purchase h1 { font-size:clamp(2.3rem,5.4vw,5.25rem); margin:.39rem 0 .53rem; }
.product-purchase > .eyebrow { display:inline-block; background:var(--signal); border:1px solid var(--ink); padding:.16rem .4rem; }
.product-facts span { border-radius:2px; background:#efeee5; color:var(--ink); border:1px solid #b6b4a7; }
.product-purchase .buy-form .btn { --bs-btn-bg:var(--blue); --bs-btn-border-color:var(--blue); --bs-btn-hover-bg:var(--accent-dark); --bs-btn-hover-border-color:var(--accent-dark); }
.personal-link { background:var(--signal); border-color:var(--ink); border-radius:2px; }
.personal-link:hover { background:#f4ff97; }
.product-story { border:1px solid var(--ink); gap:0; padding:0; }
.product-story > * { padding:.85rem; }
.product-story dl { border-color:var(--ink); padding:.85rem; }
.product-maker { border:0; border-left:1px solid var(--ink); border-radius:0; background:#ebedff; }
.product-maker img { border:1px solid var(--ink); border-radius:2px; }
.panel,.listing-event,.help-shell .info-aside,.auth-image,.upload-area,.request-notebook,.order-box { border-radius:2px; }
.empty-state { border-radius:2px; border-color:#6c6b62; }
.demo-note { background:#f2f5cd; color:var(--ink); border-radius:2px; }
.maker-stage { border:1px solid var(--ink); border-radius:2px; background:var(--blue); }
.maker-stage .studio-image { border-right:1px solid var(--ink); }
.maker-stage .studio-copy :is(h1,h2,.eyebrow,p) { color:#fff; }
.maker-stage .studio-copy .btn-dark { --bs-btn-color:var(--ink); --bs-btn-bg:var(--signal); --bs-btn-border-color:var(--signal); --bs-btn-hover-bg:#f2ff94; --bs-btn-hover-border-color:#f2ff94; --bs-btn-hover-color:var(--ink); }
.maker-stage .studio-copy .btn-outline-dark { --bs-btn-color:#fff; --bs-btn-border-color:#fff; }
.maker-stage .studio-copy :focus-visible { outline-color:var(--signal); }
.maker-stage.sell-stage { background:var(--signal); }
.maker-stage.sell-stage .studio-copy :is(h2,.eyebrow,p) { color:var(--ink); }
.maker-stage.sell-stage .studio-copy :focus-visible { outline-color:var(--accent); }
.directory-toolbar { background:var(--signal); border-radius:2px; }
.maker-card { border-radius:2px; }
.maker-card img { border-bottom:1px solid var(--ink); }
.maker-card h2 { font:800 clamp(1.5rem,2.8vw,2.6rem)/.94 var(--poster); text-transform:uppercase; }
.studio-location { font-size:.79rem!important; color:var(--accent-dark); }
.gift-layout { gap:0; border:1px solid var(--ink); }
.gift-image,.gift-layout .gift-picker { border-radius:0; }
.gift-layout .gift-picker { border:0; background:var(--signal); padding:clamp(16px,3vw,43px); }
.gift-layout .gift-picker h2,.request-notebook h2 { font:800 clamp(1.6rem,3.6vw,3.5rem)/.9 var(--poster); text-transform:uppercase; }
.occasion-card,.occasion-card span { border-radius:0; }
.occasion-card { border:1px solid var(--ink); }
.occasion-card span { border:0; border-top:1px solid var(--ink); }
.request-notebook { background:#eceeff; border:1px solid var(--ink); }
.checkout-steps { gap:0; }
.checkout-steps li > :is(a,span) { border:1px solid var(--ink); border-radius:0; background:var(--white); padding:.39rem .6rem; }
.checkout-steps li + li > :is(a,span) { border-left:0; }
.checkout-steps li[aria-current] > span { background:var(--signal); color:var(--ink); }
.checkout-panel .choice { border-radius:2px; }
.checkout-panel .choice:has(input:checked) { background:#e7eafd; border-color:var(--accent-dark); }
.checkout-shell .totals { background:var(--ink); border-color:var(--ink); color:#fff; }
.checkout-shell .totals :is(h2,dt,small) { color:#f4f2e8; }
.checkout-shell .totals .total { border-color:#73736a; }
.checkout-shell .totals .total :is(dt,dd) { color:var(--signal); }
.checkout-shell .totals .btn { --bs-btn-color:var(--ink); --bs-btn-bg:var(--signal); --bs-btn-border-color:var(--signal); --bs-btn-hover-color:var(--ink); --bs-btn-hover-bg:#f3ff92; --bs-btn-hover-border-color:#f3ff92; }
.cart-layout .line-item,.cart-layout .line-item img { border-radius:2px; }
.account-side,.account-side a,.account-intro,.workspace-tools { border-radius:2px; }
.account-side a:hover,.account-side a[aria-current] { background:var(--signal); color:var(--ink); }
.account-intro { background:#edf0ff; }
.auth-layout { border:1px solid var(--ink); gap:0; max-width:1020px; }
.auth-layout .auth-panel { border:0; }
.auth-image { border-radius:0; }
.workspace-tools { background:var(--signal); }
.editor-nav a { border:1px solid var(--ink); background:var(--signal); color:var(--ink); border-radius:2px; }
.upload-area { border-color:#72716a; background:#eef0fd; }
.preview-photo { border-radius:2px; border:1px solid var(--ink); background:#eceeff; color:var(--accent-dark); }
.help-shell .info-aside { border-radius:2px; background:#eceeff; }
.help-shell .info-aside a { border-bottom:1px solid #b8bbd6; padding-bottom:.3rem; text-decoration:none; }
.help-shell .info-aside a:hover { text-decoration:underline; }
@media(max-width:850px) {
    .catalog-columns { grid-template-columns:180px minmax(0,1fr); }
    .product-story .product-maker { border:0; border-top:1px solid var(--ink); }
}
@media(max-width:680px) {
    .catalog-columns,.product-stage { grid-template-columns:1fr; }
    .catalog-panel > summary,.catalog-panel[open] > summary { margin:0; }
    .product-purchase h1 { font-size:clamp(2.8rem,11.5vw,4.7rem); }
    .maker-stage .studio-image { border-right:0; border-bottom:1px solid var(--ink); }
    .gift-layout .gift-picker { border-top:1px solid var(--ink); }
    .auth-layout .auth-panel { border-top:1px solid var(--ink); }
}
