/* Cart: header icon, drawer, buy boxes on catalog cards, cart page (js/components/cart-ui.js / cart-app.js). */

:root {
  --cart-ink: #111;
  --cart-line: #E5E5E5;
  --cart-muted: #6B6B6B;
  --cart-soft: #F4F4F4;
  --cart-green: #1E7A5D;
  --cart-error: #B42318;
  --cart-radius: 16px;
  --cart-ease: cubic-bezier(.2, .8, .2, 1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--cart-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}

.btn-primary:hover {
  background: #333;
}

.btn-primary:disabled,
.btn-primary[aria-disabled=true] {
  background: #BDBDBD;
  cursor: not-allowed;
}

.btn-secondary {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cart-ink);
  border-radius: 999px;
  color: var(--cart-ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn-secondary:hover:not(:disabled) {
  color: #fff;
  background: var(--cart-ink);
}

.btn-secondary:disabled {
  opacity: .6;
  cursor: progress;
}

.text-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

:is(.cart-drawer, .cart-page, .buy-box, .toasts) :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--cart-ink);
  outline-offset: 2px;
}

/* ---------- Header icon ---------- */

.cart-icon-slot {
  display: flex;
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  margin-left: auto;
}

.cart-icon-slot.is-floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
}

.cart-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
}

.cart-icon:hover {
  background: #8080801f;
}

.cart-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--cart-ink);
  box-shadow: 0 0 0 2px #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-badge[hidden] {
  display: none;
}

.cart-icon.is-pulsing .cart-badge {
  animation: cart-pulse .5s var(--cart-ease);
}

@keyframes cart-pulse {
  40% {
    transform: scale(1.35);
  }
}

.cart-fly {
  position: fixed;
  z-index: 400;
  margin: 0;
  pointer-events: none;
  transform-origin: center;
}

.cart-fly::before,
.cart-fly::after {
  display: none;
}

/* ---------- Buy box on catalog cards ---------- */

.buy-box {
  max-width: 380px;
  margin-top: 22px;
  color: var(--cart-ink);
}

.catalog-card-image {
  display: block;
}

.size-selector {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.size-label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.size-hint {
  color: var(--cart-error);
  letter-spacing: 0;
  text-transform: none;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  position: relative;
}

.size-pill input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.size-pill span:first-of-type {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--cart-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}

.size-pill:hover input:not(:disabled) + span {
  border-color: var(--cart-ink);
}

.size-pill input:checked + span {
  border-color: var(--cart-ink);
  color: #fff;
  background: var(--cart-ink);
}

.size-pill input:focus-visible + span {
  outline: 2px solid var(--cart-ink);
  outline-offset: 2px;
}

.size-pill.is-out span:first-of-type {
  color: #ABABAB;
  background: #FAFAFA;
  text-decoration: line-through;
}

.size-pill.is-out input {
  cursor: not-allowed;
}

.size-low {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--cart-error);
  font-size: 12px;
}

.size-selector.is-missing .size-pill:not(.is-out) span:first-of-type {
  border-color: var(--cart-error);
}

.size-selector.is-missing {
  animation: cart-shake .4s ease;
}

@keyframes cart-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.buy-add .buy-done {
  display: none;
  align-items: center;
  gap: 6px;
}

.buy-add .buy-done .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.buy-add.is-added {
  background: var(--cart-ink);
}

.buy-add.is-added .buy-label {
  display: none;
}

.buy-add.is-added .buy-done {
  display: inline-flex;
}

/* ---------- Drawer ---------- */

html.cart-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--cart-ink);
  background: #fff;
  box-shadow: -24px 0 60px #0000001f;
  font-family: 'DM Sans', Arial, sans-serif;
}

.cart-drawer::backdrop {
  background: #00000066;
  animation: cart-fade .3s ease;
}

@keyframes cart-fade {
  from {
    opacity: 0;
  }
}

.drawer-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 24px;
  border-bottom: 1px solid var(--cart-line);
}

.drawer-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: none;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--cart-soft);
}

.free-ship {
  padding: 16px 24px;
  border-bottom: 1px solid var(--cart-line);
}

.free-ship p {
  margin: 0 0 10px;
  font-size: 14px;
}

.free-ship-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #EBEBEB;
}

.free-ship-track span {
  display: block;
  height: 100%;
  background: var(--cart-ink);
  transform-origin: left center;
  transition: transform .3s var(--cart-ease);
}

.drawer-body {
  flex: 1;
  min-height: 0;
  padding: 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  flex-shrink: 0;
  border-top: 1px solid var(--cart-line);
}

.drawer-note {
  margin: 0 0 4px;
  color: var(--cart-muted);
  font-size: 12px;
}

.drawer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.summary-row strong {
  font-weight: 700;
}

.checkout-blocked {
  margin: 0;
  color: var(--cart-error);
  font-size: 13px;
}

.currency {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--cart-line);
  border-radius: 999px;
}

.currency button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--cart-muted);
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.currency button[aria-pressed=true] {
  color: #fff;
  background: var(--cart-ink);
}

/* ---------- Cart lines ---------- */

.cart-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cart-line);
  transition: opacity .2s;
}

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

.cart-line.is-pending {
  opacity: .6;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 80px;
  height: 100px;
  overflow: hidden;
  border-radius: 12px;
  color: #BDBDBD;
  background: var(--cart-soft);
}

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

.cart-line-name {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

.cart-line-name strong {
  font-weight: 600;
}

.cart-line-meta {
  margin: 0 0 6px;
  color: var(--cart-muted);
  font-size: 13px;
}

.cart-price {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cart-price s {
  margin-left: 4px;
  color: var(--cart-muted);
  font-weight: 400;
}

.cart-notice {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: #7A4300;
  background: #FFF4E5;
  font-size: 12px;
  line-height: 1.4;
}

.cart-notice--agotado {
  color: var(--cart-error);
  background: #FDECEC;
}

.cart-notice--precio {
  color: #3D3D3D;
  background: var(--cart-soft);
}

.cart-line.is-soldout :is(.cart-thumb, .cart-line-name, .cart-line-meta, .cart-price, .cart-line-total) {
  opacity: .45;
}

.cart-line.is-soldout .cart-thumb {
  filter: grayscale(1);
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.cart-remove {
  padding: 10px 0;
  border: 0;
  color: var(--cart-muted);
  background: none;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart-remove:hover {
  color: var(--cart-ink);
}

/* Quantity: [ − ] 1 [ + ] */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cart-line);
  border-radius: 999px;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--cart-ink);
  background: none;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:hover:not([aria-disabled=true]) {
  background: var(--cart-soft);
}

.qty-btn[aria-disabled=true] {
  color: #C4C4C4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 26px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qty-plus {
  position: relative;
  display: inline-flex;
}

.qty-plus[data-tooltip]:hover::after,
.qty-plus[data-tooltip]:focus-within::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--cart-ink);
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 0;
  text-align: center;
}

.cart-empty .icon {
  width: 56px;
  height: 56px;
  color: #C4C4C4;
  stroke-width: 1.2;
}

.cart-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.cart-empty .btn-primary {
  width: auto;
}

/* ---------- Skeletons ---------- */

.skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #EFEFEF 25%, #F7F7F7 50%, #EFEFEF 75%) 0 0 / 200% 100%;
  animation: cart-shimmer 1.2s linear infinite;
}

@keyframes cart-shimmer {
  to {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 12px;
  margin: 6px 0;
}

.skeleton-pill {
  width: 110px;
  height: 36px;
  margin-top: 14px;
  border-radius: 999px;
}

.skeleton-total {
  height: 30px;
  margin: 10px 0;
}

.skeleton-button {
  height: 48px;
  border-radius: 999px;
}

.size-pill.skeleton {
  width: 48px;
  height: 40px;
  border-radius: 999px;
}

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  font-family: 'DM Sans', Arial, sans-serif;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--cart-ink);
  box-shadow: 0 12px 30px #00000033;
  font-size: 14px;
  animation: cart-toast .25s var(--cart-ease);
}

.toast--error {
  background: var(--cart-error);
}

.toast button {
  padding: 8px 4px;
  border: 0;
  color: #fff;
  background: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.toast .toast-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}

.toast .toast-close .icon {
  width: 16px;
  height: 16px;
}

@keyframes cart-toast {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Cart page ---------- */

html.cart-page,
.cart-page body,
.cart-page .page {
  color: var(--cart-ink);
  background: #fff;
}

.cart-page .page {
  padding-inline: clamp(20px, 5vw, 64px);
}

.cart-page .brand {
  color: var(--cart-ink);
}

.cart-page .brand-mark {
  color: #fff;
  background: var(--cart-ink);
}

.cart-page .topbar nav {
  background: #fff;
  border-color: var(--cart-line);
}

.cart-page .topbar nav a:hover {
  color: var(--cart-ink);
  background: var(--cart-soft);
}

.cart-page .menu {
  color: var(--cart-ink);
  background: var(--cart-soft);
}

.cart-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-hero {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.cart-eyebrow {
  margin: 0 0 12px;
  color: var(--cart-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}

.cart-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(300px, 35fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.cart-layout.is-empty {
  grid-template-columns: 1fr;
}

.cart-table-head,
.cart-line--page {
  grid-template-columns: 100px minmax(0, 1.6fr) 104px 136px 110px 76px;
  align-items: center;
  gap: 20px;
}

.cart-table-head {
  display: grid;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cart-line);
  color: var(--cart-muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cart-table-head span:first-child {
  grid-column: span 2;
}

.cart-table-head span:nth-child(4),
.cart-line-total {
  text-align: right;
}

.cart-line--page {
  padding: 24px 0;
}

.cart-line--page:last-child {
  border-bottom: 1px solid var(--cart-line);
}

.cart-line--page .cart-thumb {
  width: 100px;
  height: 125px;
}

.cart-line--page .cart-line-name {
  font-size: 16px;
  font-weight: 600;
}

.cart-line-total {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-line-remove {
  text-align: right;
}

.size-select select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 16px;
  border: 1px solid var(--cart-line);
  border-radius: 999px;
  color: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center / 10px no-repeat;
  font: inherit;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}

.size-select select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.checkout-placeholder {
  max-width: 44ch;
  margin: 0 0 28px;
  color: var(--cart-muted);
  font-size: 18px;
  line-height: 1.5;
}

.checkout-back {
  width: auto;
}

/* Summary card */
.order-summary {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--cart-line);
  border-radius: var(--cart-radius);
  background: #fff;
}

.order-summary.is-skeleton {
  gap: 10px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.summary-row.is-discount {
  color: var(--cart-green);
  font-weight: 600;
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-label {
  font-size: 14px;
  font-weight: 600;
}

.inline-field {
  display: flex;
  gap: 8px;
}

.inline-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cart-line);
  border-radius: 999px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s;
}

.inline-field input:focus {
  border-color: var(--cart-ink);
  outline: none;
  box-shadow: 0 0 0 3px #1111111f;
}

.inline-field.is-invalid input {
  border-color: var(--cart-error);
}

.field-error {
  margin: 0;
  color: var(--cart-error);
  font-size: 12px;
}

.coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  color: var(--cart-green);
  background: #EAF6F0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.coupon-chip button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: none;
  cursor: pointer;
}

.coupon-chip .icon {
  width: 16px;
  height: 16px;
}

.ship-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.ship-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--cart-line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .2s;
}

.ship-option:has(input:checked) {
  border-color: var(--cart-ink);
}

.ship-option input {
  margin: 2px 0 0;
  accent-color: var(--cart-ink);
}

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

.summary-total span {
  font-size: 16px;
  font-weight: 600;
}

.summary-total strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.summary-installments {
  margin: -8px 0 0;
  color: var(--cart-muted);
  font-size: 13px;
  text-align: right;
}

.summary-checkout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payments {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payments svg {
  width: 44px;
  height: 28px;
  fill: none;
  stroke: #9A9A9A;
  stroke-width: 1.3;
}

.payments text {
  fill: #9A9A9A;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
}

.summary-trust {
  margin: 0;
  color: var(--cart-muted);
  font-size: 12px;
}

/* "Completá tu look": catalog cards in a four-column grid. */
.look {
  --catalog-surface: #EAF6F0;
  --catalog-mint: #A7D6C0;
  --catalog-soft: #61B795;
  --catalog-green: #2E9D74;
  --catalog-accent: #1E7A5D;
  --catalog-text: #145C46;
  --catalog-ink: #0B3D2E;
  --catalog-price: #D92D35;
  margin: clamp(72px, 10vw, 120px) 0 24px;
}

.look h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.look .look-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
}

.look .catalog-card,
.look .catalog-grid-item:nth-child(even) .catalog-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.look .catalog-grid-item .catalog-card-image {
  grid-row: 1;
  grid-column: 1;
  justify-self: stretch;
  max-width: none;
}

.look .catalog-grid-item .catalog-card-body {
  grid-row: 2;
  grid-column: 1;
}

.look .catalog-card-image::after {
  display: none;
}

.look .catalog-product-heading {
  flex-direction: column;
  gap: 8px;
}

.look .catalog-card-body h2 {
  font-size: 18px;
}

.look .catalog-card-price {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
}

.look .catalog-product-description {
  display: none;
}

/* Mobile checkout bar */
.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--cart-line);
  background: #fff;
  box-shadow: 0 -10px 30px #0000000f;
}

.mobile-bar[hidden] {
  display: none;
}

.mobile-bar-total {
  display: flex;
  flex-direction: column;
  color: var(--cart-muted);
  font-size: 12px;
}

.mobile-bar-total strong {
  color: var(--cart-ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.mobile-bar .checkout-btn {
  flex: 1;
}

@media (min-width: 1201px) {
  .mobile-bar {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .look .look-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .cart-page body {
    padding-bottom: 96px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-summary {
    position: static;
  }

  .cart-table-head {
    display: none;
  }

  .cart-line--page {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      'thumb info info'
      'thumb size qty'
      'thumb total remove';
    gap: 12px 14px;
    align-items: center;
  }

  .cart-line--page .cart-thumb {
    grid-area: thumb;
    align-self: start;
    width: 88px;
    height: 110px;
  }

  .cart-line--page .cart-line-info {
    grid-area: info;
  }

  .cart-line--page .cart-line-size {
    grid-area: size;
  }

  .cart-line--page .cart-line-qty {
    grid-area: qty;
  }

  .cart-line--page .cart-line-total {
    grid-area: total;
    text-align: left;
  }

  .cart-line--page .cart-line-remove {
    grid-area: remove;
  }

  /* 44px touch targets. */
  .qty-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  .size-select select,
  .order-summary input {
    font-size: 16px;
  }

  .cart-line--page {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      'thumb info'
      'size size'
      'qty qty'
      'total total'
      'remove remove';
  }

  .cart-line--page .cart-thumb {
    width: 72px;
    height: 90px;
  }

  .cart-line--page .cart-line-size {
    width: min(100%, 160px);
    justify-self: end;
  }

  .cart-line--page .cart-line-qty {
    justify-self: end;
  }

  .cart-line--page .cart-line-total {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .look .look-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .size-selector.is-missing,
  .cart-icon.is-pulsing .cart-badge,
  .toast,
  .cart-drawer::backdrop {
    animation: none;
  }

  .btn-primary,
  .btn-secondary,
  .free-ship-track span,
  .cart-line,
  .size-pill span:first-of-type {
    transition: none;
  }
}
