/* /=== CART PAGE START ===/ */
.cart-page {
  max-width: 960px;
}

.cart-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 90px auto;
  gap: 18px;
  align-items: center;

  padding: 18px;

  border-radius: 24px;

  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(80, 45, 12, .1);

  box-shadow: 0 14px 30px rgba(80, 45, 12, .1);
}

.cart-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--ink);
}

.cart-item p {
  margin: 0 0 8px;
  color: rgba(32, 21, 16, .66);
}

.cart-item strong {
  display: block;
  font-size: 1.05rem;
}

.cart-item input[type="number"] {
  width: 100%;
  border: 1px solid rgba(80, 45, 12, .18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, .8);
  font: inherit;
  text-align: center;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  margin-top: 28px;
  padding: 24px;

  border-radius: 24px;

  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(80, 45, 12, .1);

  box-shadow: 0 14px 30px rgba(80, 45, 12, .1);
}

.cart-summary p {
  margin: 0;
  font-size: .84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(32, 21, 16, .58);
}

.cart-summary strong {
  display: block;
  font-size: 2rem;
  color: var(--ink);
}
/* /=== CART PAGE END ===/ */


/* /=== FLOATING CART COUNT START ===/ */
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 24px;
  height: 24px;
  padding: 0 6px;

  border-radius: 999px;

  background: var(--red);
  color: white;

  font-size: .72rem;
  font-weight: 950;
}
/* /=== FLOATING CART COUNT END ===/ */

/* /=== HEADER CART BUTTON START ===/ */
.cart-button {
  position: relative;
}

.cart-button #cartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 7px;

  border-radius: 999px;

  background: rgba(255,255,255,.18);
  color: white;

  font-size: .72rem;
  font-weight: 950;
}
/* /=== HEADER CART BUTTON END ===/ */

/* /=== FLOATING CART START ===/ */
.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 18px;

  border: 0;
  border-radius: 999px;

  background: var(--wood);
  color: var(--cream);

  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);

  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.floating-cart:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .3);
  background: var(--red);
}

.floating-cart:active {
  transform: translateY(-1px) scale(.99);
}
/* /=== FLOATING CART END ===/ */

/* /=== CHECKOUT SUMMARY START ===/ */
.checkout-summary {
  display: grid;
  gap: 14px;

  margin: 26px 0 30px;
  padding: 22px;

  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.92),
      rgba(255,248,236,.82)
    );

  box-shadow:
    0 20px 46px rgba(80, 45, 12, .08);
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 16px;
  align-items: center;

  padding-bottom: 14px;

  border-bottom: 1px solid rgba(80, 45, 12, .08);
}

.checkout-summary-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-summary-item img {
  width: 82px;
  height: 82px;

  object-fit: cover;
  object-position: center;

  border-radius: 18px;

  display: block;

  box-shadow:
    0 10px 24px rgba(80, 45, 12, .12);
}

.checkout-summary-item h4 {
  margin-bottom: 6px;

  font-size: 1rem;
  font-weight: 800;
}

.checkout-summary-item p {
  margin: 2px 0;

  color: rgba(32, 21, 16, .68);

  font-size: .92rem;
}

.checkout-summary-item strong {
  font-size: 1rem;
  font-weight: 900;

  white-space: nowrap;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 6px;
  padding-top: 18px;

  border-top: 2px dashed rgba(80, 45, 12, .12);

  font-size: 1.04rem;
  font-weight: 900;
}
/* /=== CHECKOUT SUMMARY END ===/ */


/* /=== CHECKOUT SUCCESS START ===/ */
.checkout-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;

  margin-top: 18px;
  padding: 18px;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(71, 163, 96, .14),
      rgba(71, 163, 96, .08)
    );

  border: 1px solid rgba(71, 163, 96, .18);
}

.success-check {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: #47a360;
  color: white;

  font-size: 1.1rem;
  font-weight: 900;

  flex-shrink: 0;
}

.checkout-success p {
  margin-top: 4px;
  color: rgba(32, 21, 16, .72);
}
/* /=== CHECKOUT SUCCESS END ===/ */