a.link-secondary-hover {
    color: #000;
    /* màu mặc định */
    text-decoration: none;
    transition: 0.3s;
}

a.link-secondary-hover:hover {
    color: var(--bs-secondary);
    /* màu secondary khi hover */
}

.nav-pills .nav-link {
    color: #343a40 !important;
}

.nav-pills .nav-link:focus,
.nav-pills .nav-link:hover {
    color: black !important;
}

body {
    /* font-family: 'Segoe UI', sans-serif; 
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;*/
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.hero {
    background: var(--bs-secondary-bg);
    padding: 80px 0;
    color: #222;
}

.category-box {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    background: #fff;
    min-height: 300px;
    padding: 120px 75px;
}

.category-box .mota {
    font-size: 2rem;
    background-color: white;
    border-radius: 7px;
    padding: 10px 20px;
    font-weight: 600;
}

.category-box img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.category-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.product-card {
    border-radius: 6px;
    text-align: center;
    min-height: 380px;

    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
    /* chừa chỗ cho button */
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.product-card:hover {
    /* border: 1px solid #eee; */
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}


.product-card .buy-btn {
    position: absolute;
    bottom: -50px;
    /* ẩn ra ngoài */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.product-card:hover .buy-btn {
    bottom: 10px;
    /* chạy lên trong card */
    opacity: 1;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;

    max-height: 274px;
}

.benefit-box {
    text-align: center;
    padding: 20px;
    background-color: #e9f5ff;
    border-radius: 6px;
}

footer {
    background: #343a40;
    color: #ccc;
    line-height: 2.2;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.navbar {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--bs-danger);
    color: #fff !important;
}

.hr-danger {
    border: none;
    /* bỏ mặc định */
    border-top: 5px solid var(--bs-danger);
    /* màu danger (Bootstrap danger = #dc3545) */
    width: 50px;
    /* chiều rộng */
    opacity: 1;
    /* fix màu nhạt */
}

.contact-form {
    width: 70%;
    max-width: 600px;
    /* để không bị quá rộng */
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cardnews .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.cardnews:hover .overlay {
    transform: scale(1);
    opacity: 1;
}

.cardnews2 .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    /* nhỏ trước */
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    /* nền trong suốt */
    color: white;
    padding: 20px;
    border-radius: 12px;
    /* bo góc cho đẹp */
    transition: all 0.3s ease-in-out;
    width: 90%;
    /* hoặc 60% tùy ảnh */
}

.cardnews2:hover .overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* zoom in */
}