/* ===== Base Styles ===== */
body {
  font-family: Arial, sans-serif;
  background: #fce4ec;
  margin: 0;
  padding: 0;
}

/* ===== Cart Container ===== */
.cart-container {
  display: flex;
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Left Side - Cart Items ===== */
.cart-items {
  flex: 2;
  padding: 20px;
}

.cart-items table {
  width: 100%;
  border-collapse: collapse;
}

.cart-items th,
.cart-items td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}

.product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-items img {
  width: 70px;
  height: auto;
  border-radius: 8px;
}

/* ===== Right Side - Summary ===== */
.cart-summary {
  flex: 1;
  background: #f9d6e5;
  padding: 30px;
  text-align: center;
}

.cart-summary h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* ===== Buttons ===== */
.checkout-btn,
.paypal-btn {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.checkout-btn {
  background: #000;
  color: #fff;
}

.checkout-btn:hover {
  background: #333;
}

.paypal-btn {
  background: #0070ba;
  color: #fff;
}

.paypal-btn:hover {
  background: #005c9e;
}

/* ===== Small UI Elements ===== */
.qty-btn {
  background: #f8bbd0;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 5px;
  font-weight: bold;
  color: #333;
  display: inline-block;
}

.remove-btn {
  color: red;
  text-decoration: none;
  font-size: 20px;
}

.terms {
  display: block;
  margin: 15px 0;
  font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
    margin: 20px;
  }

  .cart-items {
    padding: 15px;
  }

  .cart-summary {
    padding: 20px;
  }

  .checkout-btn,
  .paypal-btn {
    font-size: 15px;
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .cart-items table,
  .cart-items thead {
    display: none; /* Hide large table on small screens */
  }

  .cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .product {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .product img {
    width: 60px;
  }

  .product-info {
    flex: 1;
  }

  .product-info h4 {
    margin: 0;
    font-size: 16px;
  }

  .product-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
  }

  .qty-btn {
    padding: 4px 8px;
    font-size: 14px;
  }

  .cart-summary {
    margin-top: 20px;
  }
}

/* ===== Mobile Vertical Layout (hidden by default) ===== */
.cart-item-mobile {
  display: none;
}

/* ===== Show Mobile Layout Only on Small Screens ===== */
@media (max-width: 600px) {
  /* Hide the table completely */
  .cart-items table,
  .cart-items thead,
  .cart-items tbody,
  .cart-items tr {
    display: none !important;
  }

  /* Show vertical cards */
  .cart-item-mobile {
    display: block;
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .cart-item-mobile .item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
  }

  .cart-item-mobile img {
    width: 70px;
    height: auto;
    border-radius: 8px;
  }

  .cart-item-mobile h4 {
    margin: 0;
    font-size: 16px;
  }

  .cart-item-mobile p {
    margin: 6px 0;
    font-size: 15px;
    color: #444;
  }

  .cart-item-mobile .qty-btn {
    margin: 0 6px;
  }

  .cart-item-mobile .remove-btn {
    display: inline-block;
    color: red;
    text-decoration: none;
    margin-top: 10px;
  }
}

/* ===== Desktop View (show table normally) ===== */
@media (min-width: 601px) {
  .cart-item-mobile {
    display: none !important;
  }

  .cart-items table {
    display: table;
  }
}

.golden-btn {
  background: linear-gradient(45deg, #b8860b, #ffd700, #daa520);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* .golden-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg, 
    rgba(255, 255, 255, 0.6), 
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
} */


.golden-btn:hover::before {
  left: 125%;
  transition: left 0.8s ease-in-out;
}


.golden-btn:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}