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%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.card-hover {
    position: relative;
    overflow: hidden;
}

    .card-hover img {
        width: 100%;
        height: 250px; 
        object-fit: cover; 
        transition: transform 0.3s ease;
    }

    .card-hover:hover img {
        transform: scale(1.05);
    }

    .card-hover .card-desc {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; 
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 15px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        transform: translateY(100%); 
        transition: transform 0.3s ease;
        font-size: 0.9rem;
        overflow-wrap: break-word;
    }

    .card-hover:hover .card-desc {
        transform: translateY(0);
        pointer-events: none;
    }

/* BookByCategory */

.book-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform .25s ease;
    border: 1px solid #eee;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Badge HOT */
.book-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff5722;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
}

/* Icon ? */
.favorite-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    color: #ff4d4f;
    text-shadow: 0 0 3px #fff;
    z-index: 5;
}

/* Overlay Shopee */
.book-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .35s ease;
    pointer-events: none; /* ? Không ch?n click */
}

.book-card:hover .book-overlay {
    bottom: 0;
}

/* Tên sách */
.book-title {
    font-size: 16px;
    height: 44px;
    overflow: hidden;
    line-height: 1.2;
}

/* Nút Shopee */
.btn-shopee {
    background: linear-gradient(90deg, #ff5722, #ff4400);
    border: none;
    padding: 6px 0;
    font-weight: 600;
    border-radius: 6px;
}

    .btn-shopee:hover {
        opacity: .85;
        color: #fff;
    }

/* ? Cho nút m??n ???c click bình th??ng */
.btn-shopee {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}
