/*
Theme Name: ANVYWEB
Theme URI: http://azka.vn
Author: Son Vu
Author URI: http://azka.vn
Description: Azka Website
Version: 1.0
License: GNU General Public License v1 or later
Text Domain: Azka
*/

:root{
    --max-site-width: 1200px;
    --page-padding: 20px;
    --font-rob: "Roboto", Sans-serif;
    --color-main: #33965d;
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-rob);
    line-height: 1.4;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
    color: #333333;
    -webkit-text-size-adjust: 100%;
  }
  
  .site-container {
    max-width: var(--max-site-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    width: 100%;
  }
  
  img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-style: none;
    object-fit: cover;
  }
  
  ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  li {
    margin: 0;
    padding: 0;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }

/* =======================
        HEADER STYLE
======================= */
.site-header {
  background:#fff;
  border-bottom:1px solid #eee;
}
.site-header .container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1.5fr auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.menu {
  display: flex;
  gap: 24px;
  list-style: none;
}
.menu a {
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
}
.header-left,
.header-right { 
  position: relative; 
}

.header-icons {
  display:flex;
  gap:16px;
}
.header-icon {
  position:relative;
  font-size:18px;
}
.cart-count {
  position:absolute;
  top:-6px; right:-8px;
  background: var(--color-main);
  color:#fff;
  font-size:11px;
  padding:2px 6px;
  border-radius:50%;
}
.header-logo img {
  max-height: 60px;
}

/* ================= MOBILE MENU ================= */
.mobile-menu-toggle {
  display:none;
  background:none;
  border:none;
  cursor:pointer;
}
.mobile-menu-toggle span {
  display:block;
  width:26px;
  height:3px;
  background: #333333;
  margin:5px 0;
}

.mobile-menu-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  opacity:0;
  visibility:hidden;
  transition:.3s;
  z-index:999;
}

.mobile-menu {
  position:fixed;
  top:0; left:-300px;
  width:300px;
  height:100%;
  background:#fff;
  transition:.35s;
  z-index:1000;
  overflow-y:auto;
}
.mobile-menu.active { left:0; }
.mobile-menu-overlay.active {
  opacity:1;
  visibility:visible;
}

.mobile-menu-header {
  padding:15px;
  border-bottom:1px solid #eee;
}
.mobile-logo img {
  max-height:45px;
}
.mobile-icons {
  display:flex;
  gap:15px;
  margin-top:10px;
  position: relative;
}
.mobile-menu-close {
  position: absolute;
  right: 0;
}

/* ================= ACCORDION ================= */
.mobile-menu-list {
  list-style:none;
  margin:0;
  padding:0;
}
.mobile-menu-list li {
  border-bottom:1px solid #eee;
  position:relative;
}
.mobile-menu-list a {
  display:block;
  padding:12px 15px;
  color:#333333;
  font-weight:500;
  text-decoration:none;
}

.mobile-menu-list .menu-item-has-children > a {
  padding-right:40px;
}
.mobile-menu-list .submenu-toggle {
  position:absolute;
  right:15px;
  top:14px;
  font-size:16px;
  cursor:pointer;
  color: var(--color-main);
}

.mobile-menu-list ul {
  display:none;
  background:#f9f9f9;
}
.mobile-menu-list li.active > ul {
  display:block;
  padding-left: 15px;
}

/* =======================
        FOOTER STYLE
======================= */
.site-footer {
  background: #f6fff1;
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-text {
  margin-bottom: 15px;
}

.footer-notify,
.footer-payment {
  max-width: 180px !important;
  margin-top: 10px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-menu,
.footer-contact {
  list-style: none;
  padding: 0;
}

.tag-name-company {
  color: var(--color-main);
  font-size: 16px;
}

.footer-menu li,
.footer-contact li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-contact .hotline {
  font-weight: 700;
  color: var(--color-main);
}

.footer-bottom {
  background: var(--color-main);
  color: #fff;
  text-align: center;
  padding: 5px;
  margin-top: 40px;
  font-size: 12px;
  font-style: italic;
}

.woocommerce-breadcrumb {
  margin: 30px 0 !important;
  color: #767676;
  font-size: .92em;
}

.menu .sub-menu {
  position: absolute;
  top: 30px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  background: white;
  padding: 10px;
  border-radius: 5px;
  display: grid;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sub-menu a {
  font-weight: 400;
}

.menu li.open > .sub-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  z-index: 999;
}

.header-nav .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav .menu-item-has-children > a::after {
  content: "▾";
  font-size: 16px;
  transition: transform 0.3s ease;
  color: var(--color-main);
}

.header-nav .menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

/* SEARCH POPUP */
.search-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.search-popup.active {
  display: block;
}

.search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.search-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 92%;
  max-width: 520px;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: searchFade .25s ease;
}

.search-form input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  padding: 12px 16px;
  background: transparent;
}

.search-form button {
  border: 0;
  background: var(--color-main);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
}

.search-form button:hover {
  background: var(--color-main);
  transform: scale(1.05);
}

@keyframes searchFade {
  from {
      opacity: 0;
      transform: translate(-50%, -60%);
  }
  to {
      opacity: 1;
      transform: translate(-50%, -50%);
  }
}

.search-page {
  padding: 40px 0;
}

.search-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.search-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.search-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.search-thumb {
  display: block;
  overflow: hidden;
}

.search-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .3s ease;
}

.search-content {
  padding: 16px;
  flex: 1;
}

.search-title strong {
  color: var(--color-main);
  text-transform: uppercase;
}

.search-title-item {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.search-title-item a {
  color: #111;
  text-decoration: none;
}

.search-title-item a:hover {
  color: var(--color-main);
}

.search-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

/* =====================
   CATEGORY PAGE
   ===================== */

.category-header {
    margin-bottom: 32px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-description {
    color: #666;
    max-width: 800px;
    line-height: 1.7;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.post-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.post-content {
    padding: 16px;
    flex: 1;
}

.archive.tax-product_cat .post-content {
  text-align: center;
}

.archive.tax-product_cat .post-thumb {
  aspect-ratio: unset;
}

.post-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.post-title a:hover {
    color: var(--color-main);
}

.post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}