/* ==========================================================================
   PRICE LIST PAGE STYLES (pricelist.css)
   ========================================================================== */

.filter-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #D0D0D0;
  background: white;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.filter-btn.active, 
.filter-btn:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.model-group-section {
  margin-bottom: 50px;
}

.model-group-header {
  background-color: var(--color-secondary);
  color: white;
  padding: 16px 24px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-group-header h3 {
  color: white;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.model-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E5E5E5;
  border-top: none;
  background: white;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.model-table th, 
.model-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #ECECEC;
  font-size: 0.9375rem;
}

.model-table th {
  background-color: #F8F9FA;
  font-weight: 700;
  color: var(--color-secondary);
}

.col-version { width: 40%; }
.col-engine { width: 25%; }
.col-price { width: 15%; }
.col-action { width: 20%; text-align: center; }

.model-table tr:last-child td {
  border-bottom: none;
}

.val-price {
  color: var(--color-primary);
  font-weight: 700;
}

.table-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.table-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.td-action-cell {
  text-align: center;
}

@media (max-width: 768px) {
  .filter-btn-group {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .model-group-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }

  .model-group-header span {
    font-size: 0.75rem;
    width: 100%;
  }

  .model-table, 
  .model-table thead, 
  .model-table tbody, 
  .model-table th, 
  .model-table td, 
  .model-table tr {
    display: block;
  }

  .model-table thead {
    display: none;
  }

  .model-table tr {
    padding: 15px 0;
    border-bottom: 1px solid #ECECEC;
  }

  .model-table td {
    border-bottom: none;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .model-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 16px;
  }

  .model-table td[data-label="Hành động"] {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .model-table td[data-label="Hành động"]::before {
    margin-right: 0;
  }

  .table-actions {
    width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .table-actions .btn {
    padding: 10px 8px;
    font-size: 0.75rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .filter-btn-group {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-btn-group::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .model-table td {
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .model-table td::before {
    font-size: 0.75rem;
    margin-right: 8px;
  }
}
