@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Regular.woff2') format('woff2'),
}

body {
    font-family: 'Poppins', sans-serif;
}
:root {
    --primary-color: #FF90BD;   /* hồng chính */
    --primary-hover: #ff5c8a;   /* hover */
    --primary-light: #fff0f5;   /* nền nhạt */
    --text-color: #333;
    --secondary-color: #70BBFF;   /* xanh chính */
    --secondary-light: #eaf4ff;
}
.text-primary{
    color: var(--primary-color) !important;
}
.text-secondary{
    color: var(--secondary-color) !important;
}
.site-header {
    font-family: 'Poppins', sans-serif;
}

.site-logo span:first-child {
    color: #6bb6ff;
}

.site-logo span:last-child {
    color: #ff7aa2;
}

.main-navigation {
    background: #6bb6ff;
}

.main-navigation .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 15px;
}

.main-navigation .nav-link:hover {
    opacity: 0.8;
}
.header-top .search-form{
    position: relative;
}
.header-top .search-form .btn-search{
    position: absolute;
    right: 8px;
    border: none;
}
.header-top .search-form input{
    border: 1px #d6d6d6 dashed
}
.icon-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px dashed #d6d6d6;
    border-radius: 50%;
}

.icon-header:hover > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
}
.icon-heart{
    display: flex
}
.main-navigation > ul{
    margin: 0;
    padding: 0;
}
/* RESET */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* MENU LEVEL 1 */
.main-navigation > .container > ul {
    display: flex;
    justify-content: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 15px 18px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* HOVER */
.main-navigation ul li:hover > a {
    color: var(--primary-color); /* xanh lá */
}

/* SUB MENU (LEVEL 2) */
.main-navigation ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

/* HIỆN SUBMENU */
.main-navigation ul li:hover > .sub-menu {
    display: block;
}

/* ITEM SUBMENU */
.main-navigation ul li .sub-menu li a {
    padding: 10px 15px;
    color: #333;
}

/* HOVER SUBMENU */
.main-navigation ul li .sub-menu li a:hover {
    background: #f5f5f5;
}

/* LEVEL 3 (submenu trong submenu) */
.main-navigation ul li .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}
.main-navigation .nav {
    align-items: center;
}

.main-navigation .nav > li {
    position: relative;
}
.banner-slider img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.box {
    margin: 40px 0;
}

.box-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
     display: flex;
    justify-content: center;
    align-items: center;
}

.box-title {
    font-size: 30px;
    font-weight: 600;
    color: #385E80;
    margin: 0;
    font-family: 'Montserrat', sans-serif;

}
.category-card {
  --bg: #6bb6ff;
  --bg-hover: var(--primary-color);
  --radius: 16px;
  --padding: 20px;
  --icon-size: 50px;

  display: flex;
  align-items: center;
  gap: 15px;

  padding: var(--padding);
  background: var(--bg);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;

  position: relative;
  cursor: pointer;
  transition: 0.25s ease;
}

/* viền dashed reusable */
.category-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius) - 4px);
  border: 2px dashed rgba(255,255,255,0.6);
}

/* content */
.category-card img {
  width: var(--icon-size);
  height: var(--icon-size);
  z-index: 1;
}

.category-card span {
  z-index: 1;
  font-size: 16px;
}

/* hover */
.category-card:hover {
  background: var(--bg-hover);
  transform: translateY(-4px);
}

/* ===== VARIANTS (dùng lại nhiều chỗ) ===== */
.category-card.small {
  --padding: 12px;
  --icon-size: 35px;
  font-size: 14px;
}

.category-card.large {
  --padding: 30px;
  --icon-size: 70px;
  font-size: 20px;
}

/* đổi màu dễ dàng */
.category-card.green {
  --bg: #6cc090;
  --bg-hover: #58a87c;
}

.category-card.pink {
  --bg: #f78fb3;
  --bg-hover: #e06c93;
}

/* responsive */
@media (max-width: 768px) {
  .box-category {
    grid-template-columns: repeat(2, 1fr);
    padding: 15px;
  }
  .category-card {
  --bg: #6bb6ff;
  --bg-hover: var(--primary-color);
  --radius: 16px;
  --padding: 20px;
  --icon-size: 30px;

  display: flex;
  align-items: center;
  gap: 15px;

  padding: var(--padding);
  background: var(--bg);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;

  position: relative;
  cursor: pointer;
  transition: 0.25s ease;
}
.category-card span {
    z-index: 1;
    font-size: 11px;
}
.x-featured{
    padding: 15px !important;
}
.nav-pills .nav-link-custom {
    border-radius: 6px;
    color: #333;
    margin-right: 8px;
    font-size: 12px !important;
}
.category-title {
    font-size: 20px !important;
    font-weight: 700;
    color: #4b6b88;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-self: center !important;
}
}
.box-category{
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 992px) {
  .box-category {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .box-category {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .box-category {
    grid-template-columns: repeat(2, 1fr);
  }
}
a.category-card{
    text-decoration: none;
    color: #fff;
}
/* namespace cha để tăng specificity */
.x-featured {
  padding: 40px 0;
}

/* grid riêng */
.x-featured .x-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
  margin: auto;
}

/* card */
.x-featured .x-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

/* ảnh */
.x-featured .x-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* overlay */
.x-featured .x-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 1;
}

/* content */
.x-featured .x-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  color: #fff;
}

.x-featured .x-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.x-featured .x-content p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.x-featured .x-content a {
  font-size: 13px;
  color: #4da6ff;
  text-decoration: none;
  font-weight: 600;
}

/* hover */
.x-featured .x-card:hover img {
  transform: scale(1.08);
}

/* layout custom */
.x-featured .x-large {
  grid-row: span 2;
}

.x-featured .x-wide {
  grid-column: span 2;
}

/* responsive */
@media (max-width: 992px) {
  .x-featured .x-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .x-featured .x-wide {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .x-featured .x-grid {
    grid-template-columns: 1fr;
  }

  .x-featured .x-large,
  .x-featured .x-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* LEFT SIDE */
    .category-title {
      font-size: 32px;
      font-weight: 700;
      color: #4b6b88;
      font-family: 'Montserrat', sans-serif;
      display: flex;
      justify-self: end;
    }

    .category-banner {
      border-radius: 20px;
      overflow: hidden;
    }

    .category-banner img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* RIGHT SIDE */
    .nav-pills .nav-link {
      border-radius: 20px;
      color: #333;
      margin-right: 8px;
    }

    .nav-pills .nav-link.active {
      background-color: var(--primary-color);
      color: #fff;
    }

    .product-card {
      background: #fff;
      border-radius: 15px;
      padding: 12px;
      text-align: center;
      position: relative;
      transition: 0.3s;
      height: 100%;
    }
    .product-card a{
      text-decoration: none;
      color:#4b6b88
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .product-card img {
      width: 100%;
      border-radius: 10px;
    }

    .product-name {
      font-size: 14px;
      margin: 10px 0 5px;
      text-align: left;
    }

    .price {
      color: #4aa3ff;
      font-weight: bold;
    }

    .old-price {
      text-decoration: line-through;
      color: #aaa;
      margin-right: 5px;
      font-size: 13px;
    }

    .badge-sale {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #ff6b81;
      color: white;
      padding: 3px 8px;
      border-radius: 10px;
      font-size: 12px;
    }
    .nav-pills .nav-link-custom {
    border-radius: 6px;
    color: #333;
    margin-right: 8px;
}
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-card a {
    text-decoration: none;
    color: #222;
    display: block;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Content */
.news-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    padding: 12px 14px 6px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.news-author {
    font-size: 13px;
    color: #777;
    padding: 0 14px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hover title */
.news-card:hover .news-name {
    color: #4da6ff;
}
.site-footer {
    background: var(--secondary-color);
    color: #ddd;
    font-size: 14px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
}

.footer-desc {
    color: #fff;
    line-height: 1.6;
}

.footer-menu,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-social {
    margin-top: 10px;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
}

.footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 15px;
    color: #fff;
}