/* Font imports */
/* 300 — Beautique Display Light (đủ eot/woff2/woff/ttf) */
@font-face {
  font-family: "Beautique Display";
  src: url("https://db.onlinewebfonts.com/t/07d4ed3020d437c508d0a72f47de3121.eot");
  src: url("https://db.onlinewebfonts.com/t/07d4ed3020d437c508d0a72f47de3121.eot?#iefix") format("embedded-opentype"),
       url("https://db.onlinewebfonts.com/t/07d4ed3020d437c508d0a72f47de3121.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/07d4ed3020d437c508d0a72f47de3121.woff") format("woff"),
       url("https://db.onlinewebfonts.com/t/07d4ed3020d437c508d0a72f47de3121.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* 400 — Beautique Display Regular (đủ eot/woff2/woff/ttf) */
@font-face {
  font-family: "Beautique Display";
  src: url("https://db.onlinewebfonts.com/t/08ee0bdd19b93bb20a3ce6c8be5ebf8b.eot");
  src: url("https://db.onlinewebfonts.com/t/08ee0bdd19b93bb20a3ce6c8be5ebf8b.eot?#iefix") format("embedded-opentype"),
       url("https://db.onlinewebfonts.com/t/08ee0bdd19b93bb20a3ce6c8be5ebf8b.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/08ee0bdd19b93bb20a3ce6c8be5ebf8b.woff") format("woff"),
       url("https://db.onlinewebfonts.com/t/08ee0bdd19b93bb20a3ce6c8be5ebf8b.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 500 — Beautique Display Medium (đủ eot/woff2/woff/ttf) */
@font-face {
  font-family: "Beautique Display";
  src: url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.eot");
  src: url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.eot?#iefix") format("embedded-opentype"),
       url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.woff") format("woff"),
       url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 600 — không có file riêng, tạm dùng file 500 để synthesize 600 */
@font-face {
  font-family: "Beautique Display";
  src: url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.eot");
  src: url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.eot?#iefix") format("embedded-opentype"),
       url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.woff") format("woff"),
       url("https://db.onlinewebfonts.com/t/3b9261380d0c598565ec859fb58757a8.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 700 — Bold (hiện tìm thấy bản .ttf ổn định; nếu cần đủ eot/woff/woff2 cho 700, nói mình bổ sung) */
@font-face {
  font-family: "Beautique Display";
  src: url("https://montviewkew.com.au/wp-content/uploads/2023/09/BeautiqueDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* Main Banner */
#main-banner {
  position: relative;
}

.main-banner-desktop,
.main-banner-mobile {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.detail-promotion {
      grid-column: span 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.detail-btn-promotion {
  color: #804b2c;
  padding: 12px 32px;
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #eeaa22, #ffe299);
  border: none;
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-btn-promotion:hover {
  background: linear-gradient(180deg, #d49620, #f0d085);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: #6b3e24;
}

.detail-btn-promotion:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop Banner - Show on screens 768px and above */
.main-banner-desktop {
  display: block;
}

.main-banner-mobile {
  display: none;
}

/* Mobile Banner - Show on screens below 768px */
@media (max-width: 767px) {
  .main-banner-desktop {
    display: none;
  }

  .main-banner-mobile {
    display: block;
  }
}

#short-intro {
  background: linear-gradient(135deg, #0B5451 0%, #088076 100%);
  padding: 58px 10px;
  color: white;
}

#short-intro-wrapper {
  display: flex;
  gap: 10px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

#short-intro-wrapper > .comma-right {
  display: flex;
  align-items: end;
}

#short-intro-wrapper > .comma-left {
  display: flex;
  align-items: start;
}

#short-intro-wrapper > #short-intro-container {
  margin: 0 auto;
  max-width: 970px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 23px;
  justify-items: center;
  align-items: center;
  text-align: center;
}

#divider {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 720px) {
  #divider {
    width: auto;
  }
}

/* Banner Grid Section */
#banner-grid {
  padding: 10px;
}

.banner-container {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.banner-span-2 {
  grid-column: span 2;
}

.banner-span-1 {
  grid-column: span 2;
}

@media (min-width: 1080px) {
  #banner-grid {
    padding: 52px 10px;
    margin: 0 auto;
    max-width: 1280px;
  }
  .banner-span-1 {
  grid-column: span 1;
}
  .banner-container {
    max-width: 1460px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Popular Products */
#popular-products {
  padding: 60px 0px;

  .active-category {
      position: relative;           /* cha làm mốc cho ::before */
      display: inline-block;        /* để width/100% hoạt động ổn với inline */
      background: linear-gradient(to bottom, #FFFFFF33, #D4F6EE);
    }
    
    .active-category::before {
      content: "";                  /* BẮT BUỘC cho ::before/::after */
      position: absolute;
      left: 0;
      right: 0;                     /* hoặc width: 100% + left: 0 */
      bottom: 0;                    /* dùng 0 cho chuẩn */
      height: 3px;
      background: #057C80;
      display: block;               /* tuỳ chọn, giúp chiều cao áp dụng rõ ràng */
    }
}

.popular-products-container {
  margin: 0 auto;
}

.popular-products-subtitle {
  font-family: 'Helvetica Neue'
  , sans-serif !important;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #1D1D1D;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0px 20px;
}

.popular-products-title {
  font-family: "Beautique Display"
  , "Playfair Display"
  , Georgia
  , serif;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  color: #1D1D1D;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0px 20px;
}

@media (min-width: 720px) {
  .popular-products-title {
    font-size: 24px;
  }
}

/* Filter Buttons Grid */
.filter-buttons-container{
    width: 100%;
    overflow: scroll;
    margin-bottom: 10px;
    padding-bottom: 10px;
    position: sticky;
    top: -15px;
    z-index: 50;
    background: #fff;

  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.filter-buttons-container::-webkit-scrollbar {
  display: none;
}

.filter-buttons-action{
  position: relative;
  height: 130px;
  margin-bottom: -130px;
}
.filter-btn-prev, .filter-btn-next {
  width: 25px;
  height: 130px;
  background:#ffffff33;
  position: absolute;
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-content: center;
  justify-content: center;
}

.filter-btn-prev {
  left:0;
  background-image: url("https://file.hstatic.net/200000355853/file/fade_filter.png"); /* HTTP or HTTPS URL */
  rotate: 180deg;
}
.filter-btn-next {
  right:0;
  background-image: url("https://file.hstatic.net/200000355853/file/fade_filter.png"); /* HTTP or HTTPS URL */
}

@media (min-width: 1080px){
  .filter-buttons-container {
    position: relative;
  }

  .filter-buttons-action {
    display: none;
  }
}

.filter-buttons-grid {
  width: fit-content;
  margin:0 auto;
  display: flex;
  overflow: scroll;
  gap: 0px;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 20px;
}

.filter-btn {
  padding: 12px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 100px;
}

.filter-divide {
  position: absolute;
  height: 2px;
  background: #e4e4e4;
  width: calc(120px*6);
  left:0;
  z-index: 50
}


@media (min-width:720px){
  .filter-btn {
    width: 120px;
  }
  .filter-divide {
     width: 100vw;
  }
}

.filter-btn:hover {
  border-color: #18382d;
  color: #057C80;
}

.filter-btn.active {
  background: linear-gradient(180deg, #FFFFFF33, #D4F6EE);
  border-color: #18382d;
  color: #057C80;
}

.filter-btn.active:after{
  content: "";
  position: relative;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background: #057C80;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

#pagination span, #pagination a {
  width: 24px !important;
  height: 24px !important;
  line-height: 0px !important;
  font-weight: 500 !important;
  padding: 0;
  color: #000;
}

.active > .page-link {
  border-color: transparent !important;
}

.page-item:first-child .page-link {
  border-radius: 100% !important;
}
.page-item:last-child .page-link {
  border-radius: 100% !important;
}

.page-link {
  border: none !important;
}

.pagination {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
  align-items: center;
}

.pagination a {
  margin-right:0 !important;
  display:flex !important;

}

.pagination a:hover{
  background: #e4e4e4 !important;
  color: #000 !important;
}

.pagination li {
  margin: 0;
}



.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 8px 12px;
  background: transparent;
  color: #18382d;
  border-radius: 100%;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  border-color: transparent;
  font-family: "Helvetica Neue";
}

.pagination .page-link:hover {
  background: #f5f5f5;
  border-radius: 100%;
  color: #18382d;
}

.pagination .page-item.active .page-link {
  background: #013A40;
  color: #fff !important;
  border-radius: 100%;
}

.pagination .page-item.disabled .page-link {
  color: #ccc;
  cursor: not-allowed;
  background: #f9f9f9;
}

.pagination .page-item.disabled .page-link:hover {
  background: #f9f9f9;
  color: #ccc;
}

.pagination .page-link.prev,
.pagination .page-link.next {
  font-weight: 600;
  border-radius: 100%;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding:0px 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.product-card {
  background: white;
  overflow: hidden;
  cursor: pointer;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ddd;
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #205035;
  color: white;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image > img {
  width: 100%;
}

.product-info {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.product-variant {
  width: 14px;
  height: 14px;
  padding: 0.5px;
  border: 1px solid #205035;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-variant-color {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: linear-gradient(to right, #b4b4b3, #ffffff, #9f9f9e);
}

.product-code {
  font-size: 12px;
  color: #205035;
  margin-bottom: 8px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

.color-variants {
  margin-bottom: 10px;
}

.color-variant {
  display: inline-block;
  font-size: 11px;
  color: #666;
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 4px;
  margin-bottom: 2px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 10px;
  font-weight: 700;
  color: #2c5530;
}

.original-price {
  font-size: 9px;
  color: #999;
  text-decoration: line-through;
}

.discount {
  font-size: 9px;
  color: #e74c3c;
  font-weight: 600;
}

@media (min-width: 720px) {
  .current-price {
    font-size: 16px;
    font-weight: 700;
    color: #2c5530;
  }

  .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
  }

  .discount {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
  }
}

/* Contact Form Section */
#contact-form {
  padding: 15px;
}

.contact-form-container {
  display: grid;
  grid-auto-columns: : auto;
 background: #085C65;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form-image-desktop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form-image-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

@media (max-width: 767px) {
  .contact-form-image-desktop {
    display: none;
  }

  .contact-form-image-mobile {
    display: block;
  }
}

.contact-form-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
}

/* Desktop layout for contact form - 720px and above */
@media (min-width: 1080px) {
  #contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    flex-direction: row;
    align-items: center;
  }

  .contact-form-content {
    width: 100%;
    padding: 40px;
  }
}

.contact-form-title {
   font-family: "Beautique Display"
  , "Playfair Display";
  font-size: 25px;
  color: #E3C38E;
  font-weight: 400;
  text-align: center;
}

.contact-form-subtitle {
  font-family: "Beautique Display"
  , "Playfair Display";
  font-size: 15px;
  font-weight: 500;
  color: white;
  text-align: center;
}

@media (min-width: 767px) {
  .contact-form-title {
   font-family: "Beautique Display"
  , "Playfair Display";
    font-size: 50px;
    color: #E3C38E;
    font-weight: 400;
  }

  .contact-form-subtitle {
    font-size: 25px;
    font-weight: 400;
    color: white;
    /* margin-bottom: 20px; */
  }
}

/* Contact Form Grid */
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));;
  gap: 20px;
  margin-top: 20px;
}

.form-input {
  padding: 16px 8px;
  outline: none;
  font-size: 14px;
  background: white;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid #fff;
}

/* Select specific styling */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6, 9 12, 15 18, 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  cursor: pointer;
}

select.form-input option {
  background: #333;
  color: #fff;
  padding: 8px;
}

select.form-input option.ladi-hidden {
  color: #999;
  font-style: italic;
}

.form-input:focus {
  outline: none;
}

.form-input::placeholder {
  color: #999;
}

.span-1 {
  grid-column: span 1;
}

.span-2 {
  grid-column: span 2;
}

.form-submit-btn-wrapper{
  grid-column: span 2;
  display: flex;
  justify-content:center;
  align-items: center;
  width: 100%;
}

.form-submit-btn {
  
  background: #E3C38E;
  color: #013A40;
  border: none;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
}

.chevron-right {
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .chevron-right {
  transform: translateX(2px);
}

@media (min-width: 1080px) {
  /* Popular Products - Filter Buttons */
  .filter-buttons-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1440px;
  }

  /* Popular Products - Products Grid */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contact Form - Desktop Layout */
  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2 {
    grid-column: span 2;
  }

  .form-submit-btn {
    grid-column: span 2;
  }
}

@media (min-width: 720px) and (max-width: 1079px) {
  /* Popular Products - Products Grid */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1079px) {
  /* Short Intro */
  #short-intro-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .comma-left,
  .comma-right {
    display: none;
    position: absolute;
  }

  .comma-left {
    left: 0;
    top: 0;
  }

  .comma-right {
    right: 0;
    bottom: 0;
  }

  #short-intro-container {
    text-align: center;
    padding: 0 20px;
  }

  #short-intro-container span {
    font-size: 16px;
  }

  /* CTKM Banner */
  .banner-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  };
}

/* Modal specific styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  z-index: 9999999999;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeInScale 0.3s ease-out;
  width: 60%;
  max-height: 70vh;
  overflow-y: auto;
  box-sizing: border-box;

  img {
    width: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    height: 248px;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .modal-content {
    width: 100%;
    height: 90%;
    max-width: 95%;
    max-height: 90%;
    position: fixed;
    top: 5%;
    // left: 10px;
    // right: 10px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto; 
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#close-modal-button {
  // position: sticky;
  top: 4px;
  right: 4px;
  border-radius: 100%;
  cursor: pointer;
}

.modal-detail {
  padding: 0px 20px 20px;
}