/* =========================
   CART LAYOUT
========================= */

#cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* =========================
   CART ITEM
========================= */

.cart-item {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid #161616;
  padding: 20px;
  border-radius: 4px;
  align-items: center;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #333;
  filter: grayscale(1);
  flex-shrink: 0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {
  #cart-container {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  /* SECTION SPACING */
  section[style*="padding: 100px 10% 40px 10%"] {
    padding: 80px 20px 30px 20px !important;
  }

  section[style*="padding: 20px 10% 100px 10%"] {
    padding: 20px 20px 80px 20px !important;
  }

  /* TITLE */
  h1 {
    font-size: 42px !important;
    line-height: 1.1;
    word-break: break-word;
  }

  /* CART ITEM */
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .cart-item img {
    width: 100%;
    height: 240px;
  }

  /* PRODUCT INFO */
  .cart-item h4 {
    font-size: 14px !important;
    line-height: 1.4;
  }

  .cart-item p {
    font-size: 11px !important;
  }

  /* PRICE */
  .cart-item div[style*="text-align: right"] {
    width: 100%;
    text-align: left !important;
    margin-top: 10px;
  }

  /* TOTAL */
  #summary-total {
    font-size: 20px !important;
    word-break: break-word;
  }

  /* CHECKOUT BUTTON */
  #checkout-btn {
    padding: 16px 0 !important;
    font-size: 11px !important;
  }

  /* Summary */
  .cart-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }

  .cart-summary {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    top: unset !important;
    right: unset !important;
    left: unset !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
}
