body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f4f7f6;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #1f8a5b, #2bb673);
  color: white;
  padding: 20px;
  text-align: center;
}

/* NAV */
nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 600;
}

/* HERO */
.hero {
  padding: 50px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease;
}

/* CATALOGUE */
.catalogue {
  padding: 30px;
}

#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* PRODUCT CARD */
.product-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(30px);
  animation: riseUp 0.6s forwards;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.product-card p {
  font-weight: bold;
  margin-top: 10px;
}

.product-card {
  cursor: pointer;
}

.product-card.copied {
  outline: 3px solid #2bb673;
  transform: scale(1.08);
}

/* WHATSAPP BUTTON */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 14px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ANIMATIONS */
@keyframes riseUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#search-box, select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  margin-bottom: 15px;
}

button {
  background: #1e7f4e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #2bb673;
}

.qty-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-box button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  cursor: pointer;
  background: #1e7f4e;
  color: white;
}

.qty-box span {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.share-order-btn {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

#order-panel {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 999;
  font-size: 14px;
}

#order-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

#order-items {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 10px;
}

#order-items div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

#order-panel button {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#copy-order { background: #ff9800; color: #fff; }
#whatsapp-order { background: #25d366; color: #fff; }

#item-count-badge {
  background: red;
  color: #fff;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 12px;
  float: right;
}

#cart-summary {
  margin: 8px 0;
  font-weight: bold;
  text-align: center;
}
#catalogGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.card {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  background: #fff;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  cursor: pointer;
}

.qty-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-controls button {
  padding: 4px 10px;
  font-size: 16px;
}
/* FLOATING CART PANEL */
#floatingCart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 9999;
  min-width: 200px;
}

#floatingCart h3 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* CART QTY BADGE */
#cartQty {
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  padding: 4px 10px;
  font-size: 14px;
}

/* FLOATING BUTTONS */
#floatingCart button {
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#copyOrder {
  background: #007bff;
  color: white;
}

#sendWhatsapp {
  background: #25D366;
  color: white;
}
.price {
  font-weight: bold;
  color: #2e7d32;
  margin: 4px 0;
}

#cartValue {
  font-size: 14px;
  color: #555;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #2e7d32;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .logo {
  font-size: 20px;
  font-weight: bold;
}

.site-header nav a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
}

.site-header nav a:hover {
  text-decoration: underline;
}
.img-wrap {
  position: relative;
  cursor: pointer;
}

.img-wrap::after {
  content: attr(data-copy);
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.img-wrap:hover::after {
  opacity: 1;
}

.copy-hint {
  cursor: pointer;
  position: relative;
}

.copy-hint::after {
  content: "Click to Copy";
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 11px;
  color: #666;
  opacity: 0;
  transition: opacity 0.2s;
}

.copy-hint:hover::after {
  opacity: 1;
}
.img-wrap {
  position: relative;
  cursor: pointer;
}

.copy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.img-wrap:hover .copy-overlay {
  opacity: 1;
}

.copy-hint {
  cursor: pointer;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}
