.shop-cart-launcher {
  appearance: none;
  width: 88px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 3px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.shop-cart-launcher:focus-visible {
  outline: 2px solid #ffad47;
  outline-offset: 3px;
  border-radius: 8px;
}
.shop-cart-launcher[hidden] { display: none; }
.shop-cart-floating {
  position: fixed;
  z-index: 32;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: calc(18px + env(safe-area-inset-left, 0px));
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.shop-cart-floating:active { cursor: grabbing; }
.shop-cart-slot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  height: 0;
  z-index: 3;
}
.shop-cart-inline { flex: none; transform: translateY(-42%); }
.shop-cart-icon {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center 92%;
}
.shop-cart-picture {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #000b) drop-shadow(0 0 1px #fff8);
  pointer-events: none;
}
.shop-cart-product {
  position: absolute;
  z-index: 1;
  top: 25%;
  left: 29%;
  width: 33%;
  height: 30%;
  object-fit: cover;
  border: 1px solid #fff;
  border-radius: 4px;
  transform: rotate(-10deg);
  box-shadow: 0 2px 5px #0007;
  pointer-events: none;
}
.shop-cart-count {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 21px;
  padding-inline: 4px;
  border: 1px solid #ff947c;
  border-radius: 6px;
  background: #cf2418;
  color: #fff;
  font: 800 12px/1 system-ui, sans-serif;
}
.shop-cart-floating .shop-cart-icon:not(.shop-cart-bounce) {
  animation: shop-cart-idle 8s ease-in-out infinite;
}
.shop-cart-bounce { animation: shop-cart-receive 900ms ease both; }
.shop-cart-bounce .shop-cart-product { animation: shop-cart-drop 620ms cubic-bezier(.34,.8,.45,1) both; }
.shop-cart-bounce .shop-cart-count { animation: shop-cart-count-pop 390ms 380ms ease both; }
.cart-add-flash { display: inline-block; animation: shop-cart-count-pop 420ms ease; }
@keyframes shop-cart-idle {
  0%, 16%, 100% { transform: none; }
  6% { transform: translateX(5px) rotate(-5deg); }
  11% { transform: translateX(-2px) rotate(3deg); }
}
@keyframes shop-cart-receive {
  0%, 32%, 100% { transform: none; }
  49% { transform: translateY(4px) rotate(9deg) scale(.93); }
  67% { transform: translate(3px, -6px) rotate(-8deg) scale(1.08); }
  83% { transform: translateY(1px) rotate(3deg); }
}
@keyframes shop-cart-drop {
  0% { transform: translateY(-58px) rotate(-25deg) scale(1.26); opacity: 0; }
  18% { opacity: 1; }
  70% { transform: translateY(4px) rotate(-6deg); }
  100% { transform: rotate(-10deg); }
}
@keyframes shop-cart-count-pop {
  0%, 100% { transform: scale(1); }
  48% { transform: scale(1.28); }
}
.cart-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cart-price-row .modal-price { margin: 0; }
.cart-add-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cart-quantity {
  display: inline-flex;
  align-items: center;
  flex: none;
  background: #202020;
  border: 1px solid #474747;
  border-radius: 12px;
}
.cart-quantity button {
  width: 40px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}
.cart-quantity button:disabled,
.cart-add-button:disabled { opacity: .55; cursor: default; }
.cart-quantity output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; color: #fff; }
.cart-add-button, .shop-cart-footer a {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #ffc06a;
  border-radius: 12px;
  background: #ff931e;
  color: #17100b;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.shop-cart-remove {
  min-height: 42px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #ffd197;
  font: inherit;
  font-size: .83rem;
  text-decoration: underline;
  cursor: pointer;
}
.shop-cart-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html:has(.shop-cart-dialog[open]) { overflow: hidden; }
.shop-cart-dialog {
  position: fixed;
  box-sizing: border-box;
  width: min(540px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #535353;
  border-radius: 22px;
  color: #fff;
  background: #141414;
  box-shadow: 0 20px 80px #000b;
}
.shop-cart-dialog[open] { animation: shop-cart-in .22s ease-out; }
.shop-cart-dialog::backdrop { background: #000a; }
@keyframes shop-cart-in {
  from { transform: translateY(12px); opacity: 0; }
}
.shop-cart-header, .shop-cart-footer { padding: 16px 18px; background: #141414; }
.shop-cart-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #343434; }
.shop-cart-header h2 { margin: 0; font-size: 1.4rem; color: #fff; }
.shop-cart-header p { margin: 4px 0 0; color: #bfbfbf; }
.shop-cart-close {
  width: 44px; height: 44px; border: 1px solid #525252; border-radius: 50%;
  background: #222; color: #fff; font: 24px/1 system-ui, sans-serif; cursor: pointer;
}
.shop-cart-empty { padding: 4px 18px 18px; color: #d3d3d3; }
.shop-cart-lines { list-style: none; padding: 0 18px; margin: 0; }
.shop-cart-lines li {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid #343434;
  padding-block: 14px;
}
.shop-cart-lines li > img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.shop-cart-line-info { min-width: 0; display: grid; gap: 4px; }
.shop-cart-line-info strong { overflow-wrap: anywhere; }
.shop-cart-line-info > span { font-size: .82rem; color: #bfbfbf; }
.shop-cart-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; margin-top: 4px; }
.shop-cart-line-total { white-space: nowrap; }
.shop-cart-footer { position: sticky; bottom: 0; border-top: 1px solid #343434; }
.shop-cart-footer p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.shop-cart-footer a { display: grid; place-items: center; text-decoration: none; }
@media (max-width: 480px) {
  .shop-cart-launcher { width: 75px; height: 67px; }
  .shop-cart-inline { transform: translateY(-60%); }
  .shop-cart-lines li { grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; }
  .shop-cart-lines li > img { width: 42px; height: 42px; }
  .shop-cart-line-total { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-cart-floating .shop-cart-icon:not(.shop-cart-bounce),
  .shop-cart-bounce, .shop-cart-bounce .shop-cart-product, .shop-cart-bounce .shop-cart-count,
  .cart-add-flash, .shop-cart-dialog[open] { animation: none; }
}
.cart-add-group .shop-cart-inline { width: 57px; height: 50px; transform: none; }

.nav .shop-cart-inline { height: 100%; max-height: 64px; width: 78px; transform: none; }
.cart-add-group .shop-cart-inline { width: clamp(64px,18vw,92px); height: clamp(60px,17vw,86px); margin-inline-start: auto; }
@media (prefers-reduced-motion: no-preference) {
 .shop-cart-launcher .shop-cart-icon:not(.shop-cart-bounce) { animation: cart-roll 3.2s ease-in-out infinite; }
 @keyframes cart-roll {
  0%,100% { transform: translateX(-6px) rotate(-3deg); }
  42%,55% { transform: translateX(4px) rotate(2deg); }
  68% { transform: translate(1px,-1px); }
 }
}
.grid > .card { content-visibility:auto; contain-intrinsic-size:auto 420px; }
.product-modal-backdrop,.controls,.nav,.grid .zoom-hint { backdrop-filter:none; -webkit-backdrop-filter:none; }
@media (max-width:700px) { .brand-browser::after { animation:none; } }

.store-menu { position:relative; flex:none; color:#fff; }
.store-menu summary { list-style:none; display:grid; place-items:center; width:44px; height:44px; cursor:pointer; font-size:24px; line-height:1; }
.store-menu summary::-webkit-details-marker { display:none; }
.store-menu button {
  position:absolute; inset-block-start:100%; inset-inline-start:0; z-index:2;
  width:max-content; max-width:calc(100vw - 48px); padding:12px 16px;
  border:1px solid #474747; border-radius:12px; background:#171717; color:#fff;
  font:inherit; font-weight:700; cursor:pointer; box-shadow:0 8px 24px #000a;
}
.store-menu button:hover { background:#292929; }
.comparison-message {
  position:fixed; z-index:100; inset:auto 20px 20px; width:fit-content; max-width:calc(100% - 40px);
  margin-inline:auto; padding:12px 16px; border-radius:10px; background:#252525; color:#fff;
}
@media (max-width:760px) {
  .nav .store-menu { position:absolute; inset-inline-start:0; z-index:1; }
  .nav .shop-cart-inline { width:64px; }
}
.phone-compare {
  color:#f7f7f7; background:#111; border:1px solid #444; border-radius:20px;
  width:min(900px,calc(100% - 20px)); max-height:calc(100dvh - 24px);
  padding:0; margin:auto; overscroll-behavior:contain; color-scheme:dark;
}
.phone-compare::backdrop { background:#000c; }
.compare-heading { display:flex; justify-content:space-between; gap:8px; padding:18px clamp(12px,4vw,28px); border-bottom:1px solid #393939; }
.compare-heading h2,.compare-heading p,.compare-grid h3,.compare-grid p { margin:0; }
.compare-heading p,.compare-grid p,.compare-grid small,.compare-summary { color:#ccc; }
.compare-heading h2 { font-size:clamp(1.25rem,5vw,1.9rem); }
.compare-body { padding:clamp(10px,3vw,24px); }
.phone-compare button,.phone-compare a,.phone-compare input {
  font:inherit; color:inherit; min-height:44px; border:1px solid #484848; border-radius:9px;
  padding:8px; background:#222;
}
.phone-compare button,.phone-compare a { cursor:pointer; }
.phone-compare button:disabled { opacity:.65; cursor:default; }
.phone-compare :focus-visible { outline:2px solid #ffa74a; outline-offset:2px; }
.compare-close { width:44px; flex:none; align-self:start; }
.compare-search { display:grid; gap:8px; }
.compare-search label { font-weight:700; }
.phone-compare input { width:100%; font-size:16px; }
.compare-matches { display:grid; gap:5px; max-height:220px; overflow:auto; }
.compare-matches button { text-align:start; }
.compare-grid { display:grid; gap:6px; grid-template-columns:repeat(var(--compare-columns),minmax(0,1fr)); }
.compare-grid article {
  display:flex; flex-direction:column; gap:6px; padding:clamp(5px,1.5vw,12px);
  border:1px solid #393939; border-radius:12px; background:#181818; overflow-wrap:anywhere;
}
.compare-grid img { width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; border-radius:8px; background:#101010; }
.compare-grid h3 { font-size:1rem; }
.compare-grid strong { color:#ffad52; }
.compare-grid small { font-size:.8rem; margin-bottom:auto; }
.compare-grid button,.compare-grid a { font-size:.875rem; line-height:1.2; text-align:center; }
.compare-grid a { display:grid; place-items:center; }
.phone-compare .compare-buy { color:#160c00; background:#ff9c31; border-color:#ffb764; font-weight:750; }
.compare-tech table { border-collapse:collapse; table-layout:fixed; width:100%; overflow-wrap:anywhere; font-size:.875rem; }
.compare-tech th,.compare-tech td { text-align:start; padding:8px 4px; border-bottom:1px solid #383838; vertical-align:top; }
.compare-tech thead { background:#1e1e1e; }
.compare-advice { padding:12px; border:1px solid #383838; border-radius:12px; margin-block:8px; }
.compare-advice h4,.compare-advice dl { margin:0; }
.compare-advice dt { color:#ffad52; font-weight:700; margin-top:8px; }
.compare-advice dd { margin:2px 0 0; }

@media (max-width:480px) {
  .phone-compare { width:calc(100% - 8px); max-width:none; }
  .compare-grid { gap:4px; }
  .compare-grid strong { white-space:nowrap; font-size:.82rem; }
  .compare-grid button,.compare-grid a { font-size:.75rem; padding:4px; }
  .compare-grid h3 { font-size:.875rem; }
  .compare-tech table { font-size:.8rem; }
}

.store-menu summary img {
  display: block;
  border-radius: 24%;
}
@media (max-width: 760px) {
  .nav .store-menu summary img { width: 29px; height: 29px; }
}
.selected-brand {
  scroll-margin-top: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 9px 14px;
  background: #131313;
  border: 1px solid #303030;
  border-radius: 14px;
}
.selected-brand h3 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.65rem); }
.brand-share-trigger {
  width: 44px;
  height: 44px;
  padding: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.brand-share-trigger img { display: block; border-radius: 23%; }
.brand-share-trigger:hover { background: #2b2b2b; }
.brand-share-trigger:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; }
.brand-share-dialog {
  width: min(410px, calc(100% - 32px));
  margin: auto;
  padding: 16px;
  color: #fff;
  color-scheme: dark;
  background: #151515;
  border: 1px solid #414141;
  border-radius: 16px;
}
.brand-share-dialog[open] { display: grid; gap: 10px; }
.brand-share-dialog::backdrop { background: #000a; }
.brand-share-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand-share-dialog input, .brand-share-dialog button, .brand-share-dialog a {
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  padding: 8px 12px;
  color: #fff;
  background: #252525;
  border: 1px solid #484848;
  border-radius: 9px;
}
.brand-share-dialog input { width: 100%; }
.brand-share-dialog button, .brand-share-dialog a { cursor: pointer; text-align: center; }
.brand-share-header button { min-width: 44px; }
.brand-share-dialog p { margin: 0; }
.brand-share-dialog p:empty { display: none; }

.phone-compare .compare-close {
  outline: 2px solid #ffa74a;
  outline-offset: 2px;
  font-size: 1.45rem;
  line-height: 1;
  align-self: start;
}
.phone-compare .compare-close:focus-visible { box-shadow: 0 0 0 5px #ffa74a45; }
.department-brand-links { margin: 10px 0; border: 1px solid #333; border-radius: 12px; background: #151515; }
.department-brand-links summary { padding: 10px 14px; cursor: pointer; }
.department-brand-links > div { display: flex; flex-wrap: wrap; padding: 0 12px 12px; gap: 7px; }
.department-brand-links button {
  color: #fff; background: #212121; border: 1px solid #555; border-radius: 12px;
  padding: 8px 11px; min-height: 44px; font: inherit; cursor: pointer;
}
.department-brand-links button[aria-pressed="true"] { border-color: #ffab52; }

.single-order-dialog { width: min(520px, calc(100% - 26px)); }
.single-order-content { padding: 14px; display: grid; gap: 12px; }
.single-order-content h3, .single-order-content p { margin: 0; }
.single-order-content h3 { margin-bottom: 5px; }
.single-order-content h3 + p:empty { display: none; }
.single-order-content h3 ~ p { color: #d1d1d1; margin-top: 4px; }
.single-order-photo { width: 100%; max-height: min(220px, 31dvh); object-fit: contain; background: #0b0b0b; border-radius: 10px; }
.single-order-total { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid #343434; }
.order-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.order-photo-actions a, .order-photo-actions button {
  color: #fff; border: 1px solid #4a4a4a; border-radius: 9px; font: inherit;
  padding: 7px 10px; background: #202020; text-decoration: none; cursor: pointer;
}
.order-confirmation { display: grid; gap: 8px; }
.order-confirmation p { font-size: .9rem; color: #ddd; margin: 0; }
.order-confirmation p[role="alert"] { color: #ffbf86; }
.shop-cart-dialog .order-submit {
  border: 0; border-radius: 10px; background: #ff920c; color: #141414;
  font: inherit; font-weight: 750; cursor: pointer; min-height: 44px; padding: 8px 12px;
}
.shop-cart-dialog .order-submit:disabled { opacity: .6; cursor: wait; }
.cart-product-description { color: #bbb; margin: 0; font-size: .82rem; overflow-wrap: anywhere; }
.order-download {
  color: #eee; border: 1px solid #4a4a4a; border-radius: 9px;
  background: #202020; font: inherit; cursor: pointer; padding: 8px 12px; min-height: 44px;
}
