.editor-form-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
    padding-bottom: 0px;
}
.editor-form-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #005a9a;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}
.editor-form-container label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #444;
}
.editor-form-container input[type="text"],
.editor-form-container textarea,
.editor-form-container select{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    background: #f9f9f9;
    height: 50px;
}
.editor-form-container input[type="file"] {
    padding: 8px 0;
}
.poster-settings input.editor-btn.primary{
    background: #0073aa;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}
.editor-form-container input[type="submit"]:hover {
    background: #005b8d;
}

/* Wrapper */
.post-featured-wrapper {
    margin-bottom: 20px;
}

/* Khung vuông hiển thị */
.post-featured-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #cdd4dc;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    position: relative;
    margin-bottom: 20px;
}

/* Hover đẹp */
.post-featured-box:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

/* Placeholder khi chưa có ảnh */
.upload-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.upload-placeholder .upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

/* Ảnh hiển thị bên trong */
.post-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* ==============================
   CSS: Hồ sơ Biên tập viên + Form đăng nhập (Responsive)
   File: editor-profile.css
   ============================== */

/* --- Giao diện trang hồ sơ --- */
.editor-profile {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 30px 0 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}
.editor-info p strong {
    color: #0e62a7;
}
.editor-info {
    border-bottom: 0.5px solid #2271b166;
    padding: 10px;
    margin-bottom: 10px;
}
.editor-avatar-box {
    display: flex;
    gap: 23px;
    align-items: center;
    margin-bottom: 20px;
}

.editor-avatar-box {
    flex-shrink: 0;
}

.editor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px #e0e0e0;
}

.editor-avatar-box h2 {
    font-size: 26px;
    margin: 0 0 8px 0;
    color: #222;
}

.editor-info p {
    margin-bottom: 0px;
}
.editor-actions a.editor-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.link-url{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
}
.link-url button#copy-vendor-url {
    background: #2271b1;
    color: #fff;
    border-color: #1c5a8a;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.3s ease;
    min-width: fit-content;
}
.editor-btn.danger {
    background-color: #e74c3c;
    color: #fff;
}

.editor-btn.danger:hover {
    background-color: #c0392b;
}

.post-title {
    width: 60%;
}

.post-list-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #444;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin-left: 0em !important;
}

.post-item:hover {
    background: #eef6ff;
}

.post-title strong {
    font-weight: 600;
    color: #222;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.status {
    font-size: 13px;
    color: #888;
}

.post-title .status-publish { color: green; }
.post-title .status-pending { color: orange; }
.post-title .status-draft   { color: gray; }

.edit-link {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    margin-top: 10px;
}

.edit-link:hover {
    text-decoration: underline;
}

/* --- Giao diện form đăng nhập --- */
.editor-login-form {
    max-width: 450px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.editor-login-form h2 {
    font-size: 24px;
    color: #0078c1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.editor-login-form form {
    text-align: left;
}

.editor-login-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #444;
}

.editor-login-form input[type="text"],
.editor-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 15px;
}

.editor-login-form input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.editor-login-form input[type="submit"]:hover {
    background: #005177;
}

.login-error {
    background: #ffe6e6;
    color: #d8000c;
    padding: 10px 15px;
    border: 1px solid #d8000c;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- Responsive --- */
@media screen and (max-width: 600px) {
    .editor-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-avatar {
        width: 80px;
        height: 80px;
    }

    .editor-info h2 {
        font-size: 22px;
    }

    .editor-actions a.editor-btn {
        display: block;
        margin-bottom: 10px;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .edit-link {
        margin-left: 0;
    }

    .editor-login-form {
        padding: 20px;
        margin: 40px 20px;
    }

    .editor-login-form h2 {
        font-size: 20px;
    }
}
.preview-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
	margin-top: 10px;
}
.preview-link:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .button-item {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 7px;
        width: 100%;
    }
}
/* Container nút */
.editor-profile p input, form#al-profile-edit-form textarea {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f7f7f7;
    color: #2271b1;
    border: 1px solid;
    margin: 0;
    border-radius: 9px;
}
p.editor-actions a#al-edit-profile-btn {
    background: #2271b1;
    color: #fff;
    border-color: #1c5a8a;
}

/* Nút Publish */
button.editor-btn.primary{
    background-color: #006dd9;
    color: #fff;
    border-radius: 6px;
}

button.editor-btn.primary:hover{
    background-color: #003a92 !important;
}

/* Nút Xóa */
button.delete-btn.primary{
    background-color: #ff4d4f;
    color: #fff;
    border-radius: 6px;
}

button.delete-btn.primary:hover{
    background-color: #d9363e;
}

/* Responsive cho mobile */
@media (max-width: 480px) {
    .editor-profile p input{
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
/* Thông báo thành công */
.notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    animation: fadeInNotice 0.5s ease-in-out;
    transition: opacity 0.5s ease, box-shadow 0.2s ease;
}

.notice.success:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tự ẩn thông báo */
.notice.fade-out {
    opacity: 0;
}

/* Hover từng dòng bài viết */
.post-item:hover {
    background-color: #f5f5f5;
}

/* Checkbox tùy chỉnh */
.select-post-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.select-post-checkbox:hover {
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.select-post-checkbox:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.select-post-checkbox:checked::after {
    content: "✔";
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Chọn cả dòng khi checkbox được tích */
.post-item:has(input.select-post-checkbox:checked) {
    background-color: #e0f7e9;
}

/* Hiệu ứng fade-in thông báo */
@keyframes fadeInNotice {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .select-post-checkbox {
        width: 24px;
        height: 24px;
    }
    .select-post-checkbox:checked::after {
        font-size: 16px;
    }
}


.custom-posters .poster-left,
.custom-posters .poster-right {
            position: fixed;
            top: 100px;
            z-index: 9999;
            display: none;
        }
@media (min-width: 1024px) {
            .custom-posters .poster-left,
            .custom-posters .poster-right { display: block; }
            .custom-posters .poster-left { left: 10px; }
            .custom-posters .poster-right { right: 10px; }
            .custom-posters img { max-width: 120px; height: auto; }
}

.main-floating-posters {
    position: relative;
    z-index: 99;
}

.main-floating-posters .poster-left,
.main-floating-posters .poster-right {
    position: absolute;
    top: 150px; /* chỉnh khoảng cách từ header */
}

.main-floating-posters .poster-left {
    left: 10px;
}
.main-floating-posters .poster-right {
    right: 10px;
}

.main-floating-posters img {
    max-width: 160px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 8px;
}

/* ============================================
   FORM PRODUCT EDITOR – GIAO DIỆN ĐẸP (Scoped to .editor-product-form)
   ============================================ */
form.product-search-form{
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.editor-product-form {
    max-width: 850px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid #e6e6e6;
    font-family: Arial, sans-serif;
    padding-bottom: 0px;
}

/* Tiêu đề */
.editor-product-form h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #123c74;
    text-transform: uppercase;
}

/* Label và input */
.editor-product-form p {
    margin-bottom: 18px;
}

.editor-product-form label {
    font-weight: 600;
    color: #2271b1;
    display: block;
    margin: 10px 0px;
    font-size: 16.5px;
    border-top: 2px solid;
}

.product-toolbar input[type="text"],
.editor-product-form input[type="text"],
.editor-product-form input[type="number"],
.editor-product-form input[type="date"],
.editor-product-form textarea,
.editor-product-form select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.editor-product-form input:focus,
.editor-product-form textarea:focus,
.editor-product-form select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.25);
    background: #fff;
    outline: none;
}

/* Button chọn ảnh */
.editor-product-form .button.select-featured-image,
.editor-product-form .button.select-gallery-images {
    background: #2271b1;
    color: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
}

.editor-product-form .button.select-featured-image:hover,
.editor-product-form .button.select-gallery-images:hover {
    background: #195a8a;
}

/* Preview ảnh */
.editor-product-form .featured-preview img {
    border-radius: 10px;
    border: 1px solid #ddd;
    max-width: 180px;
    display: block;
}

.editor-product-form .gallery-preview img {
    border-radius: 10px;
    border: 1px solid #ddd;
    max-width: 120px;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.editor-product-form .gallery-preview img:hover {
    transform: scale(1.05);
}

/* Nút submit */
.editor-product-form input[type="submit"],.product-toolbar button[type=submit] {
    background: #2271b1 !important;
    color: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    border: none;
    font-size: 16px;
    display: block;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.editor-product-form input[type="submit"]:hover {
    background: #083e6b;
}

/* Tooltip nhỏ */
.editor-product-form small {
    color: #666;
    font-size: 13px;
}

/* Gallery container */
.editor-product-form .gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Form spacing chung */
.editor-product-form p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .editor-product-form {
        padding: 20px;
    }

    .editor-product-form input[type="submit"] {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* ================ TAB MENU ================ */

.editor-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.editor-tab-btn {
    padding: 10px 18px;
    background: #f1f1f1;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: .25s;
}

.editor-tab-btn:hover {
    background: #e6e6e6;
}

.editor-tab-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #1c5a8a;
}
.editor-tab-content { display:none; }
.editor-tab-content.active { display:block; }


/* ================ TAB CONTENT ================ */

.editor-tab-content {
    display: none;
}

.editor-tab-content.active {
    display: block;
}
/* ================ img product, post tag ================ */
.product-thumb img, .post-thumb img{
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.product-thumb .no-img {
    width: 75px;
    height: 75px;
    background: #f3f3f3;
    border: 1px dashed #bbb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}
/* Responsive cho mobile */
@media (max-width: 768px) {
    .product-thumb,.post-thumb {
    width: 100%;
    }
    .product-thumb img, .post-thumb img{
    width: 100%;
    height: 100%;
    }
    .post-title {
    text-align: center;
    margin: 0 auto;
    }
}

/* Custom Select */
/* ==========================
   SELECT BOX CHUNG CHO TOÀN FORM
   ========================== */

/* Hover & Focus */
.al-select-box:hover {
    border-color: #2271b1;
}

.al-select-box:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.25);
}

/* Items */
.al-select-box option {
    padding: 6px 10px;
    border-radius: 5px;
    margin: 2px 0;
}

/* Hover */
.al-select-box option:hover {
    background: #eaf3ff;
}

/* Selected */
.al-select-box option:checked {
    background: #2271b1 !important;
    color: #fff;
}
/* MULTI SELECT COLLAPSE / EXPAND */
.al-multi-select {
    height: 42px;
    overflow: hidden;
    cursor: pointer;
}

/* Khi click / focus → xổ ra */
.al-multi-select:focus {
    height: auto;
    max-height: 220px;
    overflow-y: auto;
}

/* ===========================
   ẢNH ĐẠI DIỆN PRODUCT – CARD UI
   =========================== */
.featured-product-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    margin-bottom: 10px;
}

.featured-product-box:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

.featured-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.upload-placeholder .upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}
/* Gallery Upload Box */
.gallery-upload-box {
    width: 100%;
    min-height: 250px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    cursor: pointer;
    transition: .25s;
}

.gallery-upload-box:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

.upload-placeholder {
    width: 100%;
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}
.upload-placeholder .upload-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 6px;
}

.gallery-upload-box .gallery-item {
    width: 100px;
    height: 100px;
    padding: 0;
    border-radius: 9px;
}

.gallery-upload-box .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}


/* TAG INPUT UI */
.tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 48px;
    background: #fff;
    cursor: text;
    flex-direction: column;
}
.danh-sach-tag {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.tag-item {
    background: #2271b1;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-direction: column;
}

.tag-item .remove-tag {
    cursor: pointer;
    font-weight: bold;
    background: red;
    border-radius: 7px;
    height: fit-content;
    width: 100%;
    text-align: center;
}

#tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
}

/* Suggested tags */
.suggested-tags {
    margin-bottom: 8px;
}

.suggested-tag {
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    margin-right: 6px;
    cursor: pointer;
    display: inline-block;
    color: #334155;
    margin-bottom: 6px;
}

.suggested-tag:hover {
    background: #e2e8f0;
}
.add-tag {
    display: flex;
    gap: 5px;
}
.tag-add-btn {
    background: #2271b1;
    color: #fff;
    border-radius: 6px;
    text-transform: capitalize;
    font-size: 13px;
    height: fit-content;
}

.tag-add-btn:hover {
    background: #195a8a;
}

.upload-icon img,.wellcome-icon img,.list-icon img{
    height: 30px;
    width: 30px;
}
.edit-icon img{
    height: 20px;
    width: 20px;
}

/* ================================
   Vendor public page — AL Media
   File: assets/css/style.css
   (Match exactly the classes used in your PHP)
   ================================ */

/* Container */
.al-vendor-wrap.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
    color: #222;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------
   Vendor header card
   ------------------------------ */
.al-vendor-card {
    background: #ffffff;
    border: 1px solid #0078c1;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0px 3px 3px rgb(5 122 189 / 54%);
    margin-bottom: 22px;
}
.al-vendor-thong-tin {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.al-vendor-left {
    width: 150px;
    flex: 0 0 150px;
}

.al-vendor-avatar {
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: block;
}

.al-vendor-right {
    flex: 1 1 auto;
    min-width: 0; /* prevent overflow with long names */
}

/* clear helper (kept for backward compatibility) */
.al-clear { clear: both; }

/* ------------------------------
   Vendor URL + copy UI
   ------------------------------ */
.al-vendor-link {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.al-vendor-link input#al-vendor-url {
    flex: 1;
    padding: 9px 11px;
    border-radius: 6px;
    border: 1px solid #d1d1d1;
    background: #fafafa;
    font-size: 14px;
    line-height: 1;
}

.al-btn,
button#al-copy-vendor-url,
.al-product-button {
    background: #0070c9;
    color: #fff;
    border: 0;
    padding: 9px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.al-btn:focus,
button#al-copy-vendor-url:focus,
.al-product-button:focus {
    outline: 3px solid rgba(0,112,201,0.15);
    outline-offset: 2px;
}

#al-copy-vendor-url:hover { background: #005ea8; }

/* copy msg */
.al-copy-msg {
    margin-left: 8px;
    font-size: 13px;
    color: #2a8a2a;
    display: none; /* toggle inline in JS */
}

/* ------------------------------
   Title / totals
   ------------------------------ */
.al-vendor-products-header {
    margin: 8px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.al-vendor-products-header .al-total,
.al-total {
    color: #666;
    font-weight: 600;
    margin-left: 6px;
}

/* ------------------------------
   Products grid & cards
   ------------------------------ */
.al-products-grid { margin-top: 6px; }

.al-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* item */
.al-product-item {
    width: calc(25% - 18px);
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.al-product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* thumbnail link and image */
.al-product-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fafafa;
}
.al-vendor-right p strong {
    color: #0078c1;
}
.al-product-thumb img,
.al-product-thumb img[src] {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* fallback when no thumbnail */
.al-no-thumb {
    padding: 48px 10px;
    text-align: center;
    color: #888;
    background: #f9f9f9;
}

/* body */
.al-product-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    text-align: center;
}

/* title */
.al-product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.al-product-title a {
    color: inherit;
    text-decoration: none;
}

/* price */
.al-product-price {
    color: #d00;
    font-weight: 700;
    font-size: 15px;
    margin-top: 4px;
}

/* button sits at bottom */
.al-product-button {
    margin-top: auto;
    text-align: center;
}

/* no products fallback */
.al-no-products {
    display: block;
    padding: 14px;
    background: #fff8f0;
    border-radius: 8px;
    border: 1px solid #ffe6cc;
    color: #a34f00;
    text-align: center;
}

/* ------------------------------
   Pagination
   ------------------------------ */
.al-vendor-pagination {
    text-align: center;
    margin-top: 22px;
}

.al-vendor-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    color: #333;
    text-decoration: none;
    background: #fff;
    font-weight: 600;
}

.al-vendor-pagination .page-numbers:hover {
    background: #f7f7f7;
}

.al-vendor-pagination .page-numbers.current,
.al-vendor-pagination .page-numbers.current:hover {
    background: #0070c9;
    color: #fff;
    border-color: #0070c9;
}
.al-vendor-search-box form {
    display: flex;
    gap: 20px;
}
.al-vendor-search-box form input{
    width: 70%;
    border-radius: 6px;
    border: 1px solid #0070c9;
}
.al-vendor-search-box form button.al-btn {
    width: 30%;
    padding: 0px;
}
/* ------------------------------
   Responsive
   ------------------------------ */
@media (max-width: 900px) {
    .al-product-item { width: calc(50% - 18px); }
    .al-vendor-thong-tin { flex-direction: row; gap: 14px; align-items: center; }
}

@media (max-width: 560px) {
    .al-product-item {
        width: 47%;
        height: 100%;
    }
    ul.al-products-list {
        gap: 10px;
        justify-content: space-between;
    }

    .al-vendor-thong-tin { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .al-vendor-left { width: 120px; flex: 0 0 120px; }
    .al-vendor-right { width: 100%; }
    .al-vendor-link { flex-direction: column; align-items: stretch; }
    .al-vendor-link input#al-vendor-url { width: 100%; }
    #al-copy-vendor-url { width: 100%; }
}

.supplier-box{
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #0078c1;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0px 3px 3px rgb(5 122 189 / 54%);
    margin-bottom: 22px;
}
.supplier-box h3 {
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    color: #0070c9;
}
.box-thong-tin {
    display: flex;
    gap: 20px;
}
.thongtin-vendor-left p {
    width: 100%;
    border-radius: 10px;
    background: #0078c1;
    margin-bottom: 0;
    margin-top: 7px;
    padding: 7px;
    text-align: center;
}
.thongtin-vendor-left p a{
    color: #fff;
}
.thongtin-vendor-left p:hover {
    background: #014e7c;
}
.al-vendor-info p {
    margin-bottom: 0;
}
.al-vendor-info p strong, .al-vendor-info h2 {
    color: #004a76;
}
form#al-profile-edit-form button {
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    background: #2271b1;
}
form#al-profile-edit-form input, form#al-profile-edit-form textarea {
    border: 1px solid #2271b1;
    border-radius: 5px;
    color: #2271b1;
}
.notice.error{
    font-size: 16px;
    font-weight: 600;
    color: red !important;
}
.edit-cancel {
    background-color: #e74c3c !important;
}
@media (max-width: 780px) {
.box-thong-tin {
    flex-direction: column;
}
.thongtin-vendor-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
}
.al-avatar-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
}
.no-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
    display: flex;
    align-items: center;
}

/* Vendor bio */
.al-vendor-bio {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

/* Nội dung giới thiệu */
.al-bio-content {
    margin-top: 6px;
    transition: max-height .3s ease;
    overflow: hidden;
}

/* Trạng thái rút gọn */
.al-bio-content.collapsed {
    max-height: 80px; /* chỉnh chiều cao tuỳ ý */
    position: relative;
}

/* Fade mờ phía dưới */
.al-bio-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* Link xem thêm */
.al-bio-toggle {
    display: inline-block;
    color: #0070c9;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.al-bio-toggle:hover {
    text-decoration: underline;
}
.al-vendor-bio strong {
    color: #0e62a7;
    font-size: 16px;
}

.al-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.al-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.al-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 5vh auto;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

.al-modal-close {
    position: absolute;
    top: 16px;
    right: 12px;
    font-size: 13px;
    cursor: pointer;
    background: #ff0000;
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid;
    color: #ffffff;
    display: flex;
    justify-content: center;
}
p.button-save-thong-tin {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}
p.button-save-thong-tin button {
    width: 50%;
    margin-bottom: 0;
    margin-right: 0;
}
form#al-profile-edit-form {
    border-bottom: 0.5px solid #2271b166;
}
@media (max-width: 780px) {
p.button-save-thong-tin button {
    font-size: 15px !important;
}
}
/* ACCOUNT DROPDOWN */
.al-account-dropdown {
    position: relative;
    display: inline-block;
}

.al-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.al-account-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s ease;
    z-index: 9999;
}
.al-account-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #222;
    text-decoration: none;
}
.al-account-menu .divider {
    height: 1px;
    margin: 6px 0;
    background: #eee;
}
.al-account-dropdown:hover .al-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.al-account-menu li a:hover {
    background: #f3f4f6;
}
