/*
Theme Name: MedHerb - v2
Theme URI: http://medherb.vn
Author: Son Vu
Author URI: http://medherb.vn
Description: MedHerb Website
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: MedHerb - v2
*/

:root {
  --color-main-1: #113b39;
  --color-main-2: #087206;
  --font-size-title: 18px;
  --color-text: #3b3b39;
}

html, body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #f5f2eb;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
}

* {
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none; 
  padding: 0;
  margin: 0;
}

.section-100vh {
  width: 100%;
  max-width: 1440px;
  height: 100svh;
  min-height: -webkit-fill-available;
  margin: 0 auto;
}

p {
  line-height: 1.4;
  font-size: 20px;
  text-align: justify;
}

/* ========== HEADER CUSTOMIZER ========== */
.site-header {
  width: 100%;
  color: #fff;
  z-index: 10;
  align-content: center;
  justify-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 20px;
  justify-content: space-between;
  max-width: 1440px;
  width: 100%;
}

/* LOGO */
.site-logo img {
  max-width: 70px;
}
.col-2 {
  flex: 0 0 16.66%; 
  max-width: 16.66%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* MENU CHÍNH */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.col-6-5 {
  flex: 0 0 54.16%;
  max-width: 54.16%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-navigation a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #ffdd99;
}

/* SEARCH */
.header-search form {
  position: relative;
}

.header-search input[type="search"] {
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.header-search input[type="submit"],
.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
}


/* ========== FOOTER CUSTOMIZER ========== */
.quick-link {
  white-space: nowrap;
}

.footer-container {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 50px;
  flex-wrap: wrap;
  position: relative;
}

.footer-left {
  width: 45%;
  z-index: 1;
}

.footer-right {
  width: 45%;
  text-align: center;
}

.footer-logo img {
  max-width: 100px;
  margin-bottom: 15px;
}

.footer-company-info p,
.quick-link p {
  margin: 3px 0;
  font-size: 15px;
  line-height: 1.6;
  color: white;
}

.footer-company-info p strong,
.quick-link p strong {
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  font-size: var(--font-size-title);
}

.footer-menu {
  color: white;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 6px 0;
}

.footer-menu a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #006e4b;
}

.footer-image img {
  max-width: 350px;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  background: linear-gradient(45deg, #8bc53f, #4a672f);
  color: #fff;
  font-size: 12px;
  font-style: italic;
}

.footer-bottom p {
  padding: 8px;
  margin: 0;
  font-size: 12px;
  text-align: center;
}

.footer-left-block {
  display: flex;
  justify-content: space-between;
}

#site-footer {
  background-image: url(../medherb-v2/assets/images/bg_footer.jpg);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: cover;
}

.footer-container::before {
  content: "";
  width: 500%;
  height: 100%;
  background-color: #018442a8;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
}


/* ==== DROPDOWN MENU ==== */
.main-menu, .main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-menu li {
  position: relative;
}

.main-menu > li {
  display: inline-block;
}

.main-menu a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-menu li ul {
  display: block;
  background: #113b39bd;
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: absolute;
}

.main-menu li:hover > ul {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu li ul li a {
  padding: 10px 16px;
  font-weight: 400;
}

.main-menu li ul ul {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

/* BTN PHONE */
.btn-footer {
	position: fixed;
  bottom: 20px;
  right: 20px;
	z-index: 999;
	display: grid;
	gap: 5px;
}
.btn-phone {
	padding: 8px 6px;
  background: #006661;
  border-radius: 15px;
  color: white;
}
.btn-phone i {
	font-size: 30px;
}
.zalo-button img {
	max-width: 50px;
}

.btn-chat img {
	max-width: 50px;
}

@media (max-width: 768px) {
  .main-menu {
    flex-direction: column;
    gap: 0;
  }

  .main-menu li {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .main-menu li ul {
    position: static;
    display: none;
    box-shadow: none;
  }

  .main-menu li:hover > ul {
    display: block;
  }
}


/* search suggestions */
.search-form {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: #ffffffa3;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: var(--color-main-2);
  color: white;
}

.suggestion-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: white;
}

.suggestion-title {
  flex: 1;
  font-size: 14px;
}

.no-result {
  padding: 10px 12px;
  color: #888;
}

.header-search-form {
  display: none;
}

.search-icon-mobile {
  display: none;
  font-size: 30px;
  cursor: pointer;
}