:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d2321;
  --muted: #66706c;
  --line: #e4e2db;
  --brand: #0f6b5c;
  --brand-dark: #0a5144;
  --brand-soft: #e3f1ee;
  --accent: #e8792b;
  --accent-dark: #c9611a;
  --danger: #b4332b;
  --danger-soft: #fbe9e7;
  --info-soft: #e8f0fb;
  --success-soft: #e5f4e8;
  --sample: #7a5af5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.narrow { max-width: 680px; margin: 0 auto; }
.inline { display: inline; }
section { margin: 0 0 40px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo b { color: var(--brand); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.logo-small { font-size: 1.05rem; }
.header-search { flex: 1 1 260px; display: flex; max-width: 480px; }
.header-search input { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; font: inherit; background: var(--bg); min-width: 0; }
.header-search button { border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 0 999px 999px 0; padding: 0 16px; cursor: pointer; }
.header-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-nav a:not(.btn) { color: var(--text); font-weight: 500; }
@media (max-width: 720px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-nav { gap: 12px; font-size: .9rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-whatsapp { background: #1f9d55; border-color: #1f9d55; }
.btn-whatsapp:hover { background: #187f44; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: var(--success-soft); border-color: #bfe2c6; }
.alert-error { background: var(--danger-soft); border-color: #f1c6c1; }
.alert-info { background: var(--info-soft); border-color: #c9d9f2; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--brand) 0%, #13806e 100%); color: #fff; border-radius: 20px; padding: 40px; margin-bottom: 40px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.hero .accent { color: #ffd2a8; }
.lead { font-size: 1.1rem; opacity: .92; margin: 0 0 20px; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 14px; max-width: 560px; }
.hero-search input { flex: 1; border: 0; font: inherit; padding: 8px 12px; min-width: 0; outline: none; color: var(--text); }
.hero-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 24px; }
.hero-card p { opacity: .92; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding: 24px; } }

/* Sections and grids */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.small-head { font-size: 1.05rem; margin: 24px 0 12px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.category { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text); font-weight: 600; font-size: .92rem; line-height: 1.25; }
.category:hover { border-color: var(--brand); text-decoration: none; }
.category img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.category small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.product-card { padding: 0; overflow: hidden; color: var(--text); margin: 0; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.product-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,30,25,.1); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: #eee; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-body h3 { font-size: .98rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; color: var(--brand-dark); }
.price small { font-weight: 400; color: var(--muted); }
.price-lg { font-size: 1.5rem; margin: 4px 0 16px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: #eceae4; color: var(--muted); vertical-align: middle; }
.thumb .tag { position: absolute; top: 8px; left: 8px; }
.tag-sample { background: #efeafe; color: var(--sample); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }

.business-card { display: flex; gap: 14px; align-items: flex-start; color: var(--text); margin: 0; }
.business-card:hover { text-decoration: none; border-color: var(--brand); }
.business-card p { margin: 6px 0 0; }
.avatar { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--brand-soft); }
.avatar-letter { display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: var(--brand); }
.avatar-lg { width: 96px; height: 96px; border-radius: 20px; font-size: 2.4rem; }

/* Business page */
.biz-head { display: flex; gap: 24px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.biz-info p { max-width: 760px; }
.contact-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 600px) { .biz-head { flex-direction: column; } }

/* Product page */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .product-layout { grid-template-columns: 1fr; } }
.main-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #eee; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.active, .thumbs button:hover { border-color: var(--brand); }
.thumbs img { width: 72px; height: 54px; object-fit: cover; }
.description { white-space: normal; margin-bottom: 16px; }
.seller { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 20px; }
.enquiry h2 { font-size: 1.1rem; }

/* Forms */
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=tel], .form input[type=number], .form input[type=search], .form select, .form textarea,
.filters input, .filters select, .inline-form input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #d6d3ca; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.form input[type=file] { margin-top: 6px; font-weight: 400; }
.form .check, .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 64px !important; }
.show-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: 3px; border: 0; background: none; color: var(--brand); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-box { max-width: 420px; margin: 16px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.otp-input { font-size: 1.8rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filters input, .filters select { margin: 0; width: auto; flex: 1 1 200px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { margin-bottom: 0; }
.inline-form input { margin-top: 0; width: auto; }
.inline-form.grow { flex: 1; align-items: center; }
.narrow-input { max-width: 90px; }
.cf-turnstile { margin-bottom: 14px; }
.logo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.logo-row label { margin: 0; }

/* Dashboard */
.subnav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.subnav a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--brand); border-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--text); }
.stat:hover { text-decoration: none; border-color: var(--brand); }
.stat b { display: block; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat-alert { border-color: var(--accent); background: #fff6ef; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.done::before { background: var(--brand); border-color: var(--brand); }
.checklist li.done a { color: var(--muted); text-decoration: line-through; }
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.list-row { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.list-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.list-main { flex: 1; min-width: 0; }
.list-actions { display: flex; gap: 8px; }
.photo-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.photo-item { position: relative; }
.photo-item img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.photo-remove { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.enquiry-item.unread { border-left: 4px solid var(--accent); }
.enquiry-head { display: flex; justify-content: space-between; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.device-list { list-style: none; padding: 0; }
.device-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.status { font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #eee; vertical-align: middle; }
.status-pending { background: #fff1e3; color: var(--accent-dark); }
.status-approved { background: var(--success-soft); color: #1d7a3a; }
.status-rejected, .status-suspended { background: var(--danger-soft); color: var(--danger); }
.danger-zone { border-color: #f1c6c1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .82rem; color: var(--muted); text-transform: uppercase; }
.wrap-buttons { gap: 8px; }

.how .steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.how .steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.how .steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.how .steps b, .how .steps span { display: block; }
.how .steps span { color: var(--muted); font-size: .92rem; }

.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }
.pagination { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 24px 0; }
.prose h2 { margin-top: 24px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 20px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-row nav a { color: var(--text); }
