@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  background: url('../resource/background/paper-fibers.png') repeat;
}

body {
  font-family: "Poppins", sans-serif;
}
.logo {
  width: 70px;
  height: 70px;
}

.nav-link.active {
  color: red !important;
  position: relative;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: red;
  border-radius: 2px;
}

.dropdown > .dropdown-menu {
  background-color: white;
  border: none;
  border-radius: 0;
}
.dropdown-item:hover {
  color: white;
  background-color: red;
}
.dropdown_active {
  color: white;
  background-color: red;
}
@media (min-width: 992px) {
  .dropdown > .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    top: 80%;
    display: block;
    transition: all 0.1s ease-out;
  }
  .dropdown:hover > .dropdown-menu {
    padding: 10px 0;
    display: block;
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease-in-out;
  }
  .dropdown-item:hover {
    color: white;
    background-color: red;
  }
}
.custom-carousel {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding-top: 30px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.product-card {
  flex: 0 0 20%;
  padding: 15px;
  text-align: center;
}

.image-box {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;}

.image-box img {
  max-height: 150%;
  max-width: 200%;
  object-fit: contain;
}

.product-card p {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 14px;
  z-index: 10;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.4rem;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

@media (max-width: 992px) {
  .product-card {
    flex: 0 0 33.33%;
  }
  .image-box {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .product-card {
    flex: 0 0 50%;
  }
  .image-box {
    height: 250px;
  }
  .product-card p {
  text-align: center;
  margin-top: 25px;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 100%;
  }
  .image-box {
    height: 220px;
  }
}
.best-seller-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  height: auto;
}
.btn-danger {
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #c1121f;
  transform: translateY(-2px);
}

.brand-logo-box {
  background: #fff;
  border: 1px solid #eee;
  padding: 30px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.brand-logo-box:hover {
  transform: translateY(-5px);
}

.brand-logo-box img {
  height: 100px;
  width: 100px;
  object-fit: contain;
}

.brand-logo-box h5 {
  margin-top: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

.khmer-banner {
  background: linear-gradient(90deg, #0052a5, #ffffff, #e00034);
  overflow: hidden;
  padding: 10px 0;
}

.khmer-slide-track {
  display: flex;
  width: max-content;
  animation: scrollKhmerLoop 20s linear infinite;
}

.khmer-slide {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: bold;
  white-space: nowrap;
  color: #000;
  gap: 10px;
  padding: 0 30px;
}

.flag-icon {
  height: 24px;
  width: auto;
}
@keyframes scrollKhmerLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.recipe-card {
  border-radius: 12px;
  overflow: hidden;
}

.recipe-card .card-img-top {
  object-fit: cover;
  height: 200px;
}

.product-image-wrapper {
  height: 300px; 
  overflow: hidden;
}

.product-image-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.history-section {
  background-color: #000;
}

.history-img {
  max-height: 500px;
  width: auto;
}

/* Looking Back */
.looking-back {
  background-color: #f8f9fa;
  height: 40vh;
  position: relative;
  overflow: hidden;
}

.bg-year {
  font-size: 12vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  white-space: nowrap;
}

.looking-back h2 {
  font-size: 4vw;
  z-index: 1;
  color: #212529;
  margin: 0;
}

/* Vertical Video Wrapper */
.vertical-video-wrapper {
  width: 360px;
  height: 640px;
  max-width: 100%;
  border: 10px solid #000;
  border-radius: 30px;
  overflow: hidden;
  background-color: #000;
}

.vertical-video-wrapper video {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .looking-back {
    height: 25vh;
  }

  .looking-back h2 {
    font-size: 5vw;
  }

  .vertical-video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    border: 6px solid #000;
    border-radius: 20px;
  }

  .vertical-video-wrapper video {
    width: 100%;
    height: auto;
  }
}
.contact-section img {
  max-height: 300px;
}
.qr-contact-section h2 {
  font-size: 2rem;
  letter-spacing: 1px;
}

.qr-contact-section .card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.qr-contact-section img {
  object-fit: contain;
}
.golden-chef-hero {
  background-image: url(../resource/background/product-bg.png);
  background-size: cover;
}
.footer-top {
  background-color: black;
  color: white;
  padding: 40px 0;
}

.footer-bottom {
  background-color: red;
  color: white;
  padding: 15px 0;
  font-size: 0.9rem;
}

.footer-icon .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-icon .icon-circle:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.bg-facebook {
  background-color: #1877f2;
}

.bg-instagram {
  background-color: #fcb900;
}

.bg-tiktok {
  background-color: #111111;
}


footer a.text-white.text-decoration-none {
  transition: color 0.3s ease;
}

footer a.text-white.text-decoration-none:hover {
  color: red !important;
  text-decoration: underline;
}

/* ===== Mobile sizing so it doesn't feel cramped ===== */
@media (max-width: 575.98px) {
  /* give the dialog breathing room and cap width */
  .modal.show #distributorModal .modal-dialog,
  #distributorModal.modal.show .modal-dialog {
    margin: 1rem !important;
    max-width: 95vw;
  }
  /* smaller header + tighter paddings on phones */
  #distributorModal .modal-header { padding: .75rem 1rem; }
  #distributorModal .modal-title { font-size: 1.05rem; line-height: 1.25; }
  #distributorModal .btn.btn-lg.g ee-cta { font-size: 1rem; padding: .75rem 1rem; border-radius: 14px; }
  #distributorModal .ratio { --bs-aspect-ratio: 56.25%; } /* keep 16:9 on phones */
}

/* ===== Pop-in animation for excitement ===== */
@keyframes geePopIn {
  0%   { transform: scale(.85); opacity: 0; }
  60%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}
.modal.gpop .modal-dialog {
  animation: geePopIn 380ms cubic-bezier(.2,.9,.2,1) both;
}

/* One gentle pulse on CTA after show */
@keyframes geePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.modal.gpop .gee-cta {
  animation: geePulse 1.2s ease 480ms 1;
}

