/* Cart page — compact, aligned, elegant */

.cart-page {
  --cart-cols: 22px 56px minmax(0, 1fr) 108px 92px 36px;
  --cart-gap: 0.75rem;
  --cart-pad-x: 1.1rem;
}

.cart-page main.container {
  width: min(100% - 2rem, var(--max));
}

.cart-page .site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.cart-hub {
  padding: 1rem 0 2.25rem;
}

/* —— Header —— */
.cart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(42, 54, 66, 0.06);
}

.cart-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.cart-head h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  line-height: 1.1;
}

.cart-head-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-head-link {
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed rgba(42, 54, 66, 0.14);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cart-head-link:hover {
  color: var(--teal-deep);
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.06);
}

/* —— Layout —— */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.cart-main,
.cart-summary-card {
  background: #fff;
  border: 1px solid rgba(42, 54, 66, 0.07);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px rgba(42, 54, 66, 0.06);
}

.cart-main {
  overflow: hidden;
}

/* —— Toolbar —— */
.cart-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.65rem var(--cart-pad-x);
  background: linear-gradient(180deg, rgba(245, 250, 253, 0.95), rgba(255, 255, 255, 0.65));
  border-bottom: 1px solid var(--line);
}

.cart-toolbar-spacer {
  flex: 1;
  min-width: 0.35rem;
}

.cart-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.cart-toolbar-btn img {
  width: 0.88rem;
  height: 0.88rem;
  opacity: 0.7;
}

.cart-toolbar-btn:hover:not(:disabled) {
  border-color: rgba(24, 119, 242, 0.42);
  background: rgba(24, 119, 242, 0.06);
}

.cart-toolbar-btn.is-danger {
  color: #b44;
  border-color: rgba(196, 75, 75, 0.2);
}

.cart-toolbar-btn.is-danger:hover:not(:disabled) {
  background: rgba(196, 75, 75, 0.07);
  border-color: rgba(196, 75, 75, 0.32);
}

.cart-toolbar-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

/* —— Checkbox —— */
.cart-check {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text);
}

.cart-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cart-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(24, 119, 242, 0.42);
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cart-check-box img {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  filter: brightness(0) invert(1);
}

.cart-check input:checked + .cart-check-box {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.28);
}

.cart-check input:checked + .cart-check-box img {
  opacity: 1;
  transform: scale(1);
}

.cart-check input:focus-visible + .cart-check-box {
  outline: 2px solid rgba(24, 119, 242, 0.35);
  outline-offset: 2px;
}

/* —— Column header —— */
.cart-list-header,
.cart-item {
  display: grid;
  grid-template-columns: var(--cart-cols);
  gap: var(--cart-gap);
  align-items: center;
  padding-left: var(--cart-pad-x);
  padding-right: var(--cart-pad-x);
}

.cart-list-header {
  padding-top: 0.55rem;
  padding-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.cart-list-header span:nth-child(4),
.cart-list-header span:nth-child(5) {
  text-align: center;
}

.cart-list-header span:nth-child(5) {
  text-align: right;
  padding-right: 0.15rem;
}

/* —— Items —— */
.cart-list {
  display: flex;
  flex-direction: column;
}

.cart-item {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(42, 54, 66, 0.06);
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.2s ease, max-height 0.22s ease, padding 0.22s ease;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item:hover:not(.is-unselected):not(.is-removing) {
  background: rgba(245, 250, 253, 0.55);
}

.cart-item.is-unselected {
  opacity: 0.58;
  background: rgba(245, 250, 253, 0.45);
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), #fff);
  border: 1px solid rgba(42, 54, 66, 0.06);
  flex-shrink: 0;
  display: block;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-body {
  min-width: 0;
}

.cart-item-title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-title:hover {
  color: var(--teal-deep);
}

.cart-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.cart-item-brand {
  font-weight: 600;
  color: rgba(92, 107, 120, 0.92);
}

.cart-item-dot {
  opacity: 0.45;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(42, 54, 66, 0.04);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s ease;
}

.cart-qty-btn img {
  width: 0.82rem;
  height: 0.82rem;
  opacity: 0.75;
}

.cart-qty-btn:hover:not(:disabled) {
  background: rgba(24, 119, 242, 0.11);
}

.cart-qty-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.cart-qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 750;
  font-size: 0.82rem;
}

.cart-line-total {
  justify-self: end;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--teal-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  background: transparent;
  color: #b44;
  font: inherit;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

.cart-remove span {
  display: none;
}

.cart-remove img {
  width: 0.92rem;
  height: 0.92rem;
  opacity: 0.78;
}

.cart-remove:hover {
  background: rgba(196, 75, 75, 0.1);
  color: #a03333;
}

/* —— Empty —— */
.cart-empty {
  padding: 2.25rem 1.25rem;
  text-align: center;
}

.cart-empty img {
  width: min(160px, 55%);
  margin: 0 auto 0.85rem;
  display: block;
}

.cart-empty h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}

.cart-empty p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* —— Summary —— */
.cart-summary-card {
  position: sticky;
  top: calc(var(--nav-h) + 0.75rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-summary-head {
  padding: 1rem 1.1rem 0.85rem;
  background: linear-gradient(145deg, rgba(187, 212, 252, 0.22), rgba(24, 119, 242, 0.1));
  border-bottom: 1px solid var(--line);
}

.cart-summary-head h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.cart-summary-selected {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.cart-summary-body {
  padding: 0.85rem 1.1rem 0.25rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.84rem;
  margin-bottom: 0.38rem;
}

.cart-summary-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.cart-summary-row.is-muted span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.cart-summary-total span:first-child {
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-summary-total strong {
  font-size: 1.28rem;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.cart-summary-actions {
  padding: 0.65rem 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cart-summary-actions .btn {
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 700;
}

.cart-summary-actions .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cart-trust {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: auto;
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px dashed rgba(42, 54, 66, 0.1);
  background: rgba(245, 250, 253, 0.55);
  font-size: 0.7rem;
  color: var(--muted);
}

.cart-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.cart-trust img {
  width: 0.72rem;
  height: 0.72rem;
  filter: brightness(0) saturate(100%) invert(39%) sepia(98%) saturate(1800%) hue-rotate(198deg) brightness(97%) contrast(96%);
  opacity: 0.85;
}

/* —— Responsive —— */
@media (max-width: 920px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cart-summary-card {
    position: static;
  }

  .cart-list-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 22px 52px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.55rem 0.65rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .cart-item-thumb {
    width: 52px;
    height: 52px;
    grid-row: 1;
    grid-column: 2;
  }

  .cart-item-body {
    grid-column: 3 / -1;
    grid-row: 1;
  }

  .cart-qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .cart-line-total {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }

  .cart-remove {
    grid-column: 4;
    grid-row: 2;
    align-self: center;
    width: auto;
    height: auto;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 650;
    gap: 0.25rem;
  }

  .cart-remove span {
    display: inline;
  }
}

@media (max-width: 520px) {
  .cart-page {
    --cart-pad-x: 0.85rem;
  }

  .cart-head {
    align-items: flex-start;
  }

  .cart-head-link {
    width: 100%;
    text-align: center;
  }

  .cart-toolbar-btn span {
    display: none;
  }

  .cart-toolbar-btn {
    padding: 0.4rem 0.5rem;
  }

  .cart-check-all span:not(.cart-check-box) {
    font-size: 0.74rem;
  }

  .cart-item-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cart-summary-actions .btn {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-item.is-removing {
    transition: none;
  }
}

/* —— Fly to cart —— */
.cart-fly {
  position: fixed;
  z-index: 4000;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(15, 40, 72, 0.28);
  background: #fff;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.cart-fly img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.cart-fly.is-flying {
  border-radius: 999px;
}

#nav-cart-target.cart-bump {
  animation: cartBump 0.45s ease;
}
@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  70% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* —— Floating cart FAB (above chat) —— */
.cart-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + 58px + 0.7rem);
  z-index: 111;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--action-border);
  background: linear-gradient(180deg, var(--action) 0%, var(--action-deep) 100%);
  color: var(--action-text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(245, 200, 74, 0.42);
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.cart-fab img {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(900%) hue-rotate(12deg) brightness(92%) contrast(92%);
  pointer-events: none;
}
.cart-fab:hover {
  transform: scale(1.06);
  filter: brightness(0.97);
  box-shadow: 0 16px 32px rgba(245, 200, 74, 0.5);
}
.cart-fab.is-open {
  filter: brightness(0.95);
}
#floating-cart-target.cart-bump {
  animation: cartBump 0.45s ease;
}
.cart-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #e85d4a;
  color: #fff;
  font-size: 0.62rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 2px solid #fff;
  line-height: 1;
}

/* —— Cart drawer —— */
/* Full-viewport overlay above the navbar (header is z-index 400 / 2600 when scroll-locked). */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2700;
  background: rgba(15, 30, 50, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2710;
  width: min(100vw - 1.5rem, 420px);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fff;
  box-shadow: -16px 0 48px rgba(15, 40, 72, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}
.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.cart-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
}
.cart-drawer-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.cart-drawer-head h2 em {
  font-style: normal;
  font-weight: 650;
  color: #667788;
  font-size: 0.95rem;
}
.cart-drawer-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #f0f3f7;
  color: #334455;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.cart-drawer-close:hover {
  background: #e4eaf1;
}
.cart-drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.65rem;
  min-height: 2.75rem;
  box-sizing: border-box;
}
.cart-drawer-check-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  color: #2a3642;
  cursor: pointer;
}
.cart-drawer-check-all input[type="checkbox"],
.cart-drawer-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0a56b8;
  cursor: pointer;
}
.cart-drawer-full {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-deep);
  text-decoration: none;
}
.cart-drawer-full.muted {
  color: #4a5b6c;
  font-weight: 650;
}
.cart-drawer-full:hover {
  text-decoration: underline;
}
.cart-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.85rem 1rem;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cart-drawer-item {
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(42, 54, 66, 0.08);
  background: #ffffff;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.cart-drawer-item:nth-child(odd) {
  background: #ffffff;
}
.cart-drawer-item:nth-child(even) {
  background: whitesmoke;
  border-color: rgba(42, 54, 66, 0.08);
}
.cart-drawer-item.is-off {
  opacity: 0.55;
}
.cart-drawer-item.is-off:nth-child(odd) {
  background: #f7f7f7;
}
.cart-drawer-item.is-off:nth-child(even) {
  background: #ececec;
}
.cart-drawer-check {
  display: grid;
  place-items: center;
  padding-top: 0.35rem;
  cursor: pointer;
}
.cart-drawer-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 119, 242, 0.1);
}
.cart-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-drawer-meta {
  min-width: 0;
}
.cart-drawer-meta a {
  color: inherit;
  text-decoration: none;
}
.cart-drawer-meta strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #163a66;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer-price {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-deep);
}
.cart-drawer-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  flex-wrap: nowrap;
  width: 100%;
}
.cart-drawer-qty button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  border: 1px solid rgba(42, 54, 66, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #334455;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-drawer-qty button:hover {
  border-color: rgba(24, 119, 242, 0.35);
  color: var(--teal-deep);
}
.cart-drawer-qty span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-drawer-qty-input {
  width: 2.6rem;
  min-width: 2.6rem;
  height: 1.7rem;
  margin: 0;
  padding: 0 0.2rem;
  border-radius: 8px;
  border: 1.5px solid rgba(24, 119, 242, 0.28);
  background: #fff;
  text-align: center;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #163a66;
  box-sizing: border-box;
}
.cart-drawer-qty-input:focus {
  outline: none;
  border-color: rgba(24, 119, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12);
}
.cart-drawer-remove {
  margin-left: auto !important;
  width: 1.7rem !important;
  height: 1.7rem !important;
  padding: 0 !important;
  color: #b42318 !important;
  border-color: transparent !important;
  background: transparent !important;
}
.cart-drawer-remove:hover {
  color: #912018 !important;
  border-color: rgba(180, 35, 24, 0.22) !important;
  background: rgba(180, 35, 24, 0.06) !important;
}
.cart-drawer-remove svg {
  display: block;
  pointer-events: none;
}
.cart-drawer-line {
  font-size: 0.9rem;
  color: #163a66;
  white-space: nowrap;
  padding-top: 0.2rem;
}
.cart-drawer-foot {
  padding: 0.9rem 1.15rem 1.2rem;
  border-top: 1px solid rgba(42, 54, 66, 0.08);
  background: linear-gradient(180deg, #fbfcfe, #fff);
}
.cart-drawer-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.cart-drawer-summary strong {
  font-size: 1.15rem;
  color: #163a66;
}
.cart-drawer-price .offer-regular {
  margin-left: 0.4rem;
  font-size: 0.74rem;
}
.cart-drawer-offer {
  margin-top: 0.15rem;
  font-size: 0.7rem;
}
.cart-drawer-offer > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer-savings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c81e1e;
}
.cart-drawer-savings span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.cart-drawer-note {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
}
.cart-drawer-foot .btn-block + .btn-block {
  margin-top: 0.45rem;
}
.cart-drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.cart-drawer-cta svg {
  flex-shrink: 0;
}
.cart-drawer-empty {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 2rem 1.5rem;
}
.cart-drawer-empty-ico {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}
.cart-drawer-empty .btn {
  margin-top: 0.55rem;
  justify-self: center;
}

.cart-page-panel {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(24, 119, 242, 0.1);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 40, 72, 0.06);
  overflow: hidden;
}
.cart-page-head {
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
}
.cart-page-head h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.cart-page-head h1 em {
  font-style: normal;
  font-weight: 650;
  color: #667788;
  font-size: 1rem;
}
.cart-page-body {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.cart-page-body .cart-drawer-list {
  max-height: none;
  flex: 1;
}
.cart-page-body .cart-drawer-empty {
  min-height: 320px;
}
.checkout-bag-panel {
  margin-top: 0.65rem;
  border: 1px solid rgba(42, 54, 66, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbfd;
}
.checkout-bag-panel .cart-drawer-list {
  max-height: none;
}
.checkout-bag-panel .cart-drawer-foot {
  display: none;
}

.btn-cart,
.pcard-cart,
.cart-fab,
.cart-link {
  cursor: pointer;
}

@media (max-width: 640px) {
  .cart-fab {
    right: 1rem;
    bottom: calc(1rem + 54px + 0.65rem);
    width: 50px;
    height: 50px;
  }
  .cart-drawer {
    width: min(100vw, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-fly,
  .cart-drawer,
  .cart-drawer-backdrop {
    transition: none !important;
  }
  #nav-cart-target.cart-bump {
    animation: none;
  }
}

