body { 
	background-color: #f0ffff; 
}

.sticky-header {
  position: -webkit-sticky; /* Support for Safari */
  position: sticky;         /* Core sticky positioning */
  top: 0;                   /* Stick to the very top of the viewport */
  z-index: 1000;            /* Keeps header on top of other content */
  
                               /* Optional presentation styling */

  background-color: #7000ff;
  padding: 15px;
  box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}

/* sticy header is created here. */

nav {
	width: 100%;
	height: 80px;
	background-color: #f0ffff;
}

nav a {
	font-size: 16px;
	font-weight: lighter;
	float: left;
	margin-left: 30px;
	color: black;
	text-align: center;
	justify-content: center;
}

input {
	width: 90%;
	height: 30px;
	max-width: 800px;
	float: left;
	margin-left: 10px;
	margin-top: 10px;
	border-radius: 10px;
}

.topnav {
	width: 100%;
	height: 100px;
	color: #7000ff;
	background-color: lightblue;
	   }

.topnav a {

font: serif;
	font-size: 17px;
	font-weight:normal;
	float: left;
	margin: 2.3%;
	color: black;
	
	
}

.demo {
	width: 100%;
	height: 200px;
	background-color: #f0ffff;
	overflow: auto;
	white-space: nowrap;
}

.demo img {
	width: 200px;
	height: 200px;
}




 :root {
            --primary: red;
            --dark: black;
            --light: white;
        }
        
        body {
            font-family: system-ui, sans-serif;
            margin: 0;
            padding: 20px;
            background: var(--light);
        }
        
        /* Product Grid */
        .products {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            max-width: 1000px;
            margin: 0 auto;
        }
        .product-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            text-align: center;
        }
        button {
            background: #7000ff;
            color: white;
            border: none;
            padding: 6px 110px;
            border-radius: 5px;
            cursor: pointer;
        }
        
        
        /* Floating Cart Button */
        .cart-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            background: var(--dark);
            padding: 15px;
            border-radius: 50%;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
            z-index: 10000;
        }
        
        
        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: red;
            color: white;
            font-size: 12px;
            padding: 3px 7px;
            border-radius: 50%;
            font-weight: bold;
        }
        
        
        /* Invoice Modal Popup */
        .invoice-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
        }
        .invoice-content {
            background: white;
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }
        .invoice-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        .invoice-table th, .invoice-table td {
            padding: 10px;
            border-bottom: 1px solid #ddd;
            text-align: left;
        }
        .total-row {
            font-weight: bold;
            font-size: 18px;
        }
        .close-btn {
            background: #64748b;
            margin-top: 15px;
        }



