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

:root {
  --color-main-1: #113b39;
  --color-main-2: #754c29;
  --font-size-title: 18px;
}

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%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  font-weight: 500;
}

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

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

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

/* ========== HEADER CUSTOMIZER ========== */
.site-header {
  position: fixed;
  width: 100%;
  aspect-ratio: 1920 / 177;
  color: #fff;
  background-size: cover;
  background-position: center;
  z-index: 10;
  top: 0;
  align-content: center;
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 0 2rem;
  justify-content: space-between;
}

/* 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: 10px;
  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 ========== */
#site-footer {
  background-size: cover;
  background-position: top;
  color: #333;
  font-family: 'Roboto', sans-serif;
  margin-top: -7rem;
  padding-top: 7rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 4rem;
  flex-wrap: wrap;
}

.footer-left {
  width: 45%;
}

.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: var(--color-main-2);
}

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

.footer-menu {
  color: var(--color-main-2);
  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: 320px;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  background: var(--color-main-1);
  color: #fff;
  font-size: 12px;
  font-style: italic;
}

.footer-bottom p {
  padding: 8px;
  margin: 0;
}

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


/* ==== 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 13px;
    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%;
  }

  .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;
}