:root {
    --ch-primary: #2563eb;
    --ch-primary-dark: #1d4ed8;
    --ch-accent: #f59e0b;
    --ch-accent-dark: #d97706;
    --ch-danger: #ef4444;
    --ch-bg: #f8fafc;
    --ch-card-bg: #ffffff;
    --ch-border: #e2e8f0;
    --ch-text: #1e293b;
    --ch-sub: #64748b;
    --ch-navy: #1e3a8a;
    --ch-dark: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--ch-bg); color: var(--ch-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: 0.2s; }

.ch-topbar { background: #ffffff; border-bottom: 1px solid var(--ch-border); font-size: 12px; height: 36px; line-height: 36px; color: var(--ch-sub); }
.ch-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: flex-end; align-items: center; }

.ch-header { background: #ffffff; padding: 15px 0; border-bottom: 1px solid var(--ch-border); }
.ch-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.ch-logo img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }

.ch-nav-bar { background: #ffffff; border-bottom: 1px solid var(--ch-border); box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.ch-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.ch-nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.ch-nav-list li a { display: block; padding: 12px 20px; color: #475569; font-size: 14px; font-weight: 600; }
.ch-nav-list li a:hover, .ch-nav-list li.active a { color: var(--ch-primary); border-bottom: 2px solid var(--ch-primary); }

.ch-notice { max-width: 1280px; margin: 15px auto 0; padding: 10px 15px; background: #eff6ff; border-left: 4px solid var(--ch-primary); border-radius: 4px; color: var(--ch-primary-dark); font-size: 13px; }

.ch-container { max-width: 1280px; margin: 25px auto; padding: 0 15px; min-height: 60vh; }

.ch-hero-banner { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); color: #ffffff; padding: 40px 20px; text-align: center; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(37,99,235,0.15); }
.ch-hero-banner h1 { font-size: 26px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.ch-hero-banner p { font-size: 13px; opacity: 0.9; }

.ch-section-head { display: flex; justify-content: space-between; align-items: center; margin: 35px 0 18px; }
.ch-section-title { font-size: 18px; font-weight: 800; color: #0f172a; display: flex; align-items: center; }
.ch-section-title::before { content: ""; width: 4px; height: 16px; background: var(--ch-primary); margin-right: 8px; border-radius: 2px; }

.ch-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ch-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.ch-category-tile { background: #ffffff; border: 1px solid var(--ch-border); border-radius: 10px; padding: 22px 18px; text-align: center; transition: 0.2s; }
.ch-category-tile:hover { transform: translateY(-3px); border-color: var(--ch-primary); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.ch-category-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eff6ff; }
.ch-category-icon img { max-width: 36px; max-height: 36px; object-fit: contain; }

.ch-card-item { background: #ffffff; border: 1px solid var(--ch-border); border-radius: 10px; padding: 15px; text-align: center; transition: 0.2s; position: relative; overflow: hidden; }
.ch-card-item:hover { border-color: var(--ch-primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37,99,235,0.08); }
.ch-card-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; color: #ffffff; }
.ch-badge-red { background: var(--ch-danger); }
.ch-badge-orange { background: var(--ch-accent); }
.ch-badge-green { background: #10b981; }

.ch-card-img-box { width: 100%; height: 110px; background: #f8fafc; border-radius: 6px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.ch-card-img-box img { max-width: 70px; max-height: 70px; object-fit: contain; }
.ch-card-name { font-size: 13px; font-weight: 700; color: var(--ch-text); height: 36px; overflow: hidden; margin-bottom: 8px; }
.ch-card-price { font-size: 16px; font-weight: 800; color: var(--ch-danger); margin-bottom: 10px; }
.ch-btn-buy { display: block; width: 100%; padding: 7px 0; background: var(--ch-primary); color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; border-radius: 6px; }
.ch-btn-buy:hover { background: var(--ch-primary-dark); }

.ch-navy-section { background: var(--ch-navy); padding: 30px 20px; border-radius: 12px; margin-bottom: 35px; color: #ffffff; }
.ch-navy-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 15px; text-align: center; transition: 0.2s; }
.ch-navy-card:hover { border-color: #60a5fa; transform: translateY(-2px); }

.ch-box { background: #ffffff; border: 1px solid var(--ch-border); margin-bottom: 25px; padding: 20px; border-radius: 10px; }
.ch-row-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-bottom: 1px dashed var(--ch-border); font-size: 13px; }
.ch-row-item:last-child { border-bottom: none; }

.ch-detail-layout { display: flex; gap: 30px; background: #ffffff; border: 1px solid var(--ch-border); padding: 30px; border-radius: 12px; }
.ch-detail-media { flex: 0 0 280px; text-align: center; }
.ch-detail-img-wrap { width: 230px; height: 230px; margin: 0 auto 12px; border: 1px solid var(--ch-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 12px; }
.ch-detail-img-wrap img { max-width: 190px; max-height: 190px; object-fit: contain; }
.ch-detail-info { flex: 1; }
.ch-detail-name { font-size: 20px; font-weight: bold; color: var(--ch-text); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--ch-border); }
.ch-detail-meta-box { background: #eff6ff; border: 1px solid #dbeafe; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.ch-form-group { margin-bottom: 15px; }
.ch-form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #475569; }
.ch-input { width: 100%; height: 40px; background: #ffffff; border: 1px solid var(--ch-border); border-radius: 6px; padding: 0 12px; outline: none; font-size: 13px; }
.ch-input:focus { border-color: var(--ch-primary); }
.ch-btn-submit { width: 100%; height: 44px; background: var(--ch-primary); color: #ffffff; font-size: 15px; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.ch-btn-submit:hover { background: var(--ch-primary-dark); }

.ch-footer { background: var(--ch-dark); color: #94a3b8; padding: 35px 15px; text-align: center; margin-top: 40px; font-size: 13px; }
.ch-footer-links { margin-bottom: 10px; }
.ch-footer-links a { color: #ffffff; margin: 0 10px; font-weight: 500; }
.ch-footer-links a:hover { color: var(--ch-accent); }

@media (max-width: 992px) {
    .ch-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ch-grid-2 { grid-template-columns: 1fr; }
    .ch-detail-layout { flex-direction: column; }
    .ch-detail-media { flex: 1; }
}
@media (max-width: 640px) {
    .ch-grid-4 { grid-template-columns: 1fr; }
    .ch-nav-list li a { padding: 9px 12px; font-size: 13px; }
}
