    :root{
      --bg:#f8f8f8; --card:#f5f5f5; --card2:#ffffff; --muted:#bdbdbd;
      --line:#fbfbfb; --brand:#1f8cff; --brand-soft:rgba(255, 255, 255, 0.12);
      --radius:16px;
    }

    *{box-sizing:border-box}
    body{margin:0;font-family:system-ui, Arial, sans-serif;background:var(--bg);color:#000000;}
    .header{
      position:sticky; top:0; z-index:10;
      background:rgba(252, 250, 250, 0.9); backdrop-filter: blur(8px);
      border-bottom:1px solid var(--line);
        padding: 1rem 1.5rem;
        gap: 12px;

    }
.thumb img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


    .navbar1 {
          display: flex;
          color: #000;
        text-decoration: none;
    }

    .navbar1 a {
        text-decoration: none;
        font-size: 24px;
        padding: 0.5rem 0.7rem;
          border-radius: 50%;
          border: 0.1rem solid rgba(0, 0, 0, 0.1);
        color: black;
    }

    .navbar1 a:hover {
        background-color: rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

.product-buttons {
    width: fit-content;
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-buttons button {
  flex: 0 0 auto;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.product-buttons button img {
  width: 16px;
  height: 16px;
  display: block;
}

.product-buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  background: rgba(0, 0, 0, 0.06);
}

.product-buttons .addCart {
  background: var(--brand);
  color: white;
  border-color: transparent;
}

.product-buttons .addCart:hover {
  box-shadow: 0 4px 12px rgba(31, 140, 255, 0.45);
}


    .wrap{
        max-width:1500px;
        margin:auto;
        padding:16px;
    }
    h1{margin:6px 0 4px;font-size:28px;}
    .muted{color:black;font-size:14px;}

    .toolbar{
      display:grid; gap:10px; grid-template-columns: 1.4fr .8fr .8fr auto;
      margin-top:12px;
    }

    @media (max-width: 820px){ .toolbar{grid-template-columns:1fr 1fr;} }

    input, select{
      width:100%; padding:10px 12px; border-radius:12px;
      border:1px solid var(--line); background:#e6e6e6; color:#000000; outline:none;
    }
    input:focus, select:focus{
      border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft);
    }
    button{
      padding:10px 14px; border-radius:12px; border:1px solid var(--line);
      background:#1a1a1a; color:#fff; cursor:pointer; font-weight:600;
      transition:.2s; white-space:nowrap;
    }
    button:hover{transform:translateY(-1px); border-color:#333;}
    button.primary{background:var(--brand); border-color:transparent;}

    .grid{
      display:grid; gap:24px; grid-template-columns: repeat(4, 1fr);
      margin-top:14px;
    }
    @media (max-width: 1050px){ .grid{grid-template-columns:repeat(3,1fr);} }
    @media (max-width: 740px){ .grid{grid-template-columns:repeat(2,1fr);} }
    @media (max-width: 440px){ .grid{grid-template-columns:1fr;} }

.card {
  /* Glassy background using your light theme */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(245, 245, 245, 0.7)
  );
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.8);

  /* Frosted glass effect */
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);

  /* Layout */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;

  /* Soft depth for light UI */
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

/* SINGLE hover block – merge your old hover + glassy feel */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
  border-color: rgba(0, 0, 0, 0.06);
        transform:translateY(-2px); border-color:#2a2a2a;
      box-shadow:0 6px 24px rgba(0,0,0,.35);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 245, 245, 0.9)
  );
}

.thumb {
  height: 180px;
  background: #0b0b0b;             /* keep if you like dark thumbs */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #111;                     /* darker for light card */
}

.use {
  font-size: 14px;
  color: #555;                     /* was #e7e7e7 (too light) */
  opacity: 0.95;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill {
  font-size: 12px;
  color: #444;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); /* glassy chip */
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.price {
  font-weight: 800;
  font-size: 17px;
  margin-top: 4px;
  color: #111;
}


    .footerbar{
      display:flex;align-items:center;justify-content:center;gap:10px;
      margin:18px 0 30px;
    }
    .status{margin-top:10px;font-size:14px;}

    .skeleton{
      animation:pulse 1.1s infinite ease-in-out;background:#121212;border:1px dashed #1b1b1b;
    }
    @keyframes pulse{0%,100%{opacity:.7}50%{opacity:.35}}

    /* cart icon & badge */
.icon-cart{
    display: flex;
    position: absolute;
    cursor: pointer;
    right: 2%;
     text-decoration: none;
  font-size: 14px;
  padding: 10px;
  border-radius: 99px;
  color: white;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(1, 0, 0, 0.25);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}
.icon-cart span{
    position: absolute;
    background-color: red;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    top: 50%;
    right: -20px;
    
}


  /* --- Cart Icon --- */
  .icon-cart {
    position: absolute;
    display: flex;
    cursor: pointer;
        text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      padding: 8px 10px;
      border-radius: 99px;
      color: white;
      background: rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(1, 0, 0, 0.25);
      backdrop-filter: blur(6px) saturate(150%);
      -webkit-backdrop-filter: blur(6px) saturate(150%);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .icon-cart svg {
    width: 24px;
    height: 24px;
    color: rgb(22, 19, 19);

  }

  .icon-cart span {
    position: absolute;
    top: -5px;
    right: -10px;
    background: crimson;
    color: white;
    border-radius: 50%;
    padding: 0 5px;
    font-size: 0.7rem;
  }


   
/* --- PRODUCT POPUP (Glassmorphism) --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay behind glass */
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.popup-content {
  background: rgba(255, 255, 255, 0.08); /* translucent glass */
  border: 1px solid rgba(255, 255, 255, 0.2); /* subtle border */
  border-radius: 25px;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* subtle depth */
  backdrop-filter: blur(15px); /* main blur */
  -webkit-backdrop-filter: blur(15px); /* Safari support */
  animation: popupFade 0.4s ease;
  cursor: default; /* prevent closing when clicking inside */
}

.popup-content img {
  width: 140px;
  height: 140px;
  border-radius: 15px;
  margin-bottom: 15px;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); /* lifted effect */
  transition: transform 0.3s ease;
}

.popup-content img:hover {
  transform: scale(1.05);
}

.popup-content h2 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: #ffffff;
}

.popup-content p {
  color: #eee;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.popup-content #popupPrice {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

#popupAddCart {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px #000000;
}

#popupAddCart:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0px 6px #ffffff;
  color: #000;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  color: white;
  cursor: pointer;
  transition: color 0.3s;
}

.close-popup:hover {
  color: #00ffaa;
}

/* Fade animation */
@keyframes popupFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Hide button initially */
.card .addCart,
.card .see {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Show buttons only on hover */
.card:hover .addCart,
.card:hover .see {
  opacity: 1;
  
  transform: translateY(0);
}

/* Optional hover effect for button */
.addCart:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #000;
}
    
    .cart-item {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- Overlay Background --- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 99999; /* behind cartTab but above all content */
}

body.showCart .cart-overlay {
  opacity: 1;
  visibility: visible;
}

/* --- Cart Panel --- */
.cartTab {
  width: 400px;
  max-width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  right: -500px;
  display: grid;
  grid-template-rows: 75px 1fr 70px;
  z-index: 100000;

  /* Glass effect core */
  background: rgba(40, 40, 40, 0.35); /* lighter, more transparent */
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-left: 1px solid rgba(255, 255, 255, 0.15);

  /* Visual polish */
  color: #f3f3f3;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transition: right 0.5s ease-in-out, background 0.3s ease;
}

.cartTab h1 {
  margin: 0;
  padding: 20px;
  font-weight: 400;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  text-align: center;
  color: #fff;
}

/* Top-right X button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  border: none;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #ffffff;
}

.cartTab .close-btn {
  border: none;
  color: #ffffff;
  background-color: transparent;
  font-size: 2rem;
}

.cartTab .checkOut{
  width: 100%;
  position: absolute;
  color: #f5f5f5;
  border: 1px solid #0f0909;
  box-shadow: 10px 10px 20px #000000;
}

body.showCart .cartTab {
  right: 0;
}

body.showCart .container {
  transform: translateX(-250px);
  transition: transform 0.5s ease-in-out;
}

/* --- Cart Header --- */
.cartTab h1 {
  margin: 0;
  text-align: center;
  padding: 20px;
  font-weight: 400;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Cart Buttons --- */
.cartTab .btn {
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  cursor: pointer;
}

.cartTab button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: "Poppins", sans-serif;
  color: white;
  font-weight: 500;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 12px 0;
  transition: 0.3s;
}

.cartTab button:hover {
  filter: brightness(1.1);
}


/* --- Cart List --- */
.listCart {
  overflow-y: auto;
  scrollbar-width: none;
}

.listCart::-webkit-scrollbar {
  width: 0;
}

.listCart .item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 15px;
  text-align: left;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.listCart .item img {
  width: 70px;
  height: auto;
  border-radius: 5px;
}

.listCart .item:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- Quantity Controls --- */
.listCart .quantity span {
  display: inline-block;
  width: 25px;
  height: 25px;
  font-size: 16px;
  text-align: center;
  line-height: 25px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.listCart .quantity span:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.listCart .quantity span:nth-child(2) {
  background-color: transparent;
  color: #eee;
  cursor: default;
}

.clear-product {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  color: #040303;
  border: 1px solid #0f0909;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-product img {
  width: 14px;
  height: 14px;
  padding: 5px;
  color: #000;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(58%) sepia(74%) saturate(3451%) hue-rotate(331deg) brightness(100%) contrast(101%);
  transition: 0.3s ease;
}

.clear-product:hover {
  background-color: #ff6666;
  color: #fff;
}

.clear-product:hover img {
  filter: brightness(100%) invert(1);
  color: #000;
}


.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}



/* --- Modal Overlay --- */
.modal {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background: rgba(0, 0, 0, 0.6); /* dark semi-transparent background */
    backdrop-filter: blur(8px);
    z-index: 2000000;
    padding-top: 60px; 
    color: #ffffff;
    transition: all 0.3s ease;
}

/* --- Modal Content --- */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1); /* translucent glass */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000001;
}

/* --- Close Button --- */
.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover,
.close:focus {
    color: #00ffaa; /* accent color */
    text-decoration: none;
}

/* --- Cart Item Styling --- */
.cart-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

/* --- Checkout Form --- */
#checkoutForm {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#checkoutForm label {
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

#checkoutForm input {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: background 0.3s ease, border 0.3s ease;
}
#checkoutForm input:focus {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #00ffaa;
}

/* --- Submit Button --- */
#checkoutForm button {
    padding: 10px;
    margin-top: 10px;
    background-color: #00ffaa;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#checkoutForm button:hover {
    background-color: #fff;
    box-shadow: 0 0 15px #00ffaa;
}



/* ===== RECEIPT MODAL ===== */
.receipt-modal {
  position: fixed;
  inset: 0;
  display: none;               /* toggled to flex in JS */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998798999;
}

.receipt-box {
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.receipt-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.receipt-meta p {
  margin: 0;
  font-size: 0.85rem;
}

.receipt-box h3 {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.receipt-total {
  margin-top: 8px;
  font-size: 0.95rem;
}

.receipt-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.receipt-actions button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.receipt-actions button:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.receipt-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #4b5563;
  text-align: center;
}

/* Status badges */
.status-paid,
.status-pending {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.status-paid {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

    
    .cart-item {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

@media only screen and (max-width: 768px) {
  .grid {
    padding: 1.7rem;
    margin-top: 0;
  }

    .navbar1{
          display: flex;
    text-decoration: none;
    }

    
    
    .modal {
    position: fixed; 
    display: none;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background: rgba(0, 0, 0, 0.6); /* dark semi-transparent background */
    backdrop-filter: blur(8px);
    z-index: 2000000;
    color: #ffffff;
}

/* --- Modal Content --- */
.modal-content {
  width: 80%;
    position: fixed;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1); /* translucent glass */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000001;
}

#cartDetails{
  max-height: 130px;
  overflow: hidden;
  overflow-y: auto;
}

/* --- Close Button --- */
.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover,
.close:focus {
    color: #00ffaa; /* accent color */
    text-decoration: none;
}

/* --- Cart Item Styling --- */
.cart-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.cartTab .checkOut{
  top: 83%;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  position: absolute;
  justify-content: center;
  align-items: center;
  color: #f5f5f5;
  border: 1px solid #0f0909;
  border-radius: 99px;
  box-shadow: 10px 10px 20px #000000;
  transition: all 0.3s ease;
}

.cartTab .checkOut:hover {
  background-color: #aaa9a9;
  color: #000;
  box-shadow: 0 0 20px #0a1814;
  transform: translateX(-50%) scale(1.05);
}


}