/* M3yar — Cart page + drawer helpers */

.m3-cart {
  --c-espresso: #1a0f0c;
  --c-red: #7a3333;
  --c-gold: #c4a574;
  --c-cream: #fffcf8;
  --c-peach: #fdf3ea;
  --c-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-height: calc(100vh - 140px);
  padding: 36px 0 64px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 165, 116, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--c-cream) 0%, #fff 48%, var(--c-peach) 100%);
}

.m3-cart__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 78%, rgba(122, 51, 51, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 90% 18%, rgba(232, 148, 74, 0.14) 0%, transparent 48%);
}

.m3-cart .container {
  position: relative;
  z-index: 1;
}

.m3-cart__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.m3-cart__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(122, 51, 51, 0.08);
  color: var(--c-red);
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.m3-cart__head h1 {
  margin: 0 0 8px;
  font-family: "Cairo", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--c-espresso);
}

.m3-cart__head p {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6b4c3b;
}

.m3-cart__back,
.m3-cart__continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 15, 12, 0.1);
  color: var(--c-espresso);
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.m3-cart__flash {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(122, 51, 51, 0.08);
  color: var(--c-red);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.m3-cart__empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 56px 24px;
  text-align: center;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(196, 165, 116, 0.28);
  box-shadow: 0 18px 40px rgba(26, 15, 12, 0.06);
}

.m3-cart__empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(122, 51, 51, 0.08);
  color: var(--c-red);
  font-size: 28px;
}

.m3-cart__empty h2 {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--c-espresso);
}

.m3-cart__empty p {
  margin: 0 0 8px;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6b4c3b;
}

.m3-cart__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--c-red), #5c2222);
  color: #fff;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.m3-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.m3-cart__list {
  display: grid;
  gap: 12px;
}

.m3-cart__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(196, 165, 116, 0.28);
  box-shadow: 0 12px 28px rgba(26, 15, 12, 0.05);
}

.m3-cart__row.is-removing {
  opacity: 0.4;
  pointer-events: none;
}

.m3-cart__thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-peach);
}

.m3-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m3-cart__sale {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--c-red), #5c2222);
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 22px;
}

.m3-cart__info h2 {
  margin: 0 0 4px;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--c-espresso);
}

.m3-cart__cat {
  display: block;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8a6f5e;
}

.m3-cart__color {
  display: inline-block;
  margin-top: 4px;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #7a3333;
}

.m3-cart__unit-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.m3-cart__unit-now {
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-espresso);
}

.m3-cart__unit-was {
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a08a7a;
}

.m3-qtybar {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(26, 15, 12, 0.12);
  border-radius: 12px;
  background: #fff;
}

.m3-qtybar button {
  width: 34px;
  border: 0;
  background: var(--c-cream, #fffcf8);
  color: var(--c-espresso, #1a0f0c);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.m3-qtybar button:hover {
  background: rgba(196, 165, 116, 0.18);
}

.m3-qtybar input {
  width: 42px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline: 1px solid rgba(26, 15, 12, 0.08);
  background: #fff;
  text-align: center;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-espresso, #1a0f0c);
  -moz-appearance: textfield;
  appearance: textfield;
}

.m3-qtybar input::-webkit-outer-spin-button,
.m3-qtybar input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.m3-qtybar__unit {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(122, 51, 51, 0.07);
  color: var(--c-red, #7a3333);
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.m3-qtybar--sm button {
  width: 30px;
  font-size: 15px;
}

.m3-qtybar--sm input {
  width: 36px;
  height: 32px;
  font-size: 12px;
}

.m3-qtybar--sm .m3-qtybar__unit {
  padding: 0 8px;
  font-size: 11px;
}

.m3-cart__line {
  min-width: 6.5rem;
  display: grid;
  gap: 2px;
  text-align: start;
  font-family: "Cairo", sans-serif;
}

.m3-cart__line strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--c-red);
}

.m3-cart__line del {
  font-size: 12px;
  font-weight: 600;
  color: #a08a7a;
}

/* Desktop: children join the row grid. Mobile: becomes a flex row. */
.m3-cart__meta {
  display: contents;
}

.m3-cart__remove {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(122, 51, 51, 0.08);
  color: var(--c-red);
  cursor: pointer;
}

.m3-cart__summary {
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(196, 165, 116, 0.14), transparent 55%),
    #fff;
  border: 1px solid rgba(196, 165, 116, 0.28);
  box-shadow: 0 16px 36px rgba(26, 15, 12, 0.06);
}

.m3-cart__summary h3 {
  margin: 0 0 14px;
  font-family: "Cairo", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--c-espresso);
}

.m3-cart__bill {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.m3-cart__bill-rows {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--c-cream);
  border: 1px solid rgba(196, 165, 116, 0.22);
}

.m3-cart__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-espresso);
}

.m3-cart__summary-row--was {
  color: #8a6f5e;
  font-weight: 600;
}

.m3-cart__summary-row--was del {
  font-weight: 700;
  color: #a08a7a;
}

.m3-cart__summary-row--now strong {
  color: var(--c-espresso);
  font-size: 14px;
  font-weight: 900;
}

.m3-cart__summary-row--muted {
  color: #8a6f5e;
  font-weight: 600;
  font-size: 12px;
}

.m3-cart__save {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 122, 74, 0.1), rgba(47, 122, 74, 0.05));
  border: 1px solid rgba(47, 122, 74, 0.18);
  color: #2f7a4a;
  font-family: "Cairo", sans-serif;
}

.m3-cart__save.is-hidden {
  display: none;
}

[data-m3-cart-head-savings].is-hidden,
[data-m3-cart-original-row].is-hidden {
  display: none !important;
}

.m3-cart__save-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(47, 122, 74, 0.12);
  font-size: 15px;
}

.m3-cart__save strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.m3-cart__save small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #4f8a61;
}

.m3-cart__save em {
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.m3-cart__pay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #2c1810, #1a0f0c);
  color: #fffcf8;
}

.m3-cart__pay span {
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 252, 248, 0.72);
}

.m3-cart__pay strong {
  font-family: "Cairo", sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.m3-cart__pay small {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-gold);
}

.m3-cart__note {
  margin: 14px 0 18px;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  color: #8a6f5e;
}

.m3-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--c-red), #5c2222);
  color: #fff !important;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(122, 51, 51, 0.22);
}

.m3-cart__continue {
  width: 100%;
  justify-content: center;
}

.m3-card__cart.is-added,
.m3-qv__cart.is-added {
  pointer-events: none;
}

/* ═══════════════════════════════════════
   Side cart drawer (offcanvas)
═══════════════════════════════════════ */
#offcanvas-add-cart__box.offcanvas-add-cart,
.offcanvas-add-cart {
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw) !important;
  padding: 0 !important;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(196, 165, 116, 0.18), transparent 55%),
    linear-gradient(180deg, #fffcf8 0%, #fff 42%, #fdf3ea 100%) !important;
  border: 0;
  box-shadow: -18px 0 48px rgba(26, 15, 12, 0.18);
  overflow: hidden;
}

[dir="rtl"] #offcanvas-add-cart__box.offcanvas-add-cart {
  box-shadow: 18px 0 48px rgba(26, 15, 12, 0.18);
}

#offcanvas-add-cart__box [data-m3-cart-drawer],
.offcanvas-add-cart [data-m3-cart-drawer] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.m3-drawer {
  --d-espresso: #1a0f0c;
  --d-red: #7a3333;
  --d-red-dark: #5c2222;
  --d-gold: #c4a574;
  --d-cream: #fffcf8;
  --d-peach: #fdf3ea;
  --d-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Cairo", sans-serif;
  color: var(--d-espresso);
}

.m3-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(196, 165, 116, 0.28);
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: blur(8px);
}

.m3-drawer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(122, 51, 51, 0.08);
  color: var(--d-red);
  font-size: 11px;
  font-weight: 800;
}

.m3-drawer__head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--d-espresso);
}

.m3-drawer__head h2 em {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--d-red), var(--d-red-dark));
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(122, 51, 51, 0.25);
}

.m3-drawer__close {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding-block: 0;
  padding-inline-start: 12px;
  padding-inline-end: 8px;
  border: 1px solid rgba(26, 15, 12, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--d-espresso);
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(26, 15, 12, 0.06);
  transition: background 0.2s var(--d-ease), color 0.2s var(--d-ease), border-color 0.2s var(--d-ease);
}

.m3-drawer__close span {
  padding: 0;
}

.m3-drawer__close i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 15, 12, 0.06);
  font-size: 12px;
}

.m3-drawer__close:hover {
  background: var(--d-red);
  border-color: var(--d-red);
  color: #fff;
}

.m3-drawer__close:hover i {
  background: rgba(255, 255, 255, 0.18);
}

.m3-drawer__empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  flex: 1;
  padding: 48px 28px;
  text-align: center;
}

.m3-drawer__empty-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 4px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 165, 116, 0.35), transparent 55%),
    rgba(122, 51, 51, 0.08);
  color: var(--d-red);
  font-size: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.m3-drawer__empty h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.m3-drawer__empty p {
  margin: 0;
  max-width: 16rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  color: #6b4c3b;
}

.m3-drawer__browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--d-red), var(--d-red-dark));
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(122, 51, 51, 0.24);
}

.m3-drawer__list {
  list-style: none;
  margin: 0;
  padding: 14px 16px 18px;
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  align-content: start;
}

.m3-drawer__item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(196, 165, 116, 0.28);
  box-shadow: 0 12px 28px rgba(26, 15, 12, 0.05);
  transition: transform 0.2s var(--d-ease), box-shadow 0.2s var(--d-ease);
}

.m3-drawer__item:hover {
  box-shadow: 0 16px 32px rgba(26, 15, 12, 0.08);
}

.m3-drawer__item.is-removing {
  opacity: 0.4;
  pointer-events: none;
  transform: scale(0.98);
}

.m3-drawer__thumb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--d-peach);
}

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

.m3-drawer__sale {
  position: absolute;
  top: 5px;
  inset-inline-start: 5px;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--d-red), var(--d-red-dark));
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 18px;
}

.m3-drawer__body {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.m3-drawer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.m3-drawer__name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--d-espresso);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m3-drawer__remove {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(122, 51, 51, 0.07);
  color: var(--d-red);
  cursor: pointer;
  transition: background 0.2s var(--d-ease);
}

.m3-drawer__remove:hover {
  background: rgba(122, 51, 51, 0.14);
}

.m3-drawer__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--d-gold);
}

.m3-drawer__color {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #f3d2c2;
}

.m3-drawer__price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.m3-drawer__price {
  font-size: 14px;
  font-weight: 900;
  color: var(--d-red);
}

.m3-drawer__was {
  font-size: 12px;
  font-weight: 600;
  color: #a08a7a;
}

.m3-drawer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.m3-drawer__unit {
  font-size: 11px;
  font-weight: 700;
  color: #8a6f5e;
  text-align: end;
}

.m3-drawer__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(26, 15, 12, 0.1);
  border-radius: 11px;
  overflow: hidden;
  background: var(--d-cream);
}

.m3-drawer__qty button {
  width: 30px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--d-espresso);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.m3-drawer__qty button:hover {
  background: rgba(196, 165, 116, 0.16);
}

.m3-drawer__qty input {
  width: 36px;
  height: 32px;
  border: 0;
  border-inline: 1px solid rgba(26, 15, 12, 0.08);
  background: #fff;
  text-align: center;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--d-espresso);
  -moz-appearance: textfield;
}

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

.m3-drawer__foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(196, 165, 116, 0.28);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 32px rgba(26, 15, 12, 0.06);
}

.m3-drawer__totals {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.m3-drawer__bill-rows {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.7);
  border: 1px solid rgba(196, 165, 116, 0.22);
}

.m3-drawer__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.m3-drawer__total-row--was {
  font-weight: 600;
  color: #8a6f5e;
}

.m3-drawer__total-row--was del {
  font-weight: 700;
  color: #a08a7a;
}

.m3-drawer__total-row strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--d-espresso);
}

.m3-drawer__save {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(47, 122, 74, 0.08);
  border: 1px solid rgba(47, 122, 74, 0.16);
  color: #2f7a4a;
  font-size: 12px;
  font-weight: 700;
}

.m3-drawer__save.is-hidden {
  display: none;
}

.m3-drawer__save span {
  flex: 1;
  font-weight: 800;
}

.m3-drawer__save em {
  font-style: normal;
  font-weight: 900;
}

.m3-drawer__pay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2c1810, #1a0f0c);
  color: #fffcf8;
}

.m3-drawer__pay span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 252, 248, 0.7);
}

.m3-drawer__pay strong {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.m3-drawer__pay small {
  font-size: 11px;
  font-weight: 800;
  color: var(--d-gold);
}

.m3-drawer__total-row--muted {
  font-size: 12px;
  font-weight: 600;
  color: #8a6f5e;
}

.m3-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--d-red), var(--d-red-dark));
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(122, 51, 51, 0.28);
  transition: transform 0.2s var(--d-ease), box-shadow 0.2s var(--d-ease);
}

.m3-drawer__cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(122, 51, 51, 0.34);
}

.m3-drawer__keep {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b4c3b;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.m3-drawer__keep:hover {
  color: var(--d-red);
}

@media (max-width: 991px) {
  .m3-cart__layout {
    grid-template-columns: 1fr;
  }

  .m3-cart__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .m3-cart__row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "meta meta"
      "remove remove";
    gap: 12px;
    align-items: start;
  }

  .m3-cart__thumb {
    grid-area: thumb;
    width: 72px;
    height: 72px;
  }

  .m3-cart__info {
    grid-area: info;
    min-width: 0;
    padding-inline-end: 0;
    text-align: start;
  }

  .m3-cart__meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .m3-qtybar {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    overflow: hidden;
  }

  .m3-qtybar__unit {
    display: none !important;
  }

  .m3-qtybar button {
    width: 38px;
    min-width: 38px;
    flex: 0 0 38px;
  }

  .m3-qtybar input {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    height: 40px;
  }

  .m3-cart__line {
    margin-inline-start: auto;
    text-align: end;
    min-width: 0;
  }

  .m3-cart__remove {
    grid-area: remove;
    width: 100%;
  }
}

/* Free shipping progress nudge */
.m3-ship-nudge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(47, 107, 79, 0.18);
  background: linear-gradient(135deg, #f3fbf6 0%, #fff 70%);
  margin-bottom: 12px;
}
.m3-ship-nudge__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f6b4f;
  color: #fff;
  font-size: 14px;
}
.m3-ship-nudge.is-locked .m3-ship-nudge__icon {
  background: #7a3333;
}
.m3-ship-nudge__copy {
  min-width: 0;
}
.m3-ship-nudge__copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1a0f0c;
  line-height: 1.35;
}
.m3-ship-nudge__copy p {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: #5c4a42;
  line-height: 1.45;
}
.m3-ship-nudge__copy em {
  font-style: normal;
  font-weight: 850;
  color: #7a3333;
}
.m3-ship-nudge.is-unlocked .m3-ship-nudge__copy em {
  color: #2f6b4f;
}
.m3-ship-nudge__bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: rgba(26, 15, 12, 0.08);
  overflow: hidden;
}
.m3-ship-nudge__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c45c5c, #7a3333);
  transition: width .35s ease;
}
.m3-ship-nudge.is-unlocked .m3-ship-nudge__bar span {
  background: linear-gradient(90deg, #4cae7f, #2f6b4f);
}
.m3-ship-nudge--page {
  margin: 0 0 14px;
}
.m3-drawer__foot .m3-ship-nudge {
  margin: 0 0 12px;
}
