/* ========================================
   AIYA PRINT
   CART PAGE
======================================== */


/* ========================================
   PAGE
======================================== */

.cart-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}


/* ========================================
   HEADING
======================================== */

.cart-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.cart-heading h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.cart-heading p {
  max-width: 520px;
  line-height: 1.7;
}


/* ========================================
   LAYOUT
======================================== */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 50px;
  align-items: start;
}


/* ========================================
   ITEM COLUMN
======================================== */

.cart-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(30, 30, 25, 0.14);
}

.cart-section-heading h2 {
  margin: 0;
}

.cart-section-heading span {
  opacity: 0.55;
  font-size: 0.9rem;
}


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

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(30, 30, 25, 0.12);
}


/* PRODUCT PREVIEW */

.cart-item-preview {
  width: 120px;
  height: 120px;

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

  background: #f0eee6;
  border: 1px solid rgba(30, 30, 25, 0.1);
}

.cart-item-preview span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.cart-item-preview {
  overflow: hidden;
}

.cart-item-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* PRODUCT INFO */

.cart-item-info h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.cart-item-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;

  margin-bottom: 14px;
}

.cart-item-option {
  font-size: 0.86rem;
}

.cart-item-option strong {
  font-weight: 600;
}

.cart-artwork {
  margin: 0;
  font-size: 0.84rem;
  opacity: 0.6;
}


/* ACTIONS */

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.cart-item-price {
  font-size: 1.2rem;
  font-weight: 600;
}

.remove-cart-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;

  font: inherit;
  font-size: 0.83rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.55;
}

.remove-cart-item:hover {
  opacity: 1;
}


/* ========================================
   ORDER SUMMARY
======================================== */

.cart-summary {
  position: sticky;
  top: 30px;

  padding: 30px;

  background: #f4f1e7;
  border: 1px solid rgba(30, 30, 25, 0.1);
}

.cart-summary h2 {
  margin: 0 0 28px;
  font-size: 1.45rem;
}

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

  margin: 17px 0;
  font-size: 0.94rem;
}

.summary-muted {
  opacity: 0.5;
  font-size: 0.84rem;
}

.summary-divider {
  height: 1px;
  margin: 25px 0;
  background: rgba(30, 30, 25, 0.14);
}

.summary-total {
  margin-bottom: 28px;
  font-size: 1.2rem;
  font-weight: 600;
}

.development-notice {
  margin: 0 0 25px;

  font-size: 0.77rem;
  line-height: 1.6;
  opacity: 0.55;
}

.checkout-button {
  width: 100%;
}

.continue-shopping {
  display: block;
  margin-top: 18px;

  text-align: center;
  font-size: 0.88rem;
  color: inherit;

  text-decoration: underline;
  text-underline-offset: 4px;
}


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

.empty-cart {
  text-align: center;
  padding: 80px 20px 100px;
}

.empty-cart-icon {
  width: 95px;
  height: 115px;

  margin: 0 auto 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;

  padding: 20px;

  background: #f7f4e8;
  box-shadow: 8px 8px 0 rgba(25, 25, 20, 0.08);
}

.empty-cart-icon span {
  display: block;
  width: 100%;
  height: 6px;
  background: rgba(45, 45, 40, 0.35);
}

.empty-cart h2 {
  margin: 7px 0 12px;
}

.empty-cart > p:not(.eyebrow) {
  margin-bottom: 30px;
  opacity: 0.65;
}


/* ========================================
   REASSURANCE
======================================== */

.cart-reassurance {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px 100px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;

  border-top: 1px solid rgba(30, 30, 25, 0.12);
}

.reassurance-number {
  display: inline-block;
  margin-bottom: 16px;

  font-size: 0.73rem;
  letter-spacing: 0.13em;
  opacity: 0.45;
}

.cart-reassurance h3 {
  margin: 0 0 10px;
}

.cart-reassurance p {
  margin: 0;
  max-width: 320px;

  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.68;
}


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

@media (max-width: 900px) {

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

}


@media (max-width: 650px) {

  .cart-page {
    padding-top: 45px;
  }

  .cart-item {
    grid-template-columns: 85px minmax(0, 1fr);
  }

  .cart-item-preview {
    width: 85px;
    height: 85px;
  }

  .cart-item-actions {
    grid-column: 2;

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

  .cart-reassurance {
    grid-template-columns: 1fr;
  }

}