/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: var(--font-sans);
  border: 2px solid transparent; transition: all .2s; line-height: 1; cursor: pointer;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11,110,79,.35); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover:not(:disabled) { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-category { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); line-height: 1.4; }
.card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* Product Card */
.product-card { cursor: pointer; }
.product-card .card-img-wrap { position: relative; overflow: hidden; height: 200px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .card-img-wrap > img { transform: scale(1.05); }
.product-card .card-img-wrap .no-img { width: 64px; height: 64px; color: var(--primary); opacity: .3; }
.product-card .featured-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; z-index: 2; }

/* Card Mini Carousel */
.card-carousel { position: relative; width: 100%; height: 100%; }
.card-carousel-track { display: flex; height: 100%; transition: transform .35s ease; }
.card-carousel-track.no-transition { transition: none; }
.card-carousel-slide { min-width: 100%; height: 100%; }
.card-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.card-carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer; transition: background .2s; }
.card-carousel-dot.active { background: #fff; }
.card-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.8); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transition: opacity .2s; }
.card-img-wrap:hover .card-carousel-btn { opacity: 1; }
.card-carousel-btn.prev { left: 6px; }
.card-carousel-btn.next { right: 6px; }
.card-carousel-btn svg { width: 14px; height: 14px; stroke: #333; }
.product-card .cas { font-size: 11px; color: var(--text-muted); font-family: monospace; margin-top: 4px; }
.product-card .tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.product-card .tag { font-size: 11px; padding: 2px 8px; background: var(--primary-light); color: var(--primary); border-radius: 99px; font-weight: 500; }

/* News Card */
.news-card { display: flex; gap: 0; flex-direction: column; }
.news-card .news-date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.news-card .news-source { font-size: 11px; padding: 2px 8px; background: var(--primary-light); color: var(--primary); border-radius: 99px; font-weight: 600; }
.news-card .news-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; color: var(--text-primary); transition: color .15s; }
.news-card:hover .news-title { color: var(--primary); }
.news-card .news-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Category Tab */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-xl); }
.cat-tab {
  padding: 9px 20px; border-radius: 99px; font-size: 14px; font-weight: 500;
  border: 2px solid var(--border); background: var(--surface); color: var(--text-secondary);
  cursor: pointer; transition: all .15s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-tab .count { font-size: 11px; background: rgba(255,255,255,.25); padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.cat-tab.active .count { background: rgba(255,255,255,.25); }

/* Form */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; background: var(--surface);
  color: var(--text-primary); transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,110,79,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent-light); color: var(--accent-dark); }

/* Spec Table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table th { background: var(--primary-light); color: var(--primary); font-weight: 600; white-space: nowrap; width: 35%; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* Contact Info Card */
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.contact-info-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-info-body h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-body p { font-size: 15px; font-weight: 500; color: var(--text-primary); }

/* Advantage Card */
.adv-card { text-align: center; padding: var(--space-lg); }
.adv-icon { width: 64px; height: 64px; background: var(--primary-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); }
.adv-icon svg { width: 30px; height: 30px; color: var(--primary); }
.adv-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.adv-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Stat Counter */
.stat-counter { text-align: center; }
.stat-num { font-size: var(--font-size-3xl); font-weight: 800; color: var(--primary); line-height: 1; }
.stat-num sup { font-size: 0.5em; vertical-align: super; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 44px; height: 44px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all .2s; opacity: 0; pointer-events: none;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }
