:root {
  --cart-ink: #111817;
  --cart-muted: #5e6762;
  --cart-line: rgba(17, 24, 22, 0.14);
  --cart-cream: #fbf8f0;
  --cart-orange: #ff432b;
  --cart-green: #61723a;
  --drawer-w: 430px;
}

body.cart-page {
  background: var(--cart-cream);
}

.cart-page .cart-count {
  background: var(--cart-orange);
}

.cart-main {
  padding-right: var(--drawer-w);
}

.cart-shell,
.cart-service {
  width: calc(100% - 96px);
  max-width: 1440px;
  margin: 0 auto;
}

.cart-shell {
  padding: 42px 0 12px;
}

.cart-title-row {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 40px;
  align-items: start;
  margin-bottom: 28px;
}

.cart-title-row h1 {
  margin: 10px 0 0;
  font-size: 50px;
  line-height: 1;
  color: var(--cart-ink);
  font-weight: 950;
  letter-spacing: 0;
}

.shipping-meter {
  position: relative;
  padding-right: 10px;
}

.meter-head {
  display: flex;
  gap: 15px;
  align-items: center;
}

.meter-head svg {
  width: 39px;
  height: 39px;
  color: var(--cart-green);
}

.meter-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1;
}

.meter-head p {
  margin: 0;
  color: #26302c;
  font-size: 15px;
}

.meter-track {
  height: 8px;
  margin-top: 14px;
  border-radius: 99px;
  background: #d5d3cc;
  overflow: hidden;
}

.meter-track span {
  display: block;
  width: 94%;
  height: 100%;
  border-radius: inherit;
  background: var(--cart-green);
}

.shipping-meter > b {
  position: absolute;
  right: 0;
  bottom: -7px;
  color: var(--cart-green);
  font-size: 14px;
}

.cart-layout {
  position: relative;
  display: block;
  padding-right: 384px;
}

.cart-list,
.order-summary,
.product-rails,
.cart-drawer > header,
.drawer-notice,
.drawer-shipping,
.drawer-addon {
  border: 1px solid var(--cart-line);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
}

.cart-list {
  overflow: hidden;
}

.cart-item {
  min-height: 142px;
  padding: 20px 30px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 138px 116px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--cart-line);
}

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

.product-crop,
.car-seat,
.toy-ball,
.bowl-art {
  background: #f4efe5;
  border-radius: 7px;
  overflow: hidden;
}

.product-crop img,
.car-seat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.product-crop {
  width: 150px;
  height: 112px;
}

.product-crop.harness img { object-position: 0% 38%; transform: scale(1.28); }
.product-crop.leash img { object-position: 79% 57%; transform: scale(1.42); }
.product-crop.collar img { object-position: 64% 20%; transform: scale(1.42); }
.product-crop.pod img { object-position: 92% 82%; transform: scale(1.5); }
.product-crop.handle img { object-position: 66% 62%; transform: scale(1.55); }
.product-crop.small { width: 100%; height: 122px; }
.product-crop.tiny { width: 62px; height: 62px; flex: 0 0 auto; }

.item-copy h2,
.drawer-items h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.15;
}

.item-copy p,
.drawer-items p,
.mini-product p,
.drawer-addon span {
  margin: 0;
  color: var(--cart-muted);
  font-size: 14px;
  line-height: 1.35;
}

.item-copy > strong,
.drawer-items strong,
.mini-product strong,
.drawer-addon b {
  display: block;
  margin-top: 11px;
  color: var(--cart-ink);
  font-size: 17px;
}

.item-actions {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.item-actions button,
.trash {
  border: 0;
  background: transparent;
  color: #5e6762;
  font-size: 13px;
  cursor: pointer;
}

.qty {
  width: 124px;
  height: 46px;
  border: 1px solid var(--cart-line);
  border-radius: 7px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  background: #fffdf9;
}

.qty button {
  border: 0;
  background: transparent;
  color: #18211f;
  font-size: 22px;
  cursor: pointer;
}

.qty span {
  font-size: 18px;
  font-weight: 750;
}

.item-price {
  justify-self: end;
  font-size: 18px;
}

.saving-banner {
  min-height: 69px;
  margin-top: 14px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 42px 1fr auto 18px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--cart-line);
  border-radius: 8px;
  background: rgba(248, 245, 235, 0.86);
}

.tag-shape {
  width: 31px;
  height: 31px;
  background: var(--cart-green);
  clip-path: polygon(0 0, 74% 0, 100% 26%, 100% 100%, 0 100%);
  border-radius: 5px;
  transform: rotate(45deg);
}

.saving-banner p {
  margin: 0;
  color: #1b241f;
}

.saving-banner p strong {
  display: block;
  color: var(--cart-green);
  font-size: 17px;
}

.saving-banner b {
  color: var(--cart-green);
}

.product-rails {
  margin-top: 18px;
  margin-right: 384px;
  min-height: 0;
  padding: 14px 16px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.rail-card {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.rail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.rail-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.rail-head p {
  margin: 0;
  color: #24302c;
  font-size: 13px;
}

.rail-head span {
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid #c7d2ab;
  border-radius: 16px;
  color: var(--cart-green);
  background: #f5f8ed;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rail-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.mini-product {
  position: relative;
  min-height: 212px;
  padding: 8px;
  border: 1px solid var(--cart-line);
  border-radius: 7px;
  background: #fffdf9;
}

.mini-product h3 {
  margin: 9px 0 3px;
  font-size: 13px;
  line-height: 1.15;
}

.mini-product strong {
  margin-top: 6px;
  font-size: 14px;
}

.mini-product button,
.drawer-addon button {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--cart-orange);
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.car-seat {
  width: 100%;
  height: 116px;
}

.car-seat img {
  transform: scale(1.4);
  object-position: 50% 52%;
}

.toy-ball {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  position: relative;
  background:
    linear-gradient(35deg, transparent 42%, #7b8b4f 43% 55%, transparent 56%),
    linear-gradient(-35deg, transparent 40%, #ef6844 41% 56%, transparent 57%),
    radial-gradient(circle at 38% 36%, #f37d54 0 16%, transparent 17%),
    radial-gradient(circle at 62% 63%, #6f8047 0 18%, transparent 19%),
    #d4a376;
  box-shadow: inset 0 -10px 22px rgba(0,0,0,0.14), 0 9px 18px rgba(0,0,0,0.1);
}

.toy-ball::before,
.toy-ball::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 11px solid #6d7c43;
  border-left-color: #ef6844;
  border-right-color: #ef6844;
  border-radius: 42% 58% 55% 45%;
  transform: rotate(29deg);
}

.toy-ball::after {
  inset: 24px;
  transform: rotate(-34deg);
  border-color: #ef6844 #6d7c43;
}

.bowl-art {
  width: 100%;
  height: 122px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #d9d6b8 0 26%, #8b935e 27% 45%, #50592c 46% 62%, transparent 63%), #f4efe5;
}

.bowl-art.tiny {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}

.order-summary {
  position: absolute;
  right: 0;
  top: 0;
  width: 350px;
  padding: 28px 28px 22px;
}

.order-summary h2 {
  margin: 0 0 22px;
  font-size: 22px;
}

.order-summary dl,
.drawer-totals {
  margin: 0;
  display: grid;
  gap: 16px;
}

.order-summary dl div,
.drawer-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-summary dt,
.drawer-totals dt {
  color: #101817;
}

.order-summary dd,
.drawer-totals dd {
  margin: 0;
  font-weight: 750;
}

.green,
.drawer-totals div:nth-child(2) dd,
.drawer-totals div:nth-child(3) dd {
  color: var(--cart-green);
}

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

.summary-total span,
.drawer-totals .total dt {
  font-size: 20px;
  font-weight: 900;
}

.summary-total strong,
.drawer-totals .total dd {
  font-size: 26px;
  font-weight: 950;
}

.installments {
  margin: 14px 0 14px;
  color: #1c2724;
  font-size: 13px;
}

.installments span {
  color: #00a56a;
  font-weight: 900;
}

.checkout,
.drawer-checkout {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 7px;
  background: var(--cart-orange);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.paypal {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  background: #ffc439;
  color: #063a7a;
  font-size: 18px;
  font-weight: 950;
  font-style: italic;
}

.express {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.express span {
  grid-column: 1 / -1;
  color: #6d756f;
  font-size: 12px;
}

.express button {
  height: 38px;
  border: 1px solid var(--cart-line);
  border-radius: 5px;
  background: #fff;
}

.express button:first-of-type {
  background: #5a31f4;
  color: #fff;
}

.giving {
  margin-top: 13px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border: 1px solid #b8d0e7;
  border-radius: 7px;
  background: linear-gradient(135deg, #eaf5ff, #d6eafa);
  color: #0b3d70;
}

.giving span {
  font-size: 28px;
}

.giving p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.giving strong {
  display: block;
  font-size: 14px;
}

.cart-service {
  min-height: 70px;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #fffdf8;
}

.cart-service div {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.cart-service svg {
  width: 30px;
  height: 30px;
  color: var(--cart-green);
}

.cart-service p {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.cart-service strong {
  font-size: 14px;
}

.cart-service span {
  color: #323b37;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: var(--drawer-w);
  padding: 25px 24px 28px;
  overflow: auto;
  background: #fffdf9;
  box-shadow: -18px 0 45px rgba(17, 24, 22, 0.13);
}

.cart-drawer > header {
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cart-drawer h2 {
  margin: 0;
  font-size: 20px;
}

.cart-drawer header button {
  border: 0;
  background: transparent;
  font-size: 28px;
}

.drawer-notice {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
}

.drawer-notice span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cart-green);
  color: #fff;
}

.drawer-shipping {
  border-top: 0;
  border-radius: 0;
  padding: 13px 16px;
}

.drawer-shipping div {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  color: #213022;
  font-size: 13px;
}

.drawer-shipping svg {
  width: 22px;
  height: 22px;
  color: var(--cart-green);
}

.drawer-shipping i {
  height: 7px;
  margin-top: 12px;
  display: block;
  border-radius: 99px;
  background: #d8d7d1;
  overflow: hidden;
}

.drawer-shipping i span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: var(--cart-green);
}

.drawer-items {
  border: 1px solid var(--cart-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.drawer-items article {
  min-height: 138px;
  padding: 17px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--cart-line);
}

.drawer-items article:last-child {
  border-bottom: 0;
}

.drawer-items .product-crop,
.drawer-items .toy-ball {
  width: 82px;
  height: 82px;
}

.drawer-items h3 {
  font-size: 15px;
}

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

.drawer-row .qty {
  width: 94px;
  height: 36px;
}

.drawer-row .qty button {
  font-size: 16px;
}

.drawer-row .qty span {
  font-size: 14px;
}

.drawer-addon {
  margin-top: 14px;
  padding: 16px;
}

.drawer-addon h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.drawer-addon article {
  position: relative;
  min-height: 70px;
  display: flex;
  gap: 13px;
  align-items: center;
}

.drawer-addon p {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.drawer-addon button {
  top: 18px;
  bottom: auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cart-line);
  background: #fff;
  color: var(--cart-orange);
}

.drawer-totals {
  padding: 22px 8px 0;
}

.drawer-totals .total {
  margin-top: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--cart-line);
}

.drawer-checkout {
  margin-top: 18px;
}

.cart-page .site-footer {
  margin-right: var(--drawer-w);
  position: relative;
  overflow: hidden;
}

.cart-page .site-footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 370px;
  height: 100%;
  background: linear-gradient(90deg, rgba(8, 17, 16, 0), rgba(8, 17, 16, 0.18)), url("../pawtrail-home/assets/images/activity-hiking.webp") center / cover;
  opacity: 0.95;
}

.cart-page .site-footer > * {
  position: relative;
  z-index: 1;
}

.cart-page .service-strip {
  display: none;
}

@media (max-width: 1380px) {
  :root {
    --drawer-w: 390px;
  }

  .cart-shell,
  .cart-service {
    width: calc(100% - 48px);
  }

  .cart-layout {
    padding-right: 0;
  }

  .product-rails {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    width: auto;
    display: none;
  }
}

@media (max-width: 980px) {
  .cart-main {
    padding-right: 0;
  }

  .cart-drawer {
    position: static;
    width: calc(100% - 48px);
    margin: 20px auto;
    box-shadow: none;
    border: 1px solid var(--cart-line);
    border-radius: 8px;
  }

  .cart-page .site-footer {
    margin-right: 0;
  }

  .cart-title-row,
  .product-rails,
  .cart-service {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 120px 1fr;
  }

  .cart-item .qty,
  .item-price {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .cart-shell,
  .cart-service,
  .cart-drawer {
    width: calc(100% - 28px);
  }

  .cart-title-row h1 {
    font-size: 40px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .rail-grid,
  .rail-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .rail-head {
    display: block;
  }

  .rail-head span {
    display: inline-flex;
    min-width: 0;
    margin-top: 10px;
  }
}
