
  :root {
    --primary: #3a1c71;
    --secondary: #d76d77;
    --accent: #ffaf7b;
    --dark: #2c2c2c;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  section {
    position: relative;
    padding: 4rem 0;
  }

  .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
  }

  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
  }

  .btn-primary {
    background-color: var(--primary);
    color: white;
  }

  .btn-primary:hover {
    background-color: #2a0f5e;
  }

  .btn-secondary {
    background-color: var(--secondary);
    color: white;
  }

  .btn-secondary:hover {
    background-color: #c55c66;
  }

  .btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--gray);
  }

  .btn-outline:hover {
    background-color: var(--light-gray);
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  /* Hero Section */
  .cart-hero {
    background-color: var(--light);
    text-align: center;
    padding: 6rem 0;
  }

  .cart-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }

  .cart-hero .subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
  }

  /* Cart Content Section */
  .cart-content {
    background-color: white;
  }

  .cart-empty {
    text-align: center;
    padding: 3rem;
    display: none;
  }

  .cart-empty img {
    max-width: 200px;
    margin-bottom: 2rem;
  }

  .cart-empty h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
  }

  .cart-empty p {
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .cart-items h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
  }

  .cart-list {
    margin-bottom: 2rem;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr 50px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .item-image img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }

  .item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }

  .item-details .author {
    color: var(--gray);
    margin-bottom: 0.5rem;
  }

  .item-details .format {
    font-size: 0.9rem;
    color: var(--gray);
  }

  .item-price p {
    font-weight: 600;
    color: var(--dark);
  }

  .item-quantity {
    display: flex;
    align-items: center;
  }

  .item-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: 0.5rem;
    margin: 0 0.5rem;
  }

  .quantity-btn {
    background-color: var(--light-gray);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .quantity-btn:hover {
    background-color: var(--gray);
    color: white;
  }

  .item-total p {
    font-weight: 700;
    color: var(--dark);
  }

  .remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
  }

  .remove-btn:hover {
    color: #b52e3e;
  }

  .cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
  }

  .coupon-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  .coupon-form {
    display: flex;
  }

  .coupon-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    width: 200px;
  }

  .coupon-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
  }

  /* Cart Summary Section */
  .cart-summary {
    background-color: var(--light);
    padding: 3rem 0;
  }

  .summary-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    margin-left: auto;
  }

  .summary-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
  }

  .summary-details {
    margin-bottom: 2rem;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light-gray);
  }

  .discount {
    color: var(--success);
  }

  .checkout-button {
    margin-bottom: 1.5rem;
  }

  .checkout-button .btn {
    width: 100%;
  }

  .secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
  }

  .secure-checkout i {
    margin-right: 0.5rem;
  }

  /* Recommendations Section */
  .recommendations {
    padding: 5rem 0;
    text-align: center;
  }

  .recommendations h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }

  .recommendations > p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
  }

  .recommended-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .book-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
  }

  .book-card:hover {
    transform: translateY(-10px);
  }

  .book-image {
    height: 300px;
    overflow: hidden;
  }

  .book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }

  .book-card:hover .book-image img {
    transform: scale(1.05);
  }

  .book-info {
    padding: 1.5rem;
  }

  .book-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }

  .book-info .author {
    color: var(--gray);
    margin-bottom: 1rem;
  }

  .book-info .price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  /* Delivery Info Section */
  .delivery-info {
    background-color: white;
    padding: 5rem 0;
  }

  .delivery-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
  }

  .delivery-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .delivery-option {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--light);
    transition: var(--transition);
  }

  .delivery-option:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
  }

  .delivery-option i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
  }

  .delivery-option h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }

  .delivery-option p {
    color: var(--gray);
  }

  .delivery-option .price {
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
  }

  .delivery-note {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray);
    line-height: 1.6;
  }

  .delivery-note a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
  }

  .delivery-note a:hover {
    text-decoration: underline;
  }

  /* Responsive Design */
  @media (max-width: 1024px) {
    .cart-item {
      grid-template-columns: 80px 2fr 1fr 1fr 50px;
    }
    
    .item-price {
      display: none;
    }
    
    .recommended-books {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .delivery-options {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .cart-hero h1 {
      font-size: 2.5rem;
    }
    
    .cart-item {
      grid-template-columns: 80px 2fr 1fr 50px;
      gap: 0.5rem;
    }
    
    .item-quantity {
      display: none;
    }
    
    .cart-actions {
      flex-direction: column;
      gap: 1.5rem;
    }
    
    .coupon-form {
      width: 100%;
    }
    
    .coupon-form input {
      flex-grow: 1;
    }
    
    .update-cart {
      width: 100%;
    }
    
    .update-cart .btn {
      width: 100%;
    }
    
    .recommended-books {
      grid-template-columns: 1fr;
    }
    
    .delivery-options {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 480px) {
    .cart-item {
      grid-template-columns: 1fr;
      text-align: center;
      padding: 1.5rem;
      gap: 1rem;
    }
    
    .item-image {
      margin: 0 auto;
    }
    
    .item-image img {
      width: 120px;
      height: 180px;
    }
    
    .item-total, .item-remove {
      margin-top: 1rem;
    }
    
    .item-remove {
      display: flex;
      justify-content: center;
    }
  }
