:root {
    --ink: #0d1b2a;
    --muted: #637487;
    --line: #dfe8ef;
    --paper: #ffffff;
    --surface: #f4f8fb;
    --surface-2: #eaf5fb;
    --primary: #087cc1;
    --primary-2: #0da6df;
    --accent: #64d8cb;
    --navy: #061722;
    --success: #138a66;
    --warning: #b7791f;
    --danger: #c24156;
    --shadow: 0 20px 60px rgba(18, 52, 77, .11);
    --radius: 20px;
}

/* Traffic analytics v2.1 */
.analytics-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.analytics-heading h2{margin:5px 0 6px;font-size:26px;color:#0f2942}.analytics-heading p,.analytics-chart-card .card-heading p{margin:0;color:#64748b}.analytics-live-badge{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #b9ead5;border-radius:999px;background:#effcf6;color:#087451;font-weight:700;white-space:nowrap}.analytics-live-badge i{width:9px;height:9px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.14)}.analytics-filters{display:flex;align-items:end;gap:12px;padding:15px;margin-bottom:16px;border:1px solid #dce7f0;border-radius:12px;background:#fff}.analytics-filters label{display:grid;gap:6px;min-width:145px;font-weight:700;color:#38516a}.analytics-filters input,.analytics-filters select,.analytics-per-page select{height:39px;padding:0 11px;border:1px solid #ccd9e5;border-radius:8px;background:#fff;color:#17324c}.analytics-filters select,.analytics-per-page select{padding-right:32px}.analytics-filters .button{height:39px;margin:0}.analytics-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.analytics-stats>div{padding:16px 17px;border:1px solid #dce7f0;border-radius:12px;background:linear-gradient(145deg,#fff,#f7fbff)}.analytics-stats span{display:block;color:#64748b;font-size:13px}.analytics-stats b{display:block;margin-top:5px;color:#0f2942;font-size:24px;line-height:1.15}.analytics-chart-card{margin-bottom:16px}.analytics-bars{display:flex;align-items:flex-end;gap:8px;height:230px;padding:26px 5px 4px;overflow-x:auto}.analytics-bar-item{display:grid;grid-template-rows:18px 145px 36px;flex:1;min-width:42px;text-align:center}.analytics-bar-value{color:#64748b;font-size:12px}.analytics-bar-item>div{display:flex;align-items:flex-end;justify-content:center;height:145px;border-bottom:1px solid #dce7f0}.analytics-bar-item i{display:block;width:min(28px,68%);min-height:3px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#2185f5,#0f5fc7)}.analytics-bar-item small{display:grid;gap:1px;padding-top:5px;color:#64748b;font-size:11px}.analytics-bar-item small b{color:#0f2942;font-size:10px}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.analytics-grid .admin-card{margin:0}.analytics-grid table small,.analytics-event-type+small{display:block}.analytics-event-type{display:inline-block;padding:4px 8px;border-radius:999px;background:#eaf4ff;color:#1768bb;font-size:12px;font-weight:700}.analytics-per-page{margin:0}.analytics-per-page label{display:flex;align-items:center;gap:7px;color:#64748b}.analytics-per-page select{height:34px}.analytics-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 16px;border-top:1px solid #e4ecf3}.analytics-pagination a{padding:7px 11px;border:1px solid #cfdeeb;border-radius:7px;color:#1768bb}.analytics-pagination a[aria-disabled="true"]{pointer-events:none;opacity:.45}.analytics-pagination span{color:#64748b}.analytics-privacy-note{display:flex;gap:13px;margin-top:16px;padding:14px 16px;border:1px solid #cce5f7;border-radius:11px;background:#f3faff;color:#49667f}.analytics-privacy-note strong{color:#145a91;white-space:nowrap}.analytics-privacy-note span{line-height:1.65}.admin-card .card-heading>div p{margin:4px 0 0;color:#64748b;font-size:13px}

@media (max-width:980px){.analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-grid{grid-template-columns:1fr}.analytics-filters{flex-wrap:wrap}.analytics-filters label{flex:1;min-width:160px}}
@media (max-width:640px){.analytics-heading{display:grid}.analytics-live-badge{justify-self:start}.analytics-heading h2{font-size:22px}.analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.analytics-stats>div{padding:13px}.analytics-stats b{font-size:20px}.analytics-filters{display:grid}.analytics-filters label{min-width:0}.analytics-bars{height:205px}.analytics-bar-item{grid-template-rows:18px 120px 36px}.analytics-bar-item>div{height:120px}.analytics-privacy-note{display:grid;gap:4px}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; z-index: 50; top: 0; color: #fff; background: rgba(6, 23, 34, .96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; color: #062235; background: linear-gradient(135deg, #7ce4db, #23a5eb); border-radius: 14px 14px 14px 4px; font-size: 23px; font-weight: 900; box-shadow: 0 12px 26px rgba(13,166,223,.24); }
.brand span:last-child { display: grid; line-height: 1.2; }
.brand strong { font-size: 17px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: #8aa5b6; font-size: 9px; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 10px 16px; color: #bad0dc; border-radius: 999px; font-size: 14px; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(54, 177, 229, .16); }
.nav-toggle { display: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 7px 12px; }
.announcement { color: #d5edf7; background: #0c2a3b; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.announcement .container { min-height: 38px; display: flex; align-items: center; gap: 10px; }
.announcement span { padding: 2px 8px; color: #053148; background: var(--accent); border-radius: 999px; font-weight: 800; }
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 30%, rgba(13,166,223,.26), transparent 24%), radial-gradient(circle at 10% 90%, rgba(100,216,203,.13), transparent 26%), var(--navy); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, transparent, #000 40%, #000); }
.hero-grid { position: relative; z-index: 1; min-height: 600px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding-top: 70px; padding-bottom: 70px; }
.eyebrow { display: block; color: var(--primary-2); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero .eyebrow { color: #73dcd3; }
.hero-copy h1 { max-width: 720px; margin: 15px 0 20px; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.hero-copy > p { max-width: 650px; margin: 0 0 30px; color: #b6cfdd; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 21px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border: 0; border-radius: 12px; box-shadow: 0 12px 25px rgba(8,124,193,.19); cursor: pointer; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(8,124,193,.25); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button-secondary { color: var(--primary); background: #fff; border: 1px solid #bfd9e8; box-shadow: none; }
.hero .button-secondary { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.button-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button-wide { width: 100%; }
.button-small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: #9db8c7; font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--accent); font-weight: 900; }
.hero-card { position: relative; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.15); border-radius: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.hero-card::before { content: "Z"; position: absolute; top: 8px; right: 20px; color: rgba(255,255,255,.04); font-size: 150px; font-weight: 950; line-height: 1; }
.hero-card-label { color: #77dcd3; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.hero-card > strong { margin-top: 10px; font-size: 29px; }
.hero-card > p { margin: 5px 0 28px; color: #a8c4d3; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-metrics div { padding: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.hero-metrics b, .hero-metrics span { display: block; }
.hero-metrics b { font-size: 20px; }
.hero-metrics span { color: #91adbc; font-size: 11px; }
.signal { position: absolute; border: 1px solid rgba(100,216,203,.38); border-radius: 50%; }
.signal-one { width: 130px; height: 130px; top: 24px; left: 28px; }
.signal-two { width: 80px; height: 80px; top: 50px; left: 53px; border-color: rgba(13,166,223,.65); }
.section { padding: 90px 0; }
.section-tint { background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.025em; }
.section-heading > a { color: var(--primary); font-weight: 800; font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card { position: relative; min-height: 245px; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .22s ease; }
.category-card:hover { transform: translateY(-5px); border-color: #9fcbe1; box-shadow: var(--shadow); }
.category-card::after { content: "→"; position: absolute; right: 20px; bottom: 18px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--primary); background: var(--surface-2); border-radius: 50%; }
.category-index { color: #a5b6c2; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.category-card h3 { margin: 28px 0 8px; font-size: 21px; }
.category-card p { margin: 0; color: var(--muted); font-size: 13px; }
.category-card b { margin-top: auto; color: var(--primary); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { min-height: 310px; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; color: #0b6c92; background: #e7f7fb; border-radius: 999px; font-size: 11px; font-weight: 900; }
.stock { color: #9a6a24; font-size: 11px; font-weight: 800; }
.stock.in-stock { color: var(--success); }
.stock::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 6px; background: currentColor; border-radius: 50%; }
.product-card h3 { margin: 25px 0 10px; font-size: 18px; line-height: 1.45; }
.product-card h3 a:hover { color: var(--primary); }
.product-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.product-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 25px; border-top: 1px solid var(--line); }
.price small, .price strong { display: block; }
.price small { color: var(--muted); font-size: 10px; }
.price strong { color: var(--primary); font-size: 23px; }
.arrow-button { color: var(--primary); font-size: 13px; font-weight: 900; }
.process-section { color: #fff; background: #0b2230; }
.process-section .section-heading h2 { color: #fff; }
.process-section .eyebrow { color: var(--accent); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); }
.process-grid > div { padding: 34px; background: #0b2230; }
.process-grid b { color: var(--accent); font-size: 13px; }
.process-grid h3 { margin: 22px 0 8px; font-size: 20px; }
.process-grid p { margin: 0; color: #99b5c4; font-size: 13px; }
.page-hero { padding: 75px 0 60px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(13,166,223,.22), transparent 28%), var(--navy); }
.page-hero h1 { margin: 10px 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.03em; }
.page-hero p { max-width: 720px; margin: 0; color: #adc5d3; }
.page-hero .eyebrow { color: var(--accent); }
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 35px; }
.category-nav { align-self: start; display: grid; overflow: hidden; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.category-nav h2 { margin: 0 0 12px; padding: 8px 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.category-nav a { padding: 10px 12px; color: var(--muted); border-radius: 9px; font-size: 13px; }
.category-nav a:hover, .category-nav a.active { color: var(--primary); background: var(--surface-2); font-weight: 800; }
.catalog-count { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.catalog-main .product-grid { grid-template-columns: repeat(3, 1fr); }
.product-hero { padding-bottom: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #9bb5c4; font-size: 12px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs b { color: #fff; }
.product-detail-section { padding-top: 55px; }
.product-detail { display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; }
.product-visual { position: relative; overflow: hidden; aspect-ratio: 1.08; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; color: #fff; background: linear-gradient(145deg, #071a28, #0d4c68); border-radius: 30px; box-shadow: var(--shadow); }
.product-visual::before, .product-visual::after { content: ""; position: absolute; border: 1px solid rgba(100,216,203,.35); border-radius: 50%; }
.product-visual::before { width: 280px; height: 280px; top: -80px; right: -60px; }
.product-visual::after { width: 180px; height: 180px; top: -30px; right: -10px; }
.product-visual span { position: absolute; top: 25px; left: 34px; color: rgba(255,255,255,.09); font-size: clamp(100px, 16vw, 190px); font-weight: 950; line-height: 1; }
.product-visual b { font-size: 20px; letter-spacing: .16em; }
.product-visual small { color: #8ec9dc; }
.product-info h1 { margin: 16px 0 12px; font-size: clamp(30px, 4vw, 47px); line-height: 1.2; letter-spacing: -.035em; }
.lead { color: var(--muted); font-size: 16px; }
.detail-price { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-price span { color: var(--muted); font-size: 13px; }
.detail-price strong { color: var(--primary); font-size: 34px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.detail-facts div { padding: 14px; background: var(--surface); border-radius: 12px; }
.detail-facts span, .detail-facts b { display: block; }
.detail-facts span { color: var(--muted); font-size: 11px; }
.detail-facts b { margin-top: 3px; font-size: 14px; }
.muted { color: var(--muted); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.content-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.content-card h2 { margin: 8px 0 18px; }
.prose { color: #405466; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; color: #405466; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.form-card, .summary-card, .order-result, .result-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 45px rgba(20,50,70,.06); }
.form-card h2, .summary-card h2 { margin-top: 0; }
.stack-form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; color: #32485a; font-size: 13px; font-weight: 800; }
.field-title { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.required-mark { color: var(--danger); }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfdce5; border-radius: 10px; outline: 0; }
input, select { min-height: 46px; padding: 9px 12px; }
textarea { padding: 12px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(13,166,223,.1); }
label small { color: var(--muted); font-weight: 500; }
.checkbox-row { grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.checkbox-row input { width: 17px; min-height: 17px; }
.summary-card { position: sticky; top: 125px; background: var(--surface); box-shadow: none; }
.summary-card p { color: var(--muted); }
.summary-card dl, .detail-list { display: grid; gap: 0; margin: 25px 0; }
.summary-card dl div, .detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; text-align: right; font-weight: 800; }
.summary-card dl .total { margin-top: 12px; padding: 20px 0 0; border-bottom: 0; border-top: 2px solid #b9ccd7; }
.summary-card dl .total dd { color: var(--primary); font-size: 25px; }
.narrow-section { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.narrow-section > * + * { margin-top: 20px; }
.lookup-divider { position: relative; display: grid; place-items: center; min-height: 22px; color: var(--muted); font-size: 13px; font-weight: 800; }
.lookup-divider::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid var(--line); }
.lookup-divider span { position: relative; padding: 0 12px; background: #fff; }
.order-result { margin-top: 25px; }
.order-number { margin: 22px 0; padding: 16px; color: var(--primary); background: var(--surface-2); border: 1px dashed #8ec4df; border-radius: 12px; font-size: 20px; font-weight: 900; letter-spacing: .04em; text-align: center; }
.delivery-box, .reply-box, .message-box { margin-top: 20px; padding: 20px; background: var(--surface); border-radius: 14px; }
.delivery-box pre { overflow: auto; margin: 10px 0 0; padding: 15px; color: #e0f1f7; background: #0b2230; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ticket-result { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.ticket-result > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ticket-result small { color: var(--muted); }
.ticket-help { margin-top: 24px; padding: 16px; color: var(--muted); background: var(--surface); border-radius: 10px; }
.ticket-help b { color: var(--ink); }
.ticket-help p { margin: 6px 0 0; line-height: 1.7; }
.ticket-conversation { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.ticket-conversation-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.ticket-conversation-head h2 { margin: 5px 0; font-size: 22px; }
.ticket-conversation-head p { margin: 0; color: var(--muted); }
.ticket-thread, .admin-ticket-thread { display: grid; gap: 14px; padding: 20px; background: #f8fafc; }
.ticket-message { width: min(82%, 720px); padding: 15px 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ticket-message-customer { justify-self: start; }
.ticket-message-support { justify-self: end; background: #edf7ff; border-color: #cce3f5; }
.ticket-message header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.ticket-message header strong { color: var(--primary); font-size: 13px; }
.ticket-message header time { color: var(--muted); font-size: 11px; }
.ticket-message p { margin: 0; line-height: 1.75; word-break: break-word; }
.ticket-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 9px; margin-top: 12px; }
.ticket-images a { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.ticket-images img { display: block; width: 100%; height: 120px; object-fit: cover; }
.ticket-images span { display: block; overflow: hidden; padding: 7px 9px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-reply-form, .admin-ticket-reply { padding: 20px; border-top: 1px solid var(--line); }
.admin-ticket-thread { margin-top: 20px; padding: 18px; border-radius: 12px; }
.admin-ticket-reply { margin-top: 0; padding-right: 0; padding-left: 0; }
input[type="file"] { min-height: 44px; padding: 8px; background: #fff; }
.empty-state, .empty-cell { padding: 34px; color: var(--muted); text-align: center; }
.flash { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; padding: 13px 16px; border-radius: 12px; font-size: 13px; }
.flash-success { color: #0f6d53; background: #e6f7f1; border: 1px solid #b7e4d4; }
.flash-error { color: #9e2e42; background: #fff0f2; border: 1px solid #f2c5cf; }
.flash-warning { color: #8b5d14; background: #fff7e6; border: 1px solid #ead39f; }
.warning-card { border-color: #ead39f; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.status-pending, .status-open { color: #8b5d14; background: #fff3d6; }
.status-paid, .status-replied { color: #126f91; background: #e2f5fb; }
.status-delivered { color: #0f7658; background: #dff6ed; }
.status-cancelled, .status-refunded, .status-closed { color: #9b3e4f; background: #fde8ed; }
.site-footer { padding: 65px 0 25px; color: #92acba; background: #061722; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 45px; }
.footer-grid h3 { margin: 0 0 13px; color: #fff; font-size: 14px; }
.footer-grid a, .footer-grid span { display: block; margin: 7px 0; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { max-width: 390px; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-bottom { margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }
.mobile-dock { display: none; }
.system-message, .login-body { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 70% 20%, rgba(13,166,223,.18), transparent 28%), var(--navy); }
.system-message .panel, .login-card { width: min(480px, 100%); padding: 42px; background: #fff; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.system-message h1, .login-card h1 { margin: 10px 0; font-size: 36px; }
.system-message p, .login-card > p { color: var(--muted); }
.login-card .brand { margin-bottom: 45px; }
.login-card .brand strong { color: var(--ink); }
.login-card .brand small { color: var(--muted); }
.login-card .flash { width: 100%; margin: 15px 0; }
.back-link { display: block; margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; }

/* Admin */
.admin-body { min-height: 100vh; background: #f2f6f9; }
.admin-topbar { position: sticky; z-index: 50; top: 0; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; color: #fff; background: var(--navy); }
.admin-topbar > div { display: flex; align-items: center; gap: 18px; color: #a9c1ce; font-size: 12px; }
.admin-topbar a:hover { color: #fff; }
.admin-logout-form { margin: 0; }
.admin-logout-form button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.admin-logout-form button:hover { color: #fff; }
.admin-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 220px 1fr; }
.admin-sidebar { position: sticky; top: 70px; align-self: start; min-height: calc(100vh - 70px); display: grid; align-content: start; gap: 5px; padding: 25px 16px; background: #0b2230; }
.admin-sidebar a { padding: 11px 14px; color: #9fb8c6; border-radius: 9px; font-size: 13px; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: #fff; background: rgba(53,177,226,.17); }
.admin-main { min-width: 0; padding: 32px; }
.admin-heading { display: flex; justify-content: space-between; margin-bottom: 22px; }
.admin-heading span { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.admin-heading h1 { margin: 4px 0 0; font-size: 30px; }
.admin-main > .flash { width: 100%; margin: 0 0 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card, .admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 35px rgba(21,54,74,.05); }
.stat-card { display: grid; padding: 22px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card b { margin: 9px 0; font-size: 32px; }
.stat-card a { color: var(--primary); font-size: 11px; font-weight: 800; }
.admin-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; align-items: start; }
.admin-card { margin-bottom: 20px; padding: 24px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.card-heading h2 { margin: 0; font-size: 19px; }
.card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-heading > a { color: var(--primary); font-size: 12px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 10px; color: #607485; background: #f6f9fb; text-align: left; white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid #e8eef2; vertical-align: middle; }
td > a { color: var(--primary); font-weight: 800; }
.table-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.stock-list { display: grid; gap: 7px; }
.stock-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; background: var(--surface); border-radius: 10px; }
.stock-list span, .stock-list b, .stock-list small { display: block; }
.stock-list b { font-size: 12px; }
.stock-list small { color: var(--muted); font-size: 10px; }
.stock-list strong { color: var(--success); }
.stock-list strong.low { color: var(--danger); }
.admin-form { display: grid; gap: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.narrow-card { max-width: 650px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.filter-tabs a { padding: 7px 11px; color: var(--muted); background: var(--surface); border-radius: 8px; font-size: 11px; }
.filter-tabs a.active { color: #fff; background: var(--primary); }
.admin-detail { grid-template-columns: 1fr 1fr; column-gap: 35px; }
.callback-box { display: grid; gap: 8px; padding: 16px; background: var(--surface); border-radius: 12px; }
.callback-box div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; align-items: center; }
.callback-box span { color: var(--muted); font-size: 11px; }
.callback-box code { overflow: auto; color: #0a638d; font-size: 11px; }
code { font-family: Consolas, ui-monospace, monospace; }

/* Product purchase page */
.product-purchase-page { padding: 24px 0 80px; background: #f3f6f8; }
.purchase-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.purchase-breadcrumbs a:hover { color: var(--primary); }
.purchase-breadcrumbs b { color: var(--ink); }
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.purchase-card, .purchase-notice-card, .purchase-description-card, .related-products-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px rgba(21,54,74,.05); }
.purchase-card { padding: 30px; }
.purchase-card h1 { margin: 12px 0 8px; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.25; letter-spacing: -.025em; }
.purchase-lead { margin: 0; color: var(--muted); font-size: 13px; }
.purchase-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.purchase-meta div { padding: 0 15px; border-right: 1px solid var(--line); }
.purchase-meta div:first-child { padding-left: 0; }
.purchase-meta div:last-child { padding-right: 0; border-right: 0; }
.purchase-meta span, .purchase-meta b { display: block; }
.purchase-meta span { color: var(--muted); font-size: 10px; }
.purchase-meta b { margin-top: 4px; font-size: 13px; }
.purchase-price { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 20px 0; padding: 20px; background: var(--surface); border-radius: 10px; }
.purchase-price span { color: var(--muted); font-size: 12px; }
.purchase-price strong { color: var(--primary); font-size: 31px; }
.purchase-form { display: grid; gap: 17px; }
.purchase-payment { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; background: #fbfdfe; border: 1px solid var(--line); border-radius: 10px; }
.purchase-payment > span { color: var(--muted); font-size: 11px; }
.purchase-payment > b { justify-self: start; padding: 5px 10px; color: #0b6c92; background: var(--surface-2); border-radius: 999px; font-size: 11px; }
.purchase-payment > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.purchase-submit-row { display: grid; grid-template-columns: 210px 120px minmax(160px, 1fr); gap: 14px; align-items: end; }
.quantity-label { align-content: end; }
.quantity-control { min-height: 46px; display: grid; grid-template-columns: 42px minmax(60px, 1fr) 42px; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid #cfdce5; border-radius: 10px; }
.quantity-control button { color: var(--primary); background: var(--surface); border: 0; cursor: pointer; font-size: 20px; font-weight: 800; }
.quantity-control button:hover { background: var(--surface-2); }
.quantity-control input { min-height: 44px; padding: 7px 4px; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; text-align: center; -moz-appearance: textfield; }
.quantity-control input::-webkit-outer-spin-button, .quantity-control input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.purchase-total { min-height: 46px; display: grid; align-content: center; }
.purchase-total span, .purchase-total strong { display: block; }
.purchase-total span { color: var(--muted); font-size: 10px; }
.purchase-total strong { color: var(--primary); font-size: 20px; }
.purchase-now { min-height: 46px; }
.purchase-consent { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.purchase-stock-warning { width: 100%; margin: 18px 0; }
.purchase-notice-card { position: sticky; top: 98px; padding: 24px; }
.purchase-notice-card h2 { margin: 0 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 19px; }
.purchase-notice-card > div { display: flex; gap: 13px; padding: 17px 0; border-bottom: 1px solid #e9eff3; }
.purchase-notice-card > div:last-child { border-bottom: 0; }
.purchase-notice-card > div > b { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; color: var(--primary); background: var(--surface-2); border-radius: 8px; font-size: 10px; }
.purchase-notice-card span, .purchase-notice-card strong, .purchase-notice-card small { display: block; }
.purchase-notice-card strong { font-size: 13px; }
.purchase-notice-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.purchase-description-card { margin-top: 22px; padding: 30px; }
.purchase-description-card h2 { margin: 5px 0 16px; font-size: 23px; }
.related-products-section { margin-top: 22px; padding: 26px; }
.related-products-section .compact-section-heading { margin-bottom: 18px; }
.related-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.related-product-item { min-height: 145px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 11px; transition: .2s ease; }
.related-product-item:hover { transform: translateY(-3px); border-color: #9fcbe1; box-shadow: 0 12px 28px rgba(21,54,74,.08); }
.related-product-item h3 { margin: 0 0 18px; font-size: 13px; line-height: 1.55; }
.related-product-item > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: end; margin-top: auto; }
.related-product-item strong { color: var(--primary); font-size: 17px; }
.related-product-item span { grid-column: 1; color: var(--muted); font-size: 10px; }
.related-product-item b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--primary); font-size: 11px; }

/* Compact storefront home */
.compact-intro { padding: 40px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.compact-intro-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.compact-intro h1 { margin: 8px 0 6px; font-size: clamp(28px, 4vw, 40px); line-height: 1.18; letter-spacing: -.025em; }
.compact-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; }
.compact-intro .actions { flex: 0 0 auto; }
.compact-home { padding: 34px 0 70px; }
.compact-home-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 24px; align-items: start; }
.store-sidebar { display: grid; gap: 15px; }
.sidebar-panel { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.sidebar-panel h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sidebar-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.sidebar-panel > a { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 12px; font-weight: 800; }
.sidebar-categories { display: grid; }
.sidebar-categories a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 5px; color: #405466; border-bottom: 1px dashed #e5edf2; font-size: 12px; }
.sidebar-categories a:last-child { border-bottom: 0; }
.sidebar-categories a:hover { color: var(--primary); }
.sidebar-categories b { min-width: 24px; padding: 1px 7px; color: var(--primary); background: var(--surface-2); border-radius: 999px; font-size: 10px; text-align: center; }
.purchase-guide-compact, .home-product-group { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.purchase-guide-compact { margin-bottom: 18px; padding: 19px; }
.compact-section-heading, .home-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compact-section-heading { margin-bottom: 16px; }
.compact-section-heading h2, .home-group-heading h2 { margin: 3px 0 0; font-size: 19px; }
.compact-section-heading > a, .home-group-heading > a { color: var(--primary); font-size: 11px; font-weight: 800; white-space: nowrap; }
.guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; }
.guide-step { display: flex; align-items: center; gap: 10px; padding: 13px; border-right: 1px solid var(--line); }
.guide-step:last-child { border-right: 0; }
.guide-step > b { color: var(--primary); font-size: 12px; }
.guide-step span, .guide-step strong, .guide-step small { display: block; }
.guide-step strong { font-size: 12px; }
.guide-step small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.home-product-group { margin-bottom: 18px; scroll-margin-top: 95px; }
.home-group-heading { padding: 17px 19px; background: var(--surface); border-bottom: 1px solid var(--line); }
.home-group-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.home-product-head, .home-product-row { display: grid; grid-template-columns: minmax(0, 1fr) 105px 80px 76px; gap: 12px; align-items: center; }
.home-product-head { padding: 9px 18px; color: var(--muted); background: #fbfdfe; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.home-product-row { min-height: 76px; padding: 13px 18px; border-bottom: 1px solid #e9eff3; }
.home-product-row:last-child { border-bottom: 0; }
.home-product-row:hover { background: #fbfdfe; }
.home-product-name, .home-product-name b, .home-product-name small { min-width: 0; display: block; }
.home-product-name b { font-size: 13px; line-height: 1.45; }
.home-product-name small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-product-price { color: var(--primary); font-size: 15px; }
.home-buy-link { padding: 6px 10px; color: #fff; background: var(--primary); border-radius: 8px; font-size: 11px; font-weight: 800; text-align: center; }
.slug-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.slug-tools .button { white-space: nowrap; }

@media (max-width: 1080px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-main .product-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
    .purchase-layout { grid-template-columns: minmax(0, 1fr) 285px; }
    .purchase-meta { grid-template-columns: 1fr 1fr; gap: 15px 0; }
    .purchase-meta div:nth-child(2) { border-right: 0; }
    .purchase-meta div:nth-child(3) { padding-left: 0; }
    .purchase-submit-row { grid-template-columns: 1fr 115px; }
    .purchase-now { grid-column: 1 / -1; }
    .related-product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .container { width: min(100% - 28px, 1180px); }
    .site-header { position: relative; }
    .header-inner { min-height: 68px; }
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 68px; right: 14px; left: 14px; padding: 12px; background: #0b2230; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .main-nav a { padding: 12px 14px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 45px; padding-top: 65px; padding-bottom: 65px; }
    .hero-card { min-height: 310px; }
    .section { padding: 65px 0; }
    .category-grid, .product-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; gap: 35px; }
    .product-visual { max-height: 430px; }
    .content-grid, .checkout-grid, .support-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-topbar { padding: 0 15px; }
    .admin-topbar > div span { display: none; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; min-height: auto; grid-template-columns: repeat(4, minmax(95px, 1fr)); overflow-x: auto; padding: 10px; }
    .admin-sidebar a { text-align: center; white-space: nowrap; }
    .admin-main { padding: 22px 14px; }
    .purchase-layout { grid-template-columns: 1fr; }
    .purchase-notice-card { position: static; }
    .compact-intro-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
    .compact-home-layout { grid-template-columns: 1fr; }
    .store-sidebar { grid-template-columns: 1fr 1fr; }
    .guide-steps { grid-template-columns: 1fr 1fr; }
    .guide-step:nth-child(2) { border-right: 0; }
    .guide-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
    body { padding-bottom: 58px; }
    .brand strong { font-size: 15px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; }
    .announcement .container { padding: 8px 0; align-items: flex-start; }
    .hero-copy h1 { font-size: 38px; }
    .hero-copy > p { font-size: 15px; }
    .hero .actions .button { width: 100%; }
    .hero-card { padding: 25px; }
    .hero-metrics div { padding: 10px; }
    .category-grid, .product-grid, .catalog-main .product-grid, .process-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 210px; }
    .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
    .category-nav { grid-template-columns: repeat(2, 1fr); }
    .category-nav h2 { grid-column: 1 / -1; }
    .detail-facts { grid-template-columns: 1fr; }
    .form-card, .summary-card, .order-result, .result-card, .content-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .mobile-dock { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 6px max(7px, env(safe-area-inset-bottom)); color: #c0d3de; background: rgba(6,23,34,.98); border-top: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(16px); }
    .mobile-dock a { padding: 7px 3px; font-size: 11px; text-align: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 17px; }
    .stat-card b { font-size: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .admin-detail { grid-template-columns: 1fr; }
    .callback-box div { grid-template-columns: 1fr; gap: 2px; }
    .admin-topbar .brand small { display: none; }
    .admin-sidebar { grid-template-columns: repeat(2, 1fr); }
    .system-message .panel, .login-card { padding: 30px 24px; }
    .product-purchase-page { padding: 18px 0 70px; }
    .purchase-card, .purchase-notice-card, .purchase-description-card, .related-products-section { padding: 20px; }
    .purchase-card h1 { font-size: 25px; }
    .purchase-meta { grid-template-columns: 1fr 1fr; }
    .purchase-meta div { padding: 0 10px; }
    .purchase-price { padding: 16px; }
    .purchase-price strong { font-size: 27px; }
    .purchase-submit-row { grid-template-columns: 1fr; }
    .purchase-total, .purchase-now { grid-column: auto; }
    .purchase-now { width: 100%; }
    .related-product-grid { grid-template-columns: 1fr; }
    .compact-intro { padding: 30px 0; }
    .compact-intro h1 { font-size: 28px; }
    .compact-intro .actions, .compact-intro .button { width: 100%; }
    .store-sidebar { grid-template-columns: 1fr; }
    .home-product-head { display: none; }
    .home-product-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px 12px; }
    .home-product-name { grid-column: 1 / -1; }
    .home-product-row .stock { grid-column: 2; grid-row: 2; justify-self: start; }
    .home-buy-link { grid-column: 3; grid-row: 2; }
    .ticket-conversation-head { align-items: flex-start; flex-direction: column; }
    .ticket-message { width: 100%; }
    .ticket-images { grid-template-columns: 1fr 1fr; }
    .home-group-heading { align-items: flex-start; }
    .slug-tools { grid-template-columns: 1fr; }
}

/* Bright, readable public visual system */
:root {
    --ink: #27313d;
    --muted: #697586;
    --line: #e3e7ec;
    --paper: #ffffff;
    --surface: #f6f7f9;
    --surface-2: #eef5ff;
    --primary: #1677e8;
    --primary-2: #2b8cf3;
    --accent: #1677e8;
    --success: #18875f;
    --warning: #9a6918;
    --danger: #b84254;
    --shadow: 0 8px 24px rgba(31, 45, 61, .06);
    --radius: 10px;
}

body { color: var(--ink); background: var(--surface); font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; line-height: 1.72; }
.container { width: min(1160px, calc(100% - 40px)); }
.eyebrow { display: none; }
.site-header { position: sticky; color: var(--ink); background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 64px; gap: 22px; }
.brand { gap: 10px; }
.brand-mark { width: 36px; height: 36px; color: #fff; background: var(--primary); border-radius: 7px; box-shadow: none; font-size: 19px; }
.brand strong { color: var(--ink); font-size: 17px; letter-spacing: 0; }
.site-header .brand small { display: none; }
.main-nav { gap: 2px; }
.main-nav a { padding: 8px 14px; color: #596575; border-radius: 6px; font-size: 13px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--surface-2); }
.nav-toggle { color: var(--ink); background: #fff; border-color: var(--line); border-radius: 6px; }
.announcement { color: #546171; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; }
.announcement .container { min-height: 36px; }
.announcement span { color: var(--primary); background: var(--surface-2); border-radius: 4px; }

.button { min-height: 44px; padding: 10px 19px; background: var(--primary); border-radius: 6px; box-shadow: none; font-size: 14px; }
.button:hover { background: #0f67cc; transform: none; box-shadow: none; }
.button-secondary { color: var(--primary); background: #fff; border-color: #b9d4f2; }
.button-secondary:hover { color: #0f67cc; background: #f8fbff; }
.button-ghost { background: #fff; }
input, textarea, select { border-color: #d8dde4; border-radius: 6px; }
input, select { min-height: 44px; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,232,.10); }
label { color: #3d4856; font-weight: 700; }

.compact-intro { padding: 30px 0; background: #fff; border-bottom-color: var(--line); }
.compact-intro h1 { margin-top: 0; font-size: clamp(27px, 3.5vw, 36px); font-weight: 700; letter-spacing: -.015em; }
.compact-intro p { color: var(--muted); font-size: 13px; }
.compact-home { padding: 28px 0 58px; background: var(--surface); }
.compact-home-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.sidebar-panel, .purchase-guide-compact, .home-product-group { border-radius: 8px; box-shadow: none; }
.sidebar-panel { padding: 16px; }
.sidebar-panel h2 { font-size: 14px; }
.purchase-guide-compact { padding: 17px; }
.compact-section-heading h2, .home-group-heading h2 { font-size: 18px; }
.guide-steps { border-radius: 6px; }
.guide-step { padding: 12px; }
.home-group-heading { padding: 15px 17px; background: #f8fafc; }
.home-product-row { min-height: 70px; padding: 12px 17px; }
.home-buy-link { background: var(--primary); border-radius: 5px; }

.section { padding: 54px 0; }
.section-tint { background: var(--surface); }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(25px, 3vw, 34px); }
.page-hero { padding: 34px 0 30px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.015em; }
.page-hero p { color: var(--muted); font-size: 14px; }
.page-hero .eyebrow { display: none; }
.breadcrumbs { color: var(--muted); }
.breadcrumbs a:hover, .breadcrumbs b { color: var(--primary); }
.catalog-layout { grid-template-columns: 210px 1fr; gap: 24px; }
.category-nav { padding: 15px; border-radius: 8px; }
.category-nav a { border-radius: 5px; }
.product-card { min-height: 265px; padding: 20px; border-radius: 8px; }
.product-card:hover { transform: none; border-color: #b8d2ed; box-shadow: var(--shadow); }
.product-card h3 { margin: 18px 0 8px; font-size: 16px; }
.product-card-bottom { padding-top: 18px; }
.price strong { font-size: 21px; }
.tag { color: #1667b2; background: var(--surface-2); border-radius: 4px; }
.process-section { color: var(--ink); background: #fff; border-top: 1px solid var(--line); }
.process-section .section-heading h2 { color: var(--ink); }
.process-grid { background: var(--line); }
.process-grid > div { color: var(--ink); background: #fff; }
.process-grid p { color: var(--muted); }

.product-purchase-page { padding: 22px 0 64px; background: var(--surface); }
.purchase-card, .purchase-notice-card, .purchase-description-card, .related-products-section { border-radius: 8px; box-shadow: none; }
.purchase-card { padding: 26px; }
.purchase-card h1 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; }
.purchase-price { background: #f8fafc; border-radius: 6px; }
.purchase-price strong { font-size: 29px; }
.purchase-payment, .quantity-control { border-radius: 6px; }
.purchase-notice-card { padding: 22px; }
.purchase-notice-card > div > b { border-radius: 5px; }
.purchase-description-card, .related-products-section { padding: 25px; }
.related-product-item { border-radius: 6px; }
.related-product-item:hover { transform: none; box-shadow: var(--shadow); }

.form-card, .summary-card, .order-result, .result-card, .content-card { padding: 28px; border-radius: 8px; box-shadow: none; }
.summary-card { background: #f8fafc; }
.support-grid { gap: 18px; }
.order-number, .delivery-box, .reply-box, .message-box { border-radius: 6px; }
.flash { border-radius: 6px; }

.site-footer { padding: 42px 0 22px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.footer-grid { gap: 34px; }
.footer-grid h3 { color: var(--ink); }
.footer-grid a:hover { color: var(--primary); }
.footer-brand { color: var(--ink); }
.footer-bottom { margin-top: 32px; border-top-color: var(--line); }
.mobile-dock { color: #596575; background: rgba(255,255,255,.98); border-top-color: var(--line); }
.mobile-dock a:hover { color: var(--primary); }
.system-message, .login-body { background: var(--surface); }
.system-message .panel, .login-card { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }

.stat-card, .admin-card { border-radius: 9px; box-shadow: none; }
.admin-topbar .brand strong { color: #fff; }
.admin-topbar .brand small { color: #9db3c8; }

@media (max-width: 800px) {
    .site-header { position: sticky; }
    .main-nav { top: 64px; color: var(--ink); background: #fff; border-color: var(--line); border-radius: 8px; box-shadow: var(--shadow); }
    .main-nav a { color: #596575; }
    .compact-home-layout { grid-template-columns: 1fr; }
    .footer-grid { gap: 28px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1160px); }
    .announcement .container { padding: 7px 0; }
    .compact-intro { padding: 24px 0; }
    .compact-intro h1 { font-size: 27px; }
    .compact-home { padding-top: 20px; }
    .page-hero { padding: 26px 0 22px; }
    .page-hero h1 { font-size: 27px; }
    .section { padding: 42px 0; }
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .catalog-main, .catalog-main .product-grid, .product-card { min-width: 0; width: 100%; }
    .catalog-main .product-grid { grid-template-columns: minmax(0, 1fr); }
    .category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-nav h2 { grid-column: 1 / -1; }
    .product-purchase-page { padding-top: 16px; }
    .purchase-card, .purchase-notice-card, .purchase-description-card, .related-products-section, .form-card, .summary-card, .order-result, .result-card, .content-card { padding: 18px; }
    .purchase-card h1 { font-size: 24px; }
    .site-footer { padding-top: 34px; }
}

/* Larger type and richer, still-light section colors */
:root {
    --ink: #1f2d3d;
    --muted: #526173;
    --surface: #f5f8fc;
    --surface-2: #edf5ff;
    --sky-soft: #eef7ff;
    --mint-soft: #edf9f3;
    --amber-soft: #fff6e6;
    --violet-soft: #f5f0ff;
    --rose-soft: #fff1f3;
}

body { font-size: 16px; line-height: 1.78; }
.brand strong { font-size: 18px; }

.brand-mark {
    overflow: visible;
    padding: 0;
    color: transparent;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.main-nav a { font-size: 15px; }
.announcement { color: #71551d; background: #fffaf0; border-bottom-color: #f1dfb7; font-size: 14px; }
.announcement span { color: #9a5a0a; background: #ffedc7; }
.button { min-height: 48px; padding: 11px 21px; font-size: 15px; }
.button-small { font-size: 14px; }
label { font-size: 15px; }
label small { font-size: 13px; line-height: 1.65; }
input, textarea, select { font-size: 16px; }
input, select { min-height: 50px; }

.compact-intro { background: linear-gradient(105deg, #eef7ff 0%, #ffffff 54%, #fff6e7 100%); }
.compact-intro h1 { font-size: clamp(34px, 4vw, 44px); }
.compact-intro p { color: #516173; font-size: 16px; }
.sidebar-panel { border-color: #dce5ef; }
.sidebar-panel h2 { font-size: 17px; }
.sidebar-panel p, .sidebar-panel > a, .sidebar-categories a { font-size: 14px; }
.sidebar-categories b { font-size: 12px; }
.store-sidebar .sidebar-panel:nth-child(1) { background: #f1f8ff; border-color: #cfe3f7; }
.store-sidebar .sidebar-panel:nth-child(1) h2 { color: #1768ad; }
.store-sidebar .sidebar-panel:nth-child(2) { background: #f0faf5; border-color: #cce8d9; }
.store-sidebar .sidebar-panel:nth-child(2) h2 { color: #247354; }
.store-sidebar .sidebar-panel:nth-child(3) { background: #f7f2ff; border-color: #dfd2f4; }
.store-sidebar .sidebar-panel:nth-child(3) h2 { color: #6b4caf; }
.compact-section-heading h2, .home-group-heading h2 { font-size: 22px; }
.compact-section-heading > a, .home-group-heading > a { font-size: 13px; }
.guide-step { padding: 15px; }
.guide-step:nth-child(1) { background: var(--sky-soft); }
.guide-step:nth-child(2) { background: var(--mint-soft); }
.guide-step:nth-child(3) { background: var(--amber-soft); }
.guide-step:nth-child(4) { background: var(--violet-soft); }
.guide-step > b { font-size: 14px; }
.guide-step strong { font-size: 15px; }
.guide-step small { color: #5a6877; font-size: 13px; }
.home-product-group:nth-child(odd) .home-group-heading { background: #f0f7ff; }
.home-product-group:nth-child(even) .home-group-heading { background: #f1faf5; }
.home-group-heading p { font-size: 14px; }
.home-product-head { font-size: 12px; }
.home-product-name b { font-size: 16px; }
.home-product-name small { font-size: 13px; }
.home-product-price { color: #df6818; font-size: 19px; }
.home-buy-link { padding: 8px 12px; font-size: 13px; }

.page-hero { background: linear-gradient(105deg, #edf7ff 0%, #ffffff 58%, #fff7ea 100%); }
.page-hero h1 { font-size: clamp(34px, 4vw, 43px); }
.page-hero p { color: #526173; font-size: 16px; }
.breadcrumbs, .purchase-breadcrumbs { font-size: 14px; }
.category-nav h2 { font-size: 18px; }
.category-nav a { font-size: 15px; }
.catalog-count { font-size: 15px; }
.product-card { border-top: 4px solid #6ca8e8; }
.product-card:nth-child(4n+2) { border-top-color: #54b58a; background: #fbfffd; }
.product-card:nth-child(4n+3) { border-top-color: #e5a143; background: #fffdfa; }
.product-card:nth-child(4n+4) { border-top-color: #9a7ad7; background: #fdfbff; }
.product-card h3 { font-size: 19px; }
.product-card > p { font-size: 14px; }
.tag, .stock { font-size: 13px; }
.product-card:nth-child(4n+2) .tag { color: #247354; background: var(--mint-soft); }
.product-card:nth-child(4n+3) .tag { color: #9a5a0a; background: var(--amber-soft); }
.product-card:nth-child(4n+4) .tag { color: #6b4caf; background: var(--violet-soft); }
.price small { font-size: 12px; }
.price strong { color: #df6818; font-size: 24px; }
.arrow-button { font-size: 14px; }

.purchase-card { border-top: 4px solid #4d91df; }
.purchase-card h1 { font-size: clamp(31px, 3.5vw, 41px); }
.purchase-lead { color: #536273; font-size: 16px; }
.purchase-meta span { font-size: 13px; }
.purchase-meta b { font-size: 16px; }
.purchase-price { background: linear-gradient(90deg, var(--amber-soft), #fffaf2); border: 1px solid #f2dfbd; }
.purchase-price span { color: #72531f; font-size: 14px; }
.purchase-price strong { color: #df6818; font-size: 35px; }
.purchase-payment { background: var(--mint-soft); border-color: #cce8d9; }
.purchase-payment > span { font-size: 14px; }
.purchase-payment > b { color: #247354; background: #dff3e8; font-size: 13px; }
.purchase-payment > small { color: #536273; font-size: 13px; }
.purchase-total span { font-size: 13px; }
.purchase-total strong { color: #df6818; font-size: 23px; }
.purchase-consent { font-size: 13px; }
.purchase-notice-card { border-top: 4px solid #e5a143; background: linear-gradient(180deg, #fffaf1, #ffffff 42%); }
.purchase-notice-card h2 { font-size: 22px; }
.purchase-notice-card > div > b { font-size: 12px; }
.purchase-notice-card > div:nth-of-type(1) > b { color: #1768ad; background: var(--sky-soft); }
.purchase-notice-card > div:nth-of-type(2) > b { color: #247354; background: var(--mint-soft); }
.purchase-notice-card > div:nth-of-type(3) > b { color: #9a5a0a; background: var(--amber-soft); }
.purchase-notice-card > div:nth-of-type(4) > b { color: #6b4caf; background: var(--violet-soft); }
.purchase-notice-card strong { font-size: 15px; }
.purchase-notice-card small { color: #536273; font-size: 13px; line-height: 1.72; }
.purchase-description-card { border-top: 4px solid #54b58a; background: linear-gradient(180deg, #f5fcf8, #ffffff 38%); font-size: 16px; }
.purchase-description-card h2 { font-size: 25px; }
.related-products-section { border-top: 4px solid #9a7ad7; background: linear-gradient(180deg, #faf7ff, #ffffff 34%); }
.related-product-item h3 { font-size: 15px; }
.related-product-item strong { color: #df6818; font-size: 20px; }
.related-product-item span, .related-product-item b { font-size: 13px; }

.form-card, .summary-card, .order-result, .result-card, .content-card { font-size: 16px; }
.form-card h2, .summary-card h2 { font-size: 23px; }
.summary-card { background: linear-gradient(180deg, #f1f8ff, #ffffff); border-top: 4px solid #6ca8e8; }
dt { font-size: 14px; }
.site-footer { color: #526173; background: linear-gradient(180deg, #ffffff, #f4f8fc); font-size: 14px; }
.footer-grid h3 { font-size: 17px; }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand strong { font-size: 17px; }
    .main-nav a { font-size: 15px; }
    .announcement { font-size: 13px; }
    .compact-intro h1 { font-size: 31px; }
    .compact-intro p { font-size: 15px; }
    .page-hero h1 { font-size: 31px; }
    .page-hero p { font-size: 15px; }
    .purchase-card h1 { font-size: 28px; }
    .purchase-meta span { font-size: 12px; }
    .purchase-meta b { font-size: 15px; }
    .purchase-notice-card small { font-size: 13px; }
}

/* Admin bulk actions and delivery lookup guidance */
.admin-bulk-form { display: grid; gap: 14px; }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 8px; }
.bulk-select { display: inline-flex; grid-template-columns: none; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; cursor: pointer; }
.bulk-select input, .row-checkbox { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.sort-input { width: 78px; min-height: 38px; padding: 6px 8px; text-align: center; }
.button-danger { color: #fff; background: #c43d4d; }
.button-danger:hover { color: #fff; background: #a92f3e; }
.admin-option-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: #f5f9fd; border: 1px solid #d5e4ef; border-radius: 8px; }
.admin-option-panel b, .admin-option-panel small { display: block; }
.admin-option-panel small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.admin-option-checks { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.admin-option-checks .checkbox-row { min-width: 64px; }
.manual-field-panel { align-items: flex-start; }
.manual-field-panel[hidden] { display: none; }
.manual-field-checks { display: flex; flex: 0 1 520px; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
.manual-field-checks .checkbox-row { min-width: 92px; white-space: nowrap; }
.admin-detail .detail-wide { grid-column: 1 / -1; }
.inventory-import-panel { display: grid; gap: 14px; padding: 18px; background: #f8fbff; border: 1px solid #d4e2ee; border-radius: 9px; }
.inventory-import-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inventory-import-heading b, .inventory-import-heading small { display: block; }
.inventory-import-heading small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.inventory-stock-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.inventory-stock-badges span { padding: 5px 9px; color: #1768ad; background: #e9f4ff; border: 1px solid #c7dff3; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.inventory-import-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inventory-import-grid label { align-content: start; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.inventory-import-grid textarea { min-height: 145px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.inventory-existing-panel { display: grid; gap: 12px; padding-top: 15px; border-top: 1px solid #d4e2ee; scroll-margin-top: 95px; }
.inventory-existing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inventory-existing-heading b, .inventory-existing-heading small { display: block; }
.inventory-existing-heading small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.inventory-existing-heading strong { min-width: 56px; padding: 5px 9px; color: #1768ad; background: #e9f4ff; border-radius: 999px; font-size: 12px; text-align: center; white-space: nowrap; }
.inventory-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 7px; }
.inventory-bulk-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.inventory-gender-filter { display: flex; align-items: center; gap: 8px; color: #31485c; font-size: 13px; font-weight: 800; }
.inventory-gender-filter select { width: 92px; min-height: 34px; padding: 5px 28px 5px 9px; background-color: #fff; font-size: 13px; }
.inventory-visible-count { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.inventory-edit-table { min-width: 960px; }
.inventory-edit-table tr[hidden] { display: none; }
.inventory-edit-table th:first-child, .inventory-edit-table td:first-child { width: 68px; text-align: center; }
.inventory-edit-table th:nth-child(2), .inventory-edit-table td:nth-child(2) { width: 64px; }
.inventory-edit-table th:nth-child(3), .inventory-edit-table td:nth-child(3) { width: 180px; }
.inventory-edit-table th:nth-child(5), .inventory-edit-table td:nth-child(5) { width: 155px; }
.inventory-edit-table th:last-child, .inventory-edit-table td:last-child { width: 88px; text-align: center; }
.inventory-edit-table select { min-height: 38px; padding: 6px 9px; }
.inventory-code-editor { min-height: 62px; padding: 8px 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; line-height: 1.45; }
.inventory-delete-one { min-height: 34px; padding: 6px 11px; }
.inventory-delete-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.inventory-empty { margin: 0; padding: 14px; color: var(--muted); background: #fff; border: 1px dashed #cbdbe8; border-radius: 8px; }
.purchase-option-fieldset { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.purchase-option-fieldset legend { margin: 0 0 7px; padding: 0; color: #32485a; font-size: 15px; font-weight: 800; }
.purchase-option-fieldset > small { color: var(--muted); font-size: 13px; }
.gender-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gender-choice { min-height: 70px; display: flex; grid-template-columns: none; align-items: center; gap: 12px; padding: 12px 15px; color: var(--ink); background: #fff; border: 1px solid #cfdce5; border-radius: 9px; cursor: pointer; }
.gender-choice input { width: 19px; min-height: 19px; margin: 0; accent-color: var(--primary); }
.gender-choice > span { display: grid; gap: 1px; color: inherit; }
.gender-choice b { font-size: 16px; }
.gender-choice small { color: var(--muted); font-size: 12px; font-weight: 500; }
.gender-choice:has(input:checked) { color: #1768ad; background: #eef7ff; border-color: #73ace0; box-shadow: 0 0 0 3px rgba(45,131,209,.1); }
.gender-choice.is-disabled { color: #87939f; background: #eef1f4; border-color: #dfe4e8; cursor: not-allowed; opacity: .7; }
.gender-choice.is-disabled input { accent-color: #aab2ba; }
.purchase-discount-tip { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: -10px 0 18px; padding: 13px 15px; color: #8a5715; background: #fff7e8; border: 1px solid #edcf9b; border-radius: 8px; }
.purchase-discount-tip b { padding: 3px 8px; color: #fff; background: #df861c; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.purchase-discount-tip span { font-size: 14px; }
.purchase-discount-tip.is-active { color: #196b4f; background: #ebf8f2; border-color: #bfe2d2; }
.purchase-discount-tip.is-active b { background: #248361; }
.delivery-lookup-tip { display: grid; gap: 4px; padding: 14px 16px; color: #325b4c; background: var(--mint-soft); border: 1px solid #c7e6d6; border-radius: 7px; }
.delivery-lookup-tip b { font-size: 15px; }
.delivery-lookup-tip span { font-size: 14px; line-height: 1.7; }
.delivery-box { color: #32465a; background: #f1f8ff; border: 1px solid #cfe3f7; }
.delivery-box h3 { margin: 0; color: #1768ad; font-size: 21px; }
.delivery-box p { margin: 7px 0 0; font-size: 14px; }
.delivery-status-note { margin-top: 20px; padding: 16px 18px; color: #71551d; background: #fff8e8; border: 1px solid #efddb7; border-radius: 7px; font-size: 15px; }

@media (max-width: 560px) {
    .bulk-toolbar { align-items: stretch; flex-direction: column; }
    .bulk-toolbar .actions, .bulk-toolbar .button { width: 100%; }
    .admin-option-panel { align-items: stretch; flex-direction: column; }
    .manual-field-checks { flex-basis: auto; justify-content: flex-start; }
    .inventory-import-heading { flex-direction: column; }
    .inventory-import-grid { grid-template-columns: 1fr; }
    .inventory-existing-heading { flex-direction: column; }
    .inventory-bulk-toolbar { align-items: stretch; flex-direction: column; }
    .inventory-bulk-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
    .inventory-bulk-toolbar .button { width: 100%; }
    .gender-options { grid-template-columns: 1fr; }
    .purchase-discount-tip { grid-template-columns: 1fr; }
    .delivery-lookup-tip span, .delivery-box p { font-size: 13px; }
}

/* Compact, lighter form rhythm */
input, select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
textarea { padding: 10px 12px; }
.button { min-height: 42px; padding: 9px 18px; }
.purchase-card { padding: 24px; }
.purchase-form { gap: 13px; line-height: 1.55; }
.purchase-form > label { gap: 6px; }
.purchase-form label small { line-height: 1.5; }
.purchase-payment { gap: 1px 10px; padding: 10px 13px; }
.purchase-payment > b { padding: 3px 9px; }
.delivery-lookup-tip { padding: 10px 13px; }
.gender-options { gap: 10px; }
.gender-choice { min-height: 58px; padding: 9px 13px; }
.purchase-option-fieldset { gap: 6px; }
.purchase-option-fieldset legend { margin-bottom: 4px; }
.purchase-discount-tip { margin: -6px 0 12px; padding: 10px 13px; }
.purchase-submit-row { gap: 11px; }
.quantity-control, .purchase-total, .purchase-now { min-height: 42px; }
.quantity-control { grid-template-columns: 40px minmax(58px, 1fr) 40px; }
.quantity-control input { min-height: 40px; }
.purchase-consent { margin-top: 0; }
.purchase-notice-card > div { padding: 13px 0; }
.admin-form { gap: 18px; }
.form-grid { gap: 14px; }

@media (max-width: 560px) {
    .purchase-card { padding: 18px; }
    .purchase-form { gap: 12px; }
}

/* Extra-compact product purchase form */
.purchase-price { display: grid; gap: 0; margin: 14px 0 11px; padding: 0; overflow: hidden; }
.purchase-price-main { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 16px 10px; }
.purchase-price-main > span { color: #72531f; font-size: 14px; }
.purchase-price-main > strong { color: #df6818; font-size: 32px; }
.purchase-price .purchase-discount-tip { grid-template-columns: auto 1fr; gap: 9px; margin: 0; padding: 8px 16px; border: 0; border-top: 1px solid #f1d8ad; border-radius: 0; }
.purchase-price .purchase-discount-tip span { font-size: 13px; }
.purchase-form { gap: 10px; }
.purchase-form > label { gap: 4px; }
.purchase-form input[type="text"], .purchase-form input[type="email"], .purchase-form input[type="tel"] { min-height: 38px; height: 38px; padding: 6px 11px; font-size: 15px; font-weight: 400; }
.purchase-form textarea { min-height: 68px; padding: 8px 11px; font-size: 15px; font-weight: 400; line-height: 1.5; }
.purchase-form input::placeholder { color: #7c8794; font-weight: 400; }
.purchase-form label small { font-size: 12px; line-height: 1.4; }
.purchase-option-fieldset { gap: 4px; }
.purchase-option-fieldset legend { margin-bottom: 2px; }
.gender-options { gap: 8px; }
.gender-choice { min-height: 46px; gap: 10px; padding: 7px 12px; }
.gender-choice > span { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.gender-choice b { font-size: 15px; }
.gender-choice small { font-size: 12px; }
.delivery-lookup-tip { gap: 2px; padding: 8px 12px; }
.delivery-lookup-tip b { font-size: 14px; }
.delivery-lookup-tip span { font-size: 13px; line-height: 1.5; }
.purchase-submit-row { gap: 9px; }
.quantity-control, .purchase-total, .purchase-now { min-height: 40px; }
.quantity-control { grid-template-columns: 38px minmax(54px, 1fr) 38px; }
.quantity-control input { min-height: 38px; }

@media (max-width: 560px) {
    .purchase-price-main { padding: 12px 13px 9px; }
    .purchase-price .purchase-discount-tip { padding: 8px 13px; }
    .purchase-price-main > strong { font-size: 29px; }
    .purchase-form { gap: 9px; }
}

/* Checkout-bar price and discount layout */
.purchase-card h1 { font-size: clamp(27px, 2.7vw, 33px); line-height: 1.28; letter-spacing: -.01em; }
.purchase-submit-row { grid-template-columns: 185px 118px minmax(150px, 1fr); gap: 9px; align-items: end; }
.purchase-submit-row.has-discount { grid-template-columns: 185px 112px minmax(180px, 1fr) 160px; }
.purchase-submit-row .purchase-total { min-height: 40px; }
.purchase-submit-row .purchase-discount-tip { min-height: 40px; grid-template-columns: auto minmax(0, 1fr); align-self: end; gap: 7px; margin: 0; padding: 7px 9px; border-radius: 6px; }
.purchase-submit-row .purchase-discount-tip b { padding: 2px 6px; font-size: 11px; }
.purchase-submit-row .purchase-discount-tip span { font-size: 12px; line-height: 1.35; }
.purchase-submit-row .purchase-now { min-width: 0; padding-right: 12px; padding-left: 12px; }

@media (max-width: 560px) {
    .purchase-card h1 { font-size: 26px; }
    .purchase-submit-row, .purchase-submit-row.has-discount { grid-template-columns: 1fr 1fr; }
    .purchase-submit-row .quantity-label { grid-column: 1; }
    .purchase-submit-row .purchase-total { grid-column: 2; }
    .purchase-submit-row .purchase-discount-tip, .purchase-submit-row .purchase-now { grid-column: 1 / -1; }
}

/* Compact stock and delivery placement */
.purchase-headline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.purchase-status-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.purchase-status-chips > span { min-height: 29px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.purchase-status-chips i { color: var(--muted); font-style: normal; }
.purchase-status-chips b { color: var(--ink); font-size: 13px; }
.purchase-status-chips .stock-chip { background: #fff8e9; border-color: #f0d8ab; }
.purchase-status-chips .delivery-chip { background: #eef9f4; border-color: #c9e7d8; }
.purchase-card h1 { margin-top: 13px; }
.purchase-lead { margin-bottom: 12px; }

@media (max-width: 560px) {
    .purchase-headline { align-items: flex-start; flex-direction: column; gap: 9px; }
    .purchase-card h1 { margin-top: 11px; }
}

/* Product description precedes purchase notice on narrow screens */
.purchase-layout > .purchase-card { grid-column: 1; grid-row: 1; }
.purchase-layout > .purchase-description-card { grid-column: 1; grid-row: 2; margin-top: 0; }
.purchase-layout > .purchase-notice-card { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 800px) {
    .purchase-layout > .purchase-card { grid-column: 1; grid-row: 1; }
    .purchase-layout > .purchase-description-card { grid-column: 1; grid-row: 2; }
    .purchase-layout > .purchase-notice-card { grid-column: 1; grid-row: 3; }
}

/* Mobile home order: products, then supporting panels */
@media (max-width: 560px) {
    .compact-home-layout > .store-sidebar, .compact-home-layout > .store-main { display: contents; }
    .store-main .home-product-group { order: 1; }
    .store-main .purchase-guide-compact { order: 2; }
    .store-sidebar .sidebar-panel:nth-child(1) { order: 3; }
    .store-sidebar .sidebar-panel:nth-child(2) { order: 4; }
    .store-sidebar .sidebar-panel:nth-child(3) { order: 5; }
}


/* Order list pagination v1.9.2 */
.order-list-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding: 12px 14px; background: #fffaf0; border: 1px solid #f1dfb7; border-radius: 8px; }
.order-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.order-total strong { color: var(--ink); font-size: 15px; }
.order-total span { color: var(--muted); font-size: 13px; }
.page-size-form, .page-size-form label { display: flex; align-items: center; gap: 9px; margin: 0; }
.page-size-form label { grid-template-columns: none; color: var(--muted); font-size: 14px; }
.page-size-form select { width: 88px; min-height: 38px; padding: 6px 28px 6px 10px; font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; }
.pagination a, .pagination span { min-width: 38px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; line-height: 1; }
.pagination a:hover { color: var(--primary); border-color: var(--primary); }
.pagination a.active { color: #fff; background: var(--primary); border-color: var(--primary); font-weight: 800; }
.pagination .disabled { color: #a9b3bd; background: #f4f6f8; }
.pagination .page-state { color: var(--muted); background: transparent; border-color: transparent; white-space: nowrap; }
@media (max-width: 640px) {
    .order-list-controls { align-items: stretch; flex-direction: column; }
    .page-size-form { justify-content: space-between; }
}
