body:is([data-page=cart],[data-page=favorites]) main {
  max-width:1392px;
  margin:auto;
  padding-inline:clamp(14px,4.25vw,64px);
}
body:is([data-page=cart],[data-page=favorites]) .crumb {padding:16px 0 8px;color:#aaa;font-size:12px}
.collection-title {margin:4px 0 18px;font-size:clamp(27px,3vw,42px);letter-spacing:-.05em;line-height:1.12}
.collection-empty[hidden],.collection-suggestions[hidden],.cart-summary[hidden] {display:none}
.collection-empty {
  display:grid;
  justify-items:center;
  gap:8px;
  padding:clamp(20px,4vw,48px) 12px;
  text-align:center;
  border-bottom:1px solid #292929;
}
.collection-empty svg {width:clamp(57px,6vw,80px);height:auto;filter:drop-shadow(0 0 12px #ffffff40)}
.collection-empty h2,.collection-suggestions h2 {margin:0;font-size:clamp(21px,2.2vw,32px);letter-spacing:-.035em}
.collection-empty p {margin:0 0 7px;color:#aaa;font-size:14px}
.collection-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 22px;
  border:1px solid #fff;
  border-radius:12px;
  background:#fff;
  color:#111;
  text-align:center;
  font-weight:800;
  transition:background-color .2s,border-color .2s;
}
.collection-primary:hover {background:#ddd;border-color:#ddd;color:#111}
.collection-suggestions {margin:20px 0 30px}
.collection-suggestions h2 {margin-bottom:12px}
.grid.collection-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#products.collection-grid:not(:empty) {margin:0 0 28px}
#products.collection-grid:empty {display:none}
.collection-grid article {border:1px solid #303030;background:linear-gradient(125deg,#222,#191919);border-radius:12px;min-width:0}
.collection-grid .tile {display:flex;flex-direction:column;align-items:stretch;gap:0;height:100%;padding:0}
.collection-grid .tile img {display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:11px 11px 0 0}
.collection-grid .tile>span {display:none}
.collection-info {display:flex;flex:1;flex-direction:column;gap:14px;padding:15px}
.collection-grid .tile strong {display:block;min-height:2.7em;font-size:clamp(15px,1.1vw,16px);font-weight:600;line-height:1.35}
.collection-prices {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:auto;padding-right:35px}
.collection-grid .collection-prices b {padding:0;font-size:clamp(20px,1.5vw,22px);font-weight:800;order:1;width:100%;white-space:nowrap}
.collection-grid .heart {z-index:1}
.collection-grid .heart[aria-pressed=true] svg {fill:#eee;stroke:#eee}
.collection-bag {position:absolute;display:grid;place-items:center;right:10px;bottom:11px;width:34px;height:34px;border-radius:8px;background:#eee;color:#111}
.collection-bag svg {width:22px;height:22px}
.collection-bag .count {display:none}
.collection-grid a:focus-visible,.collection-grid button:focus-visible {outline:2px solid #fff;outline-offset:2px}

body[data-page=cart] .checkout-fields {display:none}
body[data-page=cart] #routeView {min-height:0;margin:0}
body[data-page=cart] #routeView #cartDrawer {display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,35%);align-items:start;gap:24px;margin:0 0 30px;padding:0;border:0;background:none;max-width:none}
body[data-page=cart] #routeView #cartDrawer:has(.cart-summary[hidden]) {display:none}
#cartItems {display:grid;min-width:0;gap:10px}
.cart-line {display:grid;grid-template-columns:80px minmax(0,1fr) auto 42px;align-items:center;gap:14px;padding:12px;background:#1c1c1c;border:1px solid #303030;border-radius:12px}
.cart-photo img {display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}
.cart-line-info a {overflow-wrap:anywhere}
.cart-line-info p {margin:4px 0 7px;color:#aaa;font-size:13px}
.cart-line-info b {font-size:17px}
.cart-quantity {display:flex;align-items:center;justify-content:start;gap:7px}
.cart-quantity button,.cart-remove {display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:8px;background:#252525;border:1px solid #343434;transition:background-color .2s}
.cart-quantity button:hover,.cart-remove:hover {background:#333}
.cart-quantity span {min-width:20px;text-align:center;font-variant-numeric:tabular-nums}
.cart-remove {color:#ddd;background:transparent;border-color:transparent}
.cart-remove svg {width:20px;height:20px}
.cart-summary {display:block;min-width:0;padding:20px;background:#1c1c1c;border:1px solid #303030;border-radius:12px}
.cart-summary h2 {margin:0 0 10px;font-size:22px;letter-spacing:-.025em}
.cart-summary-row {display:flex;justify-content:space-between;gap:10px;padding:8px 0;color:#aaa}
.cart-summary-row strong,.cart-summary-row a {color:#eee}
.cart-summary .cart-summary-row a {display:inline;text-decoration:underline;text-underline-offset:3px}
.cart-summary .total {margin-top:5px;padding:12px 0;border-top:1px solid #333}
#cartTotal {font-size:26px;letter-spacing:-.025em}
body[data-page=cart] .cart-summary .checkout-link {display:flex;width:100%}
.cart-summary .footer-messengers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.cart-summary .footer-telegram {--messenger:#229ed9}
.cart-summary .footer-viber {--messenger:#7360f2}
.cart-summary .footer-messengers a {
  display:flex;align-items:center;justify-content:center;gap:8px;min-height:41px;
  background:#191919;border:1px solid color-mix(in srgb,var(--messenger) 55%,#191919);border-radius:8px;
  box-shadow:0 0 10px color-mix(in srgb,var(--messenger) 17%,transparent);
  font-size:13px;font-weight:700;transition:box-shadow .2s,border-color .2s;
}
.cart-summary .footer-messengers svg {width:17px;height:17px;stroke-width:1.5;color:var(--messenger)}
@media(hover:hover) and (pointer:fine){
  .cart-summary .footer-messengers a:hover {border-color:var(--messenger);box-shadow:0 0 15px color-mix(in srgb,var(--messenger) 32%,transparent)}
}
@media(max-width:760px){
  .collection-title {margin-bottom:12px}
  .collection-empty {padding:19px 8px 23px}
  .collection-suggestions {margin:15px 0 22px}
  .grid.collection-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .collection-grid article {background:none;border:0}
  .collection-grid .tile img {border-radius:10px}
  .collection-info {padding:6px 4px 8px;gap:5px}
  .collection-grid .tile strong {font-size:13px}
  .collection-grid .collection-prices {padding:0}
  .collection-grid .collection-prices b {font-size:17px}
  .collection-bag {display:none}
  body[data-page=cart] #routeView #cartDrawer {grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:22px}
  .cart-line {grid-template-columns:62px minmax(0,1fr) 40px;gap:6px 10px;padding:9px}
  .cart-photo {grid-row:1/span 2}
  .cart-line-info {grid-column:2;grid-row:1}
  .cart-line-info p {font-size:12px}
  .cart-quantity {grid-column:2;grid-row:2}
  .cart-remove {grid-column:3;grid-row:1;align-self:start;width:40px}
  .cart-summary {padding:15px}
}
@media(prefers-reduced-motion:reduce){
  .collection-primary,.cart-quantity button,.cart-remove,.cart-summary .footer-messengers a {transition:none}
}

