/* ==========================================================================
   KELVIX ENERGY - COMPONENTS (CLEAN CORPORATE BLUE & WHITE)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product Cards & Filter Bar
   -------------------------------------------------------------------------- */
.product-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.filter-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(2, 82, 204, 0.25);
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.product-media {
  min-height: 190px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem 1.5rem 1.25rem;
  position: relative;
}

.product-media-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-category-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--primary-blue);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.product-badge-accent {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-light);
  color: #0369a1;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

.product-illustration {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease;
  margin-top: auto;
  margin-bottom: auto;
}

.product-card:hover .product-illustration {
  transform: scale(1.05);
}

.product-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.product-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1.1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.35rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.spec-val {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-heading);
}

.product-actions {
  display: flex;
  gap: 0.65rem;
}

.product-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Specs Modal (Clean Light Theme)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px) scale(0.98);
  transition: transform 0.25s ease;
  position: relative;
  padding: 2.25rem;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.modal-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table th {
  text-align: left;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  width: 45%;
}

.specs-table td {
  padding: 0.75rem 0;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.925rem;
}

/* --------------------------------------------------------------------------
   Energy Calculator (Clean Corporate Styling)
   -------------------------------------------------------------------------- */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.calc-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.appliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.appliance-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.appliance-meta {
  display: flex;
  flex-direction: column;
}

.appliance-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.appliance-watts {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.qty-counter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

.qty-val {
  font-weight: 700;
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
}

.hours-selector {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hours-option {
  flex: 1;
  min-width: 75px;
  padding: 0.65rem 0.4rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hours-option:hover,
.hours-option.active {
  background: var(--primary-blue-light);
  border-color: var(--primary-blue);
}

.hours-option.active .hours-num {
  color: var(--primary-blue-dark);
}

.hours-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.hours-label {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Calculator Summary Box */
.calc-summary-box {
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.calc-stat-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.calc-stat {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.calc-stat:last-child {
  border-bottom: none;
}

.calc-stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.calc-stat-val {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-blue-dark);
}

.calc-stat-val span {
  font-size: 0.95rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-left: 0.25rem;
}

.recommended-product-card {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   Distributor Reviews (Clean Corporate Cards)
   -------------------------------------------------------------------------- */
.city-filter-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.city-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.city-pill:hover,
.city-pill.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.review-quote {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.distributor-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
}

.distributor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.distributor-details {
  display: flex;
  flex-direction: column;
}

.distributor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.distributor-company {
  font-size: 0.8rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.distributor-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #15803d;
  background: var(--accent-green-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-top: 0.3rem;
  width: fit-content;
  border: 1px solid #bbf7d0;
}

/* --------------------------------------------------------------------------
   Forms & Controls (Corporate Clean)
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.925rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 82, 204, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

@media (max-width: 900px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}
