/* ==========================================================================
   Cart Component
   ========================================================================== */

.cart__title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

@media screen and (min-width: 750px) {
  .cart__title {
    font-size: 4.8rem;
  }
}

/* Cart Items */
.cart__items-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  padding: 2rem;
  background-color: rgba(var(--color-text), 0.02);
  border-radius: var(--border-radius);
}

@media screen and (min-width: 750px) {
  .cart-item {
    grid-template-columns: 150px 1fr auto auto auto auto;
    align-items: center;
  }
}

.cart-item__media {
  width: 100px;
  height: 100px;
  background-color: rgba(var(--color-text), 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
}

@media screen and (min-width: 750px) {
  .cart-item__media {
    width: 150px;
    height: 150px;
  }
}

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

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item__name {
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.cart-item__name:hover {
  opacity: 0.7;
}

.cart-item__options {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.cart-item__option {
  display: flex;
  gap: 0.5rem;
  font-size: 1.4rem;
  opacity: 0.7;
}

.cart-item__option dt {
  font-weight: 600;
}

.cart-item__option dd {
  margin: 0;
}

.cart-item__price {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.cart-item__quantity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item__quantity label {
  font-size: 1.3rem;
  font-weight: 600;
}

.cart-item__quantity input {
  width: 80px;
}

.cart-item__totals {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item__total {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: right;
}

.cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 107, 157, 0.12);
  border: 1px solid rgba(255, 107, 157, 0.35);
  border-radius: 20px;
  color: #FF6B9D;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-item__remove:hover {
  background: rgba(255, 107, 157, 0.25);
  border-color: rgba(255, 107, 157, 0.7);
}

/* Cart Empty */
.cart__empty {
  text-align: center;
  padding: 6rem 0;
}

.cart__empty p {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Cart Footer */
.cart__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--color-text), 0.1);
}

.cart__update-button {
  min-width: 200px;
}
