.profile-pic-container{
    position: relative;
    display: inline-block;
}

.profile-pic{
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ddd;
    cursor: pointer;
}

.action-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
    width: auto !important;
    line-height: 1.2;
    border-radius: 20px !important;
    border: none;
    font-weight: 500;
}

/* Hover cho đẹp hơn */
.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: 0.2s;
}

/* Reset table cho gọn */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* Header */
.table th {
    text-align: left;
    padding: 14px 12px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

/* Body */
.table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Không cho chữ dính */
.table td {
    word-break: break-word;
}

/* Fix từng cột */
.table th:nth-child(1), .table td:nth-child(1) { width: 10%; }
.table th:nth-child(2), .table td:nth-child(2) { width: 30%; }
.table th:nth-child(3), .table td:nth-child(3) { width: 20%; }
.table th:nth-child(4), .table td:nth-child(4) { width: 15%; }
.table th:nth-child(5), .table td:nth-child(5) { width: 10%; }
.table th:nth-child(6), .table td:nth-child(6) { width: 15%; }

/* Thành phố + SĐT không dính nhau */
.table td:nth-child(3),
.table td:nth-child(4) {
    white-space: nowrap;
}

/* Nút hành động */
.table td:nth-child(6) {
    white-space: nowrap;
}

/* Fix cụm nút */
.table td:nth-child(6) div {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.table-responsive {
    overflow-x: auto;
}

.category-filter.active {
    color: var(--ltn__secondary-color);
    font-weight: bold;
    text-decoration: underline; 
}

/* custom loding spinner */
#loading-spinner{
    display: flex;
    align-items: center;
    justify-self: center;
    display: none;
}

.loader{
    width: 128px;
    height: 128px;
    border: 5px solid;
    border-color: var(--ltn__secondary-color) transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation{
    0%{
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*Checkout */
.select-address{
    display:flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    
}

.shoping-cart-total table td:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.ltn__commenter-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}



/* Tạo khoảng cách giữa các khối Card thanh toán */
.ltn__checkout-payment-method .card {
    margin-bottom: 15px !important; /* Khoảng cách giữa các ô */
    border: 1px solid #e5e5e5 !important; /* Đảm bảo có viền */
    padding: 5px 0; /* Thêm chút đệm bên trong */
}

/* Đảm bảo nút radio và chữ thẳng hàng tuyệt đối */
.ltn__card-title {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0;
    padding: 15px 20px !important;
}

.ltn__card-title input[type="radio"] {
    margin-top: 0 !important;
    margin-right: 15px !important; /* Khoảng cách từ nút tròn đến chữ */
    width: 18px !important;
    height: 18px !important;
}

.ltn__card-title label {
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
}

/* Tìm class chứa ảnh sản phẩm của bạn và áp dụng */
.ltn__product-item .product-img img {
    width: 100%;
    height: 250px; /* Độ cao cố định bạn muốn hiển thị */
    object-fit: cover; /* Giữ nguyên tỉ lệ ảnh, không bị méo. Nếu muốn ảnh tràn khung thì dùng 'cover' */
    background-color: #f5f5f5; /* Tạo nền cho những ảnh nhỏ hơn khung */
}

/* Đảm bảo tiêu đề sản phẩm luôn có độ cao bằng nhau */
.ltn__product-item .product-info h6 {
    min-height: 45px; /* Giúp các tên sản phẩm dài 2 dòng không đẩy giá xuống thấp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ltn__product-item ltn__product-item-3 img {
    width: 100%;
    height: 250px; /* Độ cao cố định bạn muốn hiển thị */
    object-fit: cover; /* Giữ nguyên tỉ lệ ảnh, không bị méo. Nếu muốn ảnh tràn khung thì dùng 'cover' */
    background-color: #f5f5f5; /* Tạo nền cho những ảnh nhỏ hơn khung */
}

/* Làm mờ khung sản phẩm */
.product-out-of-stock .product-img img {
    filter: grayscale(100%) opacity(0.6);
}

/* Hiển thị chữ Hết hàng đè lên ảnh */
.product-out-of-stock .product-img::after {
    content: "HẾT HÀNG";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

/* Vô hiệu hóa hành động khi di chuột vào nút cart của sp hết hàng */
.product-out-of-stock .add-to-cart-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.product-out-of-stock img{
    filter: grayscale(80%) opacity(0.7);
}

/* Search*/
#voice-search{
    position: absolute;
    right: 50px;
    text-align: center;
    top: 20px;
}

    

