/* =============================================================
   Genzee Jewels — cart.css
   Phase 28: Global cart drawer shell
   ============================================================= */

/* ── Backdrop ─────────────────────────────────────────────── */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  z-index: var(--z-cart-backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.cart-drawer-open .cart-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Drawer panel ─────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 100vw;
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: var(--z-cart-drawer);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
}

body.cart-drawer-open .cart-drawer {
  transform: translateX(0);
  visibility: visible;
}

/* Prevent body scroll when drawer is open */
body.cart-drawer-open {
  overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.cart-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-line);
  flex-shrink: 0;
}

.cart-drawer__title-group {
  min-width: 0;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
  color: var(--color-ink);
  line-height: 1.2;
}

.cart-drawer__count {
  color: var(--color-hot);
}

.cart-drawer__count.is-empty {
  display: none;
}

.cart-drawer__urgency {
  font-size: 11px;
  color: var(--color-muted);
  margin: 0;
  font-weight: 600;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.cart-drawer__close:hover,
.cart-drawer__close:focus-visible {
  background: var(--color-hot);
  outline: none;
}

/* ── Free-ship progress bar ───────────────────────────────── */
.cart-drawer__ship-bar {
  padding: 14px 24px;
  background: var(--color-butter);
  flex-shrink: 0;
}

.genzee-cart-drawer-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cart-drawer__ship-msg {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 8px;
}

.cart-drawer__ship-msg strong {
  color: var(--color-hot);
}

.cart-drawer__progress-track {
  display: block;
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.cart-drawer__progress-track::-webkit-progress-bar {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--r-pill);
}

.cart-drawer__progress-track::-webkit-progress-value {
  height: 100%;
  background: var(--color-ink);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

.cart-drawer__progress-track::-moz-progress-bar {
  background: var(--color-ink);
  border-radius: var(--r-pill);
}

.cart-drawer__progress-fill {
  display: none;
}

/* ── Scrollable body area ─────────────────────────────────── */
.cart-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px;
}

/* ── Empty state ──────────────────────────────────────────── */
.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.cart-drawer__empty-icon {
  opacity: 0.25;
}

.cart-drawer__empty-msg {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
}

.cart-drawer__shop-link {
  display: inline-block;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.cart-drawer__shop-link:hover,
.cart-drawer__shop-link:focus-visible {
  background: var(--color-hot);
  outline: none;
}

/* ── WooCommerce inactive notice ──────────────────────────── */
.cart-drawer__wc-inactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

.cart-drawer__wc-inactive svg {
  opacity: 0.4;
}

/* ── Footer / order summary ───────────────────────────────── */
.cart-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-line);
  background: var(--color-white);
  flex-shrink: 0;
}

.cart-drawer__summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cart-drawer__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--color-ink);
}

.cart-drawer__summary-val {
  font-weight: 800;
}

.cart-drawer__summary-val--success,
.cart-drawer__summary-row--discount {
  color: var(--color-success, #16a34a);
}

.cart-drawer__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink);
}

.cart-drawer__summary-total span {
  font-size: 13px;
  font-weight: 800;
}

.cart-drawer__summary-total strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: right;
}

.cart-drawer__savings {
  margin: 6px 0 0;
  color: var(--color-success, #16a34a);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.cart-drawer__checkout {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--r-pill);
  background: var(--color-hot);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-drawer__checkout:hover,
.cart-drawer__checkout:focus-visible {
  background: var(--color-hot-deep);
  box-shadow: none;
  outline: none;
}

/* ── Payment method badges ────────────────────────────────── */
.cart-drawer__payment-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.cart-drawer__payment-badges li {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Ship bar: unlocked state ─────────────────────────────── */
.cart-drawer__ship-msg--unlocked {
  color: var(--color-success, #16a34a);
}

/* ── Cart items list ──────────────────────────────────────── */
.cart-drawer__item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  position: relative;
}

.cart-drawer__item:last-of-type {
  border-bottom: none;
}

/* ── Item thumbnail ───────────────────────────────────────── */
.cart-drawer__item-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-paper);
}

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

/* ── Item body (text + controls) ─────────────────────────── */
.cart-drawer__item-body {
  flex: 1;
  min-width: 0;
  padding-right: 28px; /* space for remove button */
}

.cart-drawer__item-cat {
  display: block;
  font-size: 10px;
  color: var(--color-muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cart-drawer__item-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ── Item bottom row: qty + price ─────────────────────────── */
.cart-drawer__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

/* ── Qty stepper ───────────────────────────────────────────── */
.cart-drawer__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.cart-drawer__qty-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--color-ink);
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cart-drawer__qty-btn:hover,
.cart-drawer__qty-btn:focus-visible {
  background: var(--color-ink);
  color: #fff;
  outline: none;
}

.cart-drawer__qty-num {
  width: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-ink);
  border: 0;
  border-left: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  background: transparent;
  padding: 4px 0;
  -moz-appearance: textfield;
}

.cart-drawer__qty-num::-webkit-outer-spin-button,
.cart-drawer__qty-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-drawer__qty.is-loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.cart-drawer__qty.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--color-ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cart-qty-spin 0.6s linear infinite;
}

@keyframes cart-qty-spin {
  to { transform: rotate(360deg); }
}

.cart-drawer__qty--readonly {
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--color-soft);
}

.cart-drawer__qty-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-ink);
}

/* ── Item prices ───────────────────────────────────────────── */
.cart-drawer__item-prices {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}

.cart-drawer__item-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--color-ink);
}

.cart-drawer__item-price--sale {
  color: var(--color-hot);
}

.cart-drawer__item-price-was {
  font-size: 10px;
  text-decoration: line-through;
  color: var(--color-muted);
}

/* ── Remove button ─────────────────────────────────────────── */
.cart-drawer__item-remove {
  position: absolute;
  top: 14px;
  right: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  border-radius: 50%;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.cart-drawer__item-remove:hover,
.cart-drawer__item-remove:focus-visible {
  color: var(--color-hot);
  background: rgba(255, 45, 111, 0.08);
  outline: none;
}

/* Update-cart submit */
.cart-drawer__update-submit {
  width: 100%;
  min-height: 38px;
  height: auto;
  padding: 10px 16px;
  margin: 12px 0 4px;
  border-radius: var(--r-pill);
  background: var(--color-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transition: background var(--transition-fast);
}

.cart-drawer__update-submit:hover,
.cart-drawer__update-submit:focus-visible {
  background: var(--color-hot);
  outline: none;
}

/* -- Freebie nudge --------------------------- */
.cart-drawer__freebie {
  padding: 14px;
  margin: 16px 0;
  background: var(--color-white);
  border: 1.5px dashed var(--color-hot);
  border-radius: var(--r-md);
}

.cart-drawer__freebie-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer__freebie-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-butter);
  color: var(--color-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cart-drawer__freebie-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.35;
}

.cart-drawer__freebie-copy {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Mini cross-sell tiles */
.cart-drawer__cross-sell-panel {
  margin: 16px 0;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
}

.cart-drawer__cross-sell-title {
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
}

.cart-drawer__cross-sells {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.cart-drawer__cross-sells::-webkit-scrollbar {
  display: none;
}

.cart-mini-product {
  position: relative;
  flex: 0 0 80px;
  width: 80px;
}

.cart-mini-product__link {
  display: block;
  color: var(--color-ink);
  text-decoration: none;
}

.cart-mini-product__media {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--color-paper);
}

.cart-mini-product__img,
.cart-mini-product__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-mini-product__badge {
  position: absolute;
  left: 5px;
  top: 5px;
  max-width: calc(100% - 34px);
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--color-ink);
  color: var(--color-butter);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.cart-mini-product__name {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-mini-product__price {
  display: block;
  margin-top: 1px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.cart-mini-product__add {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.cart-mini-product__add:hover,
.cart-mini-product__add:focus-visible {
  background: var(--color-hot);
  outline: none;
  transform: scale(1.04);
}

/* â”€â”€ Coupon area â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cart-drawer__coupon {
  padding: 12px 0 4px;
}

.cart-drawer__coupon-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.cart-drawer__coupon-row {
  display: flex;
  gap: 8px;
}

.cart-drawer__coupon-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12px;
  background: var(--color-white);
  outline: none;
}

.cart-drawer__coupon-input:focus {
  border-color: var(--color-ink);
}

.cart-drawer__coupon-apply {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition-fast);
}

.cart-drawer__coupon-apply:hover,
.cart-drawer__coupon-apply:focus-visible {
  background: var(--color-hot);
  outline: none;
}

.cart-drawer__coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cart-drawer__coupon-chip {
  border: 1px dashed var(--color-hot);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  color: var(--color-hot);
  font-size: 10px;
  font-weight: 800;
  background: transparent;
}

.cart-drawer__coupon-chip:focus-visible {
  outline: 2px solid var(--color-hot);
  outline-offset: 2px;
}

/* ── Empty state: secondary line ──────────────────────────── */
.cart-drawer__empty-sub {
  font-size: 12px;
  color: var(--color-muted);
  margin: -4px 0 0;
  max-width: 220px;
  line-height: 1.4;
  text-align: center;
}

/* ── Mobile: bottom-sheet ─────────────────────────────────── */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    top: auto;
    max-height: 92vh; /* fallback */
    max-height: 92dvh;
    height: 92vh; /* fallback */
    height: 92dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  body.cart-drawer-open .cart-drawer {
    transform: translateY(0);
  }
}

/* =============================================================
   Full WooCommerce cart page
   ============================================================= */

.cart-page {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-paper);
  color: var(--color-ink);
}

.cart-page__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--container-pad) 56px;
}

.cart-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-page__eyebrow {
  margin: 0 0 4px;
  color: var(--color-hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-page__title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.cart-page__title span {
  color: var(--color-hot);
}

.cart-page__continue,
.cart-page__primary-link,
.cart-page__checkout,
.cart-page__update,
.cart-page__coupon-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.cart-page__continue {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
}

.cart-page__continue:hover,
.cart-page__continue:focus-visible {
  border-color: var(--color-ink);
  color: var(--color-ink);
  outline: none;
}

.cart-page__notices {
  margin-bottom: 18px;
}

.cart-page__notices .woocommerce-message,
.cart-page__notices .woocommerce-info,
.cart-page__notices .woocommerce-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cart-page__items-panel,
.cart-page__summary,
.cart-page__empty,
.cart-page__fallback {
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-white);
}

.cart-page__items-panel {
  overflow: hidden;
}

.cart-page__ship-bar {
  padding: 14px 16px;
  background: var(--color-butter);
}

.cart-page__ship-bar p {
  margin: 0 0 8px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
}

.cart-page__ship-bar strong {
  color: var(--color-hot);
}

.cart-page__ship-unlocked {
  color: var(--color-success) !important;
}

.cart-page__progress {
  display: block;
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.cart-page__progress::-webkit-progress-bar {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--r-pill);
}

.cart-page__progress::-webkit-progress-value {
  background: var(--color-ink);
  border-radius: var(--r-pill);
}

.cart-page__progress::-moz-progress-bar {
  background: var(--color-ink);
  border-radius: var(--r-pill);
}

.cart-page__form {
  margin: 0;
}

.cart-page__items {
  padding: 0 16px;
}

.cart-page__item {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

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

.cart-page__item-media {
  display: block;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-paper);
}

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

.cart-page__item-main {
  min-width: 0;
  padding-right: 30px;
}

.cart-page__item-cat {
  display: block;
  margin-bottom: 2px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cart-page__item-title {
  margin: 0 0 3px;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.cart-page__item-title a:hover,
.cart-page__item-title a:focus-visible {
  color: var(--color-hot);
  outline: none;
}

.cart-page__item-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cart-page__item-meta dl,
.cart-page__item-meta dt,
.cart-page__item-meta dd,
.cart-page__item-meta p {
  display: inline;
  margin: 0;
}

.cart-page__item-meta dt::after {
  content: ": ";
}

.cart-page__item-meta dd::after {
  content: " ";
}

.cart-page__item-mobile-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin-top: 8px;
  font-size: 12px;
}

.cart-page__item-mobile-prices span {
  color: var(--color-muted);
  font-weight: 700;
}

.cart-page__item-mobile-prices strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
}

.cart-page__item-subtotal {
  display: none;
}

.cart-page__item-qty {
  grid-column: 2;
  width: fit-content;
  min-width: 0;
}

.cart-page__qty-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
  background: var(--color-white);
}

.cart-page__qty-step {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cart-page__qty-step:hover,
.cart-page__qty-step:focus-visible {
  background: var(--color-ink);
  color: var(--color-white);
  outline: none;
}

.cart-page__item-qty .quantity {
  display: inline-flex;
  align-items: center;
}

.cart-page__item-qty .qty {
  width: 38px;
  max-width: 100%;
  min-height: 34px;
  border: 0;
  border-left: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.cart-page__item-qty .qty::-webkit-outer-spin-button,
.cart-page__item-qty .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-page__item-qty .qty:focus {
  outline: none;
}

.cart-page__item-remove {
  position: absolute;
  top: 14px;
  right: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-muted);
}

.cart-page__item-remove:hover,
.cart-page__item-remove:focus-visible {
  background: rgba(255, 45, 111, 0.08);
  color: var(--color-hot);
  outline: none;
}

.cart-page__item-remove span {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.cart-page__form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--color-line);
  background: var(--color-paper);
}

.cart-page__coupon-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cart-page__coupon-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.cart-page__coupon-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-white);
  padding: 11px 14px;
  color: var(--color-ink);
  font-size: 13px;
  outline: none;
}

.cart-page__coupon-input:focus {
  border-color: var(--color-ink);
}

.cart-page__coupon-apply,
.cart-page__update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--color-ink) !important;
  border-radius: var(--r-pill) !important;
  background: var(--color-ink) !important;
  color: var(--color-white) !important;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: none !important;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.cart-page__coupon-apply {
  flex: 0 0 auto;
  padding: 12px 20px;
}

.cart-page__update {
  width: 100%;
  padding: 12px 22px;
}

.woocommerce .cart-page__coupon-apply.button,
.woocommerce .cart-page__update.button,
.cart-page__coupon-apply:disabled,
.cart-page__coupon-apply[disabled],
.cart-page__update:disabled,
.cart-page__update[disabled],
.woocommerce .cart-page__update.button:disabled,
.woocommerce .cart-page__update.button[disabled]:disabled {
  border-color: var(--color-ink) !important;
  background: var(--color-ink) !important;
  color: var(--color-white) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--color-white);
}

.cart-page__coupon-apply:hover,
.cart-page__coupon-apply:focus-visible,
.cart-page__update:hover,
.cart-page__update:focus-visible,
.woocommerce .cart-page__coupon-apply.button:hover,
.woocommerce .cart-page__coupon-apply.button:focus-visible,
.woocommerce .cart-page__update.button:hover,
.woocommerce .cart-page__update.button:focus-visible {
  background: var(--color-hot) !important;
  border-color: var(--color-hot) !important;
  color: var(--color-white) !important;
  outline: none;
}

.cart-page__coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cart-page__coupon-chips span {
  border: 1px dashed var(--color-hot);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  color: var(--color-hot);
  background: var(--color-white);
  font-size: 10px;
  font-weight: 800;
}

.cart-page__freebie {
  display: grid;
  gap: 16px;
  margin: 18px;
  padding: 18px;
  border: 1.5px dashed var(--color-hot);
  border-radius: var(--r-md);
  background: var(--color-white);
}

.cart-page__freebie-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-page__freebie-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-butter);
  color: var(--color-ink);
}

.cart-page__freebie-title {
  margin: 0 0 2px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.cart-page__freebie-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cart-page__freebie-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.cart-page__freebie-grid::-webkit-scrollbar {
  display: none;
}

.cart-page__freebie-grid .cart-mini-product {
  flex: 0 0 82px !important;
  width: 82px !important;
  min-width: 82px;
}

.cart-page__freebie-grid .cart-mini-product__media {
  width: 82px;
  height: 82px;
}

.cart-page__freebie-grid .cart-mini-product__name {
  white-space: nowrap;
}

.cart-page__summary {
  padding: 18px;
}

.cart-page__summary h2 {
  margin: 0 0 14px;
  color: var(--color-ink);
  font-size: 20px;
}

.cart-page__summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-page__summary-row,
.cart-page__summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-ink);
}

.cart-page__summary-row {
  font-size: 13px;
}

.cart-page__summary-row strong {
  font-weight: 800;
  text-align: right;
}

.cart-page__summary-row .is-success,
.cart-page__summary-row--discount {
  color: var(--color-success);
}

.cart-page__summary-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

.cart-page__summary-total span {
  font-size: 14px;
  font-weight: 800;
}

.cart-page__summary-total strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: right;
}

.cart-page__savings {
  margin: 2px 0 0;
  color: var(--color-success);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.cart-page__checkout {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-pill);
  background: var(--color-hot);
  box-shadow: var(--shadow-pop);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-page__checkout:hover,
.cart-page__checkout:focus-visible {
  background: var(--color-hot-deep);
  color: var(--color-white);
  outline: none;
}

.cart-page__payment-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cart-page__payment-badges li {
  padding: 3px 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cart-page__trust {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.cart-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 44px 18px;
  text-align: center;
}

.cart-page__empty-icon {
  margin-bottom: 14px;
  color: var(--color-muted);
  opacity: 0.35;
}

.cart-page__empty h2,
.cart-page__fallback h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cart-page__empty h2 {
  font-size: 28px;
}

.cart-page__primary-link {
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cart-page__primary-link:hover,
.cart-page__primary-link:focus-visible {
  background: var(--color-hot);
  color: var(--color-white);
  outline: none;
}

.cart-page__fallback {
  margin-top: 18px;
  padding: 18px;
}

.cart-page__fallback h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.cart-page__mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-page__mini-grid .cart-mini-product {
  width: 100%;
}

.cart-page__mini-grid .cart-mini-product__media {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

@media (max-width: 420px) {
  .cart-page__header {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page__continue {
    width: fit-content;
  }

  .cart-page__coupon-row {
    flex-direction: column;
  }

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

@media (min-width: 700px) {
  .cart-page__inner {
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .cart-page__item {
    grid-template-columns: 96px minmax(0, 1fr) 92px 112px;
    align-items: center;
    gap: 16px;
  }

  .cart-page__item-media {
    width: 96px;
    height: 96px;
  }

  .cart-page__item-main {
    padding-right: 0;
  }

  .cart-page__item-mobile-prices {
    display: none;
  }

  .cart-page__item-subtotal {
    display: block;
    min-width: 0;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
  }

  .cart-page__item-subtotal {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 900;
  }

  .cart-page__item-qty {
    grid-column: auto;
    justify-self: center;
  }

  .cart-page__item-remove {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }

  .cart-page__form-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
  }

  .cart-page__update {
    width: auto;
    min-width: 148px;
  }

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

  .cart-page__freebie {
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    padding: 18px 20px;
  }

  .cart-page__freebie-grid {
    justify-content: flex-start;
    min-width: 0;
  }

}

@media (min-width: 1024px) {
  .cart-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 24px;
  }

  .cart-page__summary {
    position: sticky;
    top: 96px;
  }
}
