/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.shop-page-title {
  display: none;
}

.is-divider.small {
  display: none;
}

/* 1. Hero title */
.product {
  /* background-color: #f3f3f0; */
}

.product-hero {
  background: #2d4230;
  padding: 2em 1em;
  text-align: center;
  border-top: 1px solid #ababab;
}
.product-hero__title {
  color: #fff;
  font-size: 2.2rem;
  margin: 0;
}

/* 2. Summary block */
.product-summary-block {
  max-width: 1250px;
  margin: 2em auto;
  text-align: center;
  padding: 0 10px;
}
.product-summary__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.product-summary__divider {
  width: 100%;
  margin: 1.5em auto;
  border-top: 1px solid #a99667;
  margin: 45px 0;
}

/* 2.1. Detail icons: 2 cột */
.product-summary__details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em 2em;
  justify-items: start;
  padding: 0 10px;
}
.product-summary__details .detail-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;

  & span {
      text-align: left;
    }
}
.product-summary__details .detail-item i {
  font-size: 1.2em;
  margin-right: .5em;
  color: #a09062;
}

/* 3. Gallery block: 2 columns */
.product-gallery-block {
  /* display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em; */
  max-width: 1200px;
  margin: 2em auto;
}

/* 4. Purchase summary (price, add-to-cart) */
.product-purchase-summary {
  max-width: 1250px;
  margin: 2em auto;
}

.product-button-summary {
  max-width: 1250px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2em auto;
}



/* Container flex */
.custom-product-item {
  margin-bottom: 2em;
  width: 100%;
}
.custom-product-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  align-items: center;
  justify-content: center;
}

/* Cột ảnh */
.custom-product-thumb {
  flex: 0 0 50%;
  height: 400px;
}
.custom-product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Cột thông tin */
.custom-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center!important;
  align-items: center!important;
}
.custom-product-info .product-title {
  font-size: 1.75rem;
  margin: 0 0 1em;
  font-weight: bold;
  text-align: center;
}
.custom-product-info .price {
  font-size: 1.1rem;
  color: #b12704;
  margin-bottom: 0.75em;
}
.custom-product-info .excerpt {
  flex-grow: 1;
  margin-bottom: 1em;
}
.custom-product-info .button {
  align-self: flex-start;
}


/* CUSTOM STYLES FOR PRODUCT SHOP */
.product-shop__details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  gap: 1em 2em;
  justify-items: start;
  padding: 0;
}

.product-shop__details .detail-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}
.product-shop__details .detail-item i {
  font-size: 1.2em;
  margin-right: .5em;
  color: #a09062;
}



/* SẢN PHẨM LIÊN QUAN */
.related.products {
	width: 100%;
  max-width: 1250px;
  margin: 2em auto;

  & h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5em;
  }
}

.woocommerce-tabs.wc-tabs-wrapper {
  display: none
}







/* DINNER PAGE */
.booking-info-box {
  background: #273421;
  color: #b89e6c;
  padding: 20px 10px;
  width: 100%;
  font-family: sans-serif;
  text-align: center;
}
.booking-info-box .bi-title {
  text-align: center;
  font-size: 1.2em;
  margin-top: 0;
  color: #b89e6c;
}
.booking-info-box .bi-line {
  margin: 8px 0;
  font-size: 0.95em;
}
.booking-info-box .bi-divider {
  border: none;
  border-top: 1px solid #415137;
  margin: 15px 0;
}
.booking-info-box .bi-contact {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  margin: 5px 0;
  color: #b89e6c;
}

.booking-info-box .bi-contact a {
  color: #fff;
}

.booking-info-box .bi-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
}
/* Bạn phải cung cấp icon phone và mail hoặc dùng font‑icon */
.booking-info-box .bi-phone {
  background-image: url('path/to/phone-icon.svg');
}
.booking-info-box .bi-mail {
  background-image: url('path/to/mail-icon.svg');
}
.booking-info-box .bi-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.booking-info-box .bi-buttons a {
  color: #fff;
}

.booking-info-box .bi-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid #b89e6c;
  text-decoration: none;
  font-size: 0.95em;
}
.booking-info-box .bi-btn.bi-book {
  background: #b89e6c;
  color: #273421;
  border: none;
}




/* CUSTOM */
.custom-post-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 40px;
}

.custom-post-sidebar {
  height: fit-content;
  min-width: 300px;
  background-color: #2d4933;
  color: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  position: sticky;
  top: 120px;
}

.custom-post-sidebar h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ccc97b;
}

.custom-post-sidebar p {
  margin: 0 0 15px;
  font-size: 16px;
}

.custom-post-content {
  flex: 2;
  width: 100%;
}

.custom-post-content h1 {
  font-size: 32px;
  /* margin-bottom: 20px; */
}

.custom-post-content .entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  padding-top: 0;
}

.custom-post-sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.cs-sidebar-btn {
  background: #b89e6c;
  color: #273421;
  border: none;
  padding: 6px 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.buttons-menu {
  border: 1px solid #b89e6c;
  background: transparent;
  color: #b89e6c;
}
.buttons-book:hover {
  background: #b89e6c;
  color: #273421;
}

.custom-post-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  & i {
    color: #b89e6c;
  }
}

.related-posts--wrapper {
  background-color: #f4eee8;

  .related-posts {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;

    & > h2 {
      text-align: center;
    }
  }
}

@media (max-width: 768px) {
  .custom-post-wrapper {
    flex-direction: column;
  }
}



.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow: auto;
}

.popup-content {
  background: #fff;
  max-width: 600px;
  margin: 80px auto;
  padding: 30px;
  position: relative;
  border-radius: 8px;
}

.close-popup {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.popup-trigger {
  padding: 12px 24px;
  background: #004aad;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.popup_title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
  font-weight: bold;
  text-align: center;
}



.related-posts {
  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
    text-transform: uppercase;
  }
}
.related-posts-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.related-post-item {
  width: 100%;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;

  & > a {
    text-align: center;
    width: 100%;
    display: inline-block;

    .related-thumb {
      margin-bottom: 10px;

      img {
        width: 100%;
      }
    }

  }
  .related-excerpt {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
  }
}

/* .related-posts {
  margin-top: 60px;
}

.related-posts h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}

.related-posts-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.related-post-item {
  flex: 1;
  min-width: 250px;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-post-item:hover {
  background: #eee;
}

.related-thumb img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.related-title {
  font-size: 16px;
  margin-top: 10px;
  color: #333;
}
 */


.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group.half {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
}

.form-submit {
  margin-top: 20px;
}





@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .custom-product-inner {
    flex-direction: column!important;
    padding: 0 10px
  }

  .product-summary__details {
    grid-template-columns: repeat(1, 1fr);
  }

  .product-acf-summary {
    padding: 0 10px;
    display: block!important;
  }

  .custom-post-sidebar {
    position: unset;
    width: 100%;
  }


  .related-posts-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}