// Add this class at the bottom of your file (outside the main class)
import 'package:flutter/material.dart';

class BottleShapeClipper extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    final path = Path();

    // Create rounded rectangle matching the bottle body shape
    // The bottle has rounded corners with radius ~30-40 based on SVG
    final borderRadius = size.width * 0.25; // 25% of width for rounded corners

    path.addRRect(
      RRect.fromRectAndRadius(
        Rect.fromLTWH(0, 0, size.width, size.height),
        Radius.circular(borderRadius),
      ),
    );

    return path;
  }

  @override
  bool shouldReclip(covariant CustomClipper<Path> oldClipper) => false;
}
