:root {
    --ginka-green: #b8e6c1; /* xanh lá nhạt chủ đạo */
    --ginka-green-2: #dff4e4; /* nền nhẹ */
    --ginka-green-3: #79c48c; /* điểm nhấn */
    --ginka-green-4: #12c06b; /* text green*/
    --text-dark: #19402a;
}
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
        sans-serif;
    background: #f6fbf7;
    color: #213b2d;
}
a {
    color: #206a43;
    text-decoration: none;
}
a:hover {
    color: #144a2d;
}

/* Top header */
.top-header {
    background: var(--ginka-green);
    color: #0f3a25;
}
.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
}
.top-header .slogan {
    font-weight: 600;
}
.btn-cta {
    background: var(--ginka-green-3);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-cta:hover {
    background: #5aa673;
    color: #fff;
}

/* Navbar */
.navbar {
    background: var(--ginka-green-2);
}
.navbar .navbar-brand {
    font-weight: 700;
    color: #144a2d;
}
.navbar .nav-link {
    color: #19402a;
}
.navbar .nav-link:hover {
    color: #0f3a25;
}

/* Swiper banner */
.banner-swiper {
    width: 100%;
    height: auto;
}
.banner-swiper .swiper-slide {
    background: #eaf7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.banner-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
section {
    padding: 64px 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #144a2d;
    margin-bottom: 1.5rem;
}
.section-subtitle {
    color: #456a57;
    margin-bottom: 2rem;
}

/* Product intro cards */
.intro-card {
    background: #fff;
    border: 1px solid #e1f2e6;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(25, 64, 42, 0.08);
}
.intro-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.intro-card .content {
    padding: 16px;
}
/* Featured products swiper */
.featured-swiper {
    padding: 8px;
}
.product-card {
    background: #fff;
    border: 1px solid #e1f2e6;
    border-radius: 14px;
    overflow: hidden;
}
.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.product-card .info {
    padding: 12px;
}
.price {
    color: #0f3a25;
    font-weight: 700;
}
.badge-eco {
    background: #d9f5e1;
    color: #19402a;
    border: 1px solid #bfead0;
}

/* Promo & knowledge cards */
.grid-card {
    background: #fff;
    border: 1px solid #e1f2e6;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
}
.grid-card img {
    width: 100%;
    /* height: auto; */
    object-fit: cover;
}
.grid-card .body {
    padding: 14px;
}
.grid-card .title {
    font-weight: 600;
    color: #144a2d;
}
.grid-card .excerpt {
    color: #456a57;
}
.reduce-price{
    font-size:12px;
    color:#0f3a25;
    background: #e9f5ff;
    padding:4px;
    font-weight: 500;
}
/* Contact */
.contact-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
}
.phone-hero {
    font-size: 2rem;
    font-weight: 800;
    color: #0f3a25;
}
.email-input .form-control {
    border: 1px solid #bfead0;
}
.btn-hot {
    background-color: #ff6b35;
    color: #fff;
    font-weight: 600;
    border: none;
}
.btn-hot:hover {
    background-color: #e85c2f;
    color: #fff;
}
/* Footer */
footer {
    background: #eaf7ef;
    color: #19402a;
}
.footer-title {
    font-weight: 700;
    color: #144a2d;
    margin-bottom: 12px;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li {
    margin-bottom: 8px;
}
.social i {
    font-size: 20px;
    margin-right: 10px;
    color: #144a2d;
}
.social i:hover {
    color: #0f3a25;
}
.copyright {
    border-top: 1px solid #d7eadf;
    padding: 16px 0;
    color: #456a57;
}

/* Cart dropdown width */
.cart-dropdown {
    min-width: 280px;
}

.section-gradient-green {
    background: linear-gradient(180deg, #eaf7ef 0%, #f6fbf7 100%);
}

.section-gradient-gray {
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
}

.section-gradient-blue {
    background: linear-gradient(180deg, #e8f7f6 0%, #f6fbf7 100%);
}

/* Pagination */
.pagination .page-link {
    color: #144a2d;
}
.pagination .page-link:hover {
    background: #79c48c;
    color: #fff;
}

/*Cart*/
.cart-table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.cart-summary h5 {
    font-weight: 700;
    color: #144a2d;
}

.cart-summary .total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f3a25;
}

.btn-checkout {
    background: #ff6b35;
    color: #fff;
    font-weight: 700;
    border: none;
    width: 100%;
}

.btn-checkout:hover {
    background: #e85c2f;
    color: #fff;
}

.btn-continue {
    background: #79c48c;
    color: #fff;
    font-weight: 700;
    border: none;
    width: 100%;
}

.btn-continue:hover {
    background: #5aa673;
    color: #fff;
}

/* Thêm khoảng trống dưới nội dung để không bị che */
.cart-section {
    padding-bottom: 100px;
    /* đủ để tránh bị che bởi block mobile */
}

/* Block mobile */
.cart-summary-mobile {
    display: none;
}

.variant-item {
    font-size: 80%;
    padding: 5px 5px 5px 0;
    background: #f9f9f9;
}

.variant-item input {
    width: 50px;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .cart-summary {
        display: none;
    }

    .cart-summary-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: #fff;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        padding: 10px 16px;
        z-index: 999;
    }

    .cart-summary-mobile .total {
        font-weight: 700;
        color: #0f3a25;
    }

    .cart-summary-mobile .btn-sm {
        font-size: 0.85rem;
    }

    #clearCartMobile {
        width: auto;
        padding: 6px 10px;
    }
}

.checkout-section {
    padding: 30px 0;
}

.cart-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #144a2d;
}

.checkout-form h5 {
    font-weight: 700;
    color: #144a2d;
    margin-bottom: 20px;
}

.btn-submit {
    background: #ff6b35;
    color: #fff;
    font-weight: 700;
    border: none;
}

.btn-submit:hover {
    background: #e85c2f;
    color: #fff;
}

.bank-info {
    display: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    background: #fff;
}

.bank-info img {
    max-width: 200px;
    margin-right: 10px;
}

#ajax-loading-bg{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999999;
}
.icon-social {
    height: 21.3px;
    color: inherit; /* mặc định đen */
}
.icon-social.text-primary { color: #0d6efd; } /* xanh Bootstrap */
.icon-social.text-danger { color: #dc3545; }  /* đỏ Bootstrap */

.language-menu {
  position: relative;
  z-index:9999;
  /* top: 20px; */
  /* right: 20px; */
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.lang-btn img {
  width: 24px;
  height: 24px;
}

.lang-text {
  margin-left: 8px;
}

.lang-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 5px;
  background: #fff;
  border: 1px solid #ccc;
  position: absolute;
  right: 0;
  width:150px;
}

.lang-list li {
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s, transform 0.2s;
  border-radius: 4px;
}

/* Hover: đổi màu nền và hơi phóng to */
.lang-list li:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Active: khi click giữ chuột */
.lang-list li:active {
  background-color: #e0e0e0;
  transform: scale(0.95);
}

.lang-list li img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.lang-list li:hover img {
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

/* Mobile: chỉ hiện cờ */
@media (max-width: 768px) {
  .lang-text {
    display: none;
  }
}
