body {
  font-family: Arial;
  margin: 0;
  background: #f6f6f6;
}

header {
  background: #0a6b6b;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
}

.cart-icon {
  cursor: pointer;
  font-size: 22px;
}

/* PRODUCT LIST */
.product-list {
  padding: 20px;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  max-width: 900px;
}

.product-card img {
  width: 120px;
  border-radius: 6px;
}

.desc {
  color: #555;
  font-size: 14px;
}

.price {
  font-size: 18px;
}

.old {
  text-decoration: line-through;
  color: gray;
  font-size: 14px;
}

.offer {
  background: green;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
}

/* PRODUCT DETAIL */
.product-detail {
  display: flex;
  padding: 20px;
  gap: 30px;
}

.left img {
  width: 400px;
  border-radius: 10px;
}

.right {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
}

.btns button {
  padding: 10px 20px;
  margin-right: 10px;
}

.outline {
  background: white;
  border: 1px solid blue;
  color: blue;
}

/* TOP GO BACK BUTTON */
.top-back {
  padding: 15px 20px 0;
}

.top-back button {
  background: none;
  border: none;
  color: #0a6b6b;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

/* =========================
   MOBILE RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {

  /* HEADER */
  header {
    flex-direction: row;
    padding: 12px;
  }

  header h2 {
    font-size: 18px;
  }

  /* PRODUCT LIST PAGE */
  .product-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card img {
    width: 100%;
    margin-top: 10px;
  }

  /* PRODUCT DETAIL PAGE */
  .product-detail {
    flex-direction: column;
  }

  .left img {
    width: 100%;
  }

  .right {
    max-width: 100%;
    margin-top: 15px;
  }

  /* BUTTONS */
  .btns button {
    width: 100%;
    margin-bottom: 10px;
  }

  /* GO BACK BUTTON */
  .top-back {
    padding: 10px;
  }

}

/* CONTACT US FOOTER */
.contact-footer {
  background: #0a6b6b;
  color: white;
  text-align: center;
  padding: 25px 15px;
  margin-top: 40px;
}

.contact-footer h3 {
  margin-bottom: 15px;
}

.contact-footer p {
  margin: 6px 0;
  font-size: 14px;
}

.contact-footer .copyright {
  margin-top: 15px;
  font-size: 13px;
  opacity: 0.9;
}

.card button {
  background: red;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-top: 8px;
  cursor: pointer;
}

button {
  background: #25D366; /* WhatsApp green */
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.cart-back {
  padding: 12px 20px;
}

.cart-back span {
  cursor: pointer;
  color: #0a6b6b;
  font-size: 16px;
  font-weight: bold;
}

/* ======================
   LOADING ANIMATION
   ====================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #ddd;
  border-top: 5px solid #0a6b6b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   MOBILE APP-LIKE TOUCH FIX
   ========================= */

/* Disable text selection everywhere */
* {
  -webkit-user-select: none; /* Safari / Chrome */
  -ms-user-select: none;     /* IE */
  user-select: none;         /* Standard */
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection ONLY where needed (optional) */
input, textarea {
  user-select: text;
  -webkit-user-select: text;
}

/* Make clickable items feel like buttons */
button,
.back-arrow,
.cart-back span,
.add-btn,
.product-card {
  cursor: pointer;
  touch-action: manipulation;
}

/* =========================
   RIPPLE BUTTON EFFECT
   ========================= */

/* Base ripple setup */
button,
.cart-back span,
.add-btn {
  position: relative;
  overflow: hidden;
}

/* Ripple circle */
button::after,
.cart-back span::after,
.add-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

/* Ripple animation on press */
button:active::after,
.cart-back span:active::after,
.add-btn:active::after {
  width: 200%;
  height: 200%;
  opacity: 1;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.6s ease;
}
