html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #fffaf7;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Footer positioning */
.main-footer {
  margin-top: auto;
}

footer {
  color: #fff;
  text-align: center;
  padding: 18px 0;
  margin-top: auto;
}

.cart-wrapper {
  background: #e5d3d3;
  min-height: 100vh;
  padding: 0;
  flex: 1;
}

.cart-inner {
  max-width: 900px;
  margin: 0 auto;
  background: #f7ecd9;
  padding: 32px 0 0 0;
  min-height: 80vh;
}

.cart-header {
  background: #fffbe7;
  border-bottom: 2px solid #ff9800;
  padding: 18px 48px 18px 48px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(255,152,0,0.07);
}

.cart-header h1 {
  font-size: 2.2rem;
  color: #e65100;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.back-link {
  color: #7a4c1e;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
}

.back-link:hover {
  color: #ff9800;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  min-width: 320px;
  max-width: 100%;
  min-height: 90px;
  height: 90px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border: 1.5px solid #ffe0b2;
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 16px 22px;
  box-shadow: 0 2px 10px rgba(255,152,0,0.06);
  gap: 22px;
  transition: box-shadow 0.2s, border 0.2s;
}

.cart-item:hover {
  box-shadow: 0 4px 24px rgba(255,152,0,0.13);
  border: 1.5px solid #ff9800;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,152,0,0.10);
  border: 1px solid #ffe0b2;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-item-price,
.cart-item-qty,
.cart-item-total {
  font-size: 1.08rem;
  color: #7a4c1e;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e4491a;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-btn:hover,
.cart-btn:focus {
  background: #23702e;
  color: #fff;
}

.cart-btn-remove {
  border: none;
  background: transparent;
  color: #d32f2f;
  font-size: 1.3rem;
  margin-left: 8px;
}

.cart-btn-remove:hover {
  background: #ffeaea;
  color: #b71c1c;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 2px solid #e0cfcf;
  margin: 32px 48px 0 48px;
  padding: 28px 24px 28px 24px;
  gap: 32px;
  background: #fffbe7;
  border-radius: 14px;
  border: 1.5px solid #ffe0b2;
  box-shadow: 0 2px 10px rgba(255,152,0,0.06);
}

.cart-summary-left {
  flex: 1;
}

.cart-summary-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #e65100;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-summary-details {
  font-size: 1.05rem;
  color: #3b2b1b;
  line-height: 1.7;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-summary-details span {
  float: right;
  font-weight: 500;
}

.cart-summary-right {
  text-align: right;
}

.cart-summary-total {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ff9800;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid #ffe0b2;
  padding-top: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-total-price {
  color: #7a4c1e;
}

.cart-order-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 38px;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(255,152,0,0.10);
  margin-top: 10px;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cart-order-btn:hover {
  background: #e65100;
  color: #fff;
}

.order-btn {
  background: #ff9800;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
}

.order-btn:hover {
  background: #e65100;
}

.order-success {
  background: #e8ffd8;
  color: #256029;
  border: 1px solid #b6e6a7;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: #ff9800;
  color: #222;
  padding: 36px 32px 28px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
}

.modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.modal-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 12px 32px;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 600;
  margin: 18px 0 8px 0;
  transition: background 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
}

.modal-btn:hover {
  background: #fff;
  color: #ff9800;
}

.modal-link {
  display: block;
  color: #222;
  margin-top: 12px;
  text-decoration: underline;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 700px) {
  .cart-inner, .cart-header, .cart-list, .cart-summary {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .cart-summary {
    flex-direction: column;
    gap: 18px;
  }
  .cart-header {
    padding: 12px 12px;
    font-size: 1.2rem;
  }
  .cart-summary {
    padding: 16px 8px;
    margin-top: 18px;
  }
  .cart-item {
    padding: 10px 8px;
    gap: 10px;
    min-width: 0;
    width: 100%;
    min-height: 70px;
    height: auto;
    flex-wrap: wrap;
  }
  .cart-item-title {
    font-size: 1.05rem;
  }
  .cart-summary-title, .cart-summary-total {
    font-size: 1.05rem;
  }
}