@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kantumruy Pro", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #e7d5b4, #f7f3eb);
  margin: 0;
  background-image: url("/assets/image/background.png");
  /* Space for fixed header */
  padding-top: 190px;
  background-size: contain;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* ធ្វើឱ្យរូបភាពរង្វង់ */
  border: 3px solid #8e44ad; /* ពណ៌រង្វង់ជុំវិញ */
  overflow: hidden;
  background: white;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-info h1 {
  margin: 0;
  font-size: 24px;
  color: #5d4037; /* ពណ៌អក្សរត្នោតចាស់ */
  font-family: "Poppins", sans-serif;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  filter: grayscale(0.5); /* ធ្វើឱ្យ Icon មើលទៅស្រទន់ */
}

.lang-switch img {
  width: 40px;
  border: 1px solid #ddd;
}
/* ================= HEADER ================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top));

  background: linear-gradient(to bottom, #e7d5b4, #f7f3eb);

  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  transform: translateZ(0);
  will-change: transform;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #6b3f16;
}

/* ================= SEARCH ================= */

.search-container {
  margin-top: 15px;
}

.search-container input {
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  border: none;
  outline: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ================= CATEGORY ================= */

.categories {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category-btn {
  padding: 6px 18px;
  border-radius: 25px;
  border: 2px solid #6b3f16;
  background: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

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

/* ================= PRODUCTS ================= */

.products {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Tablet */
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Laptop */
@media (min-width: 1100px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

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

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 12px;
}

.product-id {
  font-size: 11px;
  color: rgb(180, 0, 0);
  font-weight: bold;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin: 5px 0;
}

.price {
  font-weight: 700;
  color: #cc0000;
}

.badge {
  position: absolute;
  background: #ff4d4d;
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 20px;
  margin: 8px;
}

.card-wrapper {
  position: relative;
}

.telegram-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #0088cc;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.telegram-btn:hover {
  background: #006699;
}
.news-ticker {
  width: 100%;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #ccc;
  white-space: nowrap;
  background-color: bisque;
  padding: 10px;
  text-align: center;
  text-align: center;
  letter-spacing: 2px;
  background: rgb(5, 0, 2);
  margin: 0;
}

.news-ticker p {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-size: 1rem;
  color: #ffffff;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.social-icons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #1900ff;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
  background: #000000;
  color: #fff;
}
.call-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.call-btn:hover {
  background: #218838;
  transform: scale(1.05);
}
#productList {
  scroll-margin-top: 120px;
}
