/* =====================================================
   CART HERO
===================================================== */

.cart-hero {
  padding: 35px 0;
  background: #faf8f5;

  overflow: hidden;
}

.cart-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;
}

.cart-hero-text {
  padding-left: 40px;
}

.cart-hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;

  margin: 18px 0;
}

.cart-hero-text p {
  color: #555;
  line-height: 1.8;
}

.cart-hero-image {
  display: flex;
  justify-content: flex-end;
}

.cart-hero-image img {
  width: 72%;
  max-width: 470px;

  max-height: 220px;

  object-fit: contain;
}

/* =====================================================
   CART SECTION
===================================================== */

.cart-section {
  padding: 80px 0;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 50px;
}

/* =====================================================
   CART HEADINGS
===================================================== */

.cart-headings {
  display: grid;

  grid-template-columns:
    2.4fr
    1fr
    1.1fr
    1fr
    50px;

  align-items: center;

  padding-bottom: 20px;

  border-bottom: 1px solid #ececec;

  font-size: 14px;
  font-weight: 700;
}

/* =====================================================
   CART ITEMS
===================================================== */

.cart-item {
  display: grid;

  grid-template-columns:
    2.4fr
    1fr
    1.1fr
    1fr
    50px;

  align-items: center;

  gap: 20px;

  padding: 28px 0;

  border-bottom: 1px solid #ececec;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cart-product img {
  width: 110px;
  height: 110px;

  object-fit: cover;

  border-radius: 12px;

  background: #f5f5f5;
}

.cart-product h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cart-product p {
  font-size: 15px;
  color: #666;

  margin-bottom: 4px;
}

.cart-product span {
  font-size: 15px;
  color: #777;
}

.cart-price,
.cart-total {
  font-size: 18px;
  font-weight: 500;
}

/* =====================================================
   REMOVE BUTTON
===================================================== */

.remove-item {
  background: none;
  border: none;

  width: 40px;
  height: 40px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  color: #111;

  transition: 0.2s ease;
}

.remove-item:hover {
  color: #ff4e8d;
  transform: scale(1.1);
}

/* =====================================================
   QUANTITY
===================================================== */

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-quantity button {
  width: 42px;
  height: 42px;

  border: 1px solid #ddd;
  background: white;

  border-radius: 10px;

  font-size: 22px;
  font-weight: 400;

  cursor: pointer;

  transition: 0.2s;
}

.cart-quantity button:hover {
  border-color: #8e6cff;
  color: #8e6cff;
}

.cart-quantity span {
  font-size: 20px;
  min-width: 12px;

  text-align: center;
}

/* =====================================================
   CLEAR CART
===================================================== */

.clear-cart-wrap {
  margin-top: 30px;
}

.clear-cart-btn {
  background: none;
  border: none;

  font-size: 15px;
  cursor: pointer;

  color: #111;

  transition: 0.2s;
}

.clear-cart-btn:hover {
  color: #ff4e8d;
}

/* =====================================================
   SUMMARY
===================================================== */

.cart-summary {
  background: #faf8f5;

  padding: 40px;

  border-radius: 24px;

  height: fit-content;
}

.cart-summary h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 24px;
}

.summary-total {
  margin-top: 30px;
  padding-top: 24px;

  border-top: 1px solid #ddd;

  font-size: 24px;
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  height: 58px;

  border: none;
  border-radius: 12px;

  margin-top: 25px;

  color: white;
  font-weight: 600;

  cursor: pointer;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );

  transition: 0.3s;
}

.checkout-btn:hover {
  transform: translateY(-2px);
}

.secure-text {
  margin-top: 18px;

  text-align: center;

  color: #666;
  font-size: 14px;
}

/* =====================================================
   BENEFITS
===================================================== */

.cart-benefits {
  padding-bottom: 90px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border: 1px solid #eee;
}

.benefit-item {
  padding: 40px;

  border-right: 1px solid #eee;
}

.benefit-item:last-child {
  border-right: none;
}

.benefit-item svg {
  width: 36px;
  height: 36px;

  margin-bottom: 18px;

  stroke: url(#iconGradient);
}

.benefit-item h4 {
  margin-bottom: 10px;
}

.benefit-item p {
  color: #666;
  line-height: 1.7;
}

/* =====================================================
   SHARED
===================================================== */

.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  display: inline-block;
}

.gradient-line {
  width: 72px;
  height: 3px;

  border-radius: 999px;

  margin: 28px 0;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

  .cart-hero-content,
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 700px) {

  .cart-headings {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .cart-hero-text h1 {
    font-size: 54px;
  }

}