* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  padding-top: calc(72px + 56px);
  background-color: #fff;
}

/* ===== thanh logo===== */
.logo-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;       
  padding: 0 24px;    
  background: #fff;
  display: flex;               
  align-items: center;         
  justify-content: space-between; 
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  z-index: 9000;
}

/* left */
.menuleft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0; 
}


.menuleft img#logo_Shop {
  height: 40px;      
  width: auto;
  display:block;
}

/* center */
.menucenter {
  flex: 1 1 auto;   
  display: flex;
  align-items: center;
  justify-content: center; 
  min-width: 0;      
}
/* ===== SEARCH BAR trong menucenter ===== */

.search-bar {
  display: flex;
  align-items: center;
  width: 320px;     /* độ rộng thanh tìm kiếm */
  background: #fff;
  border-radius: 25px;
  padding: 4px 10px;
  border: 1px solid #d4b063;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 6px 8px;
}

.search-bar button {
  border: none;
  background: none;
  color: #b77b4b;
  font-size: 16px;
  cursor: pointer;
}

.search-bar button:hover {
  color: #8f5b2f;
}

/* Giúp menucenter không bị tràn hoặc đẩy menuright */
.menucenter {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

/* Search thu nhỏ khi màn hình bé */
@media (max-width: 768px) {
  .search-bar {
    width: 200px;
  }
}

/* right */
.menuright {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;   
  flex: 0 0 auto;        
}


.menuright a {
  text-decoration: none;
  color: #bc6c25;
  padding: 6px 8px;
  font-size: 15px;
}
.menuright a:hover {
  color: grey;
}

@media (max-width: 900px) {
  .menucenter { display:none; }
  .menuright a { padding: 6px 6px; font-size:14px; }
}
@media (max-width: 600px) {
  .menuright a { display:none; } 
  .menuleft img#logo_Shop { height:48px; }
  .logo-bar { padding: 0 12px; }
}


/* ===== MENU ===== */
#menu2 {
  position: fixed;
  top: 72px;               
  left: 0;
  width: 100%;
  height: 56px;
  background-color: #f7f3ee;
  border-bottom: 1px solid #e7dfd6;
  z-index: 99998;       
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  overflow: visible;    
}



#menu2 .mainmenu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

#menu2 .mainmenu > li>a:hover{color: grey;}

#menu2 .mainmenu > li {
  position: relative;
  padding: 0 18px;
  list-style: none;
  line-height: 56px; 
}


#menu2 .mainmenu > li > a {
  display: inline-block;
  padding: 0 8px;
  color: #b77b4b;
  text-decoration: none;
  font-size: 17px;
}

.listConCap1 {
  display: none;             
  position: absolute;
  top: 56px;                 
  left: 0;
  min-width: 200px;            
  background: #f7f3ee;       
  padding: 8px 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 99999;            
  white-space: nowrap;
}


.listConCap1 li {
  display: block;
  margin: 4px 0;
  padding: 4px 8px;
  list-style: none;
}
.listConCap1 li a {
  color: #b77b4b;
  text-decoration: none;
  display: block;
  padding: 3px 4px;
  font-size: 17px;
}
.listConCap1 li a:hover {
  color: grey;
  background: rgba(183,150,110,0.03);
  border-radius: 4px;
}


.mainmenu > li:hover > .listConCap1 {
  display: block;
}


.listConCap1 {
  max-height: 320px;
  overflow: auto;
}

@media (max-width: 900px) {
  #menu2 { height: auto; padding: 6px 0; }
  #menu2 .mainmenu { flex-wrap: wrap; gap: 6px; }
  #menu2 .mainmenu > li { line-height: normal; padding: 6px 10px; }
  .listConCap1 { position: static; box-shadow: none; border: none; background: transparent; padding-left: 0; }
  .mainmenu > li:hover > .listConCap1 { display: block; } /* show as block under each li */
}


/* ===== BANNER  ===== */
#banner .item {
  height: 480px;
  background-size: cover;
  background-position: center;
}

#banner {
  margin-top: 0;
}

/* ===== FOOTER ===== */
/* ===== Styled Footer (copy to bottom of Index.css) ===== */
.site-footer {
  background: linear-gradient(180deg, #fff 0%, #fbf6f1 100%);
  padding: 56px 0 48px;
  color: #6b5440;
  border-top: 1px solid rgba(183,150,110,0.06);
  font-family: "Segoe UI", sans-serif;
}

/* container width */
.site-footer .container { max-width: 1150px; }

/* Row spacing */
.footer-row { display:flex; align-items:flex-start; gap: 24px; }

/* Columns */
.footer-col { padding: 0 16px; box-sizing: border-box; }

/* BRAND column */
.footer-brand { max-width: 340px; flex: 0 0 33.333%; }
#footer-logo { width: 200px; height: auto; display:block; margin-bottom: 14px; }
.footer-address { color: #7e6a56; margin: 6px 0 8px; font-size: 13px; line-height:1.5; }
.footer-phone a { color:#2b7db0; text-decoration:none; font-weight:600; }

/* Titles */
.footer-title {
  color: #b77b4b;
  font-size: 15.5px;
  margin-bottom: 12px;
  font-weight:600;
}

/* Links */
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin: 8px 0; }
.footer-links a {
  color: #6b5440;
  text-decoration: none;
  transition: color .18s ease, transform .12s ease;
}
.footer-links a:hover { color: #b77b4b; transform: translateX(6px); }

/* Map styling */
.footer-map { margin-top: 12px; width: 100%; max-width: 320px; border-radius:8px; overflow:hidden;
  box-shadow: 0 8px 30px rgba(66,54,38,0.06); border:1px solid rgba(183,150,110,0.06);}
.footer-map iframe { display:block; }

/* Make column 2 & 3 use remaining space */
.footer-row > .col-sm-4:nth-child(2),
.footer-row > .col-sm-4:nth-child(3) { flex: 1 1 33.333%; }

/* Responsive: stack columns under 900px */
@media (max-width: 900px) {
  .footer-row { flex-direction: column; }
  .footer-brand { max-width: none; }
  #footer-logo { width: 160px; }
  .footer-map { max-width: 100%; }
}

/* small visual polish */
.site-footer p { margin: 0 0 8px; }
.site-footer h4 { margin: 0 0 10px; }

/* ===== FOOTER FIX: paste at the END of Index.css ===== */
.site-footer .container { max-width: 1150px; padding-left:16px; padding-right:16px; box-sizing:border-box; width:100%; }

/* Force flex layout, allow wrap, reduce gap to avoid overflow */
.footer-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;      /* giảm gap để vừa hàng */
  align-items: flex-start !important;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Neutralize Bootstrap float/width so BS3 won't fight flexbox */
.footer-row .col-sm-4 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  box-sizing: border-box !important;
}

/* Brand column: fixed width (px) so remaining two columns share leftover space */
.footer-brand {
  flex: 0 0 300px !important;   /* chỉnh 300px/340px tuỳ logo */
  max-width: 300px !important;
}

/* Các cột còn lại co dãn, nhưng có min-width nhỏ để không bị quá chật */
.footer-row > .col-sm-4:nth-child(2),
.footer-row > .col-sm-4:nth-child(3) {
  flex: 1 1 1px !important;   /* cho phép shrink/grow */
  min-width: 200px !important; /* nếu vẫn bị nhảy, giảm xuống 160px */
}

/* Map width: giới hạn lại để không kéo cột ra ngoài */
.footer-map { max-width: 100% !important; width: 100% !important; }

/* Responsive: stack vertically on small screens */
@media (max-width: 900px) {
  .footer-row { flex-direction: column !important; gap: 12px !important; }
  .footer-brand { flex: 0 0 auto !important; max-width: 100% !important; }
  .footer-row > .col-sm-4:nth-child(2),
  .footer-row > .col-sm-4:nth-child(3) { min-width: 0 !important; flex: 1 1 100% !important; }
}


/* ===== plugin ===== */
.social-btn {
  position: fixed;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  z-index: 9999;
}

.social-btn img {
  width: 32px;
  height: 32px;
}

/* Vị trí từng nút */
.btn-messenger {
  bottom: 20px;
}

.btn-zalo {
  bottom: 85px;
}

.btn-ig {
  bottom: 150px;
}

/* Hiệu ứng đẹp hơn */
.social-btn:hover {
  transform: scale(1.12);
  transition: 0.2s;
}


/* ===== popup ===== */

.modal-backdrop{z-index:100000!important}
.modal{z-index:100001!important}

.popup-booking{
  background:#fff;border-radius:12px;overflow:hidden;border:none;
  box-shadow:0 30px 80px rgba(22,18,12,.25);padding:0;position:relative;
}
.modal-close{position:absolute;right:14px;top:10px;z-index:10;background:transparent;border:none;font-size:32px;color:#333;cursor:pointer}

/* 2 cột */
.popup-inner{display:flex;max-width:100%;overflow:hidden;min-height:520px}
.popup-left{flex:1 1 auto;padding:24px;background:#faf7f6;display:flex;align-items:center;justify-content:center}
.popup-left img{width:100%;height:auto;max-height:560px;object-fit:cover;border-radius:8px}
.popup-right{flex:0 0 420px;padding:32px 28px;background:#fff;box-sizing:border-box}

/* form */
.popup-title{font-size:28px;color:#b77b4b;font-weight:700;margin-bottom:18px}
.booking-form .form-group{margin-bottom:14px;position:relative}
.booking-form .form-control{
  width:100%;padding:12px 14px;border:1px solid rgba(183,150,110,.35);
  border-radius:4px;font-size:14px;box-sizing:border-box;
}
.booking-form .form-control:focus{border-color:rgba(183,150,110,.7);box-shadow:0 0 0 3px rgba(183,150,110,.1)}

/* select chỉnh cho chữ căn giữa */
.booking-form select.form-control{
  height:44px;line-height:44px;padding:0 42px 0 14px;box-sizing:border-box;
  -webkit-appearance:none;appearance:none;vertical-align:middle;font-size:14px;color:#7e6a56;background:#fff;
}
.booking-form select.form-control option{line-height:1.4;color:#4f3e33}

/* nút */
.btn-submit{width:100%;padding:12px 16px;background:#d4b063;border:none;color:#fff;font-weight:700;font-size:15px;border-radius:6px;cursor:pointer}
.btn-submit:hover{opacity:.95;transform:translateY(-1px);transition:all .15s ease;background-color:#b77b4b}

/* giới hạn chiều rộng modal */
.modal-dialog{max-width:980px;width:calc(100vw - 32px);margin:20px auto}
.modal-dialog.modal-xl{max-width:min(980px,calc(100vw - 32px))}

/* responsive */
@media (max-width:900px){
  .popup-inner{flex-direction:column;min-height:auto}
  .popup-left,.popup-right{width:100%;padding:16px;flex:none}
  .popup-left img{max-height:300px}
  .modal-dialog{margin:12px;max-width:calc(100vw - 24px)}
}

/* nếu cần giảm khoảng GAP trên cùng của form */
.popup-right{padding-top:22px}
