* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f8f9fa;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .bundle-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .bundle-header h1 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .bundle-content {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 40px;
            align-items: start;
        }

        /* Product Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.2s ease;
        }

        .product-card:hover {
            transform: translateY(-2px);
        }

        .product-image {
            width: 100%;
            height: 280px;
            background-color: #f0f0f0;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .product-info {
            padding: 16px;
        }

        .product-name {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .product-price {
            font-size: 18px;
            font-weight: 700;
            color: #333;
            margin-bottom: 16px;
        }

        .add-to-bundle-btn {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #333;
            background: white;
            color: #333;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .add-to-bundle-btn:hover {
            background: #f8f9fa;
        }

        .add-to-bundle-btn.added {
            background: #333;
            color: white;
        }

      

        /* Bundle Sidebar */
        .bundle-sidebar {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            position: sticky;
            top: 20px;
            border: 2px solid black;
        }

        .bundle-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .bundle-subtitle {
            font-size: 14px;
            color: #666;
            margin-bottom: 24px;
        }

        .progress-container {
            margin-bottom: 24px;
        }

        .progress-text {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #28a745, #20c997);
            width: 0%;
            transition: width 0.3s ease;
        }

        .selected-products {
            margin-bottom: 24px;
            max-height: 300px;
            overflow-y: auto;
        }

        .selected-product {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .selected-product:last-child {
            border-bottom: none;
        }

        .selected-product-image {
            width: 48px;
            height: 48px;
            background-color: #f0f0f0;
            border-radius: 6px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .selected-product-info {
            flex: 1;
            min-width: 0;
        }

        .selected-product-name {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .selected-product-price {
            font-size: 14px;
            color: #666;
        }

        .remove-btn {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            font-size: 18px;
            padding: 4px;
            flex-shrink: 0;
        }

        .pricing-summary {
            border-top: 2px solid #f0f0f0;
            padding-top: 16px;
            margin-bottom: 24px;
        }

        .pricing-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .discount-row {
            color: #28a745;
            font-weight: 600;
        }

        .subtotal-row {
            font-size: 16px;
            font-weight: 700;
            padding-top: 8px;
            border-top: 1px solid #f0f0f0;
        }

        .proceed-btn {
            width: 100%;
            padding: 16px;
            background: #333;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .proceed-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .proceed-btn:not(:disabled):hover {
            background: #222;
            transform: translateY(-1px);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .bundle-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .products-grid {
                grid-template-columns: 1fr; /* Stack products vertically */
                gap: 20px;
            }

            .bundle-sidebar {
                order: 2;           /* Sidebar appears after products */
                position: static;   /* Remove sticky on mobile */
                top: auto;
                margin-top: 24px;
            }

            .container {
                padding: 20px 16px;
            }

            .bundle-header h1 {
                font-size: 1.5rem;
            }

            .product-image {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 120px;
    border-radius: 10px;
  }
        }

        .empty-state {
            text-align: center;
            color: #666;
            font-size: 14px;
            padding: 20px 0;
        }

         .products-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
      gap: 24px;
    }

    .selected-product-info button {
      margin: 4px 4px 0 0;
      padding: 4px 8px;
      background-color: #f1f1f1;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-weight: bold;
      cursor: pointer;
    }

    .selected-product-info button:hover {
      background-color: #ddd;
    }

    @media (max-width: 768px) {
      .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      }
    }

   
.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-count {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}


.icon-plus, .icon-tick {
  font-size: 18px;
  font-weight: bold;
  vertical-align: middle;
}