/* --- TÁI CẤU TRÚC HỆ THỐNG & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Đảm bảo mọi container lớn đều thẳng hàng ở giữa */
    gap: 30px; /* Tạo khoảng cách thông thoáng giữa Header và Body */
}

/* Khung chứa toàn bộ Header */
.header-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: 8px;
    overflow: hidden;
}

/* --- 1. TOP BAR (Thanh màu đen phía trên) --- */
.top-bar {
    background-color: #1a1a1a;
    color: #b3b3b3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.hotline {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hotline i {
    color: #ff3333;
    font-size: 14px;
    line-height: 1;
}
.hotline strong {
    color: #ff3333;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right span strong {
    color: #fff;
}

/* --- 2. MAIN HEADER (Thanh màu xanh lá phía dưới) --- */
.main-header {
    background-color: #008848;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hàng phía trên của Main Header */
.main-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Logo Bach Hoa Xanh */
.logo-box {
    background-color: #ffbe00;
    color: #008848;
    font-weight: bold;
    font-size: 22px;
    padding: 10px 20px;
    border-radius: 12px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Thanh tìm kiếm */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.search-box .search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: #008848;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border: 2px solid #008848;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Các nút bên phải */
.header-buttons {
    display: flex;
    gap: 10px;
}

.btn-yellow {
    background-color: #ffbe00;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-yellow:hover {
    background-color: #e5ab00;
}

/* Hàng phía dưới của Main Header */
.main-header-bottom {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Nút danh mục sản phẩm */
.category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

.category-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 18px;
    height: 18px;
}

.category-icon span {
    background-color: #fff;
    border-radius: 1px;
}

/* Các icon tiện ích */
.header-icons {
    display: flex;
    gap: 25px;
    color: #fff;
    font-size: 22px;
}

.icon-item {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    width: 22px;
    height: 22px;
}

.icon-item:hover {
    transform: scale(1.1);
}

.phone-icon {
    position: relative;
    width: 14px;
    height: 14px;
}

/* --- 11. DROPDOWN MENU DANH MỤC SẢN PHẨM --- */
.category-dropdown-wrapper {
    position: relative;
    /* Tăng z-index của toàn bộ khối bọc để nó có quyền ưu tiên cao hơn các vùng dưới */
    z-index: 9999;
    
}

.category-toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-container, 
.main-header, 
.main-header-bottom {
    overflow: visible !important;   /* Cho phép các phần tử con tràn tự do ra ngoài */
    position: relative;            /* Giữ đúng vị trí tọa độ gốc */
}

/* Khung bao ngoài danh sách menu thả xuống */
.dropdown-menu-list {
    position: absolute;
    top: 105%;
    left: 0;
    width: 240px;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 12px;
    list-style: none;
    margin: 0;
    
    /* Đảm bảo danh sách này nhận quyền ưu tiên tuyệt đối để nổi lên trên */
    z-index: 10000; 
    
    /* Các thuộc tính giữ nguyên như cũ */
    display: none; 
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); /* Tăng bóng đổ cho menu nổi bật hơn */
}

/* Trạng thái hiển thị khi được kích hoạt lớp .show bằng JS */
.dropdown-menu-list.show {
    display: block;
}

/* Định dạng từng dòng danh mục (Dạng viên thuốc bo góc trắng) */
.dropdown-item {
    background-color: #ffffff;
    margin-bottom: 6px;
    border-radius: 10px; /* Bo góc tròn mịn cho từng item */
    transition: transform 0.1s ease, background-color 0.2s;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item a {
    display: block;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* Hiệu ứng khi di chuột qua hoặc danh mục đang active */
.dropdown-item:hover {
    background-color: #e6f7ed; /* Đổi màu nền nhẹ khi tương tác */
    transform: translateX(4px); /* Nhấp nhô nhẹ sang phải */
}

.dropdown-item.active {
    box-shadow: inset 0 0 0 2px #008848; /* Highlight mục Trang Chủ nếu thích */
}

/* Tùy biến thanh cuộn scrollbar siêu mảnh bên trong menu */
.dropdown-menu-list::-webkit-scrollbar {
    width: 5px;
}
.dropdown-menu-list::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 4px;
}









/* --- 12. CSS CHO TRANG DANH MỤC MỚI (V2) --- */
.category-page-main {
    width: 100%;
    padding: 20px 0;
}

.category-page-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px; /* Khoảng cách giữa cột menu trái và khối sản phẩm phải */
    align-items: flex-start;
}

/* --- CỘT TRÁI - MENU DỌC MÀU VÀNG --- */
.category-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    background-color: #ffc107; /* Màu vàng đậm theo ảnh */
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    transition: all 0.2s ease;
}

.sidebar-item a {
    display: block;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* Khi hover hoặc danh mục đang được chọn */
.sidebar-item:hover, .sidebar-item.active {
    background-color: #e0a800; 
    transform: scale(1.02);
}

/* --- KHỐI PHẢI - KHUNG XANH NGỌC & SẢN PHẨM --- */
.category-content-v2 {
    flex-grow: 1;
    background-color: #4edca4; /* Màu nền xanh ngọc đặc trưng */
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

/* Lưới sản phẩm: Chia làm 4 cột */
.products-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Đổi thành 4 cột cho vừa form dọc */
    gap: 15px;
}

.product-click-link { cursor: pointer; }

/* Từng thẻ sản phẩm nhỏ */
.card-item-v2 {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
    height: 280px;
}

.card-img-v2 {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img-v2 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-info-v2 {
    margin-top: 8px;
}

.card-title-v2 {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.card-price-current-v2 {
    font-size: 14px;
    color: #ff0000;
    font-weight: bold;
    margin-top: 6px;
}

.card-price-old-v2 {
    font-size: 11px;
    color: #888888;
    text-decoration: line-through;
    margin-top: 2px;
}

/* Nút thêm vào giỏ hàng hình tròn có dấu cộng màu đỏ ở góc dưới */
.card-btn-cart-v2 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-color: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23ff0000" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.card-btn-cart-v2:hover {
    transform: scale(1.15);
}









/* --- 10. CSS CHO PHẦN FOOTER CUỐI TRANG --- */
.main-footer {
    width: 100%;
    max-width: 1200px;
    height: auto;
    background-color: #1a1a1a; /* Nền xám đen đậm theo ảnh mẫu */
    color: #ffffff;
    padding: 40px 0 20px 0;
    font-family: Arial, sans-serif;
    margin-top: 40px;
}

.footer-container {
    width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hàng 1: Các dịch vụ hỗ trợ */
.footer-services-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 18%;
    text-align: center;
}

/* Tạo các icon tròn rỗng bằng CSS SVG tạm thời để đỡ phải cắt ảnh */
.service-icon {
    width: 44px;
    height: 44px;
    border: 2px solid #555555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}

/* Thêm icon tượng trưng từ URL mã hóa */
.icon-help { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>'); }
.icon-check { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/></svg>'); }
.icon-refresh { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 1121.21 15.89M9 11l3-3 3 3m-3-3v12"/></svg>'); }
.icon-return { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"/></svg>'); }
.icon-member { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg>'); }

.service-text {
    font-size: 13px;
    color: #ff5c5c; /* Màu chữ cam đỏ đặc trưng trên tiêu đề icon */
    font-weight: bold;
}


/* Hàng 2: Bố cục cột chữ */
.footer-links-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-column {
    width: 30%;
}

.footer-column h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a, .footer-column p a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover, .footer-column p a:hover {
    color: #ffffff;
}

.column-contact p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.column-contact strong {
    color: #ffffff;
}

.footer-email {
    color: #4da6ff !important; /* Màu xanh link email sinh viên trường bạn */
}

/* Hàng 3: Khung bản quyền & tem kiểm định */
.footer-bottom-row {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-company-info h4 {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-company-info p {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
    margin: 3px 0;
}

/* Khối chứa logo Bộ công thương và DMCA */
.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-bct {
    height: 40px;
    object-fit: contain;
}

.badge-dmca {
    height: 24px;
    object-fit: contain;
}

.footer-badges img {
    padding-right: 25px ;
}on-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Phần nội dung chữ (HSD & Chi tiết) bên dưới logo */
.coupon-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-hsd {
    font-size: 11px;
    font-weight: bold;
    color: #1a1a1a;
}

.coupon-desc {
    font-size: 11px;
    color: #333;
    line-height: 1.3;
}









/* --- 6. PRODUCT SLIDER CONTAINER (Danh sách 15 sản phẩm dịch chuyển) --- */
.product_slider_container {
    width: 1180px;
    background-color: #26d07d; /* Nền xanh sáng đồng bộ */
    border-radius: 15px;
    padding: 25px 15px;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Khung viewport ẩn các phần tử thừa bên ngoài */
.slider-viewport {
    width: 1060px; /* Bằng khít tổng độ rộng của 5 sản phẩm + gap (200*5 + 15*4) */
    margin: 0 auto;
    overflow: hidden;
}

/* Thanh chứa toàn bộ 15 sản phẩm tịnh tiến */
.slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Hiệu ứng lướt mượt mà */
    width: max-content;
}

/* Định dạng từng thẻ sản phẩm độc lập */
.prod-card-item {
    width: 200px;
    height: 300px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0; /* Không cho trình duyệt tự bóp nhỏ kích thước card */
}

/* Khung chứa ảnh sản phẩm ở nửa trên */
.prod-card-img {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.prod-card-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Nhãn % giảm giá góc phải ảnh */
.prod-card-discount {
    position: absolute;
    right: 0;
    bottom: 5px;
    background-color: #4a3e1d;
    color: #ffbe00;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Khung thông tin nửa dưới (Tên, giá, nút mua) */
.prod-card-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    flex-grow: 1;
}

.prod-card-title {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.prod-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.prod-card-prices {
    display: flex;
    flex-direction: column;
}

.prod-card-price-current {
    color: #ff0000;
    font-size: 15px;
    font-weight: bold;
}

.prod-card-price-old {
    color: #999999;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 2px;
}

/* Nút thêm vào giỏ hàng hình tròn đen có icon cộng */
.prod-card-btn-cart {
    width: 34px;
    height: 34px;
    background-color: #000000;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.prod-card-btn-cart:hover {
    transform: scale(1.1);
}

/* Tạo biểu tượng giỏ hàng và dấu cộng bằng CSS */
.prod-card-btn-cart::before {
    content: '';
    width: 14px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"/></svg>') no-repeat center;
    display: block;
}

.prod-card-btn-cart::after {
    content: '+';
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 2px;
    right: 4px;
}

/* Các nút điều hướng mũi tên Trái - Phải hình tam giác vàng */
.slider-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    background: none;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: opacity 0.2s;
}

.slider-arrow-left {
    left: 20px;
    border-width: 18px 25px 18px 0;
    border-color: transparent #ffbe00 transparent transparent; /* Tam giác hướng trái */
}

.slider-arrow-right {
    right: 20px;
    border-width: 18px 0 18px 25px;
    border-color: transparent transparent transparent #ffbe00; /* Tam giác hướng phải */
}

.slider-arrow:disabled {
    opacity: 0.3; /* Mờ đi khi không thể bấm được nữa */
    cursor: not-allowed;
}








/* --- 8. FLASH SALE CONTAINER --- */
.flashsale_container {
    width: 1180px;
    background-color: #26d07d; /* Nền xanh sáng chuẩn mẫu */
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Thanh Header màu đỏ */
.flashsale-header {
    background-color: #ff0000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
}

.fs-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
}

.fs-icon {
    color: #ffbe00;
    font-size: 22px;
}

/* Cụm thời gian đếm ngược */
.fs-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ô số đen */
.countdown-timer span:not(.colon) {
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 32px;
    text-align: center;
    display: inline-block;
}

.countdown-timer .colon {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
}

/* Khu vực 2 nút chuyển danh mục */
.flashsale-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.fs-tab-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 10px 40px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.fs-tab-btn.active {
    background-color: #1a1a1a;
    box-shadow: inset 0 0 0 2px #ffbe00; /* Nút active có thể nhấn nhẹ */
}

/* Danh sách sản phẩm dạng Flex */
.flashsale-products {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

/* Khung sản phẩm */
.fs-card-item {
    width: 210px;
    height: 300px;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.2s;
}

.fs-card-item:hover {
    transform: translateY(-3px);
}

.fs-card-img {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fs-card-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.fs-card-discount {
    position: absolute;
    right: 0;
    bottom: 5px;
    background-color: #4a3e1d;
    color: #ffbe00;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.fs-card-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    flex-grow: 1;
}

.fs-card-title {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: bold;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.fs-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.fs-card-prices {
    display: flex;
    flex-direction: column;
}

.fs-card-price-current {
    color: #ff0000;
    font-size: 15px;
    font-weight: bold;
}

.fs-card-price-old {
    color: #999999;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 2px;
}

/* Nút thêm giỏ hàng */
.fs-card-btn-cart {
    width: 34px;
    height: 34px;
    background-color: #000000;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.fs-card-btn-cart::before {
    content: '';
    width: 14px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"/></svg>') no-repeat center;
    display: block;
}

.fs-card-btn-cart::after {
    content: '+';
    color: #ff4d4d;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 0px;
    right: 3px;
}










/* --- 9. CATEGORY GRID CONTAINER (Lưới sản phẩm phân loại lớn) --- */
.category_grid_container {
    width: 1180px;
    background-color: #26d07d; /* Nền xanh sáng đặc trưng */
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Thanh Header chứa các nút Tab hình viên thuốc */
.category-tabs-header {
    background-color: #008848; /* Viền thanh màu xanh đậm */
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Khung bọc các nút Tab ở giữa */
.tab-buttons-wrapper {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    justify-content: space-around;
    padding: 0 10px;
}

/* Định dạng từng nút Tab */
.tab-item-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    font-size: 15px;
    font-weight: bold;
    font-style: italic;
    padding: 8px 25px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    transition: all 0.2s;
}

/* Khi tab được nhấn chọn (Active) */
.tab-item-btn.active, .tab-item-btn:hover {
    background-color: #008848;
    color: #ffffff;
    box-shadow: 0 0 0 2px #ffffff; /* Tạo viền trắng bao quanh nút khi active */
}

/* Mũi tên điều hướng dạng tam giác hai đầu thanh Tab */
.tab-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    background: none;
    cursor: pointer;
}

.tab-arrow-left {
    border-width: 10px 15px 10px 0;
    border-color: transparent #ffbe00 transparent transparent; /* Mũi tên vàng hướng trái */
}

.tab-arrow-right {
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #ffbe00; /* Mũi tên vàng hướng phải */
}

/* Khung lưới Grid chia chuẩn 4 hàng x 5 cột */
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột bằng nhau */
    gap: 18px 15px; /* Khoảng cách hàng 18px, cột 15px */
    width: 100%;
}

/* Thẻ card sản phẩm độc lập */
.cate-card-item {
    background-color: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 275px; /* Chiều cao vừa vặn cho danh sách lưới lớn */
    box-sizing: border-box;
    transition: transform 0.2s;
}

.cate-card-item:hover {
    transform: translateY(-3px);
}

.cate-card-img {
    width: 100%;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cate-card-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.cate-card-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    flex-grow: 1;
}

.cate-card-title {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px; /* Tăng nhẹ chiều cao vùng chữ */
}

.cate-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cate-card-prices {
    display: flex;
    flex-direction: column;
}

.cate-card-price-current {
    color: #ff0000;
    font-size: 14px;
    font-weight: bold;
}

.cate-card-price-old {
    color: #999999;
    font-size: 11px;
    text-decoration: line-through;
}

/* Nút thêm vào giỏ hàng tròn đen cộng đỏ */
.cate-card-btn-cart {
    width: 30px;
    height: 30px;
    background-color: #000000;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.cate-card-btn-cart::before {
    content: '';
    width: 12px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"/></svg>') no-repeat center;
    display: block;
}

.cate-card-btn-cart::after {
    content: '+';
    color: #ff4d4d;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: -1px;
    right: 2px;
}










/* --- 10. CSS CHO PHẦN FOOTER CUỐI TRANG --- */
.main-footer {
    width: 100%;
    height: auto;
    background-color: #1a1a1a; /* Nền xám đen đậm theo ảnh mẫu */
    color: #ffffff;
    padding: 40px 0 20px 0;
    font-family: Arial, sans-serif;
    margin-top: 40px;
}

.footer-container {
    width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hàng 1: Các dịch vụ hỗ trợ */
.footer-services-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 18%;
    text-align: center;
}

/* Tạo các icon tròn rỗng bằng CSS SVG tạm thời để đỡ phải cắt ảnh */
.service-icon {
    width: 44px;
    height: 44px;
    border: 2px solid #555555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}

/* Thêm icon tượng trưng từ URL mã hóa */
.icon-help { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>'); }
.icon-check { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/></svg>'); }
.icon-refresh { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 1121.21 15.89M9 11l3-3 3 3m-3-3v12"/></svg>'); }
.icon-return { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"/></svg>'); }
.icon-member { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23888"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg>'); }

.service-text {
    font-size: 13px;
    color: #ff5c5c; /* Màu chữ cam đỏ đặc trưng trên tiêu đề icon */
    font-weight: bold;
}


/* Hàng 2: Bố cục cột chữ */
.footer-links-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-column {
    width: 30%;
}

.footer-column h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a, .footer-column p a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover, .footer-column p a:hover {
    color: #ffffff;
}

.column-contact p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.column-contact strong {
    color: #ffffff;
}

.footer-email {
    color: #4da6ff !important; /* Màu xanh link email sinh viên trường bạn */
}

/* Hàng 3: Khung bản quyền & tem kiểm định */
.footer-bottom-row {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-company-info h4 {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-company-info p {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
    margin: 3px 0;
}

/* Khối chứa logo Bộ công thương và DMCA */
.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-bct {
    height: 40px;
    object-fit: contain;
}

.badge-dmca {
    height: 24px;
    object-fit: contain;
}

.footer-badges img {
    padding-right: 25px ;
}