﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


/* Tùy chỉnh Font */
body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fffbfd; /* Nền hồng siêu nhạt */
    margin-bottom: 60px;
}

/* Hiệu ứng Product Card */
.product-card {
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(244, 143, 177, 0.2) !important;
    }

/* Nút Add Cart chỉ hiện khi hover */
.add-cart-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .add-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Menu */
.hover-pink:hover {
    color: #d81b60 !important;
}

/* Category Card */
.category-card {
    cursor: pointer;
    transition: transform 0.2s;
}

    .category-card:hover {
        transform: scale(1.05);
    }
/* --- CSS DÙNG CHUNG CHO THẺ SẢN PHẨM --- */
.product-card {
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(233, 30, 99, 0.15) !important;
    }
        /* Hiệu ứng Zoom ảnh khi di chuột */
        .product-card:hover .card-img-top {
            transform: scale(1.08);
        }

/* Nút Giỏ hàng đặc biệt */
.btn-add-cart {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: #f8bbd0;
    color: #880e4f;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .btn-add-cart:hover {
        background-color: #ec407a;
        color: white;
        transform: scale(1.1);
    }

/* Giới hạn tên sản phẩm hiển thị 2 dòng */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Đảm bảo header luôn nổi lên trên cùng */
header {
    position: sticky;
    top: 0;
    z-index: 1050 !important; /* Số càng lớn càng nằm trên */
    background-color: #ffffff; /* Bắt buộc phải có màu nền để không bị nhìn xuyên thấu */
}