/* =========================
    CART ITEM
========================= */

.cart-item {
  position: relative;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 20px;
  padding: 28px 0;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.cart-item::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
}

.cart-item:hover {
  transform: translateY(-1px);
}


/* =========================
    CART ITEM IMAGE
========================= */

.cart-item__image {
  width: 110px;
  height: 130px;

  flex-shrink: 0;

  object-fit: cover;
  border-radius: 6px;

  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item__image {
  transform: scale(1.03);
}


/* =========================
    CART ITEM INFO
========================= */

.cart-item__info {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  gap: 6px;

  padding-right: 10px;
}

.cart-item__name {
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;

  text-transform: uppercase;
}

.cart-item__meta {
  font-size: 11px;
  color: #999;
}

.cart-item__price {
  font-size: 12px;
  font-weight: 500;
}

.cart-item__stock-warning {
  font-size: 11px;
  color: #b00020;
}


/* =========================
    CART QUANTITY
========================= */

.cart-qty {
  display: flex;
  align-items: center;

  gap: 6px;
  padding: 3px 8px;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
}

.cart-qty__btn {
  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: none;

  font-size: 11px;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
}

.cart-qty__value {
  min-width: 12px;

  font-size: 11px;
  font-weight: 500;

  text-align: center;
}


/* =========================
    CART ITEM BOTTOM
========================= */

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 10px;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  padding-left: 8px;

  gap: 4px;
}


/* =========================
    CART ITEM REMOVE
========================= */

.cart-item__remove {
  border: none;
  background: none;

  color: #888;

  font-size: 9px;
  opacity: 0.7; 
  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;

  transition: color 0.2s ease;
}

.cart-item__remove:hover {
  color: #000;
  opacity: 0.75;
}


/* =========================
    CART FOOTER
========================= */

.cart-footer {
  margin-top: auto;

  display: flex;
  flex-direction: column;

  gap: 20px;

  padding-top: 32px;
  padding-bottom: 6px;

  margin-top: 8px;
  border-top:
    1px solid rgba(0, 0, 0, 0.05);
}

.cart-footer__note {
  font-size: 12px;
  color: #999;

  text-align: center;
}

/* =========================
    CART CHECKOUT BUTTON
========================= */

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  width: 100%;
  padding: 16px 0;

  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;

  background: #111;
  color: #fff;

  font-size: 12px;
  font-weight: 500;

  letter-spacing: 0.10em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    opacity 0.25s ease;
}

.cart-checkout-btn:hover {
  opacity: 0.92;
}

.cart-checkout-btn__label {
  opacity: 1;
  font-weight: 600;
}

.cart-checkout-btn__divider {
  opacity: 0.75;
  font-size: 20px;
}

.cart-checkout-btn__price {

  font-size: 13px;
  font-weight: 500;

  letter-spacing: 0.02em;

  transform: translateY(0.5px);
}


/* =========================
    MOBILE CHECKOUT BAR
========================= */

.mobile-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;

  display: none;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 14px 16px;

  background: #fff;

  border-top: 1px solid #eee;

  z-index: 1000;
}

.mobile-checkout-bar__total {
  font-size: 14px;
  font-weight: 500;
}

.mobile-checkout-bar__button {
  padding: 12px 20px;

  border: none;

  background: #000;
  color: #fff;

  font-size: 12px;
  letter-spacing: 0.12em;

  cursor: pointer;

  transition: opacity 0.2s ease;
}

.mobile-checkout-bar__button:hover {
  opacity: 0.8;
}


/* =========================
    EMPTY CART
========================= */

.cart-empty {
  margin-top: 80px;
  padding: 80px 0;

  text-align: center;
}

.cart-empty__title {
  font-size: 14px;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-empty__subtext {
  margin: 8px 0 16px;

  opacity: 0.6;

  font-size: 12px;
}

.cart-empty__button {
  padding: 10px 18px;

  border: 1px solid #000;

  background: #000;
  color: #fff;

  font-size: 11px;
  letter-spacing: 0.1em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cart-empty__button:hover {
  background: #fff;
  color: #000;
}

.cart-empty__text {
  font-size: 13px;
  color: #888;
}


/* =========================
    CART ITEM SUBTOTAL
========================= */

.cart-item__subtotal {
  margin-top: 4px;

  opacity: 0.6;

  font-size: 12px;
}


/* =========================
    CART ITEM STATES
========================= */

.cart-item--removing {
  opacity: 0;
  transform: translateX(10px);
}

/* =========================
    RESPONSIVE
========================= */

@media (max-width: 768px) {
  .mobile-checkout-bar {
    display: flex;
  }
}