:root {
    --primary-color: #1d6f52;
    --primary-dark: #14523d;
    --accent-color: #b88a3a;
    --soft-color: #f8fafc;
    --secondary-color: #ffffff;
    --text-color: #14523d;
    --muted-color: #64748b;
    --card-shadow: 0 14px 34px rgba(15, 107, 122, 0.12);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    font-family: Arial, 'Segoe UI', sans-serif;
    background: #fff !important;
    color: var(--text-color);
}
a { color: inherit; }
img { max-width: 100%; }
.text-warning { color: var(--primary-color) !important; }
.bg-warning { background-color: var(--primary-color) !important; }
.btn-warning, .btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.btn-warning:hover, .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
}
.btn-outline-warning, .btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: #fff !important;
}
.btn-outline-warning:hover, .btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .18rem rgba(184,138,58,.13);
}
.table { --bs-table-hover-bg: #f9fafb; }
.badge { letter-spacing: .1px; }
.product-card, .product-card-mini {
    background: #fff;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}
.product-card:hover, .product-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow) !important;
    border-color: rgba(184,138,58,.35) !important;
}
.product-card .card-img-top, .product-card-mini .card-img-top {
    background: #fff;
}
.price, .price-tag, .price-current, .current-price {
    color: #dc2626 !important;
    font-weight: 800;
}
.product-card .old-price { color: #94a3b8; text-decoration: line-through; font-size: 0.9rem; }
.discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #14523d;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}
.section-title {
    border-left: 0;
    padding-left: 0;
    font-weight: 800;
    text-transform: none;
    color: var(--text-color);
}
.section-title::after { background: var(--primary-color) !important; }
.section-card {
    background:#fff;
    border: 1px solid #e5e7eb !important;
    box-shadow: var(--card-shadow) !important;
    border-radius: 24px;
}
.pagination {
    gap: 7px;
    flex-wrap: wrap;
}
.pagination .page-link {
    min-width: 40px;
    height: 40px;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb;
    color: #14523d;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(184,138,58,.07);
}
.pagination .page-link:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.pagination .page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #98a2b3;
    border-color: #edf2f7;
    box-shadow: none;
}
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-dark {
    color: #fff !important;
}
.badge.bg-warning,
.badge.bg-info,
.badge.bg-light {
    color: #14523d !important;
}
.ai-chat-launcher {
    position:fixed; right:24px; bottom:24px; width:58px; height:58px; border:0; border-radius:50%;
    background:var(--primary-color); color:#fff; box-shadow:0 16px 35px rgba(184,138,58,.20);
    z-index:1080; display:flex; align-items:center; justify-content:center; font-size:23px;
}
.ai-chat-panel {
    position:fixed; right:24px; bottom:92px; width:min(380px,calc(100vw - 32px)); background:#fff;
    border:1px solid #e5e7eb; border-radius:22px; box-shadow:0 22px 60px rgba(15,23,42,.18);
    overflow:hidden; z-index:1080; display:none;
}
.ai-chat-panel.open { display:block; }
.ai-chat-head {
    padding:16px 18px; background:var(--primary-color); color:#fff; display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.ai-chat-head .fw-bold { font-size:17px; display:flex; align-items:center; }
.ai-chat-body { height:380px; max-height:52vh; overflow-y:auto; overflow-x:hidden; padding:16px; background:#fff; }
.ai-msg { display:flex; margin-bottom:10px; }
.ai-msg.user { justify-content:flex-end; }
.ai-bot-content { max-width:90%; min-width:0; }
.ai-bubble { max-width:84%; padding:10px 12px; border-radius:16px; font-size:14px; line-height:1.45; white-space:pre-line; }
.ai-bot-content .ai-bubble { max-width:100%; }
.ai-msg.bot .ai-bubble { background:#fff; border:1px solid #e5e7eb; color:#1e293b; border-top-left-radius:5px; }
.ai-msg.user .ai-bubble { background:var(--primary-color); color:#fff; border-top-right-radius:5px; }
.ai-chat-form { padding:12px; background:#fff; border-top:1px solid #e5e7eb; display:flex; gap:8px; }
.ai-chat-form textarea { resize:none; min-height:44px; max-height:90px; border-radius:14px; font-size:14px; }
.ai-chat-form button { width:46px; height:44px; border-radius:14px; flex:0 0 auto; }
.ai-typing { font-size:13px; color:var(--muted-color); padding:0 16px 10px; background:#fff; display:none; }
.ai-typing.show { display:block; }
.ai-product-list { display:grid; gap:10px; margin-top:10px; width:100%; min-width:0; }
.ai-product-card { display:flex; align-items:center; gap:10px; width:100%; min-width:0; padding:10px; text-decoration:none; color:inherit; background:#fff; border:1px solid #e5e7eb; border-radius:14px; transition:.2s ease; }
.ai-product-card:hover { border-color:var(--primary-color); box-shadow:0 8px 20px rgba(17,24,39,.10); transform:translateY(-1px); }
.ai-product-card img { width:58px; height:58px; object-fit:cover; border-radius:12px; background:#fff; border:1px solid #e5e7eb; flex:0 0 auto; }
.ai-product-info { min-width:0; flex:1; }
.ai-product-title { font-size:13px; font-weight:700; color:#14523d; line-height:1.35; margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ai-product-meta { font-size:12px; color:#64748b; margin-bottom:4px; }
.ai-product-price { font-size:13px; font-weight:700; color:#dc2626; }
@media (max-width:575px){
    .ai-chat-launcher{right:16px;bottom:16px;}
    .ai-chat-panel{right:16px;bottom:84px;}
    .row-cols-3>*{width:50%;}
}


/* ZenDecor custom */
.feng-soft-bg { background:#f8fafc; }
.feng-line { height:1px; background:#e5e7eb; }
.product-card img, .product-shop-card img, .tech-card img, .product-tech-img { object-fit:cover; }
.btn, .form-control, .form-select { box-shadow:none !important; }

.badge.bg-warning.zen-hot-tag, .zen-hot .zen-hot-tag { color: #fff !important; }
