@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*{margin:0;padding:0;box-sizing:border-box;}
::selection{background:#e8ddd0;color:#3d3929;}
body{background:#f5f5f0;color:#3d3929;font-family:'Inter',system-ui,-apple-system,sans-serif;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;}

/* ── Navbar ── */
.navbar{display:flex;align-items:center;justify-content:space-between;padding:0 32px;height:52px;background:#ece7df;border-bottom:1px solid #d9d2c7;position:sticky;top:0;z-index:100;}
.brand{font-size:0.92rem;font-weight:700;color:#3d3929;text-decoration:none;letter-spacing:-0.01em;}
.nav-links{display:flex;align-items:center;gap:16px;}
.nav-links a{color:#7c7565;text-decoration:none;font-size:0.8rem;font-weight:500;transition:color 0.15s;}
.nav-links a:hover{color:#3d3929;}
.balance-badge{background:#d8c8a8;color:#5c4d2a;padding:3px 10px;border-radius:20px;font-size:0.72rem;font-weight:600;}

/* ── Buttons ── */
.btn-primary{background:#b35c37;color:#fff;border:none;padding:8px 18px;border-radius:6px;cursor:pointer;font-size:0.8rem;font-weight:600;text-decoration:none;display:inline-block;transition:all 0.2s;font-family:inherit;}
.btn-primary:hover{background:#9a4e2e;}
.btn-danger{background:transparent;color:#b93c3c;border:1px solid #e5c5c5;padding:5px 12px;border-radius:6px;cursor:pointer;font-size:0.76rem;font-weight:500;font-family:inherit;transition:all 0.15s;}
.btn-danger:hover{background:#fdf0f0;border-color:#b93c3c;}
.btn-success{background:#f0f7f0;color:#2d7a3a;border:1px solid #c5dcc5;padding:5px 12px;border-radius:6px;cursor:pointer;font-size:0.76rem;font-weight:500;font-family:inherit;}
.btn-outline{background:transparent;color:#7c7565;border:1px solid #cfc8bd;padding:5px 12px;border-radius:6px;cursor:pointer;font-size:0.76rem;font-weight:500;font-family:inherit;transition:all 0.15s;}
.btn-outline:hover{border-color:#9c9484;color:#3d3929;}

/* ── Hero ── */
.hero{padding:80px 40px 64px;background:#ece7df;border-bottom:1px solid #d9d2c7;}
.hero-inner{max-width:580px;}
.hero-eyebrow{font-size:0.72rem;font-weight:600;color:#b35c37;text-transform:uppercase;letter-spacing:0.12em;margin-bottom:16px;}
.hero h1{font-size:2.8rem;font-weight:700;color:#2c2418;line-height:1.12;letter-spacing:-0.04em;margin-bottom:14px;}
.hero h1 span{color:#9c9484;}
.hero p{font-size:0.9rem;color:#7c7565;line-height:1.7;margin-bottom:28px;max-width:440px;}
.hero-actions{display:flex;gap:12px;align-items:center;}
.hero-link{font-size:0.8rem;color:#7c7565;text-decoration:none;font-weight:500;transition:color 0.15s;}
.hero-link:hover{color:#3d3929;}

/* ── Section Headers ── */
.section-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px;}
.section-header h2{font-size:0.92rem;font-weight:600;color:#3d3929;letter-spacing:-0.01em;}
.section-header a{font-size:0.76rem;color:#b35c37;text-decoration:none;transition:color 0.15s;}
.section-header a:hover{color:#8b4530;}

/* ── Features ── */
.features{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #d9d2c7;background:#ece7df;}
.feature-card{padding:28px 32px;border-right:1px solid #d9d2c7;}
.feature-card:last-child{border-right:none;}
.feature-icon{width:28px;height:28px;margin-bottom:14px;color:#b35c37;}
.feature-card h3{font-size:0.84rem;font-weight:600;color:#3d3929;margin-bottom:6px;}
.feature-card p{font-size:0.78rem;color:#7c7565;line-height:1.6;}

/* ── Products ── */
.featured-products{padding:40px;max-width:1200px;margin:0 auto;}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;}
.product-card{background:#fff;padding:20px;border-radius:10px;border:1px solid #e5e0d8;transition:all 0.2s;cursor:pointer;}
.product-card:hover{border-color:#d0c8bc;box-shadow:0 4px 20px rgba(0,0,0,0.06);}
.product-img{height:160px;background:#f5f3ef;border-radius:8px;overflow:hidden;margin-bottom:14px;display:flex;align-items:center;justify-content:center;}
.product-img img{width:100%;height:100%;object-fit:cover;}
.no-img{width:36px;height:36px;color:#c8c2b8;}
.category-tag{font-size:0.65rem;color:#b35c37;text-transform:uppercase;letter-spacing:0.1em;font-weight:600;}
.product-info h3{color:#2c2418;margin:6px 0 4px;font-size:0.86rem;font-weight:600;letter-spacing:-0.01em;}
.product-info p{color:#9c9484;font-size:0.78rem;margin-bottom:14px;line-height:1.5;}
.product-footer{display:flex;align-items:center;justify-content:space-between;}
.price{font-size:0.95rem;font-weight:700;color:#2c2418;}

/* ── Auth ── */
.auth-page{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 52px);padding:32px;background:#f5f5f0;}
.auth-card{width:100%;max-width:380px;background:#fff;padding:36px;border-radius:12px;border:1px solid #e5e0d8;box-shadow:0 2px 12px rgba(0,0,0,0.04);}
.auth-card h2{color:#2c2418;font-size:1.35rem;font-weight:700;letter-spacing:-0.03em;margin-bottom:4px;}
.auth-card>p{color:#9c9484;font-size:0.8rem;margin-bottom:28px;}

/* ── Forms ── */
.form-group{margin-bottom:12px;}
.form-group label{display:block;font-size:0.72rem;color:#7c7565;margin-bottom:5px;font-weight:500;text-transform:uppercase;letter-spacing:0.05em;}
.form-group input,.form-group select,.form-group textarea{width:100%;background:#fff;border:1px solid #d9d2c7;border-radius:6px;padding:9px 12px;color:#3d3929;font-size:0.84rem;outline:none;transition:border-color 0.15s,box-shadow 0.15s;font-family:inherit;}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#b35c37;box-shadow:0 0 0 3px rgba(179,92,55,0.08);}
.form-group textarea{resize:vertical;min-height:80px;}
.form-action{margin-top:18px;}
.form-action .btn-primary{width:100%;padding:10px;font-size:0.84rem;border-radius:8px;text-align:center;}

/* ── Messages ── */
.error-msg{background:#fdf2f2;color:#b93c3c;border:1px solid #e5c5c5;border-radius:6px;padding:9px 12px;font-size:0.8rem;margin-bottom:12px;display:none;}
.success-msg{background:#f0f7f0;color:#2d7a3a;border:1px solid #c5dcc5;border-radius:6px;padding:9px 12px;font-size:0.8rem;margin-bottom:12px;display:none;}

/* ── Pages ── */
.page{padding:36px;max-width:1200px;margin:0 auto;}
.page h1{font-size:1.3rem;color:#2c2418;margin-bottom:24px;font-weight:700;letter-spacing:-0.02em;}

/* ── Filters ── */
.filters{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap;}
.filters input,.filters select{background:#fff;border:1px solid #d9d2c7;border-radius:6px;padding:7px 12px;color:#3d3929;font-size:0.8rem;outline:none;font-family:inherit;transition:border-color 0.15s;}
.filters input:focus,.filters select:focus{border-color:#b35c37;}

/* ── Tables ── */
.table-wrap{overflow-x:auto;border:1px solid #e5e0d8;border-radius:10px;background:#fff;}
table{width:100%;border-collapse:collapse;font-size:0.8rem;}
th{text-align:left;color:#9c9484;font-weight:600;padding:10px 14px;border-bottom:1px solid #e5e0d8;background:#faf8f5;font-size:0.68rem;text-transform:uppercase;letter-spacing:0.06em;}
td{padding:10px 14px;border-bottom:1px solid #f2efea;color:#3d3929;}
tr:last-child td{border-bottom:none;}
tr:hover td{background:#faf8f5;}

/* ── Badges ── */
.badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:0.68rem;font-weight:600;}
.badge-green{background:#f0f7f0;color:#2d7a3a;border:1px solid #c5dcc5;}
.badge-blue{background:#eef2ff;color:#4558d0;border:1px solid #c8d0f0;}
.badge-red{background:#fdf2f2;color:#b93c3c;border:1px solid #e5c5c5;}
.badge-orange{background:#fef7ed;color:#a86518;border:1px solid #ecd8b8;}

/* ── KPI ── */
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px;}
.kpi{background:#fff;padding:22px;border-radius:10px;border:1px solid #e5e0d8;}
.kpi label{font-size:0.66rem;color:#9c9484;text-transform:uppercase;letter-spacing:0.08em;display:block;font-weight:600;}
.kpi .val{font-size:1.7rem;font-weight:700;color:#2c2418;margin-top:8px;letter-spacing:-0.03em;}
/* ── Product Detail ── */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:40px;}
.detail-img{background:#f5f3ef;border:1px solid #e5e0d8;border-radius:10px;height:320px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.detail-img img{width:100%;height:100%;object-fit:cover;}
.detail-img svg{width:44px;height:44px;color:#c8c2b8;}
.detail-info h1{font-size:1.5rem;color:#2c2418;margin-bottom:8px;font-weight:700;letter-spacing:-0.03em;}
.detail-info .price{font-size:1.6rem;color:#2c2418;font-weight:700;margin:14px 0;}
.detail-info>p{color:#7c7565;line-height:1.7;margin-bottom:20px;font-size:0.84rem;}

/* ── Wallet ── */
.wallet-balance{background:#fff;border:1px solid #e5e0d8;border-radius:10px;padding:36px;text-align:center;margin-bottom:28px;}
.wallet-balance .amount{font-size:2.6rem;font-weight:700;color:#2c2418;letter-spacing:-0.04em;}
.wallet-balance p{color:#9c9484;margin-top:6px;font-size:0.8rem;}

/* ── Admin Layout ── */
.admin-layout{display:grid;grid-template-columns:200px 1fr;min-height:calc(100vh - 52px);}
.sidebar{background:#ece7df;border-right:1px solid #d9d2c7;padding:14px 0;}
.sidebar a{display:block;padding:8px 18px;color:#7c7565;text-decoration:none;font-size:0.8rem;font-weight:500;transition:all 0.15s;}
.sidebar a:hover{color:#3d3929;background:#e3ddd4;}
.sidebar a.active{color:#b35c37;background:#e3ddd4;font-weight:600;}
.admin-content{padding:32px;background:#f5f5f0;}
.admin-content h1{font-size:1.15rem;color:#2c2418;margin-bottom:20px;font-weight:700;letter-spacing:-0.02em;}

/* ── Modals ── */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.25);display:none;align-items:center;justify-content:center;z-index:200;backdrop-filter:blur(3px);}
.modal-overlay.open{display:flex;}
.modal{background:#fff;border:1px solid #e5e0d8;border-radius:12px;padding:28px;width:100%;max-width:440px;box-shadow:0 20px 60px rgba(0,0,0,0.1);}
.modal h2{color:#2c2418;margin-bottom:18px;font-weight:700;font-size:1.05rem;letter-spacing:-0.02em;}
.modal-close{float:right;background:none;border:none;color:#9c9484;font-size:1.3rem;cursor:pointer;transition:color 0.15s;line-height:1;}
.modal-close:hover{color:#3d3929;}
.admin-select{background:#fff;color:#3d3929;border:1px solid #d9d2c7;border-radius:5px;padding:4px 8px;font-size:0.72rem;font-family:inherit;outline:none;}

/* ── Mobile Nav ── */
.hamburger{display:none;background:none;border:none;cursor:pointer;padding:4px;}
.hamburger svg{width:22px;height:22px;color:#7c7565;}
.hamburger:hover svg{color:#3d3929;}

/* ── Toasts ── */
.toast-container{position:fixed;top:62px;right:20px;z-index:300;display:flex;flex-direction:column;gap:8px;}
.toast{padding:10px 18px;border-radius:8px;font-size:0.8rem;font-weight:500;animation:toastIn 0.3s ease,toastOut 0.3s ease 2.7s forwards;max-width:340px;box-shadow:0 4px 12px rgba(0,0,0,0.08);}
.toast-success{background:#f0f7f0;color:#2d7a3a;border:1px solid #c5dcc5;}
.toast-error{background:#fdf2f2;color:#b93c3c;border:1px solid #e5c5c5;}
.toast-info{background:#eef2ff;color:#4558d0;border:1px solid #c8d0f0;}
@keyframes toastIn{from{opacity:0;transform:translateX(40px);}to{opacity:1;transform:translateX(0);}}
@keyframes toastOut{from{opacity:1;}to{opacity:0;transform:translateY(-10px);}}

/* ── Loading ── */
.spinner{display:inline-block;width:18px;height:18px;border:2px solid #e5e0d8;border-top-color:#b35c37;border-radius:50%;animation:spin 0.6s linear infinite;}
.loading-overlay{display:flex;align-items:center;justify-content:center;padding:60px;color:#9c9484;font-size:0.84rem;gap:12px;}
.btn-loading{pointer-events:none;opacity:0.6;position:relative;}
@keyframes spin{to{transform:rotate(360deg);}}

/* ── Footer ── */
.footer{border-top:1px solid #d9d2c7;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;color:#b0a898;font-size:0.72rem;background:#ece7df;}
.footer a{color:#9c9484;text-decoration:none;transition:color 0.15s;}
.footer a:hover{color:#3d3929;}
.footer-links{display:flex;gap:16px;}

/* ── Skeleton ── */
.skeleton{background:linear-gradient(90deg,#f0ede8 25%,#e8e4de 50%,#f0ede8 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:6px;}
@keyframes shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}

/* ═══════════════════════════ BUYER CHAT WIDGET ═══════════════════════════ */
#chat-widget{position:fixed;bottom:24px;right:24px;z-index:500;}
.chat-fab{width:52px;height:52px;border-radius:50%;background:#b35c37;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(179,92,55,0.3);transition:transform 0.2s,box-shadow 0.2s;position:relative;}
.chat-fab:hover{transform:scale(1.06);box-shadow:0 6px 24px rgba(179,92,55,0.4);}
.chat-fab svg{width:22px;height:22px;}
.chat-badge{position:absolute;top:-4px;right:-4px;background:#b93c3c;color:#fff;font-size:0.6rem;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #f5f5f0;}
.chat-panel{position:fixed;bottom:86px;right:24px;width:360px;max-height:500px;height:500px;background:#fff;border:1px solid #e5e0d8;border-radius:14px;display:none;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,0.1);overflow:hidden;}
.chat-panel.open{display:flex;}
.chat-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e0d8;background:#ece7df;}
.chat-header strong{color:#2c2418;font-size:0.86rem;}
.chat-subtitle{display:block;font-size:0.68rem;color:#9c9484;margin-top:2px;}
.chat-close{background:none;border:none;color:#9c9484;font-size:1.3rem;cursor:pointer;line-height:1;}
.chat-close:hover{color:#3d3929;}
.chat-back{background:none;border:none;color:#7c7565;font-size:1rem;cursor:pointer;margin-right:10px;padding:0;font-family:inherit;}
.chat-back:hover{color:#3d3929;}
.chat-body{flex:1;overflow-y:auto;padding:0;}
.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:14px;color:#9c9484;font-size:0.82rem;}
.chat-empty .btn-primary{padding:8px 18px;font-size:0.8rem;}
.chat-new-btn{width:100%;padding:10px 16px;background:#faf8f5;border:none;border-bottom:1px solid #e5e0d8;color:#b35c37;font-size:0.8rem;font-weight:600;cursor:pointer;text-align:left;font-family:inherit;}
.chat-new-btn:hover{background:#f0ede8;}
.chat-conv-item{padding:12px 16px;border-bottom:1px solid #f2efea;cursor:pointer;transition:background 0.15s;display:flex;align-items:center;justify-content:space-between;}
.chat-conv-item:hover{background:#faf8f5;}
.chat-conv-item.has-unread{background:#fdf5ef;}
.conv-title{color:#3d3929;font-size:0.8rem;font-weight:500;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:10px;}
.conv-meta{display:flex;align-items:center;gap:8px;}
.conv-unread{background:#b35c37;color:#fff;font-size:0.6rem;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;}
#chat-messages{display:flex;flex-direction:column;gap:4px;padding:12px;min-height:100%;overflow-y:auto;}
.chat-msg{display:flex;flex-direction:column;max-width:80%;}
.msg-mine{align-self:flex-end;align-items:flex-end;}
.msg-theirs{align-self:flex-start;align-items:flex-start;}
.msg-bubble{padding:8px 13px;border-radius:14px;font-size:0.8rem;line-height:1.5;word-break:break-word;white-space:pre-wrap;}
.msg-mine .msg-bubble{background:#b35c37;color:#fff;border-bottom-right-radius:4px;}
.msg-theirs .msg-bubble{background:#f0ede8;color:#3d3929;border-bottom-left-radius:4px;}
.msg-time{font-size:0.62rem;color:#b0a898;margin-top:2px;padding:0 4px;}
.chat-input-area{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e5e0d8;background:#faf8f5;}
.chat-input-area input{flex:1;background:#fff;border:1px solid #d9d2c7;border-radius:8px;padding:8px 12px;color:#3d3929;font-size:0.8rem;outline:none;font-family:inherit;}
.chat-input-area input:focus{border-color:#b35c37;}
.chat-input-area button{background:#b35c37;color:#fff;border:none;border-radius:8px;width:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.15s;}
.chat-input-area button:hover{background:#9a4e2e;}
.chat-input-area button svg{width:16px;height:16px;}
.product-chat-btn{background:none;border:1px solid #d9d2c7;border-radius:6px;padding:5px 7px;cursor:pointer;color:#7c7565;transition:all 0.15s;display:flex;align-items:center;gap:4px;font-size:0.7rem;font-family:inherit;}
.product-chat-btn:hover{border-color:#b35c37;color:#b35c37;background:#fdf5ef;}
.product-chat-btn svg{width:13px;height:13px;}

/* ═══════════════════════════ ADMIN CHAT ═══════════════════════════ */
.admin-chat-layout{display:grid;grid-template-columns:260px 1fr;height:calc(100vh - 140px);border:1px solid #e5e0d8;border-radius:10px;overflow:hidden;background:#fff;}
.admin-chat-sidebar{background:#faf8f5;border-right:1px solid #e5e0d8;overflow-y:auto;}
.admin-chat-main{display:flex;flex-direction:column;background:#fff;}
.admin-chat-item{padding:12px 14px;border-bottom:1px solid #f2efea;cursor:pointer;transition:background 0.15s;position:relative;}
.admin-chat-item:hover{background:#f0ede8;}
.admin-chat-item.active{background:#ece7df;border-left:2px solid #b35c37;}
.admin-chat-filter{padding:10px 12px;border-bottom:1px solid #e5e0d8;}
.admin-chat-filter select{width:100%;background:#fff;border:1px solid #d9d2c7;border-radius:6px;color:#3d3929;padding:7px 10px;font-size:0.78rem;font-family:inherit;outline:none;}
.admin-chat-header{padding:12px 16px;border-bottom:1px solid #e5e0d8;background:#faf8f5;min-height:44px;display:flex;align-items:center;}
.admin-chat-header span{color:#9c9484;font-size:0.82rem;}
.admin-chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:4px;}
.admin-chat-input{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e5e0d8;background:#faf8f5;}
.admin-chat-input input{flex:1;background:#fff;border:1px solid #d9d2c7;border-radius:8px;padding:9px 12px;color:#3d3929;font-size:0.82rem;outline:none;font-family:inherit;}
.admin-chat-input input:focus{border-color:#b35c37;}
.admin-chat-input button{background:#b35c37;color:#fff;border:none;border-radius:8px;padding:9px 18px;cursor:pointer;font-size:0.8rem;font-weight:600;font-family:inherit;transition:background 0.15s;}
.admin-chat-input button:hover{background:#9a4e2e;}
.admin-chat-empty{display:flex;align-items:center;justify-content:center;height:100%;color:#b0a898;font-size:0.84rem;}
.chat-unread-badge{background:#b93c3c;color:#fff;font-size:0.58rem;font-weight:700;padding:1px 5px;border-radius:10px;margin-left:6px;vertical-align:middle;}
.chat-unread-dot{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:7px;height:7px;border-radius:50%;background:#b35c37;}
.chat-msg-admin{align-self:flex-end;max-width:75%;}
.chat-msg-buyer{align-self:flex-start;max-width:75%;}
.chat-msg-meta{font-size:0.62rem;color:#9c9484;margin-bottom:2px;padding:0 4px;}
.chat-msg-body{background:#f0ede8;padding:9px 13px;border-radius:12px;color:#3d3929;font-size:0.8rem;line-height:1.45;word-break:break-word;white-space:pre-wrap;}
.chat-msg-admin .chat-msg-body{background:#b35c37;color:#fff;border-bottom-right-radius:4px;}
.chat-msg-buyer .chat-msg-body{border-bottom-left-radius:4px;}

/* ═══════════════════════════ NOTIFICATIONS ═══════════════════════════ */
.notif-bell-wrap{position:relative;}
.notif-bell{background:none;border:none;cursor:pointer;position:relative;padding:4px;display:flex;align-items:center;justify-content:center;color:#7c7565;transition:color 0.15s;}
.notif-bell:hover{color:#3d3929;}
.notif-bell svg{width:20px;height:20px;}
.notif-bell-badge{position:absolute;top:-2px;right:-4px;background:#b93c3c;color:#fff;font-size:0.55rem;font-weight:700;min-width:16px;height:16px;border-radius:50%;display:none;align-items:center;justify-content:center;border:2px solid #ece7df;padding:0 3px;}
.notif-panel{position:absolute;top:calc(100% + 8px);right:0;width:340px;max-height:420px;background:#fff;border:1px solid #e5e0d8;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,0.1);display:none;flex-direction:column;z-index:300;overflow:hidden;}
.notif-panel.open{display:flex;}
.notif-panel-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e0d8;background:#faf8f5;}
.notif-panel-header strong{color:#2c2418;font-size:0.84rem;}
.notif-mark-all{background:none;border:none;color:#b35c37;font-size:0.72rem;font-weight:600;cursor:pointer;font-family:inherit;transition:color 0.15s;}
.notif-mark-all:hover{color:#8b4530;}
.notif-panel-body{overflow-y:auto;max-height:360px;}
.notif-item{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid #f2efea;cursor:pointer;transition:background 0.15s;align-items:flex-start;}
.notif-item:last-child{border-bottom:none;}
.notif-item:hover{background:#faf8f5;}
.notif-unread{background:#fdf8f4;}
.notif-icon{width:32px;height:32px;min-width:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.notif-icon svg{width:16px;height:16px;}
.notif-icon-order{background:#fef7ed;color:#a86518;}
.notif-icon-wallet{background:#f0f7f0;color:#2d7a3a;}
.notif-icon-system{background:#eef2ff;color:#4558d0;}
.notif-icon-info{background:#eef2ff;color:#4558d0;}
.notif-content{flex:1;min-width:0;}
.notif-title{font-size:0.78rem;font-weight:600;color:#2c2418;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.notif-msg{font-size:0.72rem;color:#7c7565;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.notif-time{font-size:0.64rem;color:#b0a898;margin-top:3px;}
.notif-empty{padding:40px 20px;text-align:center;color:#b0a898;font-size:0.82rem;}

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media(max-width:768px){
  .features{grid-template-columns:1fr;}
  .feature-card{border-right:none;border-bottom:1px solid #d9d2c7;}
  .kpi-grid{grid-template-columns:repeat(2,1fr);}
  .product-detail{grid-template-columns:1fr;}
  .admin-layout{grid-template-columns:1fr;}
  .sidebar{border-right:none;border-bottom:1px solid #d9d2c7;}
  .navbar{padding:0 16px;}
  .page{padding:20px;}
  .featured-products{padding:24px 16px;}
  .hero{padding:48px 16px 40px;}
  .hero h1{font-size:2rem;}
  .footer{padding:20px 16px;flex-direction:column;gap:10px;text-align:center;}
  .hamburger{display:block;}
  .nav-links{display:none;position:absolute;top:52px;left:0;right:0;background:#ece7df;border-bottom:1px solid #d9d2c7;flex-direction:column;padding:14px 18px;gap:10px;}
  .nav-links.open{display:flex;}
  .nav-links a{font-size:0.86rem;}
  .chat-panel{width:100vw!important;right:0!important;bottom:0!important;border-radius:0!important;height:100vh!important;max-height:100vh!important;}
  .admin-chat-layout{grid-template-columns:1fr;height:auto;}
  .admin-chat-sidebar{max-height:180px;}
  .admin-chat-main{min-height:360px;}
}
