@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bungee+Inline&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: white;
}
/* LIGHTBOX WRAPPER */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  transition: opacity 0.3s ease-in-out;
}

/* SHOW WHEN ACTIVE */
#lightbox.active {
  display: flex;
}

/* LIGHTBOX CONTENT WRAPPER */
#lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

/* LIGHTBOX IMAGE */
#lightbox-content img {
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  display: block;
}

/* CLOSE BUTTON */
#lightbox-clos {
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 22px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: 0.2s ease;
}

#lightbox-clos:hover {
  background: #f00;
  color: #fff;
}
#lightbox-img {
  transition: opacity 0.3s ease;
  opacity: 1;
}

#lightbox-img.fade-out {
  opacity: 0;
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 20px;
  background: white;
  border-bottom: 0px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  scroll-behavior: smooth;
  margin-bottom: 10px;
  font-family: Montserrat;
  background: #3f5efb;
  background: radial-gradient(
    circle,
    rgba(63, 94, 251, 1) 0%,
    rgba(190, 78, 154, 1) 100%,
    rgba(214, 75, 136, 1) 0%,
    rgba(136, 85, 196, 1) 99%,
    rgba(252, 70, 107, 1) 44%
  );
  background: white;
  color: black;
}

.filter-bar::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

.filter-item {
  flex: 0 0 auto;
  padding: 10px 20px;
  background-color: #00000000;
  color: rgb(255, 255, 255);
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: Montserrat, kantumruy pro;
  font-weight: bold;
  border-width: 2px;
  border-style: solid;
  border-style: solid;
  border-color: black;
  color: black;
}

.filter-item:hover {
  background-color: #9e9e9e39;
}
.product-header {
  display: flex;
  margin-top: 30px;
  justify-content: center;
  margin-bottom: 25px;
  max-height: min-content;
  background: white;
}
.box-1 {
  flex-direction: row;
  flex: 1;
  background-color: #2e080862;
  border-radius: 20px;
  align-items: center;
  border-width: 2px;
  height: 5px;
  justify-content: center;
  margin-left: 10px;
  margin-right: 10px;
  font-family: Montserrat;
}
.product-text {
  margin-left: 20px;
  margin-right: 20px;
  text-align: center;
  text-align: center;
  margin-bottom: 10px;
  font-family: Montserrat, kantumruy Pro;
  color: #a50000;
  margin: 0;
  line-height: 10px;
  font-size: 100px;
  font-weight: bold;
  color: black;
}
.content {
  padding: 20px;
}

.block {
  height: 300px;
  background: #f4f4f4;
  margin-bottom: 20px;
  border-radius: 8px;
}
header {
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  box-shadow: 0px;
  margin-bottom: 2px;
  color: #a50000;
  font-family: Montserrat;
  color: black;

  background: white;
}

header ::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}
header img {
  height: 90px;
  margin: 0;
  padding: 0;
  margin-right: px;
}
body {
  font-family: Arial, sans-serif, Kantumruy Pro;
  background: #f8f8f8;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
  border-style: none;
  border-radius: 20px;
  border-width: 2px;
  border-color: rgb(136, 189, 235);
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 20px;
  color: #000000;
}
h3 {
  margin-left: 20px;
  justify-items: center;
  margin-top: 32px;
}
.name {
  display: flex;
  justify-content: space-between;
  justify-items: center;
}
strong {
  font-family: Montserrat;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  max-width: px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  border-radius: 0px;
  box-shadow: none;
}
.card:hover {
  transform: scale(1.02);
}
.card-wrapper {
  position: relative;
}
.card img {
  width: 100%;
  height: auto;
  display: block;
}
.badge {
  background: #ff5c5c;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 4px;
}
.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}
.discount {
  color: #000000;
  font-weight: bold;
  font-size: 20px;
}
#ds {
  font-size: 16px;
  font-family: Montserrat;
}
.hero {
  background: url("https://images.theconversation.com/files/393210/original/file-20210401-13-z6rl6z.jpg?ixlib=rb-4.1.0&rect=0%2C292%2C3008%2C1504&q=45&auto=format&w=1356&h=668&fit=crop")
    center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  width: 400px;
  height: auto;
  border-radius: 30px;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-family: Bungee Inline;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero-btn {
  background-color: #000000;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: ០px;
  transition: background 0.5s;
}

.hero-btn:hover {
  background-color: rgb(0, 0, 0);
}
#hero-text {
  font-family: kantumruy pro, Montserrat;
  font-weight: bold;
  color: black;
}
p {
  font-size: 14px;
}
strong {
  display: block;
  font-size: 15px;
}
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card-content p,
  .price,
  .discount {
    font-size: 13px;
  }
  strong {
    font-size: 14px;
  }
}
footer {
  font-family: Kantumruy Pro, Arial, sans-serif;
  justify-items: center;
  margin-top: 15px;
  text-decoration: none;
  color: rgb(0, 0, 0);
  margin-bottom: 100px;
  border-radius: 5px;
  padding-bottom: 20px;
  padding-top: 20px;
}

/* LIGHTBOX IMAGE - Make responsive for all screens including mobile */
#lightbox-content img {
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: none;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  display: block;
  object-fit: contain; /* Prevent image from being cropped */
  border-style: solid;
  border: none;
}

#kampu {
  color: #a50000;
}
/* iPad / Tablet responsiveness */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .product-text {
    font-size: 60px;
  }

  .filter-item {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Desktop responsiveness */
@media (min-width: 1025px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }

  .product-text {
    font-size: 80px;
  }

  .filter-bar {
    justify-content: center;
    padding: 15px 30px;
  }

  .filter-item {
    padding: 12px 24px;
    font-size: 16px;
  }

  .card-content p,
  .price,
  .discount {
    font-size: 15px;
  }

  strong {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  #lightbox img {
    max-width: 95%;
    max-height: 80%;
  }
}

@media (max-width: 600px) {
  #lightbox-content img {
    max-width: 95vw;
    max-height: 90vh;
    border-color: white;
  }
}

.thumb {
  width: 100%;
  margin-bottom: 5px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.thumb:hover {
  transform: scale(1.03);
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox.active {
  display: flex;
}

#lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

#lightbox-content img {
  width: 100%;
  height: auto;
}

#lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox.active {
  display: flex;
}

#lightbox-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

#lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

#lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.8rem;
  color: rgb(0, 0, 0);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 5px 10px;
  background-color: none;
  background: none;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 8px 12px;
}

#lightbox-prev {
  left: -40px;
}
#lightbox-next {
  right: -40px;
}

#lightbox-counter {
  margin-top: 8px;
  color: #ffffff;
  font-size: 0.9rem;
}

#lightbox-dots {
  margin-top: 8px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;

  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: #fff;
}
footer {
  background: white;
  margin: 0;
  color: #000;
}
button {
  padding: 10px 10px;
  background: black;
  color: white;
  font-size: small;
  padding-left: 20px;
  padding-right: 20px;
  font-family: Montserrat;
  border: none;
}

.stk {
  color: gray;

  font-weight: bold;
  color: rgb(156, 0, 0);
}
.size {
  font-family: Montserrat;
}

.news-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 5px;
  text-align: center;
  text-align: center;
  letter-spacing: 2px;
  background: rgb(0, 0, 0);
}

.news-ticker p {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-size: 1rem;
  background: none;
  color: white;
  font-family: Montserrat;
  font-weight: bold;
}

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

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