/* Reset and base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
            color: #333;
             line-height: 1.6;
        }

        /* Header */
        header {
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }
        header a{
            text-decoration: none;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #007bff;
        }
        .logo img{
            width: 80px;
        }
        .nav-links {
            list-style: none;
            display: flex;
            gap: 20px;
        }
        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
        }
        .nav-links hr{
          display: none;
        }
        .nav-links a:hover {
            color: #007bff;
        }
        .cart-icon {
            font-size: 20px;
            cursor: pointer;
            color: black;
            position: relative;
        }
        .cart-count{
            position: absolute;
            top: -10px;
            right: -4px;
            font-size: 12px;
            background: red;
            display:block!important;
            height: 20px;
            width: 20px;
           

            border-radius: 50%;
            box-sizing: border-box;
            
            vertical-align: middle;
            padding:4px;
           padding-left: 7px!important;
            padding-top: 2px!important;
            color: white;
        }
        .menu-icon {
            display: none;
            font-size: 24px;
            cursor: pointer;
        }
        .search-container {
            display: flex;
            align-items: center;
            position: relative;

        }
        .search-container input {
            padding: 10px 40px 10px 15px;
            border: 1px solid #ccc;
            border-radius: 25px;
            font-size: 14px;
            width: 200px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .search-container input:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
        }
        .search-container button {
            position: absolute;
            right: 0px;
            top: 1px;
            background: hsl(310,100%,38%);
            border: none;
            font-size: 16px;
            cursor: pointer;
            color: #666;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            transition: color 0.3s ease;
        }
        .search-container button:hover {
            color: #007bff;
        }
/*product display*/

.product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        .product-card {
            background-color: #fff;
            overflow: hidden;
            transition: transform 0.3s;
        }
        .product-card:hover {
            transform: translateY(-10px);
        }
        a.pro_link{
          color: black;
          text-decoration: none;
          position: relative;
        }
        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            margin-bottom: 15px;
        }
        .product-info {
            text-align: center;
            padding-bottom: 20px;
        }
         .product-info *{
          font-weight: normal;
          font-size: 14.5px!important;
        }
        .product-info h3 {
            margin-bottom: 10px;
        }
        .product-info .price {
            color: black;
            margin-bottom: 10px;
        }
        .product-info button {
            background-color: #007bff;
            color: #fff;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            transition: background-color 0.3s;
            border-radius: 3px;
        }
        .product-info button:hover {
            background-color: #0056b3;
        }

        /* Fat Footer */
        footer {
            background-color:hsl(220,40%,50%);
            color: white;
            padding: 60px 20px;
            margin-top: 40px;
        }
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        .footer-content h3 {
            font-size: 18px;
            margin-bottom: 15px;
        }
        .footer-content ul {
            list-style: none;
        }
        .footer-content ul li {
            margin-bottom: 10px;
        }
        .footer-content a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }
        .footer-content a:hover {
            color: #007bff;
        }
        .footer-bottom {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #555;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
          .menu-icon {
                display: block;
            }
            .nav-links {
                display: none;
                flex-direction: column;
                position: fixed;
                top: 120px;
                left: 0px;
                width: 100%;
                bottom: 0px;
                background-color: hsl(310,100%,38%);
                padding: 20px;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
                z-index: 999;
            }
            .nav-links > hr{
              display: block;
            }
            .nav-links.active {
                display: flex;
            }
            .nav-links li {
                margin-bottom: 4px;
            }
              .nav-links li a{
                color: white;
            }
            .search-container {
                width: 140px!important;
            }
            .search-container input {
            padding: 10px 40px 10px 15px;
            border: 1px solid #ccc;
            border-radius: 25px;
            font-size: 14px;
            width: 140px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
            .hero h1 {
                font-size: 36px;
            }
            .hero p {
                font-size: 18px;
            }
            .product-grid {
                grid-template-columns: repeat(2, 1fr)!important;
            }
        }
        @media (max-width: 480px) {
            .product-grid {
                grid-template-columns: 1fr; /* Fallback to single column for very small screens */
            }
            .search-container input {
                font-size: 12px;
            }
        }




        /*cart functions*/
        /*stock indicator*/
.out:before{
    content: 'Out of stock';
    position: absolute;
    margin-top: 5px;
    width: 40%;
    left: 30%;
    padding: 3px;
    font-size: 10px;
    display: inline-block;
    background:red;
    text-align: center;
    color: white;
    border-radius: 20px;
}


/* Responsive Design */



/* --- Shopping Cart Container (nav4) --- */
.nav4 {
  position: fixed;
  top: 0;
 /* Initially hidden */
 right: -100%;
  width: 100%;
  max-width: 420px; /* Optimal width for desktop */
 min-height: 300px;
 max-height:600px;
  z-index: 10000;
  background: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow:scroll;
}
.viewcart{
    right: 0%;
}

/* Active state for showing the cart */
.nav4.active {
  right: 0;
}

/* --- Cart Header and Closer Button --- */


/* --- Cart Items Table --- */
.nav4 table {
  width: 100%;
  border-collapse: collapse;
}

.nav4 table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
}

.nav4 table tr:last-child {
  border-bottom: none;
}

.nav4 td {
  padding: 0;
  vertical-align: middle;
}

.nav4 td:nth-child(1) {
  flex: 0 0 auto;
}

.nav4 td:nth-child(2) {
  flex: 1 1 auto;
  padding: 0 15px;
}

.nav4 td:nth-child(3) {
  flex: 0 0 auto;
  text-align: right;
}

/* Product Image */
.nav4 img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

/* Product Title */
.nav4 h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #202124;
  line-height: 1.4;
}

/* Quantity Controls */
.nav4 .quantity-control {
  display: flex;
  align-items: center;
  text-align: center;
}

.nav4 * {
    font-style: normal;

}
.nav4 span.minus,
.nav4 span.add {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: #f1f3f4;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  color: #5f6368;
  line-height: 1;
  margin:7px;
}

.nav4 span.minus:hover,
.nav4 span.add:hover {
  background-color: #e8eaed;
}

.nav4 .quantity-control em {
  font-style: normal;
  font-size: 1.1rem;
  margin: 0 12px;
  min-width: 25px; /* Ensures quantity doesn't shift layout */
  color: #333;
  font-style: normal;
}

/* Sub-total and Checkout Button */
.sub_total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #202124;
}

.sub_total:last-child {
  color: #1a73e8;
}

/* Empty Cart Message */
.nav4 .empty-cart-message {
  text-align: center;
  padding: 40px 0;
  color: #757575;
  font-style: italic;
}
.crt{
    width: 140px;
    margin: 10px;
    height: 40px;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    font-style: normal;
    padding: 7px;
    background-color: black!important; /* Primary action color */
    color: white!important;
}
.crt:hover{
    color: white!important;
   background: hsl(0,0%,40%)!important;
}
.crt a{
  color: white;
}
img.delCart{
  width: 25px!important;
  display: inline-block!important;
  vertical-align: middle;
  height: 25px!important;
  margin-left: 25px;
  padding-left: 10px;
  margin-top: -4px;
  border-radius: 0px!important;
}
/* --- Responsiveness (Mobile First) --- */
@media (max-width: 480px) {
  .nav4 {
    max-width: 100%;
    padding: 16px;
  }

  .nav4 img {
    width: 60px;
    height: 60px;
  }

  .nav4 h3 {
    font-size: 0.9rem;
  }
}