/* ============================================================
   ok.css — HTX Trường Hải  |  Cấu trúc chuẩn React migration
   ============================================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0fdf4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* ===== NAVBAR ===== */
nav {
    background-color: #16a34a;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s;
    gap: 16px;
}

.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

nav .logo {
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 20px;
}

nav .nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 4px;
}

nav .nav-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

nav .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-nav-login {
    background-color: white;
    color: #16a34a;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-nav-login:hover {
    background-color: #dcfce7;
    transform: scale(1.04);
}

.user-menu {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.user-avatar-btn:hover {
    background-color: rgba(255, 255, 255, 0.28);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background-color: #bbf7d0;
    color: #15803d;
    flex-shrink: 0;
}

.role-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.role-user {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.role-mod {
    background: #fde68a;
    color: #92400e;
}

.role-admin {
    background: #fca5a5;
    color: #7f1d1d;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    min-width: 200px;
    overflow: hidden;
    z-index: 600;
    animation: dropIn 0.18s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-name {
    font-weight: 700;
    color: #111;
    font-size: 15px;
}

.dropdown-email {
    font-size: 12px;
    color: #6b7280;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background-color: #f0fdf4;
    color: #16a34a;
}

.dropdown-item.danger:hover {
    background-color: #fff1f2;
    color: #dc2626;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    font-size: 20px;
    border-radius: 6px;
    padding: 2px 10px;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 100%;
    min-height: 520px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(21, 128, 61, 0.65) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.18);
    color: #bbf7d0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero h1 {
    color: white;
    font-size: 38px;
    margin: 0 0 18px;
    max-width: 800px;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    max-width: 620px;
    margin: 0 0 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    font-size: 16px;
    padding: 13px 34px;
    background-color: white;
    color: #16a34a;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background-color: #f0fdf4;
    transform: scale(1.05);
    color: #15803d;
}

.btn-hero-outline {
    font-size: 16px;
    padding: 13px 34px;
    background-color: transparent;
    color: white;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-size: 15px;
    padding: 10px 24px;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
    font-weight: 600;
    line-height: 1.4;
}

.btn:hover {
    background-color: #15803d;
    transform: scale(1.04);
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    color: #16a34a;
    border: 2px solid #16a34a;
}

.btn-outline:hover {
    background-color: #f0fdf4;
    transform: scale(1.03);
}

.btn-sm {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

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

.btn-edit {
    background-color: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background-color: #2563eb;
}

/* ===== GIỚI THIỆU ===== */
.section-gioi-thieu {
    background-color: #ffffff;
    padding: 60px 40px;
}

.section-gioi-thieu h2 {
    text-align: center;
    font-size: 28px;
    color: #15803d;
    margin-bottom: 32px;
}

.gioi-thieu-content {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.gioi-thieu-text {
    flex: 2;
}

.gioi-thieu-text h3 {
    color: #16a34a;
    font-size: 18px;
    margin-bottom: 8px;
}

.gioi-thieu-text p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 20px;
}

.gioi-thieu-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    background-color: #f0fdf4;
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-so {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #16a34a;
}

.stat-nhan {
    font-size: 13px;
    color: #555;
}

/* ===== SẢN PHẨM ===== */
#san-pham {
    padding: 56px 24px;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #15803d;
    margin-bottom: 6px;
}

.section-sub {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin-bottom: 36px;
}

.khung-chua {
    display: flex;
    gap: 24px;
    padding: 0 12px 12px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.bai-viet {
    flex: 1;
    max-width: 340px;
    border: 2px solid #e2e8f0;
    padding: 28px 22px;
    border-radius: 16px;
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
}

.bai-viet:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.15);
    border-color: #16a34a;
}

.bai-viet h3 {
    color: #16a34a;
    margin-top: 0;
    font-size: 19px;
    margin-bottom: 10px;
}

.bai-viet p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

/* ===== MOD TOOLBAR ===== */
.mod-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.mod-toolbar-news {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* ===== ADMIN BAR ===== */
.admin-panel {
    background: linear-gradient(90deg, #1e3a5f, #1e40af);
    color: white;
    padding: 10px 28px;
    position: sticky;
    top: 56px;
    z-index: 490;
}

.admin-panel-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== TIN TỨC ===== */
.section-tin-tuc {
    padding: 56px 24px;
    background-color: #f0fdf4;
}

.tin-tuc-luoi {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tin-item {
    flex: 1;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.tin-item>img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.tin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.15);
}

.tin-noi-dung {
    padding: 18px;
}

.tin-tag {
    display: inline-block;
    background-color: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.tin-noi-dung h3 {
    font-size: 16px;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.45;
}

.tin-noi-dung p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 12px;
}

.btn-text {
    color: #16a34a;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #15803d;
    text-decoration: underline;
}

/* ===== LIÊN HỆ ===== */
.section-lien-he {
    background: linear-gradient(135deg, #16a34a, #15803d);
    padding: 60px 40px;
    text-align: center;
}

.lien-he-luoi {
    display: flex;
    gap: 24px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lien-he-item {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 28px 20px;
    color: white;
    max-width: 260px;
    transition: background 0.2s, transform 0.2s;
}

.lien-he-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.lien-he-item span {
    font-size: 34px;
    display: block;
    margin-bottom: 10px;
}

.lien-he-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #bbf7d0;
}

.lien-he-item p {
    margin: 0;
    font-size: 15px;
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background-color: #14532d;
    color: white;
    padding: 28px 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
    color: #bbf7d0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbf7d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeOverlay 0.2s ease;
}

@keyframes fadeOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: white;
    border-radius: 18px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.25s ease;
}

.modal-wide {
    max-width: 680px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-heading {
    font-size: 22px;
    color: #15803d;
    margin: 0 0 24px;
    font-weight: 700;
}

/* ===== TABS ===== */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    gap: 4px;
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 15px;
    cursor: pointer;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    font-weight: 600;
}

.modal-tab.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

/* ===== FORMS ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    font-family: inherit;
    color: #111;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.input-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-pw-wrap input {
    flex: 1;
    padding-right: 42px;
}

.toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #9ca3af;
    padding: 4px;
    transition: color 0.15s;
}

.toggle-pw:hover {
    color: #374151;
}

.form-error {
    color: #dc2626;
    font-size: 13px;
    min-height: 18px;
    margin: -4px 0 8px;
    font-weight: 500;
}

.form-hint {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 14px;
}

.form-hint a {
    color: #16a34a;
    font-weight: 600;
}

.form-hint a:hover {
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
}

/* ===== USERS TABLE ===== */
.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th {
    background: #f0fdf4;
    color: #15803d;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}

.users-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.users-table tr:hover td {
    background: #f9fafb;
}

.role-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    background: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    nav {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background-color: #15803d;
        padding: 8px 0;
        z-index: 499;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 15px;
    }

    .khung-chua {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .bai-viet {
        max-width: 100%;
        width: 100%;
    }

    .gioi-thieu-content {
        flex-direction: column;
    }

    .gioi-thieu-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tin-tuc-luoi {
        flex-direction: column;
    }

    .lien-he-luoi {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .admin-panel-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-box {
        padding: 28px 20px 22px;
    }

    .users-table {
        font-size: 12px;
    }

    .users-table th,
    .users-table td {
        padding: 7px 8px;
    }
}

/* ===== FADE-IN ===== */
.fade-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #15803d;
    color: white;
    padding: 13px 26px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
}

.toast-error {
    background-color: #dc2626;
}

.toast-info {
    background-color: #2563eb;
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 28px;
    background-color: #16a34a;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 999;
    line-height: 1;
}

.back-to-top:hover {
    background-color: #15803d;
    transform: scale(1.12);
}

/* ============================================================
   CART
   ============================================================ */

.cart-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #374151;
    transition: background 0.2s;
}

.cart-btn:hover {
    background: #f3f4f6;
}

.cart-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    min-width: 18px;
    text-align: center;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cart-table th,
.cart-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.cart-table th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    padding: 14px 4px 4px;
    color: #16a34a;
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.empty-state .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.product-price {
    font-weight: 700;
    font-size: 18px;
    color: #16a34a;
    margin: 8px 0 16px;
}

/* ============================================================
   POSTS
   ============================================================ */

.post-meta {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

.post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.post-tag {
    font-size: 11px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* ============================================================
   ORDERS / TOUR / COURSE MODALS
   ============================================================ */

.orders-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.orders-tab-btn {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.orders-tab-btn.active,
.orders-tab-btn:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.orders-table th,
.orders-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.orders-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.status-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
}

/* ============================================================
   ADMIN / MOD PANEL
   ============================================================ */

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s;
}

.btn-sm:hover {
    opacity: 0.85;
}

.btn-success {
    background: #16a34a;
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-info {
    background: #3b82f6;
    color: #fff;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

/* ============================================================
   USERS TABLE
   ============================================================ */

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th,
.users-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.users-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.users-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.role-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
}


/* ============================================================
   POST DETAIL MODAL
   ============================================================ */

.modal-box-wide {
    max-width: 720px;
    width: 96%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0 0 28px;
}

.detail-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.detail-body {
    padding: 24px 28px 0;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 10px 0 6px;
    line-height: 1.35;
}

.detail-text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    white-space: pre-wrap;
}


/* ============================================================
   CATALOG — Danh mục sản phẩm địa phương
   ============================================================ */

.modal-box-catalog {
    max-width: 940px;
    width: 96%;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 28px;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 28px 0;
}

.catalog-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 28px 0;
}

.catalog-filter-btn {
    padding: 6px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 9999px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    color: #374151;
}

.catalog-filter-btn:hover,
.catalog-filter-btn.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 28px;
}

.catalog-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.catalog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.catalog-card-icon {
    font-size: 48px;
    text-align: center;
    padding: 20px 0 10px;
    background: #f0fdf4;
}

.catalog-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 9999px;
}

.type-product {
    background: #dcfce7;
    color: #15803d;
}

.type-tour {
    background: #dbeafe;
    color: #1d4ed8;
}

.type-course {
    background: #fef3c7;
    color: #92400e;
}

.catalog-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0;
}

.catalog-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
}

.catalog-card-actions {
    margin-top: 8px;
}

.catalog-card-actions .btn {
    width: 100%;
    text-align: center;
}


/* ============================================================
   CATEGORY CARDS — 3 danh mục sản phẩm/tour/khóa học
   ============================================================ */

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 8px 0;
}

.category-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.category-card-icon {
    font-size: 52px;
    line-height: 1;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.category-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.category-card .btn {
    margin-top: 8px;
    width: 100%;
}


/* ============================================================
   STATUS BADGE — hiển thị trạng thái đơn hàng / tour / khoá học
   ============================================================ */

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-done {
    background: #e0e7ff;
    color: #3730a3;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}


/* ============================================================
   NEW SECTIONS — Đặc Sản, Order, Logistics, Solar, Tourism, Partners
   ============================================================ */

/* ── Shared / Utility ── */
.sec-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.sec-h2 {
    font-size: 28px;
    color: #15803d;
    margin: 0 0 10px;
    font-weight: 800;
}

.sec-desc {
    font-size: 15px;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.7;
}

.sec-center {
    text-align: center;
}

.green-h2 {
    color: #16a34a;
}

.btn-g {
    display: inline-block;
    background: #16a34a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-g:hover {
    background: #15803d;
    transform: scale(1.04);
}

/* ── ĐẶC SẢN HÀ GIANG ── */
.sec-dac-san {
    padding: 60px 0;
    background: #ffffff;
}

.sec-dac-san-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.dac-san-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-product-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-card {
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
    border-color: #16a34a;
}

.mini-card-img {
    height: 110px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.mini-fallback {
    font-size: 40px;
    z-index: 1;
    position: relative;
}

.mini-card-img.no-img {
    font-size: 44px;
}

.honey-card .mini-card-img {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.meat-card .mini-card-img {
    background: linear-gradient(135deg, #fce7e7, #fca5a5);
}

.tea-card .mini-card-img {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.mini-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mini-card-body h4 {
    font-size: 13px;
    color: #15803d;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.mini-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mini-checklist li {
    font-size: 11px;
    color: #555;
    padding-left: 14px;
    position: relative;
    line-height: 1.4;
}

.mini-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
    font-size: 10px;
}

.dac-san-all-btn {
    align-self: flex-start;
    margin-top: 4px;
}

.dac-san-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dac-san-illus-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dac-san-illus {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.order-promo-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #16a34a;
    border-radius: 16px;
    padding: 20px;
}

.order-promo-box h3 {
    color: #15803d;
    font-size: 17px;
    margin: 0 0 8px;
}

.order-promo-box p {
    font-size: 13px;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.6;
}

/* ── ORDER SERVICE ── */
.sec-order {
    padding: 60px 0;
    background: #f8fafc;
}

.sec-order-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.order-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.order-platform-box {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: white;
}

.platform-header {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.intl-hdr {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.local-hdr {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 14px;
    color: #374151;
    border-top: 1px solid #f3f4f6;
}

.pcheck {
    color: #16a34a;
    font-weight: 700;
    font-size: 13px;
}

.plat-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.tb-badge {
    background: #fef3c7;
    color: #92400e;
}

.ali-badge {
    background: #fce7e7;
    color: #991b1b;
}

.order-feats-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.order-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    background: #f0fdf4;
    border-radius: 8px;
    padding: 10px 14px;
}

.order-feat-item span {
    font-size: 20px;
}

.order-img-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-img-visual {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.order-img-visual img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.order-img-fallback {
    font-size: 48px;
    letter-spacing: 8px;
    position: absolute;
}

/* ── LOGISTICS ── */
.sec-logistics {
    padding: 60px 0;
    background: #ffffff;
}

.sec-logistics-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}

.logistics-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.logis-sub-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
    transition: border-color 0.2s, transform 0.2s;
}

.logis-sub-card:hover {
    border-color: #16a34a;
    transform: translateY(-3px);
}

.logis-sub-card h4 {
    font-size: 14px;
    color: #15803d;
    margin: 0 0 10px;
}

.logis-sub-card ul {
    padding-left: 18px;
    margin: 0 0 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}

.logistics-img-side img.service-side-img {
    width: 100%;
    border-radius: 18px;
    height: 320px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ── SOLAR ENERGY ── */
.sec-solar {
    padding: 60px 0;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.sec-solar-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.solar-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solar-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 12px 16px;
}

.check-grn {
    width: 24px;
    height: 24px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.solar-img-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-visual {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #fef08a, #fbbf24);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.solar-visual img.service-side-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.solar-fallback-box {
    text-align: center;
    padding: 20px;
    position: absolute;
}

.solar-icons {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
}

.solar-fallback-box p {
    font-size: 14px;
    color: #78350f;
    font-weight: 600;
    margin: 0;
}

/* ── DU LỊCH HÀ GIANG ── */
.sec-tourism {
    padding: 60px 0;
    background: #f0fdf4;
}

.tourism-main-img-wrap {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tourism-main-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.tourism-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.tourism-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tourism-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.15);
}

.tourism-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.tourism-card-img.map-bg {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.tourism-card-body {
    padding: 16px;
}

.tourism-card-body h4 {
    font-size: 16px;
    color: #15803d;
    margin: 0 0 8px;
    font-weight: 700;
}

.tourism-card-body p {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.tourism-extra-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tourism-extra-card {
    flex: 1;
}

.tourism-extra-card h4 {
    font-size: 16px;
    color: #15803d;
    margin: 0 0 6px;
}

.tourism-extra-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ── ĐỐI TÁC – HỢP TÁC ── */
.sec-partners {
    padding: 60px 0;
    background: #ffffff;
}

.sec-partners-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 16px;
}

.partner-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partner-list li {
    font-size: 15px;
    color: #374151;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 10px;
    border-left: 4px solid #16a34a;
}

.partners-illus {
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 18px;
    padding: 28px;
}

.partners-icon {
    font-size: 68px;
    margin-bottom: 10px;
}

.partners-illus p {
    color: #15803d;
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 16px;
}

.stat-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-row .stat-item {
    background: white;
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    min-width: 80px;
}

.stat-row .stat-so {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #16a34a;
}

.stat-row .stat-nhan {
    font-size: 11px;
    color: #555;
    display: block;
}

/* ── SERVICE DETAIL MODAL ── */
.service-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-detail-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-detail-col {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
}

.service-detail-col h3 {
    font-size: 16px;
    color: #15803d;
    margin: 0 0 12px;
}

.service-detail-col ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-detail-col ul li {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.service-detail-how h3 {
    font-size: 16px;
    color: #15803d;
    margin: 0 0 14px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0fdf4;
    border-radius: 10px;
    padding: 12px;
}

.step-num {
    background: #16a34a;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.how-step p {
    font-size: 13px;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

/* ── btn-info, btn-success ── */
.btn-info {
    background-color: #0891b2;
    color: white;
}

.btn-info:hover {
    background-color: #0e7490;
}

.btn-success {
    background-color: #16a34a;
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
}

/* ────────────── RESPONSIVE FOR NEW SECTIONS ────────────── */
@media (max-width: 900px) {

    .sec-dac-san-grid,
    .sec-order-grid,
    .sec-logistics-grid,
    .sec-solar-grid,
    .sec-partners-grid {
        grid-template-columns: 1fr;
    }

    .dac-san-right {
        order: -1;
    }

    .mini-product-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .logistics-cards-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mini-product-row {
        grid-template-columns: 1fr;
    }

    .order-platforms {
        grid-template-columns: 1fr;
    }

    .tourism-cards {
        grid-template-columns: 1fr;
    }

    .tourism-extra-row {
        flex-direction: column;
    }

    .sec-dac-san,
    .sec-order,
    .sec-logistics,
    .sec-solar,
    .sec-tourism,
    .sec-partners {
        padding: 40px 0;
    }
}

/* =====================================================
   HOME PANEL GRID — 2-COLUMN LAYOUT
   ===================================================== */
.home-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.home-row:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.home-panel {
    background: white;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
}

.home-panel:last-child {
    border-right: none;
}

.hp-hero-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.hp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
    padding: 20px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-hero-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hp-hero-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.hp-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hp-body-notop {
    padding-top: 20px;
}

/* ── Đặc sản sidebar ── */
.ds-layout {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 14px;
    flex: 1;
}

.ds-sidebar {
    border-right: 1px solid #e5e7eb;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ds-main-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.ds-tab {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    transition: background 0.15s, color 0.15s;
}

.ds-tab.active,
.ds-tab:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.ds-group {
    margin-top: 6px;
}

.ds-group-hdr {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    padding: 4px 10px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.ds-link {
    display: block;
    font-size: 12px;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.ds-link:hover,
.ds-link.active {
    background: #f0fdf4;
    color: #16a34a;
}

.ds-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.ds-main-title {
    font-size: 16px;
    font-weight: 800;
    color: #15803d;
    margin: 0;
}

.ds-main-sub {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.ds-see-all {
    align-self: flex-start;
    margin-top: 4px;
}

/* ── Slim product rows ── */
.slim-product-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slim-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafafa;
}

.slim-row:hover {
    border-color: #16a34a;
    background: #f0fdf4;
}

.slim-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.honey-thumb {
    background: #fef3c7;
}

.tour-thumb {
    background: #dbeafe;
}

.meat-thumb {
    background: #fce7e7;
}

.tea-thumb {
    background: #d1fae5;
}

.slim-info {
    overflow: hidden;
}

.slim-name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slim-meta {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slim-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.slim-price {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
}

.btn-slim {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.btn-slim:hover {
    background: #15803d;
}

/* ── Order tabs ── */
.order-tabs-nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 12px;
    scrollbar-width: none;
    flex-shrink: 0;
}

.order-tabs-nav::-webkit-scrollbar {
    display: none;
}

.otab {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.otab.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.otab-pane {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.otab-pane.active {
    display: flex;
}

.order-platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.order-platform-box {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}

.platform-header {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

.intl-hdr {
    background: #fee2e2;
    color: #991b1b;
}

.local-hdr {
    background: #dbeafe;
    color: #1e40af;
}

.platform-item {
    padding: 6px 12px;
    font-size: 12px;
    color: #374151;
}

.pcheck {
    color: #16a34a;
    font-weight: 700;
    margin-right: 4px;
}

.plat-badge {
    border-radius: 4px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
}

.tb-badge {
    background: #fee2e2;
    color: #991b1b;
}

.ali-badge {
    background: #fff7ed;
    color: #c2410c;
}

.order-feats-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-feat-item {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-us-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-us-title {
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
    margin: 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.why-list {
    padding-left: 16px;
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.8;
}

.order-3mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.o3card {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #d1fae5;
}

.o3card-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.o3card h4 {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 5px;
    line-height: 1.3;
}

.o3card ul {
    padding-left: 13px;
    margin: 0;
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

.tab-empty-state {
    text-align: center;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tes-icon {
    font-size: 38px;
}

.tab-empty-state h3 {
    font-size: 15px;
    color: #15803d;
    margin: 0;
}

.tab-empty-state p {
    font-size: 12px;
    color: #666;
    max-width: 240px;
    margin: 0;
    line-height: 1.6;
}

/* ── Logistics stacked cards ── */
.logis-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logis-feat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    align-items: start;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.logis-feat-card:hover {
    border-color: #16a34a;
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.1);
}

.lfc-text h3 {
    font-size: 14px;
    color: #15803d;
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.35;
}

.lfc-list {
    padding-left: 14px;
    margin: 0 0 8px;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}

.lfc-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.5;
}

.lfc-img-box {
    width: 96px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.lfc-img-fallback {
    font-size: 22px;
}

.lfc-checks {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lfc-chk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
}

.logis-split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.logis-half-card {
    grid-template-columns: 1fr !important;
}

.solar-center-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: border-color 0.2s;
}

.solar-center-card:hover {
    border-color: #f59e0b;
}

.solar-center-visual {
    font-size: 32px;
}

.solar-center-card h4 {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.solar-center-card p {
    font-size: 11px;
    color: #78350f;
    margin: 0;
    line-height: 1.4;
}

/* ── Tourism 2x2 grid ── */
.tourism-panel-hero {
    border-radius: 12px;
    overflow: hidden;
    height: 170px;
    flex-shrink: 0;
}

.tph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tourism-2x2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.t22-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.t22-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.15);
}

.t22-img {
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: #d1fae5;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 8px;
}

.t22-easy-rider {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    align-items: center;
    justify-content: center;
}

.easy-rider-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.t22-body {
    padding: 9px 10px;
}

.t22-body h4 {
    font-size: 13px;
    color: #15803d;
    margin: 0 0 3px;
    font-weight: 700;
}

.t22-body p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.tourism-all-btn {
    width: 100%;
    text-align: center;
    border-radius: 20px;
    margin-top: 2px;
}

/* ── Chat button ── */
.section-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 2px solid #16a34a;
    color: #16a34a;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin: 8px 16px 16px;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
    transition: background 0.15s, color 0.15s;
}

.section-chat-btn:hover {
    background: #16a34a;
    color: white;
}

@media (max-width: 900px) {
    .home-row {
        grid-template-columns: 1fr;
    }

    .ds-layout {
        grid-template-columns: 1fr;
    }

    .ds-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 10px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .order-3mini-cards {
        grid-template-columns: 1fr 1fr;
    }

    .logis-split-row {
        grid-template-columns: 1fr;
    }

    .tourism-2x2-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .order-3mini-cards {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   HOME 2-COL GRID — matches reference image
   ===================================================== */
.home-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.home-row:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.home-col {
    padding: 24px 22px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #e5e7eb;
}

.home-col:last-child {
    border-right: none;
}

.col-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.25;
}

.col-sub {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ── Product cards row (Đặc Sản) ── */
.prod-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.prod-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    background: #fff;
}

.prod-card:hover {
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
    transform: translateY(-2px);
}

.prod-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #f0fdf4;
}

.honey-bg {
    background: #fef3c7;
}

.meat-bg {
    background: #fce7e7;
}

.tea-bg {
    background: #d1fae5;
}

.prod-card-body {
    padding: 8px 10px 10px;
}

.prod-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
    line-height: 1.3;
}

.prod-card-list {
    padding-left: 14px;
    margin: 0 0 8px;
    font-size: 11px;
    color: #666;
    line-height: 1.7;
}

.btn-card-more {
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-card-more:hover {
    background: #15803d;
}

/* "Xem tất cả" pill button */
.btn-see-all {
    background: #fff;
    border: 2px solid #16a34a;
    color: #16a34a;
    border-radius: 20px;
    padding: 7px 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-see-all:hover {
    background: #16a34a;
    color: #fff;
}

/* ── Order illustration ── */
.order-illus-wrap {
    border-radius: 14px;
    overflow: hidden;
    height: 200px;
    background: #e8f5e9;
    flex-shrink: 0;
}

.order-illus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Order platform boxes */
.order-platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.order-platform-box {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}

.platform-header {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

.intl-hdr {
    background: #fee2e2;
    color: #991b1b;
}

.local-hdr {
    background: #dbeafe;
    color: #1e40af;
}

.platform-item {
    padding: 5px 12px;
    font-size: 12px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pcheck {
    color: #16a34a;
    font-weight: 700;
}

.plat-badge {
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
}

.tb-badge {
    background: #fee2e2;
    color: #991b1b;
}

.ali-badge {
    background: #fff7ed;
    color: #c2410c;
}

.laz-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.tiki-badge {
    background: #e0f2fe;
    color: #075985;
}

/* Order feature items */
.order-feats-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.order-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.feat-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* ── Logistics big image ── */
.logis-big-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    height: 200px;
    background: #fef3c7;
    flex-shrink: 0;
}

.logis-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solar-subtitle {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 4px 0 0;
    line-height: 1.25;
}

.solar-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 2px 0;
}

.solar-chk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: default;
}

.solar-chk input[type=checkbox] {
    accent-color: #16a34a;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Tour cards row (Du lịch) ── */
.tour-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tour-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    background: #fff;
}

.tour-card:hover {
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
    transform: translateY(-2px);
}

.tour-card-img {
    width: 100%;
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-easy-rider {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.easy-rider-lbl {
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tour-card-body {
    padding: 9px 10px 10px;
}

.tour-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 4px;
}

.tour-card-desc {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.45;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .home-row {
        grid-template-columns: 1fr;
    }

    .home-col {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

@media (max-width: 600px) {
    .prod-cards-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .tour-cards-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .prod-card-img {
        font-size: 28px;
    }
}

@media (max-width: 420px) {
    .prod-cards-row {
        grid-template-columns: 1fr 1fr;
    }

    .tour-cards-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* =====================================================
   THỔ CẨM THEME — Nền dân tộc miền núi phía Bắc
   ===================================================== */

/* Body: nền kem với pattern thổ cẩm hình thoi */
body {
    background-color: #faf7f0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg opacity='0.14'%3E%3Cpath d='M24 4L44 24L24 44L4 24Z' fill='%23a0522d'/%3E%3Cpath d='M24 12L36 24L24 36L12 24Z' fill='none' stroke='%23228B22' stroke-width='1.5'/%3E%3Ccircle cx='24' cy='24' r='2.5' fill='%23a0522d'/%3E%3Cline x1='24' y1='0' x2='24' y2='4' stroke='%23a0522d' stroke-width='1'/%3E%3Cline x1='48' y1='24' x2='44' y2='24' stroke='%23a0522d' stroke-width='1'/%3E%3Cline x1='24' y1='48' x2='24' y2='44' stroke='%23a0522d' stroke-width='1'/%3E%3Cline x1='0' y1='24' x2='4' y2='24' stroke='%23a0522d' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Sections: warm off-white instead of pure white */
.home-col,
.section-tin-tuc,
.sec-partners {
    background: transparent;
}

/* Liên Hệ: tranh vẽ phong cảnh vùng cao */
.section-lien-he {
    background-image: url('highland-bg.svg') !important;
    background-size: cover !important;
    background-position: center 60% !important;
    background-color: #1c0d3a !important;
    position: relative;
}

.section-lien-he::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 8, 50, 0.62) 0%, rgba(60, 20, 10, 0.38) 100%);
    pointer-events: none;
}

/* Đảm bảo nội dung nằm trên overlay */
.section-lien-he>* {
    position: relative;
    z-index: 1;
}

/* News section: gentle terracotta accent top border */
.section-tin-tuc {
    position: relative;
    padding-top: 32px;
}

.section-tin-tuc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #a0522d, #c2864a, #228B22, #c2864a, #a0522d);
    border-radius: 2px;
}

/* News article cards: white cards, crisp */
.tin-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(160, 82, 45, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(160, 82, 45, 0.1);
}

.tin-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(160, 82, 45, 0.15);
}

/* Replace <img> in tin-item with background-image divs */
.tin-img-wrap {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e8f5e9;
    flex-shrink: 0;
}

/* Also handle real <img> tags that may exist */
.tin-item>img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* Tin tag: terracotta or green accent */
.tin-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 6px;
}

/* Navbar: deeper forest green with ethnic bar */
.navbar {
    background: linear-gradient(135deg, #1a5c2a 0%, #15803d 100%) !important;
    border-bottom: 3px solid #c2864a;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            #fbbf24 0px, #fbbf24 8px,
            #c2864a 8px, #c2864a 16px,
            #228B22 16px, #228B22 24px,
            #c2864a 24px, #c2864a 32px);
    opacity: 0.8;
}

/* Section headings: forest green */
.col-title,
.sec-h2,
.section-title {
    color: #1a5c2a;
}

/* Home col: thổ cẩm texture visible trong từng ô */
.home-col {
    background-color: #faf7f0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg opacity='0.10'%3E%3Cpath d='M24 4L44 24L24 44L4 24Z' fill='%23a0522d'/%3E%3Cpath d='M24 12L36 24L24 36L12 24Z' fill='none' stroke='%23228B22' stroke-width='1.5'/%3E%3Ccircle cx='24' cy='24' r='2.5' fill='%23a0522d'/%3E%3Cline x1='24' y1='0' x2='24' y2='4' stroke='%23a0522d' stroke-width='1'/%3E%3Cline x1='48' y1='24' x2='44' y2='24' stroke='%23a0522d' stroke-width='1'/%3E%3Cline x1='24' y1='48' x2='24' y2='44' stroke='%23a0522d' stroke-width='1'/%3E%3Cline x1='0' y1='24' x2='4' y2='24' stroke='%23a0522d' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-right-color: rgba(160, 82, 45, 0.2) !important;
    border-bottom-color: rgba(160, 82, 45, 0.2) !important;
}

.home-row {
    border-color: rgba(160, 82, 45, 0.15) !important;
}

/* Product card: ethnic border accent */
.prod-card {
    border-color: rgba(160, 82, 45, 0.2) !important;
}

.prod-card:hover {
    border-color: #228B22 !important;
}

/* Tour card: same */
.tour-card {
    border-color: rgba(160, 82, 45, 0.2) !important;
}

.tour-card:hover {
    box-shadow: 0 6px 18px rgba(34, 139, 34, 0.2) !important;
}

/* Hero: overlay strength increase for mountain image */
.hero .hero-overlay {
    background: linear-gradient(135deg,
            rgba(26, 92, 42, 0.72) 0%,
            rgba(160, 82, 45, 0.45) 100%);
}

.hero-badge {
    background: rgba(194, 134, 74, 0.9);
    border-color: rgba(194, 134, 74, 0.5);
}

/* Footer: dark forest green */
footer {
    background: #1a3d26 !important;
    border-top: 3px solid #c2864a;
}

/* Partners section: soft ethnic accent */
.sec-partners {
    background: linear-gradient(135deg, #f0fdf4 0%, #fef9f0 100%);
    border-top: 2px solid rgba(194, 134, 74, 0.3);
    border-bottom: 2px solid rgba(194, 134, 74, 0.3);
}

/* ── ICON PICKER ── */
.icon-picker-overlay {
    z-index: 1100;
}

.icon-picker-box {
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.icon-search-wrap {
    padding: 0 0 10px;
}

.icon-search-input {
    width: 100%;
    padding: 8px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.icon-search-input:focus {
    border-color: #16a34a;
}

.icon-picker-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.icon-cat-tab {
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.icon-cat-tab.active,
.icon-cat-tab:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 4px;
    overflow-y: auto;
    max-height: 340px;
    padding-right: 4px;
}

.icon-item {
    aspect-ratio: 1;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: none;
    cursor: pointer;
    transition: background 0.12s, transform 0.1s, border-color 0.12s;
    line-height: 1;
}

.icon-item:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    transform: scale(1.15);
}

/* Icon preview beside input */
.input-with-addon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-preview-lg {
    font-size: 28px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    flex-shrink: 0;
    line-height: 1;
}

/* ── MEDIA PICKER ── */
.media-picker-overlay {
    z-index: 1100;
}

.media-picker-box {
    max-width: 740px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-picker-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.media-cat-tab {
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.media-cat-tab.active,
.media-cat-tab:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
    min-height: 0;
}

.media-item {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.media-item:hover {
    border-color: #16a34a;
    transform: translateY(-2px);
}

.media-item-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.media-item:hover .media-item-thumb img {
    transform: scale(1.05);
}

.media-thumb-err {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    padding: 8px;
}

.media-item-name {
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    border-top: 1px solid #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-custom-url-row {
    padding: 12px 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
    flex-shrink: 0;
}

.media-url-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.media-url-input-row {
    display: flex;
    gap: 8px;
}

.media-url-input-row input {
    flex: 1;
    padding: 7px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.media-url-input-row input:focus {
    border-color: #16a34a;
}

/* Catalog card image support */
.catalog-card {
    display: flex;
    flex-direction: column;
}

.catalog-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.catalog-card-icon {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    background: #f0fdf4;
    border-radius: 12px 12px 0 0;
}

/* img URL preview in post editor */
.img-preview {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 8px;
    display: block;
}