/* ==========================================================================
   青松戶外國際有限公司 (Bluepine Outdoor) - Modern Stylesheet
   Compatible with Bootstrap 5.3.3
   ========================================================================== */

:root {
  --bp-primary: #1C7C54;
  --bp-primary-dark: #14593C;
  --bp-forest: #1B512D;
  --bp-accent: #62C370;
  --bp-accent-light: #C2F9BB;
  --bp-surface: #F6FAF7;
  --bp-border: #E0EDE4;
  --bp-text: #2D3748;
  --bp-text-muted: #718096;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: var(--bp-text);
  background-color: #FAFCFA;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.bp-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--bp-accent);
  box-shadow: 0 2px 10px rgba(28, 124, 84, 0.08);
  transition: all 0.3s ease;
}

.bp-navbar .navbar-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.bp-navbar .nav-link {
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bp-navbar .nav-link:hover,
.bp-navbar .nav-link.active {
  color: var(--bp-forest);
  background-color: var(--bp-surface);
}

.bp-navbar .nav-link.active {
  font-weight: 600;
  color: var(--bp-primary);
  background-color: #EAF7EE;
}

/* ==========================================================================
   Hero Banner & Sections
   ========================================================================== */
.bp-hero {
  position: relative;
  background: linear-gradient(135deg, #1B512D 0%, #1C7C54 60%, #3DA35D 100%);
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(27, 81, 45, 0.15);
}

.bp-hero-banner-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.bp-section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--bp-forest);
  margin-bottom: 1.5rem;
}

.bp-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 48px;
  height: 4px;
  background-color: var(--bp-accent);
  border-radius: 2px;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.bp-card {
  border: 1px solid var(--bp-border);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bp-card:hover {
  transform: translateY(-4px);
  border-color: var(--bp-accent);
  box-shadow: 0 12px 28px rgba(28, 124, 84, 0.12);
}

.bp-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 85%; /* 4:3.4 Aspect Ratio */
  background-color: #F8FBF9;
  overflow: hidden;
}

.bp-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.bp-card:hover .bp-card-img {
  transform: scale(1.05);
}

.bp-badge-model {
  background-color: #EAF7EE;
  color: var(--bp-forest);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.bp-badge-category {
  background-color: #F3F4F6;
  color: #4B5563;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.bp-price-tag {
  color: #E53E3E;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ==========================================================================
   Filter & Catalog Controls
   ========================================================================== */
.bp-filter-btn {
  border: 1px solid var(--bp-border);
  background: #fff;
  color: #4A5568;
  font-weight: 500;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.bp-filter-btn:hover {
  background-color: var(--bp-surface);
  color: var(--bp-primary);
  border-color: var(--bp-accent);
}

.bp-filter-btn.active {
  background-color: var(--bp-primary);
  color: #fff;
  border-color: var(--bp-primary);
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.25);
}

.bp-search-input {
  border: 2px solid var(--bp-border);
  border-radius: 25px;
  padding: 0.65rem 1.25rem 0.65rem 2.75rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bp-search-input:focus {
  border-color: var(--bp-primary);
  box-shadow: 0 0 0 4px rgba(28, 124, 84, 0.15);
  outline: none;
}

.bp-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
  font-size: 1.1rem;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.bp-gallery-main {
  border: 1px solid var(--bp-border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.bp-gallery-main img {
  max-height: 450px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.bp-thumb-btn {
  border: 2px solid var(--bp-border);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  width: 72px;
  height: 72px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.bp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bp-thumb-btn:hover,
.bp-thumb-btn.active {
  border-color: var(--bp-primary);
  box-shadow: 0 2px 8px rgba(28, 124, 84, 0.2);
}

.bp-spec-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bp-border);
}

.bp-spec-table th {
  background-color: var(--bp-surface);
  color: var(--bp-forest);
  font-weight: 600;
  width: 30%;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--bp-border);
}

.bp-spec-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--bp-border);
  color: #374151;
}

.bp-spec-table tr:last-child th,
.bp-spec-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Tech Badges & Features
   ========================================================================== */
.bp-tech-card {
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease;
}

.bp-tech-card:hover {
  transform: translateY(-2px);
  border-color: var(--bp-accent);
}

.bp-tech-img {
  width: 80px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bp-footer {
  background-color: #163622;
  color: #D1D5DB;
  margin-top: auto;
  border-top: 3px solid var(--bp-primary);
}

.bp-footer a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bp-footer a:hover {
  color: #62C370;
}

.bp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}
