/* ════════════════════════════════════════════════════════
   獸醫軟體商城 - 主要樣式
   ════════════════════════════════════════════════════════ */

:root {
  --primary: #0d6efd;
  --primary-dark: #0043a8;
  --success: #198754;
  --text-main: #1a1a2e;
  --text-muted: #6c757d;
  --border: #e5e7eb;
  --bg-light: #f8f9fa;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --radius: 12px;
}

/* ── Global ── */
body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: #fff;
}

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0043a8 60%, #002b6d 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-section .text-white-75 {
  color: rgba(255,255,255,.75);
}
.hero-icon-wrap {
  width: 200px; height: 200px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero-icon {
  font-size: 6rem;
  color: rgba(255,255,255,.6);
}

/* ── Feature Chips ── */
.feature-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.feature-chip:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* ── Section Header ── */
.section-header {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}
.section-header h2 { margin-bottom: .25rem; }

/* ── Product Cards ── */
.product-card {
  border-radius: var(--radius) !important;
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,110,253,.15) !important;
}
.product-card-img-wrap {
  position: relative;
  background: var(--bg-light);
  overflow: hidden;
}
.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f8f9fa;
  transition: transform .4s;
}
.product-card:hover .product-card-img {
  transform: scale(1.03);
}
.product-card-img-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}
.product-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(13,110,253,.9);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.price-tag { line-height: 1; }

/* ── Product Detail ── */
.product-detail-img {
  max-height: 450px;
  object-fit: cover;
}
.thumbnail-img {
  width: 70px; height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: .6;
  border: 2px solid transparent;
  transition: all .2s;
}
.thumbnail-img:hover,
.thumbnail-img.active {
  opacity: 1;
  border-color: var(--primary);
}
.product-img-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}
.price-display {
  border-left: 4px solid var(--primary);
}
.nav-tabs-custom .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  padding: .75rem 1.25rem;
  transition: all .2s;
}
.nav-tabs-custom .nav-link.active,
.nav-tabs-custom .nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: none;
}
.product-description {
  line-height: 1.8;
  font-size: .95rem;
}
.product-description h1, .product-description h2,
.product-description h3 { font-weight: 700; margin-top: 1.5rem; }

/* ── Footer ── */
.footer-main {
  background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-policy-btn {
  color: rgba(255,255,255,.55) !important;
  border-color: rgba(255,255,255,.2) !important;
  font-size: .8rem;
  transition: all .2s;
}
.footer-policy-btn:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.6) !important;
  background: rgba(255,255,255,.08) !important;
}

/* ── Policy Modals ── */
.policy-body h6 {
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: .25rem;
}
.policy-body p, .policy-body li {
  font-size: .9rem;
  color: #555;
  line-height: 1.7;
}

/* ── Checkout ── */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* ── Download Page ── */
.success-icon-wrap {
  width: 90px; height: 90px;
  background: rgba(25,135,84,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .hero-section { padding: 3rem 0 !important; }
  .hero-section h1 { font-size: 1.75rem; }
  .product-card-img { height: 180px; }
}

/* ── Utils ── */
.rounded-3 { border-radius: var(--radius) !important; }
.shadow-sm { box-shadow: 0 2px 12px rgba(0,0,0,.06) !important; }
