@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kantumruy Pro", sans-serif;
}

body {
  background-color: #fffaf7;
  color: #333;
  font-family: "Kantumruy Pro", sans-serif;
}

header {
  background-color: #ffe4e1;
  padding: 1.5rem;
  text-align: center;
  color: #a94442;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}
header p {
  text-align: center;
  margin-left: 20px;
  line-height: 20px;
  margin: 0;
  margin-left: 10px;
}

.sticky-categories {
  position: sticky;
  top: 0;
  background: white;
  padding: 1rem;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  border-bottom: 1px solid #ddd;
  z-index: 100;
}

.category-btn {
  padding: 8px 18px;
  border: none;
  background-color: #fcd5ce;
  border-radius: 20px;
  font-weight: 600;
  color: #a94442;
  cursor: pointer;
}

.category-btn.active {
  background-color: #ffa69e;
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 1.5rem;
}

.product-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
  padding: 1rem;
  border-style: dashed;
  border-width: 1px;
  border-color: pink;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

.product-card h2 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #000000;
  color: black;
}

.product-card p {
  font-weight: bold;
  color: #ff0000;
}

.product-card span {
  font-size: 0.9rem;
  color: #777;
}

/* Lightbox */
.lightbox {
  position: fixed;
  display: none;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 grid on phone */
  gap: 20px;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(250px, 1fr)
    ); /* expand to desktop */
  }
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#exit-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #f8d7da;
  border: none;
  color: #a94442;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#exit-btn:hover {
  background-color: #f5bcbc;
}
/* Header Styling */
.site-header {
  background-color: #fff5f9;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c2185b;
  margin: 0;
  text-align: justify;
}
footer {
  font-family: Kantumruy Pro, Arial, sans-serif;
  justify-items: center;
  margin-top: 15px;
  font-size: 20px;
}
#kampu {
  color: #1100ff;
}
.sticky-categories {
  position: sticky;
  top: 0;
  background: white;
  padding: 1rem 0.5rem;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-bottom: 1px solid #ddd;
  z-index: 100;
  scrollbar-width: none; /* Firefox */
}

.sticky-categories::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.category-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  background-color: #fde4df;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: #a94442;
  cursor: pointer;
  white-space: pre-line; /* Khmer line wrap support */
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.category-btn:hover {
  background-color: #fbb8af;
}

.category-btn.active {
  background-color: #fd9085;
  color: white;
  font-weight: 700;
}
.product-card h2 {
  font-family: "Kantumruy Pro", sans-serif;
  font-size: 1rem; /* បន្ថយ font-size */
  font-weight: 500; /* បន្ថយទៅ medium */
  color: #b85c5c;
  line-height: 1.6; /* បន្ថយការលាយអក្សរ */
  letter-spacing: 0.3px;
  white-space: normal;
  word-break: break-word;
  margin: 0.5rem 0;
}

@media (max-width: 480px) {
  .product-card h2 {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
