/* ========== PET SHOP TMT - Modern UI ========== */
:root {
    --color-primary: #ff7a59;
    --color-primary-dark: #e8623f;
    --color-secondary: #ffd5b5;
    --color-cream: #fff8f0;
    --color-mint: #5ec5a8;
    --color-mint-dark: #3aa68a;
    --color-ink: #1a1a2e;
    --color-text: #2d2d3a;
    --color-muted: #7a7a8c;
    --color-border: #efe6da;
    --color-card: #ffffff;
    --color-bg: #fff8f0;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
    --shadow: 0 10px 30px rgba(255, 122, 89, .12);
    --shadow-lg: 0 25px 60px rgba(255, 122, 89, .18);
    --transition: .35s cubic-bezier(.4, 0, .2, 1);

    --font-ui: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
    --color-cream: #16161f;
    --color-ink: #f5f5fa;
    --color-text: #e4e4ec;
    --color-muted: #9a9aaa;
    --color-border: #2a2a35;
    --color-card: #1d1d28;
    --color-bg: #111118;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    min-height: 100vh;
    line-height: 1.6;
    transition: background .35s, color .35s;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--color-ink); font-weight: 700; letter-spacing: -.02em; }
.h-ui { font-family: var(--font-ui); }

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }

/* ===== Navbar Glassmorphism ===== */
.navbar-pets {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 248, 240, .75);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--color-border);
    transition: background .35s;
}
[data-theme="dark"] .navbar-pets { background: rgba(17, 17, 24, .75); }

.navbar-pets .brand {
    font-family: var(--font-display); font-size: 1.55rem; font-weight: 800;
    color: var(--color-ink); display: flex; align-items: center; gap: .55rem;
}
.navbar-pets .brand .logo-dot {
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-mint));
    display: grid; place-items: center; color: white;
}

.navbar-pets .nav-link {
    font-weight: 500; color: var(--color-text); padding: .5rem .9rem;
    border-radius: 10px; transition: var(--transition);
}
.navbar-pets .nav-link:hover, .navbar-pets .nav-link.active {
    background: var(--color-secondary); color: var(--color-primary-dark);
}
[data-theme="dark"] .navbar-pets .nav-link:hover { background: rgba(255,122,89,.15); }

.search-pill {
    display: flex; align-items: center;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 999px; padding: .25rem .25rem .25rem 1rem;
    min-width: 280px; transition: var(--transition);
}
.search-pill:focus-within { box-shadow: var(--shadow); border-color: var(--color-primary); }
.search-pill input {
    border: 0; outline: 0; background: transparent;
    flex: 1; padding: .5rem 0; color: var(--color-text); font-size: .95rem;
}
.search-pill button {
    background: var(--color-primary); color: white;
    border: 0; width: 38px; height: 38px;
    border-radius: 50%; display: grid; place-items: center;
    cursor: pointer; transition: var(--transition);
}
.search-pill button:hover { background: var(--color-primary-dark); transform: scale(1.05); }

.icon-btn {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--color-cream); border: 1px solid var(--color-border);
    color: var(--color-text); display: inline-grid; place-items: center;
    position: relative; transition: var(--transition); cursor: pointer;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--color-primary); }

.user-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 14px 5px 5px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    transition: var(--transition);
    cursor: pointer;
    max-width: 220px;
}
.user-pill:hover { background: var(--color-card); box-shadow: var(--shadow); }
.user-pill .user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-mint));
    color: white; font-weight: 700;
    display: inline-grid; place-items: center; font-size: .85rem;
    flex-shrink: 0;
}
.user-pill .user-name {
    font-weight: 600; font-size: .88rem;
    max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-pill.dropdown-toggle::after { margin-left: 2px; vertical-align: middle; border-top-color: var(--color-muted); }

.cart-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--color-primary); color: white;
    font-size: .72rem; font-weight: 700; display: grid; place-items: center;
    box-shadow: 0 2px 6px rgba(255,122,89,.5);
}

/* ===== Buttons ===== */
.btn-pets {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.4rem; border-radius: 999px; border: 0;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    font-family: var(--font-ui);
}
.btn-pets-primary { background: var(--color-primary); color: white; }
.btn-pets-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); color: white; }
.btn-pets-ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-pets-ghost:hover { background: var(--color-cream); color: var(--color-primary); }
.btn-pets-mint { background: var(--color-mint); color: white; }
.btn-pets-mint:hover { background: var(--color-mint-dark); color: white; transform: translateY(-2px); }
.btn-pets-danger { background: #ef4444; color: white; }
.btn-pets-danger:hover { background: #dc2626; color: white; transform: translateY(-2px); }
.btn-pets-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-pets-sm { padding: .4rem .85rem; font-size: .85rem; }

/* ===== Cards ===== */
.card-pets {
    background: var(--color-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); position: relative;
}
.card-pets:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-card {
    background: var(--color-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); position: relative;
    height: 100%; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }

.product-card .img-wrap { position: relative; aspect-ratio: 1/1; background: var(--color-cream); overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.product-card:hover .img-wrap img { transform: scale(1.08); }

.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge-hot, .badge-sale {
    padding: 4px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; color: white;
    letter-spacing: .03em; display: inline-flex; align-items: center; gap: 4px;
}
.badge-hot { background: linear-gradient(135deg, #ff5f6d, #ffc371); animation: pulse 1.8s infinite; }
.badge-sale { background: var(--color-mint); }
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 95, 109, .5); }
    50%      { transform: scale(1.07); box-shadow: 0 0 0 8px rgba(255, 95, 109, 0); }
}

.product-card .quick-actions {
    position: absolute; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(10px); transition: var(--transition);
}
.product-card:hover .quick-actions { opacity: 1; transform: translateX(0); }
.product-card .quick-actions button {
    width: 38px; height: 38px; border: 0;
    background: white; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--shadow-sm); color: var(--color-ink);
    transition: var(--transition);
}
.product-card .quick-actions button:hover { background: var(--color-primary); color: white; transform: scale(1.1); }

.product-card .body { padding: 1rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: .78rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.product-card .name {
    font-family: var(--font-ui); font-size: 1rem; font-weight: 600;
    color: var(--color-ink); margin: .35rem 0 .6rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.8em;
    text-decoration: none;
}
.product-card .name:hover { color: var(--color-primary); }

.product-card .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-card .price { font-size: 1.15rem; font-weight: 800; color: var(--color-primary); }
.product-card .price-old { font-size: .85rem; text-decoration: line-through; color: var(--color-muted); }

.add-cart-btn {
    width: 38px; height: 38px; border: 0;
    background: var(--color-ink); color: white;
    border-radius: 50%; display: grid; place-items: center;
    cursor: pointer; transition: var(--transition);
}
.add-cart-btn:hover { background: var(--color-primary); transform: scale(1.1) rotate(8deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-cream) 60%, #d8f3e9 100%);
    border-radius: var(--radius-lg); overflow: hidden;
    padding: 3.5rem 2.5rem; margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 460px;
}
.hero::before { content: ""; position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,89,.3), transparent 70%); z-index: 0; }
.hero::after { content: ""; position: absolute; bottom: -120px; left: -100px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(94,197,168,.25), transparent 70%); z-index: 0; }
.hero .content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.hero h1 .accent { background: linear-gradient(135deg, var(--color-primary), var(--color-mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.05rem; color: var(--color-text); margin-bottom: 2rem; opacity: .85; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero .hero-img-wrap {
    position: relative; z-index: 1;
    display: flex; justify-content: center; align-items: center;
    animation: float 6s ease-in-out infinite;
}
.hero .hero-img-wrap img {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 991px) {
    .hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; min-height: 0; }
    .hero .hero-img-wrap { display: none; }
}

/* ===== Section ===== */
.section { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.section-head .sub { color: var(--color-muted); margin: .25rem 0 0; }
.section-head a.see-all { font-weight: 600; color: var(--color-primary); display: inline-flex; align-items: center; gap: 4px; }

/* Category circles */
.cat-circle { text-align: center; text-decoration: none; display: block; color: var(--color-ink); transition: var(--transition); }
.cat-circle .ring {
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--color-cream); border: 2px solid var(--color-border);
    margin: 0 auto 12px; display: grid; place-items: center; overflow: hidden;
    transition: var(--transition);
}
.cat-circle .ring img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .ring { border-color: var(--color-primary); transform: scale(1.05) rotate(-2deg); box-shadow: var(--shadow); }
.cat-circle:hover { color: var(--color-primary); }
.cat-circle .name { font-weight: 600; font-size: .95rem; }

/* ===== Footer ===== */
.footer-pets { background: var(--color-ink); color: #c8c8d4; margin-top: 6rem; padding: 4rem 0 1.5rem; }
[data-theme="dark"] .footer-pets { background: #0c0c12; }
.footer-pets h5 { color: white; margin-bottom: 1rem; font-family: var(--font-ui); font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-pets a { color: #a8a8b8; }
.footer-pets a:hover { color: var(--color-primary); }
.footer-pets .copyright { border-top: 1px solid #2a2a38; margin-top: 3rem; padding-top: 1.5rem; color: #7a7a88; font-size: .9rem; }

/* ===== Forms ===== */
.form-pets .form-control,
.form-pets .form-select,
.form-pets select,
.form-pets input:not([type=checkbox]):not([type=radio]):not([type=file]),
.form-pets textarea {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: .7rem 1rem;
    background: var(--color-card);
    color: var(--color-text);
    transition: var(--transition);
    font-family: var(--font-ui);
    width: 100%;
}
.form-pets .form-control:focus,
.form-pets input:focus,
.form-pets textarea:focus,
.form-pets select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255,122,89,.12);
    outline: 0;
}
.form-pets label { font-weight: 500; color: var(--color-ink); margin-bottom: .35rem; display: block; }

/* Auth card */
.auth-card {
    max-width: 460px; margin: 4rem auto;
    background: var(--color-card); border-radius: var(--radius-lg);
    padding: 2.5rem; box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}
.auth-card h1 { font-size: 1.8rem; margin: 0 0 .5rem; }
.auth-card .muted { color: var(--color-muted); margin-bottom: 2rem; }

/* ===== Skeleton ===== */
.skeleton {
    background: linear-gradient(110deg, var(--color-border) 8%, var(--color-cream) 18%, var(--color-border) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 10px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== Tables ===== */
.table-pets { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--color-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-pets th, .table-pets td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table-pets th { background: var(--color-cream); color: var(--color-ink); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.table-pets tbody tr:hover { background: var(--color-cream); }
.table-pets tbody tr:last-child td { border-bottom: 0; }

.status-pill { padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; display: inline-block; }
.status-Pending   { background: #fff4e0; color: #b86700; }
.status-Confirmed { background: #e0f2ff; color: #0a5c9e; }
.status-Shipping  { background: #e9e0ff; color: #5b30c4; }
.status-Completed { background: #defff0; color: #146e4b; }
.status-Cancelled { background: #ffe0e0; color: #b50e0e; }

/* Pagination */
.pagination { display: inline-flex; padding: 0; margin: 2rem 0; list-style: none; gap: 4px; }
.pagination .page-link {
    border: 0; color: var(--color-text); margin: 0 3px;
    border-radius: 10px; min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-card);
}
.pagination .page-item.active .page-link { background: var(--color-primary); color: white; }
.pagination .page-link:hover { background: var(--color-secondary); color: var(--color-primary-dark); }
.pagination .page-item.disabled .page-link { opacity: .5; pointer-events: none; }

/* SweetAlert custom */
.swal2-popup { border-radius: var(--radius) !important; font-family: var(--font-ui) !important; }

/* AOS lite */
[data-aos] { opacity: 0; transition: all .8s ease; }
[data-aos].aos-animate { opacity: 1; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-up"].aos-animate { transform: translateY(0); }
[data-aos="zoom-in"] { transform: scale(.92); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* Admin layout */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--color-ink); color: white; padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand { color: white; font-family: var(--font-display); font-size: 1.4rem; padding: 0 .5rem 1.5rem; border-bottom: 1px solid #2a2a38; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.admin-sidebar .menu-link { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; color: #b8b8c8; border-radius: 12px; margin-bottom: 4px; transition: var(--transition); }
.admin-sidebar .menu-link:hover, .admin-sidebar .menu-link.active { background: rgba(255,122,89,.15); color: var(--color-primary); }
.admin-sidebar .menu-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #6a6a78; padding: 1rem 1rem .35rem; }

.admin-main { padding: 1.5rem 2rem 3rem; background: var(--color-bg); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; }
.admin-topbar h1 { margin: 0; font-size: 1.6rem; }

.stat-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 1rem; align-items: center; transition: var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .icon-box { width: 56px; height: 56px; border-radius: 14px; background: var(--color-cream); display: grid; place-items: center; color: var(--color-primary); }
.stat-card .num { font-size: 1.6rem; font-weight: 800; color: var(--color-ink); }
.stat-card .label { color: var(--color-muted); font-size: .85rem; }

@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; }
}

/* Responsive */
@media (max-width: 768px) {
    .search-pill { display: none !important; }
    .navbar-pets .brand { font-size: 1.2rem; }
    .auth-card { margin: 2rem 1rem; padding: 2rem 1.5rem; }
}

/* Lucide icon sizing */
[data-lucide] { width: 20px; height: 20px; }
.icon-lg [data-lucide] { width: 28px; height: 28px; }
.icon-sm [data-lucide] { width: 16px; height: 16px; }

/* ===== Star rating input ===== */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label {
    font-size: 1.8rem; color: #ddd; cursor: pointer; transition: var(--transition);
    margin: 0;
}
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: #ffc107; }

/* ===== Chatbot widget ===== */
#chatBubble {
    position: fixed; right: 24px; bottom: 24px; z-index: 1050;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-mint));
    color: white; display: grid; place-items: center;
    cursor: pointer; box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
#chatBubble:hover { transform: scale(1.1) rotate(8deg); }
#chatBubble.hidden { display: none; }
#chatBubble [data-lucide] { width: 28px; height: 28px; }

#chatPanel {
    position: fixed; right: 24px; bottom: 24px; z-index: 1060;
    width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 48px);
    background: var(--color-card);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none; flex-direction: column; overflow: hidden;
}
#chatPanel.open { display: flex; animation: chatIn .3s ease-out; }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-head {
    padding: 14px 16px; background: linear-gradient(135deg, var(--color-primary), var(--color-mint));
    color: white; display: flex; justify-content: space-between; align-items: center;
}
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.25); display: grid; place-items: center;
}
.chat-close {
    background: rgba(255,255,255,.2); border: 0; color: white;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center;
}
.chat-close:hover { background: rgba(255,255,255,.4); }
.chat-close [data-lucide] { width: 18px; height: 18px; }

.chat-body {
    flex: 1; padding: 14px; overflow-y: auto;
    background: var(--color-cream);
}
.chat-msg { margin-bottom: 10px; display: flex; }
.chat-msg.me { justify-content: flex-end; }
.chat-msg.bot { justify-content: flex-start; }
.chat-bubble {
    max-width: 80%; padding: 9px 14px; border-radius: 16px;
    font-size: .93rem; line-height: 1.4;
}
.chat-msg.bot .chat-bubble {
    background: var(--color-card); color: var(--color-text);
    border-bottom-left-radius: 4px;
}
.chat-msg.me .chat-bubble {
    background: var(--color-primary); color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble.typing {
    display: inline-flex; gap: 4px; padding: 12px 14px;
}
.chat-bubble.typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-muted); animation: blink 1.2s infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.chat-products { display: grid; gap: 8px; margin-top: 8px; max-width: 100%; }
.chat-product {
    display: flex; gap: 10px; align-items: center;
    background: white; padding: 8px; border-radius: 12px;
    text-decoration: none; color: inherit;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.chat-product:hover { transform: translateX(3px); border-color: var(--color-primary); }
.chat-product img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.chat-product .cp-name { font-weight: 600; font-size: .85rem; color: var(--color-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-product .cp-cat { font-size: .72rem; color: var(--color-muted); }
.chat-product .cp-price { font-weight: 700; color: var(--color-primary); font-size: .85rem; }

.chat-suggest { padding: 8px 14px; display: flex; gap: 6px; flex-wrap: wrap; background: var(--color-cream); border-top: 1px solid var(--color-border); }
.chip {
    background: white; border: 1px solid var(--color-border);
    border-radius: 999px; padding: 5px 12px;
    font-size: .8rem; color: var(--color-text); cursor: pointer;
    transition: var(--transition);
}
.chip:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.chat-form { display: flex; padding: 10px; gap: 8px; border-top: 1px solid var(--color-border); background: var(--color-card); }
.chat-form input {
    flex: 1; border: 1px solid var(--color-border); border-radius: 999px;
    padding: 8px 14px; outline: 0; background: var(--color-cream);
    color: var(--color-text);
}
.chat-form input:focus { border-color: var(--color-primary); }
.chat-form button {
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: var(--color-primary); color: white; cursor: pointer;
    display: grid; place-items: center;
}
.chat-form button:hover { background: var(--color-primary-dark); transform: scale(1.05); }

@media (max-width: 480px) {
    #chatPanel { right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    #chatBubble { right: 16px; bottom: 16px; }
}
