:root {
    --green: #16a34a;
    --green-dark: #14532d;
    --green-soft: #ecfdf5;
    --orange: #f97316;
    --bg: #f5f7f4;
    --card: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --red: #dc2626;
    --shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button, select, textarea { font: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.w-100 { width: 100%; }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--green-dark); white-space: nowrap; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800; box-shadow: 0 6px 14px rgba(22, 163, 74, .25);
}

.main-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #374151; }
.main-nav a:hover { color: var(--green); }

.search { flex: 1; max-width: 400px; margin-left: auto; }
.search form { display: flex; background: #f3f4f6; border-radius: 999px; padding: 4px 4px 4px 14px; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--ink); }
.search button { border: 0; background: var(--green); color: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; }

.cart-link { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #374151; white-space: nowrap; }
.cart-link b { color: var(--orange); }
.cart-count {
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--orange); color: #fff; font-size: 11px; display: inline-flex;
    align-items: center; justify-content: center;
}

/* ---------- category strip ---------- */
.cat-strip { background: #fff; border-bottom: 1px solid var(--line); }
.cat-strip .container { display: flex; gap: 22px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-strip .container::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: #4b5563; white-space: nowrap; }
.cat-chip:hover { color: var(--green); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    margin: 20px 0;
    border-radius: 26px;
    background: linear-gradient(120deg, #0f3d24 0%, #15803d 56%, #4d7c0f 100%);
    color: #fff;
    padding: 40px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(20, 83, 45, .18);
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .09); pointer-events: none;
}
.hero::before { width: 280px; height: 280px; right: -60px; top: -100px; }
.hero::after { width: 180px; height: 180px; right: 180px; bottom: -120px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
    padding: 4px 12px; border-radius: 999px; font-size: 12px; margin-bottom: 16px;
}
.hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 12px; letter-spacing: .5px; }
.hero p { margin: 0 0 22px; color: rgba(255, 255, 255, .8); font-size: 15px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; position: relative; z-index: 1; }
.hero-stat b { display: block; font-size: 22px; }
.hero-stat span { font-size: 12px; color: rgba(255, 255, 255, .65); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; padding: 11px 18px; font-size: 14px;
    font-weight: 700; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(22, 163, 74, .22); }
.btn-primary:hover { background: #15803d; }
.btn-orange { background: linear-gradient(135deg, #fb923c, #f97316); color: #fff; box-shadow: 0 6px 14px rgba(249, 115, 22, .25); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-outline { background: #fff; border: 1px solid var(--line); color: #374151; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-danger { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- sections ---------- */
.section { margin: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: .2px; }
.section-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.section-link { color: var(--green); font-size: 13px; font-weight: 700; }

/* ---------- categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 15px;
    padding: 15px 8px; text-align: center; transition: .18s;
}
.category-card:hover { border-color: #bbf7d0; box-shadow: var(--shadow); transform: translateY(-2px); }
.category-card .icon { font-size: 27px; line-height: 1.2; }
.category-card .name { font-size: 13px; color: #374151; margin-top: 4px; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
    display: flex; flex-direction: column; background: var(--card);
    border: 1px solid var(--line); border-radius: 17px; overflow: hidden;
    transition: .2s; box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d1fae5; }
.product-cover {
    position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center;
    justify-content: center; font-size: 54px; overflow: hidden;
}
.product-cover::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .55), transparent 42%);
}
.product-cover span { position: relative; z-index: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .12)); }
.cover-veg { background: linear-gradient(135deg, #dcfce7, #86efac); }
.cover-fruit { background: linear-gradient(135deg, #ffedd5, #fdba74); }
.cover-meat { background: linear-gradient(135deg, #ffe4e6, #fda4af); }
.cover-seafood { background: linear-gradient(135deg, #e0f2fe, #7dd3fc); }
.cover-grain { background: linear-gradient(135deg, #fef3c7, #fcd34d); }
.cover-dairy { background: linear-gradient(135deg, #f0f9ff, #bae6fd); }
.product-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.product-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.price { color: var(--orange); font-weight: 800; font-size: 20px; line-height: 1; }
.price small { font-size: 12px; font-weight: 600; }
.price-old { color: #9ca3af; text-decoration: line-through; font-size: 12px; }
.group-tag {
    display: inline-flex; align-items: center; gap: 3px; align-self: flex-start;
    background: #fff7ed; color: #c2410c; border-radius: 6px; padding: 1px 7px;
    font-size: 11px; font-weight: 700;
}

/* ---------- shops ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-card {
    display: flex; gap: 14px; align-items: flex-start; background: var(--card);
    border: 1px solid var(--line); border-radius: 17px; padding: 18px; transition: .18s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-logo {
    width: 54px; height: 54px; border-radius: 15px; background: var(--green-soft);
    display: flex; align-items: center; justify-content: center; font-size: 28px; flex: 0 0 auto;
}
.shop-name { font-size: 16px; font-weight: 800; }
.shop-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.shop-meta { font-size: 12px; color: var(--green); margin-top: 6px; }

/* ---------- detail ---------- */
.breadcrumb { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.breadcrumb a:hover { color: var(--green); }
.product-detail {
    display: grid; grid-template-columns: 1.02fr .98fr; gap: 26px;
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    padding: 24px; margin: 14px 0 24px; box-shadow: var(--shadow);
}
.detail-cover {
    border-radius: 18px; min-height: 340px; display: flex; align-items: center;
    justify-content: center; font-size: 120px; position: relative; overflow: hidden;
}
.detail-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 45%); }
.detail-cover span { position: relative; z-index: 1; }
.detail-info h1 { font-size: 26px; line-height: 1.35; margin: 0 0 8px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.detail-price-box { background: #fff7ed; border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.detail-price { color: var(--orange); font-size: 32px; font-weight: 800; line-height: 1.1; }
.detail-price small { font-size: 14px; }
.detail-price-old { color: #9ca3af; text-decoration: line-through; font-size: 13px; margin-left: 8px; }
.detail-stats { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 34px; height: 36px; border: 0; background: #f9fafb; cursor: pointer; font-size: 16px; }
.qty-control input { width: 46px; height: 36px; border: 0; text-align: center; outline: none; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.merchant-box { display: flex; gap: 12px; align-items: center; background: #f9fafb; border-radius: 13px; padding: 12px 14px; margin-top: 16px; }
.detail-desc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.detail-desc h3 { margin: 0 0 10px; font-size: 17px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; margin-top: 18px; }
.cart-group { background: var(--card); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; margin-bottom: 14px; }
.cart-shop { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid var(--line); font-weight: 700; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f3f4f6; }
.cart-item:last-child { border-bottom: 0; }
.cart-item .cover { width: 68px; height: 68px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; flex: 0 0 auto; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item .subtotal { font-weight: 800; color: var(--orange); white-space: nowrap; }
.cart-summary { background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 18px; position: sticky; top: 82px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 8px 0; }
.cart-summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; font-weight: 800; }
.cart-summary .total b { color: var(--orange); font-size: 24px; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; }
.link-btn:hover { color: var(--red); }

/* ---------- forms / checkout ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 14px; font-size: 17px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.input, select.input, textarea.input {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    outline: none; background: #fff; font-size: 14px; color: var(--ink);
}
.input:focus { border-color: #86efac; box-shadow: 0 0 0 3px rgba(22, 163, 74, .08); }
textarea.input { min-height: 78px; resize: vertical; }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card {
    flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 12px;
    padding: 11px 14px; cursor: pointer; font-size: 14px; background: #fff;
}
.radio-card input { margin-right: 6px; }
.radio-card.active { border-color: var(--green); background: var(--green-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.alert { border-radius: 11px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* ---------- orders ---------- */
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 13px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #f3f4f6; padding-bottom: 10px; margin-bottom: 10px; }
.order-no { font-size: 12px; color: var(--muted); }
.order-body { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-items-preview { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.order-items-preview .mini-cover { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.order-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-wait { background: #fff7ed; color: #c2410c; }
.st-doing { background: #eff6ff; color: #1d4ed8; }
.st-done { background: #ecfdf5; color: #047857; }
.st-cancel { background: #f3f4f6; color: #6b7280; }
.st-refund { background: #fef2f2; color: #b91c1c; }
.tag { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag-wait { background: #fff7ed; color: #c2410c; }
.tag-ok { background: #ecfdf5; color: #047857; }
.tag-gray { background: #f3f4f6; color: #6b7280; }
.tag-red { background: #fef2f2; color: #b91c1c; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 52px; margin-bottom: 10px; }

/* ---------- footer ---------- */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 44px; padding: 30px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; color: #cbd5e1; }
.footer-links a:hover { color: #fff; }

/* ---------- mobile nav ---------- */
.mobile-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom)); backdrop-filter: blur(10px);
}
.mobile-nav a { flex: 1; text-align: center; font-size: 11px; color: #6b7280; }
.mobile-nav a .ico { display: block; font-size: 20px; line-height: 1.3; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--green); }

/* ---------- merchant ---------- */
.merchant-shell { min-height: 100vh; background: #f4f7f4; }
.merchant-top { background: linear-gradient(120deg, #0f3d24, #15803d); color: #fff; }
.merchant-top .inner { max-width: 1180px; margin: 0 auto; padding: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.merchant-top .shop { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.merchant-top .shop .logo { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.merchant-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.merchant-nav a { color: rgba(255, 255, 255, .82); padding: 7px 11px; border-radius: 8px; font-size: 13px; }
.merchant-nav a:hover, .merchant-nav a.active { background: rgba(255, 255, 255, .14); color: #fff; }
.merchant-main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 50px; }
.merchant-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; margin-bottom: 16px; }
.merchant-card h3 { margin: 0 0 14px; font-size: 17px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat-card .label { font-size: 12px; color: var(--muted); }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 4px; color: var(--green-dark); }
.stat-card .value.orange { color: var(--orange); }
.data-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid #eef0f2; text-align: left; font-size: 13px; vertical-align: middle; }
table.data th { background: #f9fafb; font-weight: 700; color: #4b5563; white-space: nowrap; }
table.data tr:hover td { background: #fafcfa; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #f4f6f8; }
.admin-sidebar {
    width: 220px; flex: 0 0 220px; background: #111827; color: #d1d5db;
    padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
}
.admin-sidebar .brand { color: #fff; font-size: 17px; padding: 4px 10px 16px; }
.admin-sidebar a { color: #cbd5e1; padding: 10px 12px; border-radius: 9px; font-size: 13px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #1f2937; color: #fff; }
.admin-main { flex: 1; min-width: 0; padding: 20px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-top h1 { font-size: 22px; margin: 0; }
.admin-user { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin-bottom: 16px; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .input, .filter-bar select { width: auto; min-width: 120px; padding: 7px 10px; }

/* ---------- responsive ---------- */
@media (min-width: 901px) {
    .mobile-only { display: none !important; }
}
@media (max-width: 900px) {
    .main-nav { display: none; }
    .header-inner { height: 58px; gap: 10px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
    .search { max-width: none; }
    .search form { padding-left: 10px; }
    .search input { font-size: 12px; }
    .cart-link span.label { display: none; }
    .cat-strip .container { gap: 16px; }
    .hero { padding: 24px 20px; border-radius: 19px; margin: 14px 0; }
    .hero h1 { font-size: 25px; }
    .hero p { font-size: 13px; margin-bottom: 16px; }
    .hero-stats { gap: 18px; margin-top: 18px; }
    .hero-stat b { font-size: 18px; }
    .section { margin: 20px 0; }
    .section-title { font-size: 19px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .category-card { padding: 12px 5px; }
    .category-card .icon { font-size: 23px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-cover { font-size: 40px; }
    .product-body { padding: 10px; }
    .product-name { font-size: 13px; }
    .price { font-size: 17px; }
    .product-meta { font-size: 11px; }
    .group-tag { font-size: 10px; }
    .shop-grid { grid-template-columns: 1fr; gap: 10px; }
    .shop-card { padding: 14px; }
    .product-detail { grid-template-columns: 1fr; padding: 15px; gap: 16px; border-radius: 17px; }
    .detail-cover { min-height: 230px; font-size: 90px; }
    .detail-info h1 { font-size: 21px; }
    .detail-price { font-size: 27px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { padding: 12px; gap: 10px; }
    .cart-item .cover { width: 56px; height: 56px; font-size: 26px; }
    .cart-item .subtotal { font-size: 13px; }
    .form-grid { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 80px; }
    .mobile-nav { display: flex; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .merchant-top .inner { padding: 12px 14px; }
    .merchant-top .shop { font-size: 16px; }
    .merchant-nav { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .merchant-nav a { white-space: nowrap; }
    .merchant-main { padding: 14px 12px 90px; }
    .admin-shell { display: block; }
    .admin-sidebar { width: auto; flex-direction: row; overflow-x: auto; padding: 10px; align-items: center; }
    .admin-sidebar .brand { padding: 4px 10px; white-space: nowrap; }
    .admin-sidebar a { white-space: nowrap; padding: 7px 10px; }
    .admin-main { padding: 14px 12px 90px; }
    .admin-top h1 { font-size: 19px; }
    .filter-bar { gap: 7px; }
}

/* ---------- logistics / service ---------- */
.logistics-card {
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 16px;
}

.timeline { position: relative; margin-top: 18px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #e5e7eb; }
.timeline-item { position: relative; padding: 0 0 20px 10px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -22px; top: 3px; width: 14px; height: 14px;
    border-radius: 50%; background: #d1d5db; border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}
.timeline-item.active::before { background: var(--green); box-shadow: 0 0 0 2px #bbf7d0; }
.timeline-title { font-weight: 700; font-size: 14px; }
.timeline-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.timeline-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }
.contact-card .ico { font-size: 34px; }
.contact-card h3 { margin: 8px 0 4px; }
.contact-card .btn { margin-top: 10px; }
.faq-item { padding: 12px 0; border-bottom: 1px solid #f1f5f1; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 700; }
.faq-a { color: var(--muted); font-size: 13px; margin-top: 4px; }

.service-fab {
    position: fixed; right: 18px; bottom: 88px; z-index: 55;
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
    font-size: 13px; font-weight: 700; color: var(--green-dark);
}
.service-fab:hover { background: var(--green-soft); }

@media (min-width: 901px) {
    .service-fab { right: 26px; bottom: 26px; }
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 12px; }
    .contact-card { padding: 18px; }
}
