 @import url('https://fonts.googleapis.com/css2?family=Matemasie&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700&display=swap');

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     text-decoration: none;
 }

 body {
     font-family: "Ubuntu", sans-serif;
     min-height: 100vh;
     background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
         url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1920');
     background-size: cover;
     background-attachment: fixed;
     background-position: center;
 }

 /* Header */
 .header {
     width: 100%;
     height: 70px;
     position: fixed;
     top: 0;
     left: 0;
     padding: 0 5%;
     background: rgba(0, 0, 0, 0.95);
     backdrop-filter: blur(10px);
     display: flex;
     justify-content: space-between;
     align-items: center;
     z-index: 1000;
 }

 .logo {
     font-size: 28px;
     color: #0000FF;
     font-family: "Matemasie", sans-serif;
     cursor: pointer;
 }

 .logo span {
     color: #FFFF00;
     font-size: 32px;
 }

 .header-right {
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .cart-icon {
     position: relative;
     font-size: 24px;
     color: white;
     cursor: pointer;
 }

 .cart-count {
     position: absolute;
     top: -8px;
     right: -8px;
     background: #DE3163;
     color: white;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 12px;
     font-weight: bold;
 }

 .back-btn {
     background: #00FF00;
     color: black;
     padding: 10px 20px;
     border: none;
     border-radius: 25px;
     cursor: pointer;
     font-weight: 600;
     text-decoration: none;
     transition: all 0.3s ease;
 }

 .back-btn:hover {
     background: #00cc00;
     transform: scale(1.05);
 }

 /* Main Container */
 .cart-container {
     margin-top: 100px;
     padding: 20px 5%;
     max-width: 1400px;
     margin-left: auto;
     margin-right: auto;
 }

 .page-title {
     text-align: center;
     color: #FFFF00;
     font-size: 36px;
     margin-bottom: 30px;
     text-transform: uppercase;
 }

 /* Order Summary Box */
 .order-summary {
     background: white;
     border-radius: 20px;
     padding: 40px;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
     margin-bottom: 30px;
 }

 .summary-header {
     text-align: center;
     font-size: 28px;
     font-weight: 700;
     margin-bottom: 30px;
     color: #333;
     border-bottom: 2px solid #eee;
     padding-bottom: 15px;
 }

 .summary-table-header {
     display: grid;
     grid-template-columns: 80px 2fr 1fr 150px 1fr;
     gap: 15px;
     padding: 15px 20px;
     background: #f5f5f5;
     border-radius: 10px;
     font-weight: 600;
     color: #333;
     margin-bottom: 15px;
 }

 .cart-item {
     display: grid;
     grid-template-columns: 80px 2fr 1fr 150px 1fr;
     gap: 15px;
     padding: 20px;
     background: #f9f9f9;
     border-radius: 12px;
     margin-bottom: 12px;
     align-items: center;
     transition: all 0.3s ease;
 }

 .cart-item:hover {
     background: #f0f0f0;
     transform: translateX(5px);
 }

 .item-image {
     width: 70px;
     height: 70px;
     border-radius: 50%;
     object-fit: cover;
     border: 3px solid #00FF00;
 }

 .item-title {
     font-size: 18px;
     font-weight: 600;
     color: #333;
 }

 .item-price {
     font-size: 18px;
     font-weight: 600;
     color: #333;
 }

 .quantity-controls {
     display: flex;
     align-items: center;
     gap: 15px;
     justify-content: center;
     background: rgba(0, 255, 0, 0.1);
     padding: 8px 15px;
     border-radius: 25px;
     border: 2px solid #00FF00;
 }

 .qty-btn {
     width: 35px;
     height: 35px;
     border: none;
     background: white;
     border-radius: 50%;
     cursor: pointer;
     font-size: 18px;
     font-weight: bold;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s ease;
     color: #00FF00;
 }

 .qty-btn:hover {
     background: #00FF00;
     color: white;
     transform: scale(1.1);
 }

 .quantity {
     font-size: 20px;
     font-weight: 600;
     min-width: 30px;
     text-align: center;
     color: #333;
 }

 .item-total {
     font-size: 18px;
     font-weight: 700;
     color: #333;
     text-align: right;
 }

 .delete-btn {
     background: #DE3163;
     color: white;
     border: none;
     padding: 8px 12px;
     border-radius: 50%;
     cursor: pointer;
     transition: all 0.3s ease;
     width: 35px;
     height: 35px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .delete-btn:hover {
     background: #ff1744;
     transform: scale(1.1);
 }

 /* Total Section */
 .total-section {
     background: black;
     color: white;
     padding: 20px;
     border-radius: 12px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 20px;
     font-size: 24px;
     font-weight: 700;
 }

 .total-quantity {
     display: flex;
     gap: 20px;
 }

 .total-price {
     font-size: 28px;
 }

 /* Buttons Section */
 .action-buttons {
     display: flex;
     gap: 20px;
     margin-top: 30px;
     justify-content: center;
 }

 .clear-btn,
 .checkout-btn {
     padding: 15px 40px;
     border: none;
     border-radius: 25px;
     font-size: 18px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     text-transform: uppercase;
 }

 .clear-btn {
     background: #DE3163;
     color: white;
 }

 .clear-btn:hover {
     background: #ff1744;
     transform: scale(1.05);
 }

 .checkout-btn {
     background: #00FF00;
     color: black;
 }

 .checkout-btn:hover {
     background: #00cc00;
     transform: scale(1.05);
 }

 /* Empty Cart */
 .empty-cart {
     display: none;
     text-align: center;
     padding: 80px 20px;
     background: rgba(255, 255, 255, 0.95);
     border-radius: 20px;
 }

 .empty-cart.show {
     display: block;
 }

 .empty-cart i {
     font-size: 80px;
     color: #666;
     margin-bottom: 20px;
 }

 .empty-cart h2 {
     font-size: 32px;
     margin-bottom: 15px;
     color: #333;
 }

 .empty-cart p {
     font-size: 18px;
     color: #666;
     margin-bottom: 30px;
 }

 /* Responsive */
 @media (max-width: 768px) {
     .summary-table-header {
         display: none;
     }

     .cart-item {
         grid-template-columns: 1fr;
         text-align: center;
         gap: 10px;
     }

     .item-image {
         margin: 0 auto;
     }

     .quantity-controls {
         justify-content: center;
     }

     .item-total {
         text-align: center;
     }

     .action-buttons {
         flex-direction: column;
     }

     .total-section {
         flex-direction: column;
         gap: 15px;
     }
 }