/* Search shares the shop's quiet, straight-edged surfaces. */
:root body #panel.search-dialog{
  width:min(600px,calc(100% - 32px));max-width:none;
  max-height:calc(100dvh - 9vh - 16px);margin:clamp(20px,9vh,76px) auto auto;
  border:1px solid #dcdce0;border-radius:8px;background:#fff;color:#202022;
  box-shadow:none;backdrop-filter:none;overflow:hidden;
}
#panel.search-dialog::backdrop{background:#15151866}
#panel.search-dialog .dialog-inner{
  display:flex;flex-direction:column;max-height:min(660px,calc(100dvh - 9vh - 18px));
  padding:clamp(14px,3.6vw,25px) clamp(14px,3.6vw,25px) 10px;
}
#panel.search-dialog .dialog-head{align-items:center;gap:8px;margin:0 0 14px}
#panel.search-dialog .dialog-head .label{font-size:10px;color:#5c5c63;margin-bottom:3px}
#panel.search-dialog .dialog-head h2,.bag-page :is(h1,h2){font-family:var(--body);font-weight:650;letter-spacing:-.045em}
#panel.search-dialog .dialog-head h2{font-size:clamp(24px,6vw,32px)}
#panel.search-dialog .dialog-head .icon,.search-clear{
  flex:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;
  border:0;border-radius:5px;background:transparent;color:#252527;box-shadow:none;
}
#panel.search-dialog .dialog-head .icon:hover,.search-clear:hover{background:#eeeeef}
.search-field{
  display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;
  min-height:48px;padding-inline:11px 2px;border:1px solid #cbcbcf;border-radius:5px;
  background:#f7f7f8;flex:none;
}
.search-field:focus-within{border-color:#59595e;background:#fff}
.search-field .search-input{min-width:0;min-height:46px;padding:0;border:0;background:transparent;font-size:16px}
.search-field .search-input:focus{outline:none}
.search-field .search-input::-webkit-search-cancel-button{display:none}
.search-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:10px}
#search-count{padding:5px 0 6px;color:#535359;font-size:13px;font-weight:620}
.search-list{max-height:none;overflow:visible;margin:0;padding:0;list-style:none}
.search-list li+li{border-top:1px solid #e7e7e9}
.search-list a{
  display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:11px;
  min-height:68px;padding:7px 4px;border:0;border-radius:4px;
}
.search-list a:is(:hover,:active){background:#f6f6f7}
.search-list a:focus-visible{outline-offset:-2px}
.search-list img{width:54px;height:54px;object-fit:cover;border-radius:4px;background:#f3f3f5}
.search-result-name{min-width:0;overflow-wrap:anywhere;line-height:1.3}
.search-result-name strong{font-weight:620;font-size:14px}
.search-result-name small{font-size:12px;margin-top:3px}
.search-result-price{font-size:13px;white-space:nowrap;font-weight:650;font-variant-numeric:tabular-nums}
.search-empty{padding:20px 0 14px;font-size:15px}
.search-empty p{margin-top:4px;color:var(--muted)}
.search-text-action,.bag-page .bag-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:4px;font-weight:600}
.search-text-action{margin-top:4px;padding-inline:8px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){
  :root body #panel.search-dialog{width:calc(100% - 18px);margin:max(9px,env(safe-area-inset-top)) auto auto;max-height:calc(var(--search-viewport,100dvh) - max(18px,env(safe-area-inset-top)) - env(safe-area-inset-bottom))}
  #panel.search-dialog .dialog-inner{max-height:calc(var(--search-viewport,100dvh) - max(20px,env(safe-area-inset-top)) - env(safe-area-inset-bottom))}
}
@media(max-width:365px){
  .search-list a{grid-template-columns:46px minmax(0,1fr) auto;gap:7px}
  .search-list img{width:46px;height:46px}
}
@media(prefers-reduced-motion:reduce){#panel.search-dialog[open]{animation:none}}

/* A boutique shopping bag: an illustrated handle, side folds and a flat receipt. */
.bag-page{max-width:1200px;padding-top:clamp(25px,4vw,55px);padding-bottom:clamp(48px,6vw,84px)}
.bag-head{display:flex;align-items:center;gap:13px;margin-bottom:clamp(16px,2.6vw,30px)}
.bag-head-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #e2e2e5;border-radius:5px;background:#f8f8f9}
.bag-head .label,.bag-summary .label{font-size:10px;color:#58585d;margin:0 0 5px}
.bag-page h1{font-size:clamp(34px,5vw,55px);line-height:1}
.bag-count{font-size:14px;color:var(--muted);margin-top:7px}
.bag-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,.56fr);align-items:start;gap:clamp(22px,4vw,56px)}
.bag-items{min-width:0;border-top:1px solid #e6e6e8}
.bag-item{
  display:grid;grid-template-columns:78px minmax(0,1fr) auto;
  grid-template-areas:"photo name price" "photo actions actions"; align-items:start;
  gap:5px 12px;padding:13px 0;border-bottom:1px solid #e6e6e8;
}
.bag-item-photo{grid-area:photo}
.bag-item-photo img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:5px;background:#f3f3f5}
.bag-item-copy{grid-area:name;min-width:0}
.bag-item-copy h2{font-size:clamp(15px,1.55vw,18px);line-height:1.28;letter-spacing:-.014em;overflow-wrap:anywhere}
.bag-item-copy h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.bag-item-copy p{font-size:13px;color:var(--muted);margin-top:4px}
.bag-item-price{grid-area:price;text-align:right;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}
.bag-item-actions{grid-area:actions;display:flex;align-items:center;justify-content:space-between;gap:6px}
.bag-quantity{display:grid;grid-template-columns:44px minmax(25px,auto) 44px;align-items:center;border:1px solid #d9d9dd;border-radius:5px}
.bag-quantity button{height:44px;padding:0;font-size:19px;touch-action:manipulation}
.bag-quantity button:first-child{border-right:1px solid #ececef}
.bag-quantity button:last-child{border-left:1px solid #ececef}
.bag-quantity button:not([aria-disabled="true"]):is(:hover,:active){background:#ececef}
.bag-quantity button[aria-disabled="true"]{cursor:default;color:#86868c}
.bag-quantity button:focus-visible{outline-offset:-3px}
.bag-quantity span{text-align:center;font-weight:620;font-variant-numeric:tabular-nums}
.bag-page .bag-ghost{padding:0 8px;color:#505056}
.bag-page .bag-ghost:is(:hover,:active){background:#f1f1f3;color:#222}
.bag-page .bag-explore{margin-top:7px;padding-inline:8px}
.bag-summary{
  position:sticky;top:90px;min-width:0;padding:clamp(14px,2.4vw,24px);
  border:1px solid #dcdce0;border-radius:6px;background:#fff;
}
.bag-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:11px;border-bottom:1px solid #e6e6e9}
.bag-summary-head h2,.bag-empty h2{font-size:25px;line-height:1.15}
.bag-summary-head .bag-mark{width:54px;height:auto}
.bag-summary-lines{margin-top:10px}
.bag-summary-lines>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0}
.bag-summary-lines .bag-summary-total{margin-top:8px;border-top:1px solid #e6e6e8;padding:10px 0 1px;font-size:17px}
.bag-summary .offer-summary{margin:7px 0 12px}
.bag-page .btn{justify-content:center;border-radius:5px;min-height:48px}
.bag-checkout-link{display:flex;width:100%;margin-top:10px;text-align:center}
.bag-note{margin-top:9px;color:#59595d;font-size:13px}
.bag-empty{display:grid;justify-items:center;text-align:center;padding:clamp(26px,5vw,60px) 12px;border-top:1px solid #e6e6e8}
.bag-empty h2{margin-top:13px}.bag-empty p{margin:6px 0 15px;color:var(--muted)}
@media(max-width:720px){
  .bag-page{padding-inline:clamp(12px,4vw,20px)}
  .bag-layout{grid-template-columns:minmax(0,1fr);gap:17px}
  .bag-summary{position:static}
  .bag-item{grid-template-columns:63px minmax(0,1fr) auto;gap:6px 9px}
}
@media(max-width:360px){
  .bag-item{grid-template-columns:54px minmax(0,1fr);grid-template-areas:"photo name" "photo price" ". actions"}
  .bag-item-price{text-align:left}
}
