.shop-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:23px 0 28px}
.shop-overview>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;padding:18px 22px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.shop-overview strong{font:34px/1.1 var(--serif);color:var(--wine)}
.shop-overview span{font-size:11px;color:var(--muted)}
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:25px;align-items:start}
.shop-layout>section{min-width:0}
.shop-filters{margin-bottom:18px}
.shop-filters small{margin-inline-start:2px;color:inherit}
.shop-section{border:1px solid var(--line);border-radius:17px;background:var(--card);margin-bottom:16px;overflow:hidden}
.shop-section>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:8px 14px;background:#f5f1e8;min-height:56px}
.shop-section>summary::-webkit-details-marker{display:none}
.shop-section>summary>img{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.shop-section>summary>span:first-of-type{flex:1;min-width:0;font:22px/1.2 var(--serif);overflow-wrap:anywhere}
.shop-section>summary>small{border-radius:100px;background:#fffdf8;color:var(--muted);font-size:11px}
.shop-product{padding:4px 10px;border-top:1px solid var(--line);min-width:0}
.shop-product:first-child{border-top:0}
.shop-product-top{
 --shop-row-columns:34px minmax(0,1fr) clamp(88px,23vw,110px);
 display:grid;grid-template-columns:var(--shop-row-columns);gap:8px;align-items:center;min-height:48px;
}
.shop-product-top.has-quick-action{grid-template-columns:var(--shop-row-columns) 68px}
.shop-checkbox,.shop-resolved-icon{display:grid;place-items:center;min-height:44px}
.shop-checkbox{cursor:pointer}
.shop-checkbox>input{accent-color:var(--wine);width:19px;height:19px;margin:0;cursor:pointer}
.shop-product-name{min-width:0}
.shop-product-name>h3{font:17px/1.2 var(--serif);margin:0}
.shop-product-name>small{color:var(--muted);font-size:11px;line-height:1.3}
.shop-product-name>.needs-review{color:var(--warning-ink,#8a5037)}
.shop-item-toggle{
 display:flex;align-items:center;gap:4px;max-width:100%;min-height:34px;padding:3px 0;
 font:inherit;color:inherit;text-align:left;background:none;overflow-wrap:anywhere;
}
.shop-item-toggle .disclosure-chevron{width:13px;height:13px}
.shop-item-toggle:hover{color:var(--wine)}
.shop-inline-quantity{
 display:flex;align-items:center;gap:4px;min-width:0;padding-inline:6px;
 border:1px solid var(--line);border-radius:9px;background:var(--card);
}
.shop-inline-quantity .field{
 flex:1 1 0;width:0;min-width:0;min-height:42px;padding:4px 0;border:0;
 background:transparent;font-size:16px;text-align:right;appearance:textfield;
}
.shop-inline-quantity:focus-within{outline:2px solid var(--wine);outline-offset:1px}
.shop-inline-quantity .field:focus{outline:none;box-shadow:none}
.shop-inline-quantity .field::-webkit-inner-spin-button,
.shop-inline-quantity .field::-webkit-outer-spin-button{appearance:none;margin:0}
.shop-inline-quantity small{
 flex:none;max-inline-size:62%;color:var(--muted);font-size:11px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
.shop-inline-quantity small:empty{display:none}
.shop-quantity{
 min-height:44px;width:100%;padding:5px 4px;border:1px solid var(--line);border-radius:9px;
 background:var(--pink);color:var(--wine);font-size:12px;line-height:1.3;overflow-wrap:anywhere;
}
.shop-quantity:hover{border-color:var(--wine)}
.shop-quantity:focus-visible,.shop-section>summary:focus-visible{outline:2px solid var(--wine);outline-offset:-3px}
.shop-product-top>.shop-quick-action{
 min-height:44px;padding:6px 0;font-size:12px;line-height:1.25;text-align:center;white-space:normal;
}
.shop-item-details{margin:6px 0 8px 42px;padding-top:3px;border-top:1px solid var(--line)}
.shop-item-details[hidden]{display:none}
.shop-calculation{font-size:11px;line-height:1.8;color:var(--ink);margin:12px 0 0;overflow-wrap:anywhere}
.shop-calculation>span{color:var(--muted)}
.shop-stock-hint,.shop-review-note,.shop-purchase-note{font-size:11px;line-height:1.7;margin:9px 0 0;overflow-wrap:anywhere}
.shop-stock-hint{color:var(--olive);background:#f0f2e7;padding:9px 11px;border-radius:8px}
.shop-review-note{color:#8a5037}
.shop-purchase-note{color:var(--wine);font-style:italic}
.shop-origins{margin-top:10px;font-size:11px;color:var(--muted)}
.shop-origins>summary{cursor:pointer;min-height:34px;display:list-item;align-content:center;width:fit-content}
.shop-origins>ul{list-style:none;margin:4px 0 9px;padding:0}
.shop-origins li{display:flex;gap:15px;justify-content:space-between;padding:10px 0;border-top:1px dashed var(--line);align-items:start}
.shop-origins li>div{flex:1;min-width:0}
.shop-origins li small{display:block;font-size:10px;line-height:1.5;margin-top:3px}
.shop-origins li .text-button{font-size:11px;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:0}
.shop-origins li>span{text-align:right;flex-shrink:0;max-width:40%;font-size:11px;color:var(--ink);overflow-wrap:anywhere}
.shop-source-note{font-size:10px;color:var(--muted);margin:10px 0 0}
.shop-product-actions{display:flex;flex-wrap:wrap;gap:0 17px;align-items:center;margin-top:7px}
.shop-product-actions>button{font-size:12px;min-height:44px;text-align:left;white-space:normal}
.shop-product-actions svg{width:13px;height:13px;vertical-align:middle;margin-right:4px}
.shop-resolved-icon{color:var(--muted)}
.shop-resolved-icon>svg{width:19px;height:19px}
.shop-product.is-bought .shop-item-toggle span{text-decoration:line-through;color:var(--muted)}
.shop-product.is-bought .shop-quantity{background:#f2f1eb;border-color:var(--line);color:var(--muted)}
.shop-resolved{margin-top:24px;color:var(--muted);font-size:12px}
.shop-resolved>summary{cursor:pointer;padding:12px 0;min-height:44px}
.shop-resolved .shop-section{margin-top:12px}
.shop-help{position:sticky;top:25px;border:1px solid #d9dfce;border-radius:18px;background:#edf0e5;padding:24px}
.shop-help>h2{font:var(--module-title)/1.2 var(--serif);margin:0 0 17px}
.shop-help>progress{width:100%;accent-color:var(--olive);height:8px}
.shop-help>p{font-size:11px;color:var(--muted);margin-bottom:14px}
.shop-help .btn{font-size:12px;justify-content:center;white-space:normal}
.shop-help>.text-button{font-size:10px;min-height:44px;margin-top:10px;text-align:left}
.shop-help-note{margin-top:22px;padding-top:18px;border-top:1px solid #d3d9c7;font-size:11px;color:#5d6753;line-height:1.8}
.shop-help-note>strong{font-weight:650;color:var(--olive)}
.shop-help-note>p{margin-top:11px}
.shop-notice{font-size:12px;background:#f4edde;border:1px solid #e4d5bd;padding:13px 17px;border-radius:12px;margin:14px 0;color:#716044}
.shop-notice>summary{cursor:pointer}
.shop-notice>p{margin-top:10px;line-height:1.8}
.shop-base-note{margin-bottom:18px}
.shop-edit-context{padding:0 15px 14px;border-radius:12px;background:#f2f1e8}
.shop-edit-context .shop-calculation{padding-top:12px;margin:0}
.shop-quantity-preview{padding:13px 15px;min-height:50px;border-radius:10px;background:#f1e6e8;color:var(--wine);font-size:12px;line-height:1.7;margin-top:18px;overflow-wrap:anywhere}
@media(max-width:1150px){.shop-layout{grid-template-columns:minmax(0,1fr)}.shop-help{position:static}.shop-help-note{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.shop-help-note>strong{grid-column:1/-1}.shop-help-note>p{margin:0}.shop-end-actions>.btn{flex:0 1 auto}}
@media(max-width:700px){
 .shop-overview{gap:8px;margin:20px 0 23px}.shop-overview>div{padding:14px 13px;border-radius:12px}
 .shop-overview strong{font-size:29px}.shop-overview span{font-size:10px}
 .shop-filters{gap:7px}.shop-filters .chip{font-size:10px;padding:7px 11px}
 .shop-section>summary>span:first-of-type{font-size:20px}
 .shop-product-name>h3{font-size:16px}
 .shop-help{padding:22px}.shop-help-note{display:block}.shop-help-note>p{margin-top:12px}
 .shop-origins li{gap:10px}.shop-notice{font-size:11px}
}
@media(max-width:460px){
 .shop-product{padding-inline:6px}
 .shop-product-top{--shop-row-columns:28px minmax(0,1fr) clamp(88px,23vw,104px);gap:6px}
 .shop-product-top.has-quick-action{grid-template-columns:var(--shop-row-columns) 62px}
 .shop-item-details{margin-left:34px}
 .shop-origins li{flex-wrap:wrap}.shop-origins li>span{max-width:100%;text-align:left}
 .shop-calculation{font-size:10px}.shop-overview>div{padding-inline:11px}
}
.habitual-section-title{margin-top:var(--space-4);font-size:14px}.habitual-products{display:grid;gap:9px;margin-top:var(--space-2)}
.habitual-product{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 12px;border:1px solid var(--line);border-radius:13px;background:var(--card);cursor:pointer}
.habitual-product:has(input:checked){border-color:var(--wine);background:var(--pink)}
.habitual-product>input{flex:none;width:21px;height:21px;margin:0;accent-color:var(--wine)}
.habitual-product-copy{display:block;min-width:0;flex:1}
.habitual-product-copy>strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.habitual-product-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}
.habitual-product-meta>small,.habitual-last-purchase{font-size:11px;color:var(--muted)}
.habitual-last-purchase{display:block;margin-top:5px}
.habitual-status{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:2px 7px;font-size:11px;background:#f2ede4;color:#665b4e}
.habitual-status::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.habitual-status.empty,.habitual-status.review{background:#fbefeb;color:#944c44}
.habitual-status.low{background:#fbf2df;color:#82632c}
.habitual-owned-list{margin-top:18px;border-top:1px solid var(--line)}
.habitual-owned-list>summary{min-height:48px;padding:13px 0;color:var(--olive);font-size:12px;cursor:pointer}
.habitual-owned{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:12px}
.habitual-owned>span{min-width:0;overflow-wrap:anywhere}
.habitual-owned>span:last-child{color:var(--muted);text-align:right;max-width:48%}
.habitual-owned small{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.habitual-empty{font-size:13px;color:var(--muted);padding:10px 0}
.habitual-selection{margin-top:20px;font-size:12px;color:var(--muted)}
.habitual-actions{margin-top:10px!important}
.habitual-actions>.btn{flex:1}
