﻿.search-input {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    background: white;
}

.nav-tabs .nav-link {
    font-size: 0.95rem;
    padding: 10px 20px;
    color: #495057;
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    background: transparent;
    font-weight: 500;
}

/* DANH MỤC - SCROLL NGANG */
.category-container {
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.category-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* mượt trên iOS */
    scrollbar-width: none;
    /* ẩn scrollbar Firefox */
    -ms-overflow-style: none;
    /* ẩn scrollbar IE/Edge */
    cursor: grab;
    user-select: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.category-scroll.active {
    cursor: grabbing;
}

.category-scroll .nav {
    display: inline-flex;
    gap: 10px;
}

.category-scroll .nav-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    margin: 0;
    border-radius: 30px;
    background: #e9ecef;
    color: #495057;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-scroll .nav-link.active,
.category-scroll .nav-link:hover {
    background: var(--primary);
    color: white;
}

.product-item {
    background: white;
    border-bottom: 1px solid #eee;
}

.product-img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
}

.product-info {
    flex: 1;
    padding-left: 12px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

.product-desc {
    font-size: 0.85rem;
    color: #474747;
    margin-bottom: 4px;
}

.product-price {
    font-weight: 700;
    color: #e63946;
}

.quantity {
    display: flex;
    gap: 6px;
    align-items: center;
}

.qty {
    text-align: center;
    font-weight: 500;
    max-width: 68px;
    height: 30px !important;
}

#note-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

#note-area::before {
    content: "";
    width: 100vw;
    height: calc(100vh - 168px);
    background: #0000000f;
    position: fixed;
    top: 0;
    left: 0;
}

#cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 14px 15px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    z-index: 1040;
    max-width: 1632px !important;
}

.btn-qty {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-overlay {
    transition: opacity 0.3s ease;
}

#loading-overlay.d-none {
    opacity: 0;
    pointer-events: none;
}

#loading-overlay:not(.d-none) {
    opacity: 1;
    pointer-events: all;
}